/*
 * Single "vetrina" (opere, artisti, cammini).
 * Stili copiati dalla build single-opera.html, piu' le regole comuni ai tre CPT.
 */
.single-title {
  font-size: clamp(2.1rem, 6.4vw, 5.8rem);
  line-height: 0.9;
}

.single-logo-divider {
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
}

.single-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.single-hero-stat__label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgb(6 95 70 / 0.7);
}

.single-hero-stat__value {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgb(6 95 70);
}

.single-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 8px;
  gap: 0;
}

.single-gallery-item {
  position: relative;
  overflow: hidden;
  grid-column: span 1;
  grid-row: span var(--rows, 24);
}

.single-gallery-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.single-mini-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(5 150 105 / 0.55);
  border-radius: 1.15rem;
  background: white;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.single-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(6 95 70 / 0.16);
}

.single-mini-card img {
  width: 100%;
  flex: 1;
  min-height: 11rem;
  object-fit: cover;
  margin-top: auto;
}

.single-route-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(236 253 245 / 0.55);
  border-radius: 1.25rem;
  background: rgb(163 230 53 / 0.1);
  color: rgb(236 253 245);
  transition: transform 260ms ease, background-color 260ms ease;
}

.single-route-card:hover {
  transform: translateY(-2px);
  background: rgb(163 230 53 / 0.18);
}

.single-route-card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  margin-top: auto;
}

.single-marquee-row {
  overflow: hidden;
  white-space: nowrap;
}

.single-marquee-track {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 1.2rem;
  animation: single-marquee 28s linear infinite;
}

.single-marquee-row--reverse .single-marquee-track {
  animation-direction: reverse;
}

@keyframes single-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .single-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Titolo hero: sotto i 1024px (immagine a tutta larghezza) niente difference, testo chiaro leggibile. */
@media (max-width: 1023px) {
  .ap-showcase .single-title {
    color: rgb(217 249 157);
    mix-blend-mode: normal !important;
    text-shadow: 0 2px 12px rgb(6 78 59 / 0.85);
  }
}

/* Dati dell'hero visibili anche su mobile, sotto l'immagine. */
.ap-showcase__stats-mobile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding: 2rem 1.5rem;
  background: rgb(247 254 231);
  color: rgb(6 78 59);
}

.ap-showcase__stats-mobile dt {
  font-size: 0.8rem;
  color: rgb(6 78 59 / 0.7);
}

.ap-showcase__stats-mobile dd {
  margin: 0.15rem 0 0;
  font-weight: 500;
  color: rgb(4 120 87);
}

@media (min-width: 1024px) {
  .ap-showcase__stats-mobile {
    display: none;
  }
}

/* Testo lungo nella fascia verde (descrizione, biografia, contenuto del cammino). */
.ap-showcase__text a {
  color: rgb(217 249 157);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ap-showcase__text h2,
.ap-showcase__text h3,
.ap-showcase__text h4 {
  margin-top: 2rem;
  font-weight: 600;
  line-height: 1.15;
  color: rgb(217 249 157);
}

.ap-showcase__text h2 { font-size: 1.6rem; }
.ap-showcase__text h3 { font-size: 1.3rem; }

.ap-showcase__text ul,
.ap-showcase__text ol {
  padding-left: 1.25rem;
  list-style: disc;
}

.ap-showcase__text ol { list-style: decimal; }

.ap-showcase__text img,
.ap-showcase__text figure {
  max-width: 100%;
  height: auto;
  margin-block: 1.5rem;
}

.ap-showcase__text figure img { margin: 0; }

.ap-showcase__text figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgb(236 253 245 / 0.7);
}

.ap-showcase__text iframe,
.ap-showcase__text .artist-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.single-mini-card__fallback {
  display: grid;
  flex: 1;
  min-height: 11rem;
  place-items: center;
  margin-top: auto;
  background: rgb(6 78 59);
}

.single-mini-card__fallback img {
  width: 45%;
  min-height: 0;
  flex: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Menu fissi e selettore lingua: niente difference, il colore lo decide assets/js/menu-contrast.js. */
.ap-showcase-page #menu-istituzionale,
.ap-showcase-page #menu-social,
.ap-showcase-page #menu-official,
.ap-showcase-page .ap-lang-switch {
  mix-blend-mode: normal;
}

.ap-showcase-page #menu-istituzionale .menu-link-wow,
.ap-showcase-page #menu-social .menu-link-wow,
.ap-showcase-page #menu-official .menu-link-wow,
.ap-showcase-page .ap-lang-switch__link {
  mix-blend-mode: normal;
  transition: color 160ms ease;
}

.ap-showcase__fallback {
  padding: 4rem;
  background: rgb(6 95 70);
  object-fit: contain;
}

.ap-showcase__stats-mobile {
  align-content: start;
}

/* Gallery con una o due immagini: niente colonne vuote. */
.single-gallery-grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .single-gallery-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ap-showcase__text blockquote {
  padding-left: 1.25rem;
  border-left: 3px solid rgb(190 242 100);
  font-size: 1.15em;
  color: rgb(217 249 157);
}

.ap-showcase__text blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-style: normal;
  color: rgb(236 253 245 / 0.7);
}

/* Sotto i 1024px: foto e dati attaccati, lo spazio restante dell'hero prende il colore dei dati. */
@media (max-width: 1023px) {
  .ap-showcase {
    background: rgb(247 254 231);
  }

  .ap-showcase > .grid {
    align-content: start;
  }
}

/* ---------- Fascia verde: titolo e dato a destra (gerarchia: hero > titolo > dato > testo) ---------- */
.ap-band-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 2.5rem;
  align-items: end;
}

.ap-band-title p {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .ap-band-title--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-band-title--split p:last-child {
    text-align: right;
  }
}

.ap-band-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* Desktop: in alto a destra accanto all'inizio del testo, resta visibile mentre si legge. */
@media (min-width: 1024px) {
  .ap-band-aside {
    position: sticky;
    top: 7rem;
    align-self: start;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 0.35rem;
    text-align: right;
  }
}

.ap-band-aside__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(217 249 157 / 0.7);
}

.ap-band-aside__value {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgb(190 242 100);
}

.ap-band-aside__value a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.ap-band-aside__icon {
  width: 0.7em;
  height: 0.7em;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.ap-band-aside__value a:hover,
.ap-band-aside__value a:focus-visible {
  color: rgb(236 252 203);
}

.ap-band-aside__value a:hover .ap-band-aside__icon { transform: translateX(5px); }
