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

/* Variabili colore specifiche per photogallery */
:root {
  --primary: #f98a5a;
  --primary-dark: #aa2d22;
}

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

/* ========================================
   HERO PHOTOGALLERY
   ======================================== */
.hero-photogallery {
  padding-top: 150px;
  padding-bottom: 3rem;
  background: url('../assets/images/banner/banner_top_photogallery.jpg');
  /* background-size: cover; */
  /* background-repeat: no-repeat; */
  color: #aa2d22;
  text-align: center;
}

.hero-photogallery 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-photogallery 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-photogallery h2 {
    display: none;
  }
}

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


/* Schermi piccoli */
@media (max-width: 480px) {
  .hero-photogallery {
    background-size: 101%;
    background-position: -2200% 110%;
    /* background-repeat: no-repeat; */
  }

  /* .hero-opere h1 {
    padding-left: center;
  } */
}

/* Schermi medio-piccoli */
@media (min-width: 480px) and (max-width: 768px) {
  .hero-photogallery {
    background-size: 101%;
    background-position: -2600% 10%;
  }

  /* .hero-opere h1 {
    padding-left: 50%;
  } */
}

/* Schermi medio-grandi */
@media (min-width: 769px) and (max-width: 1200px) {
  .hero-photogallery {
    background-size: 101%;
    background-position: -2600% 22%;
  }

  /* .hero-opere h1 {
    padding-left: 40%;
  } */
}

/* Schermi grandi */
@media (min-width: 1201px) {
  .hero-photogallery {
    background-size: 101%;
    background-position: -2600% 30%;
  }

  /* .hero-opere h1 {
    padding-left: 40%;
  } */
}

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

.gallery {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  aspect-ratio: 1;
  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.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s 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;
}

.gallery-icon {
  color: white;
  font-size: 3rem;
  transform: scale(0);
  transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-icon {
  transform: scale(1);
}

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

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

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