/* =========================================================
   DISCOGRAFIA.CSS — pulito (card cliccabile intera)
   Struttura card:
   <a class="disc-card" href="...">
     <img ...>
     <div class="txt">
       <h3 class="disc-title">...</h3>
       <p class="disc-meta">...</p>
       <span class="disc-cta">...</span>
     </div>
   </a>
========================================================= */


/* =======================================
   HERO LINK (page-specific)
   (mantiene la geometria attuale)
======================================= */
.hero-link{
  position: absolute;
  width: 40%;
  height: 50%;
  top: 0;
  left: 30%;
  cursor: pointer;
  z-index: 5;
}


/* =======================================
   LAYOUT PAGINA

.discografia-page .page-content{
  max-width: 1320px;
  padding: 28px 18px;
  margin: 0 auto;
}

.discografia-page .page-content h1{
  margin: 0 0 18px;
}

======================================= */
/* =======================================
   GRID
   Desktop: 3 colonne
   Tablet: 2 colonne
   Mobile: 1 colonna
======================================= */
#disco-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

@media (max-width: 980px){
  #disco-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px){
  #disco-grid{
    grid-template-columns: 1fr;
  }
}


/* =======================================
   CARD (è un <a>)
======================================= */
.disc-card{
  display: block;
  text-decoration: none;
  color: inherit;

  background: #ff0000;
  border: 1px solid var(--acc);
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;

  /* per focus ring */
  outline: none;
}

.disc-card:hover{
  transform: translateY(-4px);
  border-color: rgba(207,29,29,.45);
  box-shadow: 0 12px 28px rgba(0,0,0,.55);
}

.disc-card:focus-visible{
  outline: 2px solid rgba(207,29,29,.85);
  outline-offset: 3px;
}


/* =======================================
   COVER
======================================= */
.disc-card > img{
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}


/* =======================================
   TESTI
======================================= */
.disc-card .txt{
  padding: 14px 14px 16px;
}

/* Titolo — font normale (NO gotico) */
.disc-title{
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;

  /* se titolo lungo */
  line-height: 1.25;
}

/* Meta */
.disc-meta{
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

/* CTA: chiarisce che è cliccabile */
.disc-cta{
  display: inline-block;
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 650;
  color: var(--acc);
  opacity: .82;
  transition: opacity .18s ease, transform .18s ease;
}

.disc-card:hover .disc-cta{
  opacity: 1;
  transform: translateX(4px);
}


/* =======================================
   MOBILE: card non troppo larga
======================================= */
@media (max-width: 480px){
  .disc-card{
    max-width: 520px;
    margin: 0 auto;
  }
}
.disc-cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 10px;
  padding: 6px 10px;

  font-size: .75rem;
  font-weight: 600;

  border-radius: 999px;
  border: 1px solid rgba(207,29,29,.35);
  background: rgba(207,29,29,.08);

  color: var(--acc);
  opacity: .9;

  transition: background .2s ease, transform .2s ease;
}

.disc-card:hover .disc-cta{
  background: rgba(207,29,29,.18);
  transform: translateY(-2px);
}
/* =======================================
   CARD (palette blu/teal come Scaletta)
======================================= */
.disc-card{
  display: block;
  text-decoration: none;
  color: inherit;

  background: linear-gradient(
    180deg,
    rgba(18,28,36,.55),
    rgba(8,12,16,.75)
  );

  border: 1px solid rgba(120,220,255,.12);
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  transition: transform .18s ease,
              border-color .18s ease,
              box-shadow .18s ease,
              background .18s ease;
}

.disc-card:hover{
  transform: translateY(-4px);
  border-color: rgba(120,220,255,.35);
  box-shadow:
    0 12px 40px rgba(0,0,0,.65),
    0 0 20px rgba(80,220,220,.12);
}

/* =======================================
   CTA badge coerente blu/teal
======================================= */
.disc-cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 10px;
  padding: 6px 10px;

  font-size: .75rem;
  font-weight: 700;

  border-radius: 999px;
  border: 1px solid rgba(120,220,255,.22);
  background: rgba(80,220,220,.10);

  color: rgba(190,230,255,.95);

  transition: background .2s ease,
              border-color .2s ease,
              transform .2s ease;
}

.disc-card:hover .disc-cta{
  background: rgba(80,220,220,.18);
  border-color: rgba(120,220,255,.45);
  transform: translateY(-2px);
}
.disc-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.disc-title{
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-meta{
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: .9rem;
  color: var(--muted);
  opacity: .85;
}