/* Filtri sottocategoria */
.arr-filtri {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.arr-filtro {
  background: var(--viola-chiaro);
  color: var(--viola-scuro);
  border: 2px solid transparent;
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.arr-filtro:hover,
.arr-filtro.attivo {
  background: var(--viola);
  color: white;
  border-color: var(--viola);
}

/* Sezione sottocategoria */
.arr-sezione {
  margin-bottom: 3.5rem;
}

.arr-sezione-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.arr-sezione-icona {
  font-size: 1.5rem;
  line-height: 1;
}

.arr-sezione-titolo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--viola-scuro);
}

.arr-sezione-line {
  flex: 1;
  height: 1px;
  background: #E8E0F0;
  border-radius: 1px;
}

/* Grid foto sezione */
.arr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.arr-foto-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(107, 63, 160, 0.09);
  aspect-ratio: 4 / 3;
  background: var(--viola-chiaro);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.arr-foto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(107, 63, 160, 0.18);
}

.arr-foto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arr-vuoto {
  background: var(--viola-chiaro);
  border-radius: 14px;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--testo-muted);
  font-size: 0.88rem;
  grid-column: 1 / -1;
  opacity: 0.7;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.aperto {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 28, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox-box {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-chiudi {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--viola-scuro);
  border: none;
  color: white;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-chiudi:hover {
  background: var(--viola);
}

.lightbox-info {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 600px) {
  .arr-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.7rem;
  }
}
