

.testa {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gronda);
}
.testa__logo { display: block; width: 60px; }
.testa__logo .lucido { --maschera-logo: url("/assets/img/logo-goth-asylum-160.webp"); }
.testa__logo img { width: 100%; height: auto; }
.testa__destra { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.percorso { font-size: 14px; color: var(--argento-tenue); }
.percorso ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.percorso li + li::before { content: "/"; margin-right: 8px; color: var(--filo-forte); }
.percorso a { color: var(--argento-fioco); text-decoration: none; }
.percorso a:hover { color: var(--oro); }
.percorso [aria-current] { color: var(--argento); }

.uscite-apertura {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: 22px 28px;
  border-bottom: 1px solid var(--filo);
}
.uscite-apertura .dentro { position: relative; z-index: 2; }
.uscite-apertura h1 { font-size: clamp(36px, 9.5vw, 46px); line-height: 1.05; color: var(--oro); margin-bottom: 12px; }
.uscite-apertura__intro { font-size: 17px; line-height: 1.5; color: var(--argento-fioco); }
.titolo__coda {
  display: block;
  margin-top: 10px;
  font-family: var(--testo);
  font-size: .46em;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--argento);
  -webkit-text-fill-color: var(--argento);
  text-shadow: none;
}
.citazione { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--oro-cupo); }
.citazione p { font-size: 17px; line-height: 1.6; color: var(--argento); margin-bottom: 8px; }
.citazione footer { font-size: 13px; line-height: 1.45; color: var(--argento-tenue); }
.citazione cite { font-style: normal; color: var(--oro); }

.uscite { padding-block: 28px 56px; }
.libri { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; }
.libro { display: grid; gap: 16px; align-content: start; }

.libro__copertina {
  border: 1px solid var(--filo-forte);
  background: var(--nero-sollevato);
  box-shadow: 0 30px 70px rgba(0,0,0,.9);
  width: min(100%, 200px);
}
.libro__copertina img { display: block; width: 100%; height: auto; }
.libro__copertina.segnaposto { aspect-ratio: 1248 / 1600; box-shadow: none; }
.libro h2 { font-size: 34px; line-height: 1.05; color: var(--argento); margin-bottom: 8px; }
.libro__riga { font-size: 16px; line-height: 1.5; color: var(--argento-fioco); margin-bottom: 12px; }
.bolli {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bollo {
  --rgb: 168, 165, 160;
  --fondo: 0;
  --alone: 0;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block; white-space: nowrap;
  padding: 3px 11px 4px;
  border: 1px solid rgba(var(--rgb), .40);
  border-radius: 999px;
  background: rgba(var(--rgb), var(--fondo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05),
              0 2px 12px rgba(var(--rgb), var(--alone));
  font-family: var(--testo); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgb(var(--rgb));
  transition: background-color 240ms ease-out, box-shadow 240ms ease-out, transform 240ms cubic-bezier(.16, 1, .3, 1);
}
.bollo--vampirismo  { --rgb: 224, 121, 142; --fondo: .10; --alone: .08; }
.bollo--dark        { --rgb: 201, 160, 196; --fondo: .10; --alone: .08; }
.bollo--esoterismo  { --rgb: 226, 195, 119; --fondo: .10; --alone: .08; }
.bollo--stregoneria { --rgb: 157, 196, 126; --fondo: .10; --alone: .08; }
.bollo--halloween   { --rgb: 232, 160,  92; --fondo: .10; --alone: .08; }
.bollo--gothlife    { --rgb: 175, 168, 201; --fondo: .10; --alone: .08; }
.bollo--gothgirl    { --rgb: 236, 132, 184; --fondo: .10; --alone: .08; }
.bollo--divinazione { --rgb: 132, 186, 196; --fondo: .10; --alone: .08; }
.bollo--occulto     { --rgb: 176, 132, 236; --fondo: .10; --alone: .08; }

@media (hover: hover) and (pointer: fine) {
  .bollo:hover { --fondo: .20; --alone: .18; transform: translateY(-1px); }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-js="si"] .libro .bollo {
    opacity: 0;
    transform: translateY(6px) scale(.96);
    transition: opacity 340ms ease-out,
                transform 340ms cubic-bezier(.16, 1, .3, 1),
                background-color 240ms ease-out,
                box-shadow 240ms ease-out;
    transition-delay: calc(var(--i, 0) * 50ms);
  }
  html[data-js="si"] .libro[data-vista="si"] .bollo { opacity: 1; transform: none; }
  html[data-js="si"] .libro[data-vista="si"] .bollo::after {
    content: "";
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(105deg,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, .16) 50%,
      rgba(255, 255, 255, 0) 62%);
    animation: bollo-lucido 820ms ease-out both;
    animation-delay: calc(240ms + var(--i, 0) * 50ms);
  }
}

