/* MUSIC (raimu.ch/music) - caricato dopo site.css */

/* Moon Flower: il font dei banner (Albums, EPs, ...). Licenza: vedi media/fonts/LEGGIMI-moon-flower.txt */
@font-face{font-family:'Moon Flower';font-style:normal;font-weight:400;font-display:swap;src:url(/media/fonts/moon-flower.woff2) format('woff2')}

.music { font-family: Roboto, sans-serif; }

/* --- in alto: immagine con il testo e il pulsante sopra --- */
.music-hero { padding: 10px; }
.hero-image { display: block; width: 100%; margin-bottom: 20px; }
/* testo e pulsante stanno SOPRA l'immagine: un margine negativo li sposta in su */
/* position: relative = disegnati SOPRA l'immagine (altrimenti il bordo del pulsante finisce sotto) */
.hero-text { position: relative; display: flow-root; margin-bottom: 20px; }
.hero-button { position: relative; }
.hero-copy { margin: -35% 10% 0; text-align: center; text-shadow: 2px 2px 6px #000; }
.hero-copy h1 { font-size: var(--h1); }
.hero-button { display: flow-root; }
.bandcamp-button { display: flex; width: fit-content; margin: -15% auto 0; }

/* --- categorie (Albums, EPs, ...): banner con il titolo scritto sopra ---
   Lo sfondo di ogni banner è in media/pages/music/banner-NOME.webp. */
.category { padding: 10px; container-type: inline-size; }
.category h2 {
    display: grid; place-items: center; height: 63px; height: max(48px, 5.75cqw); margin: 0 0 20px; overflow: hidden;
    font: 400 55px/.7 'Moon Flower', var(--hand); font-size: max(48px, 6cqw); letter-spacing: .01em; color: #fff; white-space: nowrap;
    padding-bottom: .02em;   /* posizione e misura del testo: le stesse dei banner originali */
    -webkit-text-stroke: .012em #fff;   /* il font esiste solo "Regular": il contorno lo rende Bold come nei banner originali */
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
    background: #1b2220 center / cover no-repeat;
}
.category h2.banner-albums { background-image: url(/media/pages/music/banner-albums.webp); }
.category h2.banner-eps { background-image: url(/media/pages/music/banner-eps.webp); }
.category h2.banner-singles { background-image: url(/media/pages/music/banner-singles.webp); }
.category h2.banner-compilations { background-image: url(/media/pages/music/banner-compilations.webp); }
/* titolo lungo: su telefono rimpicciolisce per stare su una riga */
.category h2.banner-compilations { font-size: min(max(48px, 6cqw), 12.5cqw); }

/* --- copertine --- */
.cover-row { display: flex; justify-content: center; }
.cover { margin: 0; padding: 10px; text-align: center; }
.cols-2 .cover { width: 50%; }
.cols-3 .cover { width: 33.333%; }
.cols-4 .cover { width: 25%; }
.cols-5 .cover { width: 20%; }
.cover a { display: inline-block; }
.cover img { display: block; }
.cover img[src*="-circled"] { border-radius: 50%; }
.cover figcaption { padding-top: 5px; font-size: 75%; font-weight: 600; color: #fff; opacity: .8; }
.no-captions .cover { padding-bottom: 15px; }

@media (max-width: 767px) {
    .hero-copy { margin: 0; }
    .bandcamp-button { margin-top: 0; }
    .cover-row { display: block; }
    .cover-row .cover { width: 100%; }
}
