/* ==========================================================================
   schede.css - Layout Moderno, Tipografia e Navigazione per Schede Monografiche
   ========================================================================== */

/* 1. Colonna di Lettura e Tipografia */
.entry {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2c3e50;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 15px;
}

.entry p {
  margin-bottom: 1.6rem;
  text-align: justify;
  text-justify: inter-word;
}

/* 2. Titoli e Sottotitoli */
h1.title {
  font-size: 2.1rem;
  line-height: 1.3;
  color: #8b1e1e;
  margin-bottom: 1.2rem;
  font-weight: 700;
  border-bottom: 2px solid #f0e6db;
  padding-bottom: 10px;
}

.entry h2 {
  font-size: 1.45rem;
  color: #5c1d1d;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* 3. Quick Info Box (Scheda Sintetica del Luogo) */
.scheda-info-box {
  background: #fdfbf9;
  border-left: 4px solid #8b1e1e;
  border-top: 1px solid #eee5dd;
  border-right: 1px solid #eee5dd;
  border-bottom: 1px solid #eee5dd;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
}

.scheda-info-item {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.scheda-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7f8c8d;
  font-weight: 700;
  margin-bottom: 2px;
}

.scheda-info-value {
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 600;
}

/* 4. Immagini e Lightbox Link */
.entry a.lightbox-link {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
  margin: 2rem auto;
  max-width: 100%;
}

.entry img {
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.entry a.lightbox-link:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* 5. Barra di Navigazione (Precedente / Indice / Successivo) */
.nav-schede-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background-color: #faf6f2;
  border: 1px solid #ebd8c8;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 3rem 0 2rem 0;
}

.nav-schede-bottom a {
  color: #8b1e1e;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-schede-bottom a:hover {
  background-color: #f1e2d3;
  color: #5c1d1d;
}

.nav-schede-bottom .nav-center {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #d8beaa;
  background: #ffffff;
}

/* 6. Ottimizzazione Mobile */
@media (max-width: 768px) {
  .entry {
    font-size: 1.02rem;
    line-height: 1.68;
    padding: 5px 8px;
  }
  .entry p {
    text-align: left;
  }
  h1.title {
    font-size: 1.65rem;
  }
  .nav-schede-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}