/* ============================================
   CATEGORIA PAGE — categoria.css
   ============================================ */

.cat-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--viola-scuro);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cat-back {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.cat-back:hover {
  opacity: 1;
  color: var(--giallo);
}

.cat-nav-brand {
  font-family: 'Playfair Display', serif;
  color: var(--giallo);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================
   HERO CATEGORIA
   ============================================ */

.cat-hero {
  background: var(--viola-scuro);
  color: white;
  padding: 6rem 3rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cat-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(245, 197, 24, 0.1);
}

.cat-hero-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.8rem;
}

.cat-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.6rem;
}

.cat-hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   GALLERIA
   ============================================ */

.cat-galleria {
  padding: 3rem 2rem;
  background: var(--bianco);
}

.cat-galleria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

.cat-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 2rem;
  color: var(--testo-muted);
  text-align: center;
}

.cat-placeholder span {
  font-size: 4rem;
  opacity: 0.4;
}

.cat-placeholder p {
  font-size: 1.05rem;
  max-width: 340px;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.cat-page-footer {
  background: var(--testo);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  font-family: 'DM Sans', sans-serif;
}

.cat-page-footer span {
  color: var(--giallo);
}

.cat-page-footer .footer-dati {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.cat-page-footer .footer-links {
  margin-top: 0.4rem;
  margin-bottom: 0;
  font-size: 0.78rem;
}

.cat-page-footer .footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.cat-page-footer .footer-links a:hover {
  color: var(--giallo);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .cat-hero {
    padding: 5rem 1.5rem 2.5rem;
  }

  .cat-hero-title {
    font-size: 1.8rem;
  }

  .cat-hero-icon {
    font-size: 2.8rem;
  }

  .cat-galleria {
    padding: 2rem 1rem;
  }

  .cat-galleria-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
  }

  .cat-navbar {
    padding: 0.9rem 1.2rem;
  }
}