@keyframes bollo-lucido {
  from { transform: translateX(-130%); }
  to   { transform: translateX(130%); }
}

.libro__azioni { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.libro__azioni .tasto { min-width: 200px; }
.libro .negozi { margin-top: 28px; }
.libro__nota { width: 100%; margin-top: 6px; }

.libro--attesa .libro__copertina { width: min(100%, 200px); }
.libro--attesa h2 { color: var(--argento-fioco); }
.libro--attesa .bollo { --rgb: 133, 130, 125; --fondo: 0; --alone: 0; }

.degni { padding-block: 0 72px; border-top: 1px solid var(--filo); padding-top: 48px; }
.degni h2 { font-size: 30px; color: var(--argento); margin-bottom: 8px; }
.degni__riga { color: var(--argento-tenue); margin-bottom: 20px; }
.degni__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.degno { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 20px; align-items: start; }
.degno__copertina {
  border: 1px solid var(--filo-forte);
  background: var(--nero-sollevato);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .85);
}
.degno__copertina img { display: block; width: 100%; height: auto; }
.degno h3 { font-size: 21px; line-height: 1.15; color: var(--argento); margin-bottom: 2px; }
.degno__autore { font-size: 14px; letter-spacing: .04em; color: var(--oro); margin-bottom: 10px; }
.degno__riga { font-size: 16px; line-height: 1.5; color: var(--argento-fioco); margin-bottom: 14px; }
.degno .bolli { margin-bottom: 14px; }
@media (max-width: 519px) {
  .degno { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .degno__copertina { width: 116px; }
}

@media (min-width: 900px) {
  .testa { padding-block: 18px; }
  .testa__logo { width: 76px; }
  .uscite-apertura { padding-block: 40px 48px; }
  .uscite-apertura h1 { font-size: 60px; }
  .uscite-apertura__intro { font-size: 18px; }
  .titolo__coda { font-size: .42em; margin-top: 14px; }
  .citazione { margin-top: 26px; padding-left: 22px; }
  .citazione p { font-size: 18px; }
  .uscite { padding-block: 56px 72px; }
  .libro__copertina { width: min(100%, 380px); }
  .uscite .libro { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 64px; align-items: center; }
  .uscite .libro--attesa { align-items: start; }
  .libro--attesa .libro__copertina { width: min(100%, 260px); }
  .libro h2 { font-size: 46px; }
  .libro__riga { font-size: 19px; }
  .degni { padding-top: 64px; }
  .degni h2 { font-size: 34px; }
  .degni__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 56px; }
  .degno { grid-template-columns: 150px minmax(0, 1fr); gap: 26px; }
  .degno h3 { font-size: 24px; }
}

@media print {
  .grana, .nebbia, .polvere, .velo, .rag, .lucido__brillo { display: none !important; }
  body { background: #FFFFFF; color: #1A1A1A; }
  .uscite-apertura h1, .libro h2, .degno h3, .degni h2 { color: #000000; text-shadow: none; }
  .libro__riga, .degno__riga, .uscite-apertura__intro, .degni__riga, .piede p { color: #333333; }
  .citazione p, .citazione footer { color: #333333; }
  .citazione { border-left-color: #767676; }
  .titolo__coda { color: #000000; -webkit-text-fill-color: #000000; }
  .degno__autore { color: #1A1A1A; }
  .bollo { border-color: #767676; background: none; color: #1A1A1A; box-shadow: none; }
  .tasto { border-color: #767676; background: none; color: #1A1A1A; box-shadow: none; }
  .tasto::after { display: none; }
  .libro__copertina, .degno__copertina { box-shadow: none; border-color: #BBBBBB; }
  .libro a[href^="http"]::after, .degno a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}

.libro__copertina a { display: block; }
.libro h2 a { color: inherit; text-decoration: none; }
.libro h2 a:hover { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 600px) { .testa__logo { flex: none; } }
@media (max-width: 599px) { html[lang="en"] .testa__logo { flex: none; width: 52px; } }
@media (max-width: 439px) {
  html[lang="en"] .testa { flex-wrap: wrap; row-gap: 8px; }
  html[lang="en"] .testa__destra { display: contents; }
  html[lang="en"] .testa .lingua { order: 1; margin-left: auto; }
  html[lang="en"] .testa .percorso { order: 2; flex-basis: 100%; }
  html[lang="en"] .testa .percorso ol { justify-content: flex-start; }
  html[lang="en"] .testa .tasto--negozio { order: 3; }
}
