/* /css/pages/news/news-2026.css */
/**
 * News Frontend Styling - Best Practices 2026
 * Modern, accessible, performant news section
 */

/* ===== CSS CUSTOM PROPERTIES (Design Tokens) ===== */
:root {
  /* Colors - Visual Categories */
  --color-category-diary: #4A90E2;
  --color-category-concert: #D4AF37;
  --color-category-reflection: #8B5CF6;
  --color-category-msc: #E74C3C;
  --color-category-archive: #6B7280;

  /* Spacing System (8px base) */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Georgia', 'Cambria', 'Times New Roman', serif;

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --text-3xl: clamp(2rem, 1.75rem + 1.25vw, 3rem);

  /* Elevations / Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== VISUAL CATEGORY BADGE ===== */
.news-card__category-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 10;

  display: inline-flex;
  align-items: center;

  padding: 0.5rem 1rem;
  background: var(--category-color, #10B981);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);

  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;

  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Badge hover effect */
.news-card:hover .news-card__category-badge {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ===== LATERAL STRIPE (Category Color) ===== */
.news-card {
  position: relative;
  border-left: 4px solid var(--category-color, #10B981);
}

/* ===== NEWS CARD ENHANCEMENTS ===== */
.news-card {
  list-style: none;
  border-radius: var(--radius-lg);
  background: #ffffff;
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card:focus-within {
  outline: 2px solid var(--category-color, #10B981);
  outline-offset: 2px;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card__media img {
  transform: scale(1.05);
}

/* LQIP (Low Quality Image Placeholder) */
.news-card__media .lqip {
  position: absolute;
  inset: 0;
  filter: blur(20px);
  transform: scale(1.1);
  z-index: 1;
}

.news-card__media img:not(.lqip) {
  position: relative;
  z-index: 2;
}

.news-card__content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.news-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;

  /* Limit to 2 lines with ellipsis */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-card__title a {
  color: #111827;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-card__title a:hover {
  color: var(--category-color, #10B981);
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: #6b7280;
  font-family: var(--font-sans);
}

.news-card__meta time {
  font-variant-numeric: tabular-nums;
}

.news-card__excerpt {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #4b5563;

  /* Limit to 3 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

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

.news-card__tags .tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: #f3f4f6;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  color: #6b7280;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.news-card__tags .tag:hover {
  background: var(--category-color, #10B981);
  color: #ffffff;
}

.news-card__cta {
  margin: var(--space-sm) 0 0 0;
}

.news-card__cta .link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;

  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--category-color, #10B981);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.news-card__cta .link-more::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.news-card__cta .link-more:hover {
  gap: 0.625rem;
}

.news-card__cta .link-more:hover::after {
  transform: translateX(4px);
}

/* ===== GRID LAYOUT ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  padding: 0;
  margin: var(--space-xl) 0;
  list-style: none;
}

/* Responsive grid */
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== ACCESSIBILITY ===== */
/* Focus visible for keyboard navigation */
.news-card a:focus-visible {
  outline: 2px solid var(--category-color, #10B981);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .news-card:hover {
    transform: none;
  }

  .news-card:hover .news-card__media img {
    transform: none;
  }
}

/* ===== PLACEHOLDER STATES ===== */
.news-card__media--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__media--placeholder::before {
  content: '📰';
  font-size: 3rem;
  opacity: 0.3;
}

/* ===== LOADING SKELETON ===== */
.news-card.is-loading {
  pointer-events: none;
}

.news-card.is-loading * {
  background: linear-gradient(
    90deg,
    #f3f4f6 0%,
    #e5e7eb 50%,
    #f3f4f6 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  color: transparent !important;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* /css/pages/news/news-base.css */
/* News – list & post (dark theme, harmonized) */

/* Color tokens (fallbacks; real values come from base.css) */
:root {
  --_news-bg:        var(--bg-color, #0b0b0b);
  --_news-panel:     var(--panel-color, #121212);
  --_news-border:    var(--border-color, #212121);
  --_news-text:      var(--text-color, #e7e7e7);
  --_news-muted:     var(--muted-color, #bdbdbd);
  --_news-muted-2:   var(--muted-2-color, #9a9a9a);
  --_news-accent:    var(--accent-color, #d4af37); /* gold */
}

/* Container - allineato alle altre pagine */
.news-page,
.news-post-page {
  max-width: var(--container-max-width, 1400px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  color: var(--_news-text);
}

/* Extra space so the footer doesn't cover the back link */
.news-post-page { padding-bottom: 3rem; }


/* Hero - allineato con hero-bio e hero-concerts */

.news-hero {
  margin-bottom: 2.5rem;
}

/* Titoli gestiti da base.css con .page-title */
.news-hero__title {
  margin: 0 0 1rem 0;
}

.news-hero__claim {
  margin: 0 0 1.5rem;
}

/* Visual hero with image - allineato con stile site-wide */
.news-hero--with-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 20px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.4),
    0 0 0 1px rgba(212, 175, 55, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 350px;
}

.news-hero--with-image:hover {
  box-shadow:
    0 8px 30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(212, 175, 55, 0.2) inset,
    0 0 40px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}
.news-hero__media {
  display: block;
  line-height: 0;
  position: relative;
}
.news-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
.news-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1) contrast(1.05);
  transition: transform 0.6s ease, filter 0.3s ease;
}
.news-hero--with-image:hover .news-hero__media img {
  transform: scale(1.02);
  filter: brightness(0.9) contrast(1.1);
}
.news-hero__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
}

/* Responsive text - ora gestito da clamp() sopra */
@media (min-width: 768px) {
  .news-hero--with-image {
    min-height: 400px;
  }
}

@media (max-width: 767px) {
  .news-hero--with-image {
    min-height: 300px;
  }
}

/* Tabs - completamente allineato con year-pill di concerts.css */
.news-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}

.news-tab {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
}

.news-tab:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.news-tab.is-active {
  background: linear-gradient(135deg, #d4af37 0%, #f0d478 100%);
  border-color: #d4af37;
  color: #0a0a0a;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.news-tab:focus-visible {
  outline: 2px solid var(--_news-accent);
  outline-offset: 3px;
}

.news-count {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Layout: grid main + aside */
.news-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
@media (min-width: 1024px) {
  .news-layout { grid-template-columns: 2fr 1fr; }
}

/* Grid of cards */
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Card */
.news-card {
  list-style: none;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.news-card:nth-child(1) { animation-delay: 0.05s; }
.news-card:nth-child(2) { animation-delay: 0.1s; }
.news-card:nth-child(3) { animation-delay: 0.15s; }
.news-card:nth-child(4) { animation-delay: 0.2s; }
.news-card:nth-child(5) { animation-delay: 0.25s; }
.news-card:nth-child(6) { animation-delay: 0.3s; }

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

.news-card__body {
  background: var(--_news-panel);
  border: 1px solid var(--_news-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card__body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--_news-accent), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.news-card__body:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px color-mix(in srgb, var(--_news-accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--_news-border) 30%, var(--_news-accent) 70%);
}
.news-card__body:hover::before {
  opacity: 1;
}

/* Media (1.91:1) */
.news-card__media {
  display: block;
  aspect-ratio: 1.91 / 1;
  background: #0f0f0f;
  overflow: hidden;
  position: relative;
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}
.news-card__body:hover .news-card__media img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* LQIP (blur-up) placeholders */
.news-card__media,
.post-hero { position: relative; overflow: hidden; }

.news-card__media .lqip,
.post-hero .lqip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(12px);
  transform: scale(1.05);
  opacity: 1;
  transition: opacity .3s ease;
  z-index: 0;
}

/* ensure the real image sits above the LQIP */
.news-card__media img,
.post-hero img { position: relative; z-index: 1; }

.news-card__media .lqip.is-hidden,
.post-hero .lqip.is-hidden { opacity: 0; }

.news-card__media--placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg,#121212,#121212 12px,#161616 12px,#161616 24px);
}

/* Content */
.news-card__content {
  padding: 1.1rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card__title {
  margin: 0 0 .5rem;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 600;
}
.news-card__title a {
  color: var(--_news-text);
  text-decoration: none;
  transition: color 0.25s ease;
  display: block;
}
.news-card__title a:hover {
  color: var(--_news-accent);
}
.news-card__meta {
  color: var(--_news-muted-2);
  font-size: .9rem;
  margin-bottom: .5rem;
  font-weight: 500;
}
.news-card__reading {
  opacity: 0.9;
}
.news-card__excerpt {
  margin: .4rem 0 .8rem;
  color: var(--_news-muted);
  line-height: 1.6;
  flex: 1;
}
.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .8rem;
}
.tag {
  display: inline-block;
  background: color-mix(in srgb, var(--_news-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--_news-accent) 25%, transparent);
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .8rem;
  color: color-mix(in srgb, var(--_news-accent) 85%, white);
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}
.tag:hover {
  background: color-mix(in srgb, var(--_news-accent) 20%, transparent);
  border-color: var(--_news-accent);
  color: var(--_news-accent);
  transform: translateY(-1px);
}
.tag:active {
  transform: translateY(0);
}
.news-card__cta {
  margin: 0;
}
.link-more {
  color: var(--_news-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.link-more::after {
  content: '→';
  transition: transform 0.25s ease;
}
.link-more:hover {
  color: color-mix(in srgb, var(--_news-accent) 80%, white);
}
.link-more:hover::after {
  transform: translateX(3px);
}

/* Aside – newsletter */
.news-aside { position: sticky; top: 1rem; }
.newsletter-card { background: var(--_news-panel); border: 1px solid var(--_news-border); border-radius: 12px; padding: 1rem; color: var(--_news-text); }
.newsletter-card__title { margin: 0 0 .35rem; font-size: 1.1rem; }
.newsletter-card__text { margin: 0 0 .7rem; color: var(--_news-muted); font-size: .95rem; }
.newsletter-card__form { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.newsletter-card__form .input { background: #0e0e0e; color: var(--_news-text); border: 1px solid var(--_news-border); border-radius: 8px; padding: .5rem .6rem; font-size: .95rem; }
.newsletter-card__form .input::placeholder { color: var(--_news-muted-2); }
.newsletter-preferences { display: flex; flex-direction: column; gap: .35rem; margin: .25rem 0; }
.checkbox-label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--_news-text); cursor: pointer; user-select: none; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--_news-accent); }
.checkbox-label:hover span { color: var(--_news-accent); }
.newsletter-card__form .btn { border: 1px solid var(--_news-accent); background: var(--_news-accent); color: #111; border-radius: 8px; padding: .5rem .9rem; cursor: pointer; font-weight: 600; }
.newsletter-card__form .btn:hover { filter: brightness(1.05); }
.newsletter-card__feedback { font-size: .9rem; margin-top: .25rem; min-height: 1.2rem; }

/* Empty state */
.news-empty { color: var(--_news-muted); padding: 1rem 0; }

/* -------- Post page -------- */
.post { max-width: 860px; margin: 0 auto; }
.post-header { margin-bottom: 1rem; }
.post-kicker { color: var(--_news-accent); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin: 0 0 .25rem; }
.post-title { font-size: 2.2rem; line-height: 1.12; margin: 0 0 .35rem; color: var(--_news-text); }
.post-meta { color: var(--_news-muted-2); font-size: .95rem; margin-bottom: .35rem; }
.post-excerpt { color: var(--_news-muted); margin: 0 0 .8rem; }
.post-hero { margin: 0 0 1rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--_news-border); background: #0f0f0f; }
.post-hero img { width: 100%; height: auto; display: block; }
.post-content { color: var(--_news-text); line-height: 1.7; }
.post-content p { margin: .85rem 0; }
.post-content a { color: var(--_news-accent); }
.post-content h2 { color: var(--_news-text); font-size: 1.5rem; margin: 1.2rem 0 .4rem; }
.post-content h3 { color: var(--_news-text); font-size: 1.25rem; margin: 1rem 0 .3rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0; }
.post-share { margin: 1rem 0; color: var(--_news-muted); }
.post-share a { color: var(--_news-accent); text-decoration: none; }
.post-share a:hover { text-decoration: underline; }
.link-back-wrap { margin: 1.2rem 0 4rem; }
.link-back { color: var(--_news-muted); text-decoration: none; }
.link-back:hover { color: var(--_news-accent); text-decoration: underline; }

/* ===== Smart Tag Filtering - More Tags Dropdown ===== */
.news-tabs-more {
  position: relative;
  display: inline-block;
}

.news-tab--more {
  background: #f5f5f5;
  border: 1px solid #ddd;
  cursor: pointer;
  user-select: none;
}

.news-tab--more:hover {
  background: #e8e8e8;
  border-color: var(--_news-accent);
}

.news-tags-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  min-width: 200px;
  z-index: 100;
}

.news-tag-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95rem;
  color: var(--_news-text);
}

.news-tag-option:hover {
  background: #f5f5f5;
  color: var(--_news-accent);
}

.news-tag-option:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

/* ===== Search Bar ===== */
.news-search {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.search-input-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--_news-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  color: var(--_news-accent);
}

.search-active {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-left: 3px solid var(--_news-accent);
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
}

.search-clear {
  margin-left: 0.5rem;
  color: #999;
  text-decoration: none;
  font-weight: bold;
  padding: 0 0.25rem;
}

.search-clear:hover {
  color: var(--_news-accent);
}

/* Minor tweaks on small screens */
@media (max-width: 768px) {
  .news-tags-dropdown {
    right: auto;
    left: 0;
    width: 100%;
    max-width: 300px;
  }

  .search-input {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  /* Titoli responsive gestiti da base.css */
  .post-title { font-size: 1.8rem; }

  .news-tab--more {
    font-size: 0.85rem;
  }

  .search-input {
    padding: 0.75rem 2.5rem 0.75rem 0.875rem;
  }
}
/* /css/pages/news/news-broken.css */
/* ===== 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: contain;
  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: contain;
  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: contain;
  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;
  }
}

/* /css/pages/news/news-modern.css */
/**
 * News Page - Modern Layout 2026
 * Premium Design with Engagement Funnel
 * NOTE: engagement-funnel.css is loaded separately by the controller
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --news-sidebar-width: 320px;
  --news-gap: 3rem;
  --news-card-gap: 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.news-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
  margin-bottom: 3rem;
}

.news-hero--with-image .news-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.news-hero--with-image .news-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: blur(4px) brightness(0.6);
}

.news-hero__text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Titolo unificato - eredita da .page-title in base.css */
.news-hero__title {
  margin: 0 0 1.5rem 0;
  text-shadow: 0 2px 30px rgba(212, 175, 55, 0.3);
  animation: heroFadeIn 0.8s ease-out;
}

.news-hero__claim {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  animation: heroFadeIn 1s ease-out 0.2s backwards;
}

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

/* ============================================
   MAIN GRID LAYOUT
   ============================================ */
.news-content-wrapper {
  display: grid;
  grid-template-columns: var(--news-sidebar-width) 1fr;
  gap: var(--news-gap);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  align-items: start;
}

/* ============================================
   SIDEBAR
   ============================================ */
.news-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Premium scrollbar */
.news-sidebar::-webkit-scrollbar {
  width: 4px;
}

.news-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
}

.news-sidebar::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.news-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

.sidebar-inner > * + * {
  margin-top: 2rem;
}

/* ============================================
   SIDEBAR WIDGETS (use engagement-funnel styles)
   ============================================ */
.sidebar-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.sidebar-widget:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sidebar-widget-title,
.widget-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #d4af37;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.sidebar-widget-title svg,
.widget-title svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ============================================
   SEARCH WIDGET
   ============================================ */
.search-widget {
  margin-bottom: 2rem;
}

.search-form {
  position: relative;
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(212, 175, 55, 0.6);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0.25rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d4af37;
}

/* ============================================
   CATEGORY FILTERS
   ============================================ */
.category-filters-widget {
  /* Uses .sidebar-widget base styles */
}

.category-filters-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.category-filter-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.category-filter-item:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(4px);
}

.category-filter-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
  cursor: pointer;
}

.category-label {
  flex: 1;
  font-size: 0.9375rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-count {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 32px;
  text-align: center;
}

.category-filter-item:hover .category-count {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
}

/* ============================================
   DATE FILTERS
   ============================================ */
.date-filters-widget {
  /* Uses .sidebar-widget base styles */
}

.date-filters-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.date-filter-group label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.date-filter-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.date-filter-select:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(0, 0, 0, 0.4);
}

.date-filter-select option {
  background: #1a1a1a;
  color: #fff;
  padding: 0.5rem;
}

/* ============================================
   ACTIVE FILTERS (CHIPS)
   ============================================ */
.active-filters-section {
  margin-bottom: 1.5rem;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  color: #d4af37;
  font-size: 0.875rem;
  font-weight: 500;
  animation: chipFadeIn 0.3s ease;
}

@keyframes chipFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.filter-chip-remove {
  background: none;
  border: none;
  color: #d4af37;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.filter-chip-remove:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: rotate(90deg);
}

.clear-all-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  color: #d4af37;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-all-filters-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   NEWSLETTER SIDEBAR WIDGET
   ============================================ */
.newsletter-sidebar-widget {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  border: 2px solid #d4af37;
  position: relative;
  overflow: hidden;
}

.newsletter-sidebar-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.newsletter-form-sidebar {
  position: relative;
  z-index: 1;
}

.newsletter-sidebar-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.newsletter-sidebar-input:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(0, 0, 0, 0.4);
}

.newsletter-sidebar-preferences {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 1rem 0;
}

.newsletter-sidebar-checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #fff;
}

.newsletter-sidebar-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #d4af37;
  cursor: pointer;
}

.newsletter-sidebar-submit {
  width: 100%;
  padding: 0.75rem;
  background: #d4af37;
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-sidebar-submit:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.newsletter-feedback {
  margin-top: 0.75rem;
  padding: 0.625rem;
  border-radius: 6px;
  font-size: 0.875rem;
  display: none;
}

.newsletter-feedback--success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-feedback--error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   MOST READ WIDGET (styling from engagement-funnel.css)
   ============================================ */
.sidebar-most-read {
  /* Inherits .sidebar-widget styles */
}

.most-read-rank-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 50%;
  font-size: 1.125rem;
}

.most-read-rank-badge[data-rank="1"] {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.most-read-rank-badge[data-rank="2"] {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  filter: drop-shadow(0 0 6px rgba(192, 192, 192, 0.5));
}

.most-read-rank-badge[data-rank="3"] {
  background: linear-gradient(135deg, #cd7f32, #e8a87c);
  filter: drop-shadow(0 0 6px rgba(205, 127, 50, 0.5));
}

/* ============================================
   CROSS NAVIGATION WIDGET (MODERN)
   ============================================ */
.sidebar-cross-nav {
  /* Inherits .sidebar-widget styles */
}

.cross-nav-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.cross-nav-card-modern {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cross-nav-card-modern:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.cross-nav-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.cross-nav-card-modern:hover .cross-nav-gradient {
  opacity: 1;
}

.cross-nav-content-modern {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.cross-nav-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cross-nav-title-modern {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cross-nav-desc-modern {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.news-main {
  min-width: 0; /* Fix grid overflow */
}

.news-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

#results-count {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ============================================
   NEWS GRID
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--news-card-gap);
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
}

/* ============================================
   NEWS CARD (preserve existing styles)
   ============================================ */
.news-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: #d4af37;
}

.news-card.is-hidden {
  display: none;
}

.news-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.05);
}

.news-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.news-card__tag {
  padding: 0.25rem 0.75rem;
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.news-card__title {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  line-height: 1.4;
  color: #fff;
  font-weight: 600;
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card__title a:hover {
  color: #d4af37;
}

.news-card__excerpt {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  flex: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card__meta time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pager {
  margin: 3rem 0;
}

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

.pager__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.pager__link.is-active {
  background: #d4af37;
  border-color: #d4af37;
  color: #000;
  font-weight: 600;
}

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

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

/* ============================================
   MOBILE FILTER TOGGLE
   ============================================ */
.mobile-filter-toggle {
  display: none; /* Shown only on mobile */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: #d4af37;
  border: none;
  border-radius: 50px;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.6);
}

/* ============================================
   MOBILE FILTER MODAL
   ============================================ */
.mobile-filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-filter-header {
  position: sticky;
  top: 0;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.mobile-filter-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #d4af37;
  margin: 0;
}

.mobile-filter-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-filter-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d4af37;
  transform: rotate(90deg);
}

.mobile-filter-body {
  padding: 2rem 1.5rem 6rem;
}

.mobile-filter-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  z-index: 1;
}

.mobile-filter-apply {
  flex: 1;
  padding: 1rem;
  background: #d4af37;
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-filter-apply:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --news-sidebar-width: 280px;
    --news-gap: 2rem;
  }
}

@media (max-width: 768px) {
  .news-content-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1rem 4rem;
  }

  .news-sidebar {
    display: none;
  }

  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Titoli responsive gestiti da .page-title e .page-claim in base.css */

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

  .pager__link {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .news-hero {
    min-height: 300px;
  }

  .news-hero__text {
    padding: 3rem 1.5rem;
  }

  /* Titoli responsive gestiti da .page-title e .page-claim in base.css */

  .news-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .news-sidebar,
  .mobile-filter-toggle,
  .mobile-filter-modal,
  .pager {
    display: none !important;
  }

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

/* /css/pages/news/news-sidebar-filters.css */
/**
 * News Sidebar Filters - 2026 Best Practices
 * Modern filtering system with categories, dates, and search
 */

/* ===== SIDEBAR LAYOUT ===== */
.news-content-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (max-width: 1024px) {
  .news-content-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== SIDEBAR ===== */
.news-sidebar {
  position: relative; /* Changed from sticky to allow full scroll */
  top: 0;
  align-self: start;
  max-height: none;
  overflow: visible;
}

@media (max-width: 1024px) {
  .news-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    overflow: visible;
  }
}

/* Scrollbar styling for sidebar */
.news-sidebar::-webkit-scrollbar {
  width: 6px;
}

.news-sidebar::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.news-sidebar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.news-sidebar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ===== FILTER SECTIONS ===== */
.filter-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  position: relative;
  z-index: 1;
}

.filter-section__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-section__title svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ===== SEARCH FILTER ===== */
.sidebar-search {
  position: relative;
}

.sidebar-search__input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.2s;
  background: white;
}

.sidebar-search__input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sidebar-search__icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.sidebar-search__clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.sidebar-search__input:not(:placeholder-shown) ~ .sidebar-search__clear {
  opacity: 1;
  pointer-events: all;
}

.sidebar-search__clear:hover {
  background: #dc2626;
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  text-align: left;
  width: 100%;
  position: relative;
}

.category-filter:hover {
  background: #f3f4f6;
  transform: translateX(2px);
}

.category-filter.is-active {
  background: white;
  border-color: var(--filter-color, #3b82f6);
  color: var(--filter-color, #3b82f6);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-filter__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--filter-color, #9ca3af);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.category-filter.is-active .category-filter__indicator {
  transform: scale(1.3);
}

.category-filter__label {
  flex: 1;
}

.category-filter__count {
  font-size: 0.8125rem;
  color: #9ca3af;
  font-weight: 600;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.category-filter.is-active .category-filter__count {
  background: var(--filter-color, #3b82f6);
  color: white;
}

/* Category-specific colors */
.category-filter[data-category="all"] {
  --filter-color: #6b7280;
}
.category-filter[data-category="diary"] {
  --filter-color: #4A90E2;
}
.category-filter[data-category="reflection"] {
  --filter-color: #8B5CF6;
}
.category-filter[data-category="concert"] {
  --filter-color: #D4AF37;
}
.category-filter[data-category="msc"] {
  --filter-color: #E74C3C;
}
.category-filter[data-category="archive"] {
  --filter-color: #6B7280;
}

/* ===== DATE FILTERS ===== */
.date-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.date-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-filter-group__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.date-filter-group__select {
  width: 100%;
  padding: 0.625rem 2rem 0.625rem 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9375rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  position: relative;
  z-index: 10; /* Ensure dropdowns appear above other content */
}

.date-filter-group__select:hover {
  border-color: #d1d5db;
}

.date-filter-group__select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== ACTIVE FILTERS SUMMARY ===== */
.active-filters {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.active-filters__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}

.active-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: white;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1e40af;
}

.active-filter-tag__remove {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-size: 14px;
  transition: color 0.2s;
}

.active-filter-tag__remove:hover {
  color: #ef4444;
}

.clear-all-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: all 0.2s;
}

.clear-all-filters:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* ===== MOBILE TOGGLE ===== */
.sidebar-toggle {
  display: none;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
}

.sidebar-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.sidebar-toggle svg {
  transition: transform 0.3s;
}

.sidebar-toggle.is-open svg {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .news-sidebar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .news-sidebar.is-open {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
  }
}

/* ===== RESULTS COUNT ===== */
.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.results-count {
  font-size: 0.9375rem;
  color: #6b7280;
}

.results-count strong {
  color: #111827;
  font-weight: 700;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 8px;
}

.view-toggle__btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}

.view-toggle__btn:hover {
  background: white;
  color: #374151;
}

.view-toggle__btn.is-active {
  background: white;
  color: #3b82f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* /css/pages/news/news-ux-enhancements.css */
/* ===== NEWS UX ENHANCEMENTS 2025 ===== */
/* Better visual design and UX improvements */

/* Sticky tabs on desktop - always visible while scrolling */
@media (min-width: 769px) {
  .news-tabs {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 0 1rem 0;
    margin: 0 0 3rem 0 !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .news-tabs.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(212, 175, 55, 0.2);
  }
}

/* Mobile select dropdown - NASCOSTO su desktop */
.news-mobile-select {
  display: none;
}

/* Mobile - SELECT DROPDOWN invece di tabs */
@media (max-width: 768px) {
  .news-tabs {
    display: none !important; /* Nascondi i tab su mobile */
  }

  /* Mostra il select dropdown su mobile */
  .news-mobile-select {
    display: block;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    padding: 0.875rem 1rem;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #f4eed4;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
  }

  .news-mobile-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  }

  .news-mobile-select option {
    background: #1a1a1a;
    color: #f4eed4;
    padding: 0.75rem;
  }
}

/* ===== ENHANCED TAB STYLING ===== */
.news-tab {
  position: relative;
  overflow: hidden;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  padding: 1rem 1.75rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.news-tab:hover {
  background: rgba(212, 175, 55, 0.1) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.news-tab.is-active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.15)) !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
  color: #f4eed4 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.news-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.news-tab:hover::before {
  left: 100%;
}

/* Count badge enhancement */
.news-count {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.15)) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  color: #d4af37 !important;
  font-weight: 700;
}

/* ===== ENHANCED NEWS CARDS ===== */
.news-card {
  transition: all 0.3s ease !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(212, 175, 55, 0.02)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Ensure filtered cards are hidden */
.news-card[style*="display: none"] {
  display: none !important;
}

.news-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.15),
              0 0 0 1px rgba(212, 175, 55, 0.2) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

.news-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.news-card__media img {
  transition: transform 0.5s ease !important;
}

.news-card:hover .news-card__media img {
  transform: scale(1.05);
}

.news-card__title {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 0.75rem !important;
}

.news-card__title a {
  color: #f4eed4 !important;
  transition: color 0.3s ease !important;
}

.news-card:hover .news-card__title a {
  color: #d4af37 !important;
}

.news-card__excerpt {
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
}

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

.news-card__tags .tag {
  background: rgba(212, 175, 55, 0.1) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  color: #d4af37 !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.news-card__tags .tag:hover {
  background: rgba(212, 175, 55, 0.2) !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
  transform: translateY(-2px);
}

.news-card__cta .link-more {
  color: #d4af37 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.news-card__cta .link-more:hover {
  color: #f0d478 !important;
  transform: translateX(4px);
}

.news-card__cta .link-more::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.news-card__cta .link-more:hover::after {
  transform: translateX(4px);
}

/* Enhanced grid animations */
@media (prefers-reduced-motion: no-preference) {
  .news-card {
    will-change: transform, opacity;
    animation: fadeSlideUp 0.5s ease-out forwards;
  }

  .news-card:nth-child(1) { animation-delay: 0.05s; }
  .news-card:nth-child(2) { animation-delay: 0.1s; }
  .news-card:nth-child(3) { animation-delay: 0.15s; }
  .news-card:nth-child(4) { animation-delay: 0.2s; }
  .news-card:nth-child(5) { animation-delay: 0.25s; }
  .news-card:nth-child(6) { animation-delay: 0.3s; }
}

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

/* Better empty state */
.news-empty {
  padding: 4rem 2rem !important;
  text-align: center;
  font-size: 1.1rem !important;
  font-style: italic;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(212, 175, 55, 0.03));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  margin: 2rem 0;
}

/* ===== ENHANCED HERO ===== */
.news-hero {
  margin-bottom: 3rem !important;
  position: relative;
  overflow: hidden;
}

.news-hero__media {
  transition: transform 0.5s ease;
}

.news-hero:hover .news-hero__media {
  transform: scale(1.02);
}

/* Titoli gestiti da base.css */

.news-hero__claim {
  /* Stili aggiuntivi se necessari */
  font-weight: 500 !important;
}

/* ===== ENHANCED NEWSLETTER CARD ===== */
.newsletter-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(212, 175, 55, 0.05)) !important;
  border: 2px solid rgba(212, 175, 55, 0.25) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border-radius: 16px !important;
  padding: 2rem !important;
}

.newsletter-card:hover {
  border-color: rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

.newsletter-card__title {
  color: #d4af37 !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

.newsletter-card__text {
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.6 !important;
  margin-bottom: 1.5rem !important;
}

.newsletter-card__form .input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  color: #f4eed4 !important;
  padding: 0.875rem 1.25rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  font-size: 1rem !important;
}

.newsletter-card__form .input:focus {
  border-color: rgba(212, 175, 55, 0.5) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.newsletter-card__form .btn {
  background: linear-gradient(135deg, #d4af37, #cba135) !important;
  border: 2px solid #d4af37 !important;
  color: #0a0a0a !important;
  font-weight: 700 !important;
  padding: 0.875rem 2rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  font-size: 1.05rem !important;
  cursor: pointer;
}

.newsletter-card__form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #f0d478, #d4af37) !important;
}

.newsletter-preferences {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85) !important;
  cursor: pointer;
  transition: color 0.3s ease;
}

.checkbox-label:hover {
  color: #d4af37 !important;
}

/* Pager enhancements */
.pager {
  margin-top: 3rem !important;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.pager__link {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.625rem 1rem !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.pager__link:hover:not(.is-disabled) {
  background: rgba(212, 175, 55, 0.15) !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
  color: #d4af37 !important;
  transform: translateY(-2px);
}

.pager__link.is-active {
  background: linear-gradient(135deg, #d4af37, #f0d478) !important;
  border-color: #d4af37 !important;
  color: #0a0a0a !important;
  font-weight: 700 !important;
}

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

/* Accessibility */
.news-tab:focus-visible,
.news-mobile-select:focus-visible,
.pager__link:focus-visible {
  outline: 3px solid #d4af37 !important;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .news-tabs,
  .news-tab,
  .news-mobile-select,
  .news-card,
  .newsletter-card,
  .pager__link {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .news-tab::before {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .news-tabs {
    border-bottom-width: 3px !important;
  }

  .news-tab.is-active {
    border-width: 2px !important;
  }

  .news-mobile-select {
    border-width: 3px !important;
  }
}

