/* =========================================================
   LG SPORTS & MANAGEMENT — PHOCA GALLERY
   ========================================================= */

body.com-phocagallery #sp-main-body {
  min-height: 75vh;
  padding-top: 45px;
  padding-bottom: 70px;
  background: #101010 !important;
}

#phocagallery {
  width: 100%;
  min-height: 65vh;
  padding: 35px 4%;
  color: #ffffff;
  background: #101010;
}

#phocagallery a {
  color: #ffffff;
  text-decoration: none;
}

#phocagallery a:hover {
  color: #e31b23;
}

#phocagallery .pg-csv-box,
#phocagallery .pg-cv-box {
  overflow: hidden;
  background: #181818 !important;
  border: 1px solid #303030 !important;
  border-top: 3px solid #e31b23 !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

#phocagallery .pg-csv-box-info,
#phocagallery .pg-cv-box-info {
  color: #ffffff !important;
  background: rgba(10,10,10,.88) !important;
}

#phocagallery .pg-csv-name,
#phocagallery .pg-csv-name a,
#phocagallery .pg-cv-name,
#phocagallery .pg-cv-name a {
  color: #ffffff !important;
  font-weight: 800;
}

#phocagallery select,
#phocagallery input {
  color: #222222;
  background: #ffffff;
  border: 1px solid #555555;
}

#phocagallery .pagination a,
#phocagallery .pagination span {
  color: #ffffff;
  background: #181818;
  border-color: #333333;
}

#phocagallery .pagination .active span {
  color: #ffffff;
  background: #e31b23;
  border-color: #e31b23;
}

@media (max-width: 767px) {
  body.com-phocagallery #sp-main-body {
    padding-top: 25px;
    padding-bottom: 45px;
  }

  #phocagallery {
    padding: 20px 15px;
  }

  #phocagallery .pg-csv-box,
  #phocagallery .pg-cv-box {
    max-width: 100%;
  }
}
/* Nasconde la firma Powered by Phoca Gallery */
#phocagallery > div[style*="text-align: center"][style*="color"] {
  display: none !important;
}

/* Intestazione della pagina */
body.com-phocagallery .page-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 35px 4% 5px;
  background: #101010;
}

body.com-phocagallery .page-header h1,
body.com-phocagallery .page-header h2 {
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
/* Nasconde la firma Phoca Gallery nella versione 6 */
#phocagallery div:has(> a[href*="phoca.cz"]) {
  display: none !important;
}
/* =========================================================
   LG SPORTS — RIQUADRI UNIFORMI PHOCA GALLERY
   Classi verificate sul sito
   ========================================================= */

/* Griglia delle società */
.pg-categories-items-box {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 300px) !important;
    gap: 28px !important;
    align-items: start !important;
    justify-content: start !important;
}

/* Singolo riquadro */
.pg-category-box {
    position: relative !important;
    width: 300px !important;
    height: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
}

/* Area contenente il logo */
.pg-category-box-image {
    width: 300px !important;
    height: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* Collegamento che avvolge il logo */
.pg-category-box-image > a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
}

/* Logo della società */
.pg-category-box-image > a > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 20px 20px 65px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: contain !important;
    object-position: center !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
}

/* Barra inferiore con nome e numero di foto */
.pg-category-box-info {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

/* Versione cellulare */
@media (max-width: 600px) {
    .pg-categories-items-box {
        grid-template-columns: 280px !important;
        justify-content: center !important;
    }

    .pg-category-box,
    .pg-category-box-image {
        width: 280px !important;
        height: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
}