/* === RESEARCH PAGE === */
.research-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: #e6edf3;
  box-sizing: border-box;
}

.research-header { text-align: center; margin-bottom: 3rem; }
.research-header h1 { font-size: clamp(2rem, 4vw, 2.5rem); color: #00d400; margin-bottom: 1rem; }
.research-header p { max-width: 800px; margin: 0 auto; line-height: 1.7; color: #cfcfcf; }

/* === PUBLICATIONS GRID === */
.publications-section h2 { text-align: center; color: #00d400; margin-bottom: 2rem; }

.papers-grid {
  display: grid;
  /* Griglia Responsive: Colonne minime 300px */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.paper-card {
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative; /* Per stabilità */
  overflow: hidden;   /* Evita che contenuti sbordino */
}

.paper-card:hover { 
  transform: translateY(-5px); 
  border-color: #00d400; 
  box-shadow: 0 5px 15px rgba(0, 212, 0, 0.1); 
}

/* === IL FIX MANCANTE: DIMENSIONI IMMAGINI === */
.paper-thumb {
  width: 40px;        /* Dimensione fissa piccola */
  height: 40px;
  object-fit: contain; /* Mantiene le proporzioni */
  margin-bottom: 1rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.05); /* Sfondo leggero se l'immagine è trasparente */
  padding: 2px;
}

.paper-meta { 
  display: flex; 
  justify-content: space-between; 
  font-size: 0.8rem; 
  color: #8b949e; 
  margin-bottom: 0.5rem; 
}

.paper-card h3 { 
  font-size: 1.1rem; 
  line-height: 1.4; 
  margin-bottom: 0.8rem; 
}

.paper-card h3 a { color: #e6edf3; text-decoration: none; }
.paper-card h3 a:hover { color: #00d400; }

.authors { font-size: 0.85rem; color: #8b949e; margin-top: auto; line-height: 1.4; }