@charset "utf-8";
/* ============================================================
   fotogallery.css — Stili specifici della pagina Gallery
   (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;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* ---------- HERO VIDEO ---------- */
.hero-video {
  border-radius: 14px;
}

.hero-wrapper {
  position: relative;
}

.hero-video-media,
.hero-gif-fallback {
  display: block;
  width: 100%;
  border-radius: .5rem;
}

.hero-gif-fallback {
  display: none;
}

/* ---------- CONTAINER GALLERY ---------- */
.gallery-container {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.5rem;
}

/* ---------- QUICK LINKS (Home + Contattaci) ---------- */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  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);
}

/* ---------- TITOLO GALLERY ---------- */
.gallery-title {
  text-align: center;
  margin: 2rem 0 2.5rem;
}

.gallery-title h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: .28em;
  color: #7a1f00;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  display: inline-block;
}

.gallery-title h1::after {
  content: "";
  display: block;
  width: 70%;
  height: 3px;
  margin: .55rem auto 0;
  background: linear-gradient(90deg, transparent, #c57b49, transparent);
  border-radius: 2px;
}

/* ---------- GALLERY CARDS ---------- */
.gallery-row {
  margin-bottom: .5rem;
}

.gallery-card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  max-width: 420px;
  margin: 0 auto;
}

.gallery-card:hover,
.gallery-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
}

.gallery-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-card:hover .gallery-card-img img,
.gallery-card:focus .gallery-card-img img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery-card:hover .gallery-overlay,
.gallery-card:focus .gallery-overlay {
  opacity: 1;
}

