/* ===== NEWS PAGE - MODERN REDESIGN ===== */
/* Layout con hero sticky sulla destra (stile Concerts) */

.news-layout {
  --news-hero-min-h: 520px;
  --news-hero-focus-y: 50%;
  --news-hero-zoom: 1;
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 42%;
  gap: 0;
  background: var(--bg-color, #0a0a0a);
}

/* === Hero sticky sulla destra === */
.hero-news {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-news .hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-news .hero-media-img {
  min-width: 100%;
  min-height: var(--news-hero-min-h);
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: center var(--news-hero-focus-y);
  transform: scale(var(--news-hero-zoom));
  filter: brightness(0.7) contrast(1.1);
}

/* === Header e layout-grid === */
.news-layout .page-header {
  grid-column: 1;
  padding: 4rem 4rem 2rem;
  max-width: 1200px;
}

.news-layout .page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--light-accent, #d4af37);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
}

.news-layout .page-claim {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 300;
}

.news-layout .layout-grid {
  grid-column: 1;
  padding: 0 4rem 4rem;
  max-width: 1200px;
}

/* === Tabs / Filters === */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.news-tab {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
}

.news-tab:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-color, #d4af37);
  color: var(--light-accent, #d4af37);
  transform: translateY(-1px);
}

.news-tab.is-active {
  background: var(--accent-color, #d4af37);
  border-color: var(--accent-color, #d4af37);
  color: #0a0a0a;
  font-weight: 500;
}

.news-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* === News Grid - Modern Cards === */
.news-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(var(--item-index, 0) * 0.08s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card__inner {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.news-card__inner:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 175, 55, 0.1);
  background: rgba(26, 26, 26, 0.8);
}

/* === Image Container === */
.news-card__image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
}

.news-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card__inner:hover .news-card__img {
  transform: scale(1.08);
}

.news-card__image .lqip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  transform: scale(1.1);
}

/* === Content === */
.news-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card__date {
  color: var(--accent-color, #d4af37);
}

.news-card__reading::before {
  content: '•';
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.news-card__title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 500;
}

.news-card__title a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline;
  background: linear-gradient(to right, var(--accent-color, #d4af37) 0%, var(--accent-color, #d4af37) 100%);
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: all 0.3s ease;
}

.news-card__inner:hover .news-card__title a {
  color: var(--light-accent, #d4af37);
  background-size: 100% 2px;
}

.news-card__excerpt {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.news-card__tags .tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  color: var(--light-accent, #d4af37);
  font-weight: 400;
  text-transform: lowercase;
  transition: all 0.3s ease;
}

.news-card__inner:hover .tag {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-color, #d4af37);
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color, #d4af37);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.news-card__link:hover {
  gap: 0.75rem;
  color: var(--light-accent, #e8c158);
}

/* === Pagination === */
.pager {
  margin: 3rem 0 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pager__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.pager__link:hover:not(.is-disabled) {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-color, #d4af37);
  color: var(--light-accent, #d4af37);
  transform: translateY(-2px);
}

.pager__link.is-active {
  background: var(--accent-color, #d4af37);
  border-color: var(--accent-color, #d4af37);
  color: #0a0a0a;
  font-weight: 600;
}

.pager__link.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pager__ellipsis {
  color: rgba(255, 255, 255, 0.3);
  padding: 0 0.5rem;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
}

/* === Responsive === */
@media (max-width: 1200px) {
  .news-layout {
    grid-template-columns: 1fr 40%;
  }

  .news-layout .page-header,
  .news-layout .layout-grid {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (max-width: 900px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .hero-news {
    position: relative;
    height: 60vh;
    min-height: 400px;
  }

  .news-layout .page-header,
  .news-layout .layout-grid {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .news-layout .page-header {
    padding: 2rem 1.5rem 1rem;
  }

  .news-layout .layout-grid {
    padding: 0 1.5rem 2rem;
  }

  .news-layout .page-title {
    font-size: 2rem;
  }

  .news-tabs {
    gap: 0.5rem;
  }

  .news-tab {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .hero-news {
    height: 50vh;
    min-height: 300px;
  }
}
