/* HEADER */

.progetti-header {
  padding-top: 100px;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.progetti-header-top {
  margin-bottom: 20px;
}

.progetti-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 0.94;
  font-weight: 400;
}

.progetti-title-dim {
  color: rgba(255, 255, 255, 0.2);
}

/* FILTRI */

.progetti-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
}

.progetti-filter {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.progetti-filter:hover {
  border-color: rgba(200, 169, 126, 0.36);
  color: #ffffff;
  transform: translateY(-1px);
}

.progetti-filter.is-active {
  background: rgba(200, 169, 126, 0.14);
  border-color: rgba(200, 169, 126, 0.55);
  color: #ffffff;
}

/* DESCRIZIONE FILTRO */

.progetti-filter-desc-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.35s ease;
  margin-bottom: 0;
}

.progetti-filter-desc-wrap.is-visible {
  max-height: 100px;
  opacity: 1;
  margin-bottom: 20px;
}

.progetti-filter-desc {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
  line-height: 1.7;
  padding: 12px 16px;
  border-left: 2px solid rgba(200, 169, 126, 0.5);
}

/* META */

.progetti-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.progetti-counter {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progetti-counter span {
  color: #c8a97e;
}

.progetti-meta-hud {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* GRID */

.progetti-grid-section {
  padding: 32px 0 80px;
}

/* THUMBNAIL */

.visor-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.visor-card:hover .visor-thumb {
  transform: scale(1.07);
}

/* PLAY BUTTON */

.visor-play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.visor-card:hover .visor-play-btn {
  opacity: 1;
}

.visor-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(10, 8, 6, 0.72);
  border: 1px solid rgba(200, 169, 126, 0.42);
  color: #f5f5f5;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  padding-left: 3px;
}

/* FILTRO ANIMAZIONE */

.progetti-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.progetti-card.is-hidden {
  display: none;
}

/* STATO VUOTO */

.progetti-empty {
  text-align: center;
  padding: 60px 0;
  color: #c9c9c9;
}

.progetti-empty p {
  margin: 0 0 20px;
  font-size: 1.05rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .progetti-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .progetti-header {
    padding-top: 80px;
  }

  .progetti-filter {
    font-size: 0.78rem;
    height: 32px;
    padding: 0 12px;
  }

  .progetti-filters {
    gap: 6px;
  }
}