:root { --red: #CD1531; --red-text: #E8445C; --grey: #BDB6A8; --grey-dim: #8C8579; --text: #EDE8E0; --bg: #0B0A0A; --bg-3: #151313; --line: #2A2626; --line-2: #4A4444; --display: 'Barlow Condensed', sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); font-family: 'Barlow', system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
.bg { position: fixed; inset: -40px; z-index: 0; background: url(/assets/img/cover.jpg) center / cover; filter: blur(30px) saturate(1.1); opacity: 0.18; pointer-events: none; }
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 0%, var(--bg) 75%); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Header: live photo fading to black */
.cover-band { position: relative; z-index: 1; width: 100%; max-width: 900px; margin: 0 auto; height: clamp(240px, 70vw, 400px); }
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.6) 70%, transparent 86%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.6) 70%, transparent 86%); }
@media (min-width: 901px) {
  .band-photo {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.6) 70%, transparent 86%), linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.6) 70%, transparent 86%), linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-composite: intersect; }
}
.site-top { position: absolute; z-index: 3; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid rgba(237, 232, 224, 0.45); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--text); background: rgba(11, 10, 10, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color 0.2s, background 0.2s; }
.site-top:hover { border-color: var(--red); background: var(--red); }

/* Column */
.hub { position: relative; z-index: 2; width: 100%; max-width: 600px; margin: 0 auto; padding: 0 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hub h1 { margin: clamp(-170px, -30vw, -110px) 0 0; line-height: 0; }
.logo { width: min(250px, 58vw); height: auto; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.85)); }
.tag { margin: -6px 0 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey); }
.tag::before, .tag::after { content: ""; width: 24px; height: 2px; background: var(--red); }

/* Main links: icons only */
.icons { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 14px; }
.icons[hidden] { display: none; }
.ico { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11, 10, 10, 0.7); color: var(--text); transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s; }
.ico .ic, .ico .ic svg { width: 26px; height: 26px; }
.ico:hover, .ico:focus-visible { transform: translateY(-2px); color: #fff; background: var(--red); border-color: var(--red); }
.ico:active { transform: scale(0.94); color: #fff; background: #a90f27; border-color: #a90f27; }

/* Player */
.player { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.player[hidden] { display: none; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.tabs[hidden] { display: none; }
.tab { min-width: 0; min-height: 42px; padding: 0 6px; background: rgba(11, 10, 10, 0.6); border: 1px solid var(--line); color: var(--grey-dim); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #fff; border-color: var(--red); background: rgba(205, 21, 49, 0.18); }
.stage { position: relative; }
.frame { width: 100%; overflow: hidden; border-radius: 12px; background: rgba(21, 19, 19, 0.7); }
.frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(11, 10, 10, 0.55), rgba(11, 10, 10, 0.92)), url(/assets/img/cover.jpg) center / cover; }
.gate[hidden] { display: none; }
.gate .btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; background: var(--red); color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.gate .btn:hover { background: #a90f27; }
.gate p { margin: 0; max-width: 340px; font-size: 13px; line-height: 1.45; color: var(--grey); }

/* Groups */
.groups { width: 100%; display: flex; flex-direction: column; gap: 22px; margin-top: 6px; }
.gh { margin: 0 0 10px; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); }
.gh::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.links { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.lk { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 16px; border: 1px solid var(--line-2); background: rgba(11, 10, 10, 0.7); text-decoration: none; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.lk:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.lk.is-hot { background: var(--red); border-color: var(--red); }
.lk.is-hot:hover { background: #a90f27; border-color: #a90f27; }
.ic { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; }
.ic svg { width: 22px; height: 22px; }
.tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lb { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; }
.sb { font-size: 13px; color: var(--grey); overflow-wrap: anywhere; }
.lk:hover .sb, .lk.is-hot .sb { color: rgba(255, 255, 255, 0.85); }
.ar { color: var(--grey-dim); transition: color 0.2s, transform 0.2s; }
.lk:hover .ar, .lk.is-hot .ar { color: #fff; }
.lk:hover .ar { transform: translate(2px, -2px); }

/* Site */
.site-btn { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 20px; border: 2px solid var(--text); background: transparent; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, color 0.2s; }
.site-btn:hover { background: var(--text); color: var(--bg); }
.site-btn .lb { font-size: inherit; letter-spacing: inherit; font-weight: inherit; }
.site-btn .go { transition: transform 0.2s; }
.site-btn:hover .go { transform: translateX(4px); }
.site-btn[hidden] { display: none; }
footer { position: relative; z-index: 1; padding: 8px 16px 22px; text-align: center; font-size: 12px; color: var(--grey-dim); }
footer a { color: var(--grey-dim); }

@media (max-width: 480px) { .tab { font-size: 13px; letter-spacing: 0.06em; } .icons { gap: 12px; } .ico { width: 56px; height: 56px; } }
@media (max-width: 360px) { .tab { font-size: 12px; letter-spacing: 0.02em; padding: 0 3px; } .ico { width: 52px; height: 52px; } .icons { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* QR to open the page on a phone (desktop only) */
.qr { display: none; }
@media (min-width: 1000px) and (hover: hover) {
  .qr { position: fixed; z-index: 5; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 12px 10px; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
  .qr p { margin: 0; order: 2; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bg); }
  .qr img { display: block; width: 120px; height: 120px; }
}

/* Compact group (Ascolta su): small buttons on two columns */
.links.is-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.links.is-compact li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.links.is-compact .lk { min-height: 44px; padding: 8px 12px; gap: 10px; }
.links.is-compact .lb { font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links.is-compact .sb, .links.is-compact .ar { display: none; }
.links.is-compact .ic, .links.is-compact .ic svg { width: 18px; height: 18px; }

/* Collage header: on phones the five photos stay side by side, just smaller */
@media (max-width: 600px) {
  .cover-band { height: 44.5vw; }
  .hub h1 { margin-top: -40px; }
  .site-top { top: 8px; right: 8px; padding: 5px 8px; font-size: 11px; }
}

/* Tighter sections */
.groups { gap: 16px; }
.gh { margin-bottom: 8px; }
.links.is-compact .lb { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.1; }
.links.is-compact .lk { min-height: 46px; }
.links.is-compact .lk.is-hot .lb { font-size: 15px; }

/* Compact buttons: readable text, with the small line kept */
.links.is-compact .lk { min-height: 54px; padding: 8px 12px; gap: 10px; }
.links.is-compact .lb { font-size: 17px; letter-spacing: 0.04em; }
.links.is-compact .sb { display: block; font-size: 13px; line-height: 1.2; }
.links.is-compact .ic, .links.is-compact .ic svg { width: 20px; height: 20px; }
.links.is-compact .lk.is-hot .lb { font-size: 17px; }
.gsh { margin: 12px 0 6px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-text); }
.gh + .gsh { margin-top: 0; }
@media (max-width: 360px) { .links.is-compact .lb { font-size: 15px; } }
.links.is-compact li { display: flex; } .links.is-compact li > .lk { flex: 1; }
.links.is-compact li, .links.is-compact .tx { min-width: 0; } .links.is-compact .lb { overflow-wrap: anywhere; }
.cover-band picture { display: contents; }
