/* =====================================================
   RC Class List — style.css (frontend)
   ===================================================== */

.rc-cl {
  font-family: 'Jost', sans-serif;
  width: 100%;
}

/* ── Tab navigation ──────────────────────────────────── */
.rc-cl__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ddd2c6;
  margin-bottom: 3rem;
}

.rc-cl__tab {
  position: relative;
  padding: 1rem 1.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f6b74;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.rc-cl__tab:hover {
  color: #21374c;
}

.rc-cl__tab--active {
  color: #21374c;
  border-bottom-color: #c58f95;
}

/* ── Panel ───────────────────────────────────────────── */
.rc-cl__panel[hidden] { display: none; }

/* ── Placeholder sezioni inattive ───────────────────── */
rc-cl__placeholder {
  padding: 2rem 0;
  text-align: center;
}

.rc-cl__placeholder p {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c58f95;
  font-style: normal;
}

/* ── Lista classi ────────────────────────────────────── */
.rc-cl__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Singola classe ──────────────────────────────────── */
.rc-cl__item {
  display: grid;
  grid-template-columns: 30% 70%;
  border-bottom: 1px solid #ddd2c6;
  transition: background-color .2s ease;
}

.rc-cl__item:first-child {
  border-top: 1px solid #ddd2c6;
}

.rc-cl__item:hover {
  background-color: #f6f1ea;
}

/* ── Immagine ────────────────────────────────────────── */
.rc-cl__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

.rc-cl__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.rc-cl__item:hover .rc-cl__img img {
  transform: scale(1.03);
}

.rc-cl__img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f1ebe4;
}

/* ── Contenuto ───────────────────────────────────────── */
.rc-cl__content {
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Overline con pallini ────────────────────────────── */
.rc-cl__overline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.rc-cl__dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.rc-cl__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.rc-cl__dot--on  { background-color: #c58f95; }
.rc-cl__dot--off { background-color: rgba(197, 143, 149, 0.25); }

.rc-cl__level {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5f6b74;
}

/* ── Titolo ──────────────────────────────────────────── */
.rc-cl__title {
  margin: 0 0 0.85rem;
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #21374c;
}

/* ── Descrizione ─────────────────────────────────────── */
.rc-cl__desc {
  margin: 0 0 1.25rem;
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.8;
  color: #5f6b74;
  max-width: 68ch;
}

/* ── Meta info ───────────────────────────────────────── */
.rc-cl__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd2c6;
}

.rc-cl__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: #5f6b74;
}

.rc-cl__meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.65;
}

/* ── Intensità — barre verticali ────────────────────── */
.rc-cl__intensity {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.rc-cl__intensity-bar {
  display: block;
  width: 3px;
  border-radius: 1px;
}

/* Altezze progressive */
.rc-cl__intensity-bar:nth-child(1) { height: 4px;  }
.rc-cl__intensity-bar:nth-child(2) { height: 6px;  }
.rc-cl__intensity-bar:nth-child(3) { height: 9px;  }
.rc-cl__intensity-bar:nth-child(4) { height: 11px; }
.rc-cl__intensity-bar:nth-child(5) { height: 14px; }

.rc-cl__intensity-bar--on  { background-color: #c58f95; }
.rc-cl__intensity-bar--off { background-color: rgba(197, 143, 149, 0.22); }

.rc-cl__intensity-label {
  font-size: 0.82rem;
  color: #5f6b74;
  margin-left: 2px;
}

/* ── Link ────────────────────────────────────────────── */
.rc-cl__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #21374c;
  margin-top: auto;
  transition: gap .2s ease, color .2s ease;
}

.rc-cl__link:hover {
  color: #c58f95;
  gap: 0.75rem;
}

.rc-cl__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.rc-cl__link:hover svg { transform: translateX(3px); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .rc-cl__item {
    grid-template-columns: 1fr;
  }

  .rc-cl__img {
    aspect-ratio: 16 / 9;
  }

  .rc-cl__content {
    padding: 1.75rem 0;
  }

  .rc-cl__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rc-cl__tab {
    white-space: nowrap;
    padding: 0.85rem 1.1rem;
  }
}