:root {
  --bg1: #050816;
  --bg2: #0b1f3b;
  --accent: #DA291C;
  --accent2: #0056A3;
  --text: #f5f5f5;
  --muted: #9fa8c3;
}

/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

html {
  width: 100%;
}

/* Body */
body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at 0% 0%, #1b2a4a 0, #050816 45%, #000 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  transition: background 0.4s ease, color 0.4s ease;
  padding: 1.5rem 0;
}

/* Light mode */
body.light-mode {
  background: linear-gradient(180deg, #e8e6e6, #e8eef7);
  color: #1a1a1a;
}

/* Particelle */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  touch-action: none;
  z-index: -2;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0.4;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-120vh); opacity: 0; }
}

/* Wrapper principale */
.wrapper {
  width: min(1100px, 92%);
  padding: 2.5rem;
  border-radius: 24px;
  background: rgba(10, 15, 40, 0.75);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.45),
    0 0 120px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: background 0.4s ease, border 0.4s ease, box-shadow 0.4s ease;
}

body.light-mode .wrapper {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.08),
    0 0 120px rgba(0, 0, 0, 0.05);
}

/* Glow */
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

.glow-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--accent) 0, transparent 70%);
  top: -80px;
  right: -40px;
  animation: floatGlow1 12s ease-in-out infinite alternate;
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent2) 0, transparent 70%);
  bottom: -120px;
  left: -60px;
  animation: floatGlow2 16s ease-in-out infinite alternate;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0); opacity: 0.6; }
  100% { transform: translate(-40px, 40px); opacity: 0.9; }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0); opacity: 0.5; }
  100% { transform: translate(40px, -40px); opacity: 0.85; }
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Logo dual mode */
.header a {
  display: inline-block;
  line-height: 0;
}

.logo-dark,
.logo-light {
  height: 80px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
  transition: opacity 0.4s ease;
}

.logo-light {
  display: none;
}

body.light-mode .logo-dark {
  display: none;
}

body.light-mode .logo-light {
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.25));
}

.header-title {
  display: flex;
  flex-direction: column;
}

.header-title span:first-child {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-title span:last-child {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Pulsante toggle tema */
.theme-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.55);
}

/* Titolo pagina */
.page-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  color: transparent;
}

/* LISTA ARTICOLI — VERSIONE VERTICALE */
.lista-articoli {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

/* CARD ARTICOLO — IMMAGINE A SINISTRA */
.articolo-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.4rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-items: start;
}

.articolo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.articolo-card {
  position: relative;
}

/* Miniatura laterale */
.card-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  z-index: 1;
}

/* Mobile: immagine sopra */
@media (max-width: 600px) {
  .articolo-card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .card-img {
    width: 100%;
    height: 180px;
  }

  .card-content h2 {
    font-size: 1.05rem;
  }
}


/* Testo card */
.card-content {
  display: flex;
  flex-direction: column;
}

.card-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.card-meta {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 0.6rem;
}

.card-preview {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Pulsante card */
.card-btn {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  align-self: flex-start;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.card-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Barra di ricerca */
.search-bar {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: border 0.2s ease, background 0.2s ease;
}

.search-bar:focus {
  outline: none;
  border: 1px solid var(--accent);
  background: rgba(255,255,255,0.12);
}

body.light-mode .search-bar {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.12);
  color: #1a1a1a;
}

/* Layout singolo articolo */
.articolo-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Contenuto articolo */
.articolo-contenuto {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.articolo-layout > * {
  min-width: 0;
}

.articolo-contenuto h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.articolo-meta {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 1.2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.articolo-corpo {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.articolo-corpo img,
.articolo-corpo table,
.articolo-corpo iframe,
.articolo-corpo video {
  max-width: 100% !important;
  height: auto !important;
}

.articolo-corpo pre,
.articolo-corpo code {
  white-space: pre-wrap;
  word-break: break-all;
  max-width: 100%;
  overflow-x: auto;
}

.articolo-corpo p {
  margin-bottom: 1rem;
}

.articolo-corpo h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.articolo-corpo ul,
.articolo-corpo ol {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

/* Sidebar */
.sidebar {
  border-radius: 18px;
  padding: 1.4rem;
  background: rgba(5, 8, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: background 0.4s ease, border 0.4s ease;
  max-width: 100%;
  overflow-wrap: break-word;
}

body.light-mode .sidebar {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

.sidebar p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.sidebar-nav {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-nav .card-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  max-width: 100%;
  text-align: center;
  word-break: break-word;
}

.sidebar-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.sidebar-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
}

body.light-mode .sidebar-btn {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.12);
  color: #1a1a1a;
}

body.light-mode .sidebar-btn:hover {
  background: rgba(0,0,0,0.08);
  border-color: var(--accent);
}

@media print {
  .theme-toggle, .sidebar, .footer, .glow, .particles {
    display: none !important;
  }
  .wrapper {
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    backdrop-filter: none !important;
  }
  body {
    background: none !important;
    color: #000 !important;
  }
}

/* Indice dei contenuti (sidebar) */
.toc {
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

body.light-mode .toc {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
}

.toc-title {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin: 0.2rem 0;
  line-height: 1.3;
}

.toc-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

body.light-mode .toc-list a {
  color: #1a1a1a;
}

.toc-sub {
  padding-left: 0.8rem;
}

.toc-h4 { padding-left: 1.6rem; }
.toc-h5 { padding-left: 2.4rem; }
.toc-h6 { padding-left: 3.2rem; }

/* Responsività generale */
/* ================================
   RESPONSIVE — TABLET & MOBILE
   ================================ */

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

  .articolo-contenuto h1 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .wrapper {
    padding: 1.2rem;
    width: 96%;
    border-radius: 16px;
    backdrop-filter: none;
  }

  .sidebar {
    backdrop-filter: none;
  }

  .header {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
  }

  .logo-dark, .logo-light {
    height: 50px;
  }

  .header-title span:last-child {
    font-size: 1rem;
  }

  .theme-toggle {
    top: 8px;
    left: auto;
    right: 8px;
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }

  .page-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .sort-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .sort-bar select {
    width: 100%;
  }

  .search-bar {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .lista-articoli {
    gap: 1.2rem;
  }

  .footer {
    margin-top: 2rem;
    padding: 1.2rem 0;
    font-size: 0.8rem;
  }

  .social-links {
    gap: 0.8rem;
  }

  .social-links img {
    width: 24px;
    height: 24px;
  }

  .piu-letti {
    padding: 1rem;
    margin: 2rem 0 1rem;
  }

  .piu-letti-item {
    grid-template-columns: 50px 1fr 16px;
    gap: 0.6rem;
    padding: 0.6rem;
  }

  .piu-letti-thumb {
    width: 50px;
    height: 50px;
  }

  .piu-letti-title {
    font-size: 0.85rem;
  }

  .load-more {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .card-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }
}

@media (max-width: 600px) {
  .glow-1,
  .glow-2 {
    display: none;
  }
  .theme-toggle {
    top: 6px;
    left: auto;
    right: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 0.8rem;
    border-radius: 12px;
  }

  .header-title span:first-child {
    font-size: 0.65rem;
  }

  .header-title span:last-child {
    font-size: 0.85rem;
  }

  .logo-dark, .logo-light {
    height: 40px;
  }

  .card-img {
    height: 150px;
  }

  .badge-piu-letto {
    font-size: 0.65rem;
    padding: 2px 6px;
    top: 6px;
    left: 6px;
  }

  .sidebar-actions {
    gap: 0.3rem;
  }

  .sidebar-btn {
    width: 34px;
    height: 34px;
  }

  .sidebar-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Barra ordinamento */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sort-bar label {
  font-size: 0.9rem;
  color: var(--muted);
}

.sort-bar select {
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

body.light-mode .sort-bar select {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.12);
  color: #1a1a1a;
}

.sort-bar select option {
  background: #0b1f3b;   /* sfondo scuro coerente col tema */
  color: #fff;           /* testo bianco */
}

body.light-mode .sort-bar select option {
  background: #ffffff;   /* sfondo chiaro */
  color: #000;           /* testo nero */
}

.footer {
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
  opacity: 0.9;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-links img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover img {
  transform: scale(1.15);
  opacity: 1;
}

.load-more {
  display: block;
  margin: 2rem auto;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  background: #1e88e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.load-more:hover {
  background: #1565c0;
}

.consigliati {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

.consigliati h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.consigliati a {
  display: block;
  margin: 0.4rem 0;
  color: #1e88e5;
  text-decoration: none;
  font-weight: 500;
}

.consigliati a:hover {
  text-decoration: underline;
}

.consigliati {
  margin: 3rem 0 2rem 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}

.consigliati h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  opacity: 0.9;
}

.consigliati a {
  display: block;
  margin: 0.5rem 0;
  color: #4da3ff;
  text-decoration: none;
  font-size: 1.05rem;
}

.consigliati a:hover {
  text-decoration: underline;
}

.badge-piu-letto {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5722;
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  z-index: 5;
}

.piu-letti {
  margin: 3rem 0 2rem 0;
  padding: 1.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.piu-letti h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.95;
}

.piu-letti-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Contenitore mini-card */
.piu-letti-item {
  display: grid;
  grid-template-columns: 70px 1fr 20px;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  transition: 
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover mini-card */
.piu-letti-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
  border-color: #DA291C; /* linea rossa */
  box-shadow: 0 0 12px rgba(218,41,28,0.35);
}

.piu-letti-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
}

.piu-letti-title {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

/* Freccia elegante con animazione elastic */
.piu-letti-arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: #DA291C; /* rosso brand */
  opacity: 0.9;
  transition: 
    color 0.25s ease,
    text-shadow 0.25s ease;
}

/* Animazione elastic */
@keyframes elasticMove {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(3px); }
  80%  { transform: translateX(5px); }
  100% { transform: translateX(4px); }
}

/* Hover: attiva animazione + cambio colore */
.piu-letti-item:hover .piu-letti-arrow {
  animation: elasticMove 0.45s ease-out forwards;
  color: #4da3ff; /* blu brand */
  text-shadow: 0 0 6px rgba(77,163,255,0.6);
}

.piu-letti-item,
.piu-letti-item:hover,
.piu-letti-title,
.piu-letti-item:hover .piu-letti-title {
  text-decoration: none;
}
.articolo-corpo a {
  color: #DA291C !important; /* rosso brand */
  font-weight: 600;
  text-decoration: none;
}

.articolo-corpo a:hover {
  color: #ff4d4d !important; /* rosso più chiaro in hover */
  text-decoration: underline;
}

.articolo-card {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

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

.articolo-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

body.light-mode .articolo-img {
  border: 1px solid rgba(0,0,0,0.1);
}

.articolo-meta {
  opacity: 0.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.articolo-meta .tempo {
  color: #DA291C;
  font-weight: 600;
}
/* ================================
   LIGHT MODE FIX — CONTRASTO E PROFONDITÀ
   ================================ */

/* Body più morbido, non bianco puro */
body.light-mode {
  background: #f4f6fa;
  color: #1a1a1a;
}

/* Wrapper più definito */
body.light-mode .wrapper {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 60px rgba(0, 0, 0, 0.05);
}

/* Card articoli più visibili */
body.light-mode .articolo-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Immagini con bordo più forte */
body.light-mode .card-img,
body.light-mode .piu-letti-thumb {
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Testi più leggibili */
body.light-mode .card-preview {
  color: #444;
}

body.light-mode .card-meta {
  color: #666;
}

/* Sidebar più definita */
body.light-mode .sidebar {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Sezione "Articoli più letti" in light mode */
body.light-mode .piu-letti {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .piu-letti h3 {
  color: #1a1a1a;
}

body.light-mode .piu-letti-title {
  color: #1a1a1a;
}

/* Mini-card “Articoli più letti” */
body.light-mode .piu-letti-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .piu-letti-item:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #DA291C;
  box-shadow: 0 0 12px rgba(218,41,28,0.25);
}

/* Search bar */
body.light-mode .search-bar {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.12);
  color: #1a1a1a;
}

/* Select ordinamento */
body.light-mode .sort-bar select {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.12);
  color: #1a1a1a;
}
.articolo-meta .tempo {
  color: #DA291C;
  font-weight: 600;
}
