/* ==========================================================================
   1. VARIABILI E RESET
   ========================================================================== */
:root {
  --jb-gold: #d4af37;
  --jb-gold-dark: #b8860b;
  --jb-black: #000000;
  --jb-white: #ffffff;
  --jb-green: #28a745;
  --jb-dark: #1a1a1a;
  --jb-muted: #6c757d;
  --jb-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  --jb-transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   2. ELEMENTI DECORATIVI
   ========================================================================== */
.text-overline {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--jb-green);
  margin-bottom: 0.5rem;
}

.line-decor {
  width: 50px;
  height: 3px;
  background: var(--jb-gold);
  border-radius: 50px;
  margin: 0.8rem auto 1.5rem;
}

/* ==========================================================================
   3. HERO & BREADCRUMB (GLASSMORPHISM)
   ========================================================================== */
.hero-breadcrumb {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
  text-align: center;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  backdrop-filter: grayscale(15%);
  z-index: 1;
}

.glass-breadcrumb {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 8px 20px;
  z-index: 2;
}

.glass-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none;
  font-weight: 500;
}

.glass-breadcrumb .breadcrumb-item a:hover {
  color: var(--jb-gold) !important;
}

/* ==========================================================================
   4. JB-CARD (EVOLVED DESIGN)
   ========================================================================== */
.jb-card {
  background: #ffffff;
  border: 1px solid #edf0f2;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--jb-transition);
  box-shadow: var(--jb-shadow);
}

.jb-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
  border-color: var(--jb-gold);
}

.jb-card-img-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.jb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.jb-card:hover .jb-card-img {
  transform: scale(1.08);
}

/* Badge dinamico */
.jb-badge {
  position: absolute;
  top: 15px;
  right: 15px; /* Spostato a destra per bilanciare il testo */
  background: var(--jb-gold);
  color: #fff;
  padding: 4px 14px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 2;
}

.jb-card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.jb-date {
  color: var(--jb-green);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.jb-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--jb-dark);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.jb-card:hover .jb-title {
  color: var(--jb-gold-dark);
}

.jb-text {
  font-size: 0.9rem;
  color: var(--jb-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jb-card-footer {
  padding: 0 1.5rem 1.5rem;
}

.jb-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: var(--jb-black);
  border: 1.5px solid var(--jb-gold);
  border-radius: 12px;
  color: var(--jb-white);
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--jb-transition);
}

.jb-btn:hover {
  background: var(--jb-gold);
  color: #fff;
}

/* ==========================================================================
   5. REPERTORIO & LINKS
   ========================================================================== */
.repertorio-box {
  border-top: 4px solid var(--jb-gold);
  background: #fff;
  border-radius: 0 0 15px 15px;
}

.author-link-custom {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px !important;
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 50px !important;
  color: var(--jb-dark) !important;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: var(--jb-transition);
}

.author-link-custom::before {
  content: '♪';
  margin-right: 6px;
  color: var(--jb-gold);
}

.author-link-custom:hover {
  background: var(--jb-gold) !important;
  color: #fff !important;
  border-color: var(--jb-gold) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   6. SEZIONE BIO & AUTORI
   ========================================================================== */
.author-card-box {
  opacity: 0.6;
  transition: var(--jb-transition);
}

.author-card-link:hover .author-card-box {
  opacity: 1;
  transform: scale(1.02);
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .hero-breadcrumb { min-height: 320px; }
  .jb-card-body { padding: 1.2rem; }
  .jb-title { font-size: 1.15rem; }
}