/* ==========================================================================
   ABERTURA & SELETOR DA COLEÇÃO — Inter de Santa Maria 2027
   Tipografia leve (Outfit + Birthstone), grid padronizado em 1240px
   ========================================================================== */

.home-body {
  --page-bg: #110b0b;
  --page-fg: #f7f3ee;
  --page-muted: #c9bcbc;
  --page-accent: #c4161c;
  --page-border: rgba(247, 243, 238, 0.16);

  background-color: var(--page-bg);
  color: var(--page-fg);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  transition:
    background-color 0.7s var(--ease-smooth),
    color 0.55s var(--ease-smooth);
}

/* Transição breve de abertura (desaparece automaticamente em ~0.75s) */
.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 160;
  background-color: #0c0707;
  color: #f7f3ee;
  display: grid;
  place-items: center;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 0.85s var(--ease-expo),
    opacity 0.55s var(--ease-smooth);
}

.intro-veil__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transform: translateY(0);
  transition: transform 0.65s var(--ease-expo), opacity 0.45s ease;
}

.intro-veil__club {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 200;
  letter-spacing: -0.025em;
  text-transform: none;
}

.intro-veil__season {
  font-family: var(--font-script);
  font-style: normal;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 0.9;
  color: #d9b8b8;
}

.home-body.is-revealed .intro-veil {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
}

.home-body.is-revealed .intro-veil__mark {
  transform: translateY(-28px);
  opacity: 0;
}

/* Header da abertura */
.home-header {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--gutter) 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-header__brand {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-header__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--page-accent);
  transition: background-color 0.55s ease;
}

.home-header__sep {
  opacity: 0.35;
}

.home-header__right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.home-header__hint {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--page-muted);
  text-align: right;
  display: none;
}

@media (min-width: 760px) {
  .home-header__hint {
    display: block;
  }
}

/* Palco principal */
.home-stage {
  flex: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(18px, 2.4vw, 30px);
}

.home-headline-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

@media (min-width: 960px) {
  .home-headline-bar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }
}

.home-title {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 200;
  line-height: 1.14;
  padding-block: 0.06em;
  letter-spacing: -0.035em;
  text-transform: none;
  transition: opacity 0.28s ease, transform 0.4s var(--ease-expo);
}

@media (min-width: 960px) {
  .home-title {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.home-title em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.24em;
  line-height: 1.06;
  text-transform: none;
  letter-spacing: 0.01em;
}

.home-lead {
  max-width: 52ch;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  font-weight: 300;
  color: var(--page-muted);
  line-height: 1.54;
  transition: opacity 0.28s ease;
}

/* Galeria das 6 camisas de frente */
.selector-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin: auto 0;
}

@media (min-width: 640px) {
  .selector-rail {
    grid-template-columns: repeat(var(--qtd-meio, 3), minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1080px) {
  .selector-rail {
    grid-template-columns: repeat(var(--qtd, 6), minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }
}

.shirt-slot[hidden] {
  display: none;
}

.shirt-slot {
  position: relative;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--page-fg) 14%, transparent);
  background: color-mix(in srgb, var(--page-fg) 4%, transparent);
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  height: auto;
  min-height: 0;
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.97);
  transition:
    transform 0.75s var(--ease-expo),
    opacity 0.6s var(--ease-smooth),
    border-color 0.35s ease,
    background-color 0.35s ease,
    filter 0.45s ease;
}

.home-body.is-revealed .shirt-slot {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: calc(var(--slot-i, 0) * 55ms + 140ms);
}

.home-body.is-ready .shirt-slot {
  transition-delay: 0ms;
}

@media (hover: hover) and (min-width: 1080px) {
  .selector-rail.has-hover .shirt-slot:not(.is-active) {
    opacity: 0.46;
    transform: scale(0.97);
  }

  .selector-rail.has-hover .shirt-slot.is-active {
    opacity: 1;
    transform: translate3d(0, -10px, 0) scale(1.03);
    border-color: color-mix(in srgb, var(--page-fg) 45%, transparent);
    background: color-mix(in srgb, var(--page-fg) 9%, transparent);
    z-index: 3;
  }
}

.shirt-slot:focus-visible {
  border-color: var(--page-fg);
  transform: translate3d(0, -6px, 0);
}

.shirt-slot__frame {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 10px 6px 14px;
}

.shirt-slot__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.36));
  transition: transform 0.65s var(--ease-expo), filter 0.5s ease;
}

.shirt-slot:hover .shirt-slot__img,
.shirt-slot:focus-visible .shirt-slot__img {
  transform: scale(1.06) translateY(-4px);
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.48));
}

.shirt-slot__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--page-fg) 12%, transparent);
}

.shirt-slot__name {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.05vw, 1.12rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-transform: none;
}

@media (min-width: 1080px) {
  .shirt-slot__name {
    white-space: nowrap;
  }
}

.shirt-slot__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--page-muted);
}

.shirt-slot__action svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease-expo);
}

.shirt-slot:hover .shirt-slot__action svg,
.shirt-slot:focus-visible .shirt-slot__action svg {
  transform: translateX(4px);
}

/* Rodapé discreto da abertura */
.home-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 12px;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--page-muted);
  border-top: 1px solid color-mix(in srgb, var(--page-fg) 12%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .intro-veil {
    display: none !important;
  }

  .shirt-slot {
    opacity: 1 !important;
    transform: none !important;
  }
}