.gallery-label {
  display: inline-block;
  padding: .45rem 1.6rem;
  background: rgba(255, 255, 255, 0.94);
  color: #7a1f00;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 999px;
  letter-spacing: .04em;
  transform: translateY(8px);
  transition: transform .3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.gallery-card:hover .gallery-label,
.gallery-card:focus .gallery-label {
  transform: translateY(0);
}

.gallery-caption {
  text-align: center;
  padding: .65rem .6rem;
  font-weight: 700;
  font-size: .95rem;
  color: #7a1f00;
  background: linear-gradient(180deg, #fffefc 0%, #fff2e6 100%);
  border-top: 1px solid #ecd5c2;
  letter-spacing: .03em;
}

/* ---------- ULTIME GALLERIE INSERITE ---------- */
.latest-galleries {
  border-top: 1px solid #ecd5c2;
  padding-top: 2rem;
}

.latest-galleries h2 {
  text-align: center;
  color: #7a1f00;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
  position: relative;
}

.latest-galleries h2::after {
  content: "";
  display: block;
  width: 50%;
  height: 2px;
  margin: .5rem auto 0;
  background: linear-gradient(90deg, transparent, #c57b49, transparent);
  border-radius: 2px;
}

.gallery-list {
  max-width: 780px;
  margin: 0 auto;
}

.gallery-list p {
  margin-bottom: .6rem;
  padding: .65rem 1.2rem;
  border-left: 4px solid #c57b49;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #fffdfb 0%, #fff 100%);
  transition: all .2s ease;
}

.gallery-list p:hover {
  background: linear-gradient(90deg, #fff3e8 0%, #ffe8d5 100%);
  border-left-color: #7a1f00;
  transform: translateX(3px);
}

.gallery-list a {
  color: #5a1a00;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  display: block;
  transition: color .2s ease;
}

.gallery-list a:hover {
  color: #a84b18;
  text-decoration: underline;
}

/* ---------- FOOTER SPECIFICO ---------- */
#footer {
  text-align: center;
  color: #c60;
  font-size: 1rem;
}

.social-links-box {
  min-height: auto;
}

.social-section {
  margin-top: .35rem !important;
  margin-bottom: .25rem;
}

/* ---------- PAGINE GALLERY DETTAGLIO (GalleryKarate, GalleryTaiChi, Video) ---------- */
.gallery-detail-container {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.5rem;
}

.gallery-detail-container .gallery-title {
  text-align: center;
  margin: 1rem 0 2rem;
}

.gallery-detail-container .gallery-title h1,
.gallery-detail-container .gallery-title h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #7a1f00;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  display: inline-block;
}

.gallery-detail-container .gallery-title h1::after,
.gallery-detail-container .gallery-title h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  margin: .5rem auto 0;
  background: linear-gradient(90deg, transparent, #c57b49, transparent);
  border-radius: 2px;
}

/* Accordion anni (details/summary) */
.gallery-years {
  max-width: 820px;
  margin: 0 auto;
}

.gallery-years details {
  margin-bottom: .5rem;
  border: 1px solid #ecd5c2;
  border-radius: 10px;
  background: #fffefc;
  overflow: hidden;
  transition: box-shadow .2s ease;
}

.gallery-years details[open] {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.gallery-years summary {
  padding: .75rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #7a1f00;
  background: linear-gradient(180deg, #fffdfb 0%, #fff2e6 100%);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s ease;
}

.gallery-years summary::-webkit-details-marker {
  display: none;
}

.gallery-years summary::before {
  content: "▸";
  display: inline-block;
  font-size: .85rem;
  transition: transform .25s ease;
  color: #c57b49;
}

.gallery-years details[open] summary::before {
  transform: rotate(90deg);
}

.gallery-years summary:hover {
  background: linear-gradient(180deg, #fff3e8 0%, #ffe3cd 100%);
}

.gallery-link-list {
  padding: .75rem 1.2rem 1rem;
}

.gallery-link-list p {
  margin-bottom: .45rem;
  padding: .5rem .9rem;
  border-left: 3px solid #c57b49;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(90deg, #fffdfb 0%, #fff 100%);
  transition: all .2s ease;
}

.gallery-link-list p:hover {
  background: linear-gradient(90deg, #fff3e8 0%, #ffe8d5 100%);
  border-left-color: #7a1f00;
  transform: translateX(3px);
}

.gallery-link-list a {
  color: #5a1a00;
  text-decoration: none;
  font-weight: 600;
  font-size: .96rem;
  display: block;
  transition: color .2s ease;
}

.gallery-link-list a:hover {
  color: #a84b18;
  text-decoration: underline;
}

/* Video gallery grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
}

.video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.video-card .video-desc {
  padding: .65rem .8rem;
  font-weight: 700;
  font-size: .92rem;
  color: #7a1f00;
  text-align: center;
  background: linear-gradient(180deg, #fffefc 0%, #fff2e6 100%);
  border-top: 1px solid #ecd5c2;
}

/* ---------- SEZIONE SOCIAL CAROSELLO (Swiper) ---------- */
.social-carousel-section,
.social-masonry-section {
  border-top: 1px solid #ecd5c2;
  padding-top: 2rem;
}

.section-title {
  text-align: center;
  color: #7a1f00;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .4rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 50%;
  height: 2px;
  margin: .5rem auto 0;
  background: linear-gradient(90deg, transparent, #c57b49, transparent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: .95rem;
  margin-bottom: 1.8rem;
}

/* Swiper overrides */
.socialSwiper {
  padding: 0 2.5rem 3rem;
}

.socialSwiper .swiper-pagination-bullet {
  background: #c57b49;
  opacity: .5;
}

.socialSwiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #7a1f00;
}

.socialSwiper .swiper-button-prev,
.socialSwiper .swiper-button-next {
  color: #7a1f00;
}

.socialSwiper .swiper-button-prev::after,
.socialSwiper .swiper-button-next::after {
  font-size: 1.4rem;
}

/* Social slide card */
.social-slide-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.social-slide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.social-slide-card.ig-card {
  border-top: 4px solid #e1306c;
}

.social-slide-card.fb-card {
  border-top: 4px solid #1877f2;
}

.social-slide-card.tt-card {
  border-top: 4px solid #ff0050;
}

.social-slide-header {
  padding: .6rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
  color: #fff;
}

.instagram-badge {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.facebook-badge {
  background: #1877f2;
}

.tiktok-badge {
  background: #000;
}

.social-slide-body {
  padding: 1rem;
  flex: 1;
}

.social-placeholder-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: .8rem;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-slide-text {
  font-size: .93rem;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

.social-slide-footer {
  padding: .6rem 1rem;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.social-slide-link {
  font-size: .85rem;
  font-weight: 700;
  color: #7a1f00;
  text-decoration: none;
  transition: color .2s ease;
}

.social-slide-link:hover {
  color: #a84b18;
  text-decoration: underline;
}

/* ---------- SEZIONE SOCIAL MASONRY ---------- */
.masonry-grid {
  margin: 0 auto;
}

.masonry-grid-sizer,
.masonry-item {
  width: calc(33.333% - 11px);
}

.masonry-item--wide {
  width: calc(50% - 8px);
}

.masonry-item--tall .masonry-card-img {
  min-height: 200px;
}

.masonry-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  margin-bottom: 16px;
}

.masonry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11);
}

.masonry-card.ig-masonry {
  border-top: 4px solid #e1306c;
}

.masonry-card.fb-masonry {
  border-top: 4px solid #1877f2;
}

.masonry-card.tt-masonry {
  border-top: 4px solid #ff0050;
}

.masonry-card-header {
  padding: .5rem .9rem;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.masonry-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 999px;
  color: #fff;
}

.masonry-card-img {
  border-radius: 0;
}

.masonry-card-body {
  padding: .8rem .9rem;
}

.masonry-card-body p {
  font-size: .9rem;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

.masonry-card-footer {
  padding: .5rem .9rem;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.masonry-card-footer a {
  font-size: .82rem;
  font-weight: 700;
  color: #7a1f00;
  text-decoration: none;
  transition: color .2s ease;
}

.masonry-card-footer a:hover {
  color: #a84b18;
  text-decoration: underline;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 767.98px) {
  .gallery-title h1 {
    font-size: 2.4rem;
    letter-spacing: .18em;
  }

  .gallery-container {
    padding: 1.25rem 1rem;
  }

  .gallery-caption {
    font-size: .95rem;
    padding: .65rem .6rem;
  }

  .gallery-list p {
    padding: .55rem 1rem;
    font-size: .94rem;
  }

  .latest-galleries h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 575.98px) {
  body {
    background-attachment: scroll;
  }

  .gallery-container {
    padding: 1rem .75rem;
    border-radius: 8px;
  }

  .gallery-title h1 {
    font-size: 2rem;
    letter-spacing: .12em;
  }

  .gallery-title {
    margin: 1.25rem 0 1.75rem;
  }

  .gallery-card {
    border-radius: 10px;
  }

  .gallery-caption {
    font-size: .88rem;
  }

  .gallery-label {
    font-size: .9rem;
    padding: .4rem 1.4rem;
  }

  .latest-galleries {
    padding-top: 1.5rem;
  }

  .cta-link {
    padding: .4rem 1rem;
    font-size: .93rem;
  }
}