@charset "utf-8";
/* ============================================================
   styleStampa.css — Stili specifici della pagina Rassegna Stampa
   (header, navbar, social e footer sono in shared.css)
   ============================================================ */

body {
  background: #e1e1e1 url("../bg.jpg") repeat-x fixed;
  font-family: "Times New Roman", Times, serif;
  color: #000;
  font-size: 16px;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* ---------- CONTENUTO ---------- */
#contenuto {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* ---------- BOTTONI ---------- */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-link {
  display: inline-block;
  margin-top: .35rem;
  padding: .48rem .88rem;
  border-radius: 999px;
  border: 1px solid #b25f2f;
  background: linear-gradient(180deg, #fff3e8 0%, #ffe3cd 100%);
  color: #7a1f00;
  text-decoration: none !important;
  font-weight: 700;
  letter-spacing: .01em;
  transition: all .2s ease;
}

.cta-link:hover,
.cta-link:focus {
  color: #fff !important;
  background: linear-gradient(180deg, #a84b18 0%, #7a2f0a 100%);
  border-color: #7a2f0a;
  transform: translateY(-1px);
}

/* ---------- TITOLI ---------- */
h2 {
  text-align: center;
  color: #fff;
  background: #8b2a00;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.text-muted {
  color: #6c757d;
}

/* ---------- GALLERIA STAMPA ---------- */
.stampa-gallery {
  margin-top: 1rem;
}

.stampa-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.stampa-grid a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.stampa-grid a:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #8b2a00;
}

.stampa-grid a img {
  display: block;
  height: auto;
  max-height: 250px;
  width: auto;
}

/* ---------- LIGHTBOX FIX: immagini grandi e leggibili ---------- */
.lightbox .lb-image {
  max-width: none !important;
  max-height: 95vh !important;
  height: auto !important;
  width: auto !important;
}

.lightbox .lb-dataContainer {
  max-width: 95vw;
}

.lb-outerContainer {
  max-width: 95vw !important;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 767.98px) {
  .stampa-grid {
    gap: 0.5rem;
  }

  .stampa-grid a img {
    max-height: 180px;
  }
}

@media (max-width: 575.98px) {
  body {
    background-attachment: scroll;
  }

  #contenuto {
    padding: 1rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .stampa-grid a img {
    max-height: 140px;
  }

  .cta-link {
    font-size: .88rem;
    padding: .4rem .7rem;
  }
}