/* ========================================
   MOSTRE.HTML - Stili specifici
   ======================================== */

/* Variabili colore specifiche per mostre */
:root {
  --primary: #d14841;
  --primary-dark: #b03a34;
}

/* Navbar sempre bianca */
.navbar {
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========================================
   HERO MOSTRE
   ======================================== */
.hero-mostre {
  padding-top: 150px;
  padding-bottom: 3rem;
  background: radial-gradient(ellipse 60% 60% at center 65%,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 50%), url('../assets/images/banner/banner_top_mostre.jpg');
  background-size: cover;
  background-position: 55%;
  color: white;
  text-align: center;
}

.hero-mostre h1 {
  font-family: "Dancing Script", cursive;
  font-size: clamp(3rem, 6vw, 5rem);
  font-style: normal;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Mostra normalmente di default */
.hero-mostre h2 {
  font-family: "Delius", cursive;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: block;
  /* opzionale, serve a rendere esplicito il comportamento predefinito */
}

/* Nascondi solo su mobile */
@media (max-width: 768px) {
  .hero-mostre h2 {
    display: none;
  }
}

.hero-mostre p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ========================================
   SECTION TITLE
   ======================================== */
.section-title {
  text-align: center;
  margin-top: 0em;
  margin-bottom: 1rem;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-right: 2rem;
  padding-left: 2rem;
  background: var(--light);
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.zoom-icon {
  color: white;
  font-size: 2rem;
}

/* mostre.css */
.gallery-section .section-title h2 {
  display: block;
  /* valore di default per sicurezza */
}

@media (min-width: 769px) {
  .section-title h2 {
    display: none !important;
  }
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
  padding: 4rem 2rem;
  background: var(--white);
  animation: fadeInUp 0.6s ease;
}

.content-section:nth-child(even) {
  background: var(--light);
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
}

.content-header {
  text-align: center;
  margin-bottom: 3rem;
}

.content-header h2 {
  font-family: "Delius", cursive;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.content-list {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-list p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--dark);
  padding-left: 1.5rem;
  position: relative;
}

.content-list p::before {
  content: "🎨";
  position: absolute;
  left: 0;
  top: 0;
}

.content-list p:last-child {
  margin-bottom: 0;
}

/* Timeline Style for Years */
.timeline-year {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-block;
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(209, 72, 65, 0.3);
}

/* ========================================
   SOCIAL SECTION (background specifico)
   ======================================== */
.social-section {
  background: url('../assets/images/banner/banner_bottom.png');
  background-position: 70%;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .content-list {
    padding: 1.5rem;
  }

  .content-list p {
    font-size: 0.95rem;
  }
}