/* =============================================================
   BB Landing Pages — Categoria + Classics
   ============================================================= */

/* ── Full-width page override ────────────────────────────── */
.bb-full-width-page .shoptimizer-archive,
.bb-full-width-page .col-full {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.bb-full-width-page .archive-header {
  display: none !important;
}

/* ── Reset layout ────────────────────────────────────────── */
.bb-landing {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.bb-landing .entry-content,
.bb-landing .site-content,
.bb-landing #content {
  padding: 0;
  margin: 0;
  max-width: 100%;
}

/* Override Shoptimizer gutter — must beat 99-overrides.css specificity */
body:has(main.bb-landing) #content.site-content {
  padding-inline: 0 !important;
  padding-top: 0 !important;
}
body:has(main.bb-landing) #content.site-content > *,
body:has(main.bb-landing) #primary,
body:has(main.bb-landing) .site-main,
body:has(main.bb-landing) article,
body:has(main.bb-landing) .entry-content {
  max-width: none !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* ── HERO ──────────────────────────────────────────────────── */
.bb-landing__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 5089 / 2363;
  max-height: 90vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.bb-landing__hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bb-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 8s ease;
  will-change: transform;
}

.bb-landing__hero:hover .bb-landing__hero-bg {
  transform: scale(1.04);
}

/* Gradient overlay — much better than flat black for drama + readability */
.bb-landing__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.04) 30%,
    rgba(0, 0, 0, 0.28) 68%,
    rgba(0, 0, 0, 0.56) 100%
  );
  pointer-events: none;
}

/* ── Hero entrance animations ────────────────────────────── */
@keyframes bb-hero-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero title wrap ─────────────────────────────────────── */
.bb-landing__hero-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  /* Push title upward to give CTA visual breathing room */
  padding-bottom: clamp(64px, 9vw, 108px);
}

.bb-landing__hero-title {
  color: #fff !important;
  font-size: clamp(26px, 4.5vw, 68px);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.22);
  animation: bb-hero-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.08s;
}

.bb-landing__hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: bb-hero-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.26s;
}

/* ── Hero CTA ────────────────────────────────────────────── */
.bb-landing__hero-cta,
.bb-landing__hero-cta:visited,
.bb-landing__hero-cta:hover,
.bb-landing__hero-cta:focus {
  color: #fff !important;
}

.bb-landing__hero-cta {
  display: inline-block;
  font-size: var(--bb-h3);
  font-weight: 400;
  letter-spacing: var(--bb-ls-wide);
  text-transform: uppercase;
  text-decoration: none !important;
  padding-bottom: 5px;
  position: relative;
  transition: opacity var(--bb-transition-fast);
}

.bb-landing__hero-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 0.35s ease;
}

.bb-landing__hero-cta:hover::after {
  background: rgba(255, 255, 255, 1);
}

.bb-landing__hero-cta:hover {
  opacity: 0.88;
}

/* ── MANIFESTO / INTRO ────────────────────────────────────── */
.bb-landing__manifesto {
  padding: var(--bb-section-padding) var(--bb-gutter);
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--bb-line);
  border-bottom: 1px solid var(--bb-line);
}

.bb-landing__manifesto p {
  max-width: 640px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.9;
  color: var(--bb-fg);
  text-align: center;
  margin: 0;
  letter-spacing: 0.015em;
}

/* ── CATEGORIE GRID 2×2 / 4×1 (Borse) ───────────────────── */
.bb-landing__categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding-bottom: clamp(8px, 1.5vw, 16px);
}

.bb-landing__cat-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: var(--bb-light-gray);
  overflow: hidden;
}

.bb-landing__cat-tile-img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.bb-landing__cat-tile:hover .bb-landing__cat-tile-img {
  transform: scale(1.05);
}

.bb-landing__cat-tile-label {
  font-size: var(--bb-small);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-fg);
  padding: 16px 8px 18px;
  text-align: center;
  transition: color var(--bb-transition-fast);
}

/* Short underline that grows from center on tile hover */
.bb-landing__cat-tile-label::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  margin: 5px auto 0;
  transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-landing__cat-tile:hover .bb-landing__cat-tile-label::after {
  width: 22px;
}

/* ── SECONDA HERO / HERO-2 (Borse) ───────────────────────── */
.bb-landing__hero--2 .bb-landing__hero-inner,
.bb-landing__hero--2 .bb-landing__hero-title-wrap {
  display: none;
}

@media (min-width: 768px) {
  .bb-landing__hero--2 {
    aspect-ratio: 5089 / 2363;
    min-height: 480px;
    max-height: 90vh;
  }
}

@media (max-width: 767px) {
  .bb-landing__hero--2 {
    aspect-ratio: 4 / 5;
    min-height: 360px;
    max-height: 80vh;
  }
}

/* ── STYLES HEADING sopra 5 immagini ─────────────────────── */
.bb-landing__styles-title--grid {
  text-align: center;
  padding: clamp(40px, 5vw, 72px) var(--bb-gutter) clamp(16px, 2vw, 28px);
  margin: 0;
  font-size: var(--bb-h3);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-black);
}

/* ── 5 IMMAGINI STILI BORSE ───────────────────────────────── */
.bb-landing__styles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding-bottom: clamp(32px, 4vw, 64px);
}

/* ── CATEGORIE 3 COLONNE (Scarpe / Accessori) ─────────────── */
.bb-landing__categories--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ── STILI / SOTTOCATEGORIE (Borse) ──────────────────────── */
.bb-landing__styles {
  padding: clamp(32px, 4vw, 64px) var(--bb-gutter);
  text-align: center;
}

.bb-landing__styles-title {
  font-size: var(--bb-h3);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 clamp(20px, 3vw, 40px);
}

.bb-landing__styles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
}

.bb-landing__styles-list li a {
  font-size: var(--bb-body);
  letter-spacing: var(--bb-ls-normal);
  text-transform: capitalize;
  color: var(--bb-fg);
  text-decoration: none;
  padding-bottom: 3px;
  position: relative;
  transition: opacity var(--bb-transition-fast);
}

/* Underline draws from left on hover */
.bb-landing__styles-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bb-fg);
  transition: width 0.32s ease;
}

.bb-landing__styles-list li a:hover { opacity: 0.7; }
.bb-landing__styles-list li a:hover::after { width: 100%; }

/* ── CTA COLLEZIONI / VIEW ALL ────────────────────────────── */
.bb-landing__collections-cta {
  display: flex;
  justify-content: center;
  padding: clamp(32px, 4vw, 64px) var(--bb-gutter);
}

/* Brand signature CTA: underline contracts to center dash on hover */
.bb-landing__cta-link {
  font-size: var(--bb-h3);
  font-weight: 400;
  letter-spacing: var(--bb-ls-wide);
  text-transform: uppercase;
  color: var(--bb-black);
  text-decoration: none;
  padding-bottom: 5px;
  position: relative;
  transition: opacity var(--bb-transition-fast);
}

.bb-landing__cta-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bb-black);
  transform: scaleX(1);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.bb-landing__cta-link:hover::after {
  transform: scaleX(0.28);
}

.bb-landing__cta-link:hover { opacity: 0.7; }

/* ── 3 CATEGORIE ROW (Scarpe / Accessori) ─────────────────── */
.bb-landing__cat-row {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4vw, 56px) var(--bb-gutter);
  flex-wrap: wrap;
}

.bb-landing__cat-row-item {
  font-size: var(--bb-h3);
  font-weight: 400;
  letter-spacing: var(--bb-ls-wide);
  text-transform: uppercase;
  color: var(--bb-fg);
  text-decoration: none;
  padding-bottom: 5px;
  position: relative;
  transition: opacity var(--bb-transition-fast);
}

.bb-landing__cat-row-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bb-fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bb-landing__cat-row-item:hover::after { transform: scaleX(1); }
.bb-landing__cat-row-item:hover { opacity: 0.7; }

/* ── 2 GRANDI IMMAGINI SEZIONE (Scarpe / Accessori) ─────── */
.bb-landing__section-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding-bottom: clamp(32px, 4vw, 64px);
}

.bb-landing__section-img-item {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: var(--bb-light-gray);
}

.bb-landing__section-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.bb-landing__section-img-item:hover .bb-landing__section-img-bg {
  transform: scale(1.05);
}

.bb-landing__section-img-bg--mirror {
  transform: scaleX(-1);
}

.bb-landing__section-img-item:hover .bb-landing__section-img-bg--mirror {
  transform: scaleX(-1) scale(1.05);
}

/* Gradient scrim — makes label legible on any image */
.bb-landing__section-img-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 42%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.bb-landing__section-img-label {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
  font-size: var(--bb-h3);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  transition: border-color 0.3s ease;
}

.bb-landing__section-img-item:hover .bb-landing__section-img-label {
  border-color: rgba(255, 255, 255, 0.95);
}

/* ── CLASSICS — griglia modelli ───────────────────────────── */
.bb-landing__models {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0 var(--bb-gutter) clamp(40px, 6vw, 80px);
}

.bb-landing__model-card {
  display: flex;
  flex-direction: column;
}

.bb-landing__model-card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--bb-light-gray);
}

.bb-landing__model-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.bb-landing__model-card-img-wrap:hover .bb-landing__model-card-img {
  transform: scale(1.05);
}

.bb-landing__model-card-body {
  padding: clamp(24px, 3vw, 48px) clamp(20px, 2.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--bb-line);
}

.bb-landing__model-card-quote {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  border: none;
  font-style: italic;
  color: var(--bb-black);
  letter-spacing: 0.01em;
}

.bb-landing__model-card-name {
  font-size: var(--bb-h3);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  color: var(--bb-black);
}

.bb-landing__model-card-desc {
  font-size: var(--bb-body);
  line-height: 1.75;
  color: var(--bb-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bb-landing__model-card-cta {
  display: inline-block;
  font-size: var(--bb-small);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-black);
  text-decoration: none;
  padding-bottom: 4px;
  align-self: flex-start;
  position: relative;
  transition: opacity var(--bb-transition-fast);
}

/* Same contracting dash on hover as .bb-landing__cta-link */
.bb-landing__model-card-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bb-black);
  transform: scaleX(1);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.bb-landing__model-card-cta:hover::after { transform: scaleX(0.28); }
.bb-landing__model-card-cta:hover { opacity: 0.7; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 767px) {

  /* Hero */
  .bb-landing__hero {
    aspect-ratio: 4 / 5;
    padding-bottom: clamp(36px, 6vw, 52px);
  }

  .bb-landing__hero-title {
    letter-spacing: 0.22em !important;
  }

  .bb-landing__hero-title-wrap {
    padding-bottom: clamp(52px, 10vw, 72px);
  }

  /* Manifesto: remove side borders on narrow screens */
  .bb-landing__manifesto {
    border-left: none;
    border-right: none;
  }

  .bb-landing__manifesto p {
    font-size: 14px;
    line-height: 1.8;
  }

  /* Borse: 1 colonna */
  .bb-landing__categories {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  /* Scarpe/Accessori: 1 colonna */
  .bb-landing__categories--3col {
    grid-template-columns: 1fr;
  }

  /* Stili grid: 2 colonne */
  .bb-landing__styles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  /* 5° item orphan → full width landscape */
  .bb-landing__styles-grid .bb-landing__cat-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .bb-landing__styles-grid .bb-landing__cat-tile:last-child:nth-child(odd) .bb-landing__cat-tile-img {
    aspect-ratio: 5 / 2;
  }

  /* Classics: 1 colonna */
  .bb-landing__models {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }

  .bb-landing__model-card-body {
    padding: clamp(20px, 5vw, 28px) var(--bb-gutter);
  }

  /* Section images: 1 colonna, più strette in altezza */
  .bb-landing__section-images {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .bb-landing__section-img-item {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .bb-landing__model-card {
    flex-direction: column;
  }

  /* Stili grid: 3 colonne su tablet */
  .bb-landing__styles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Scarpe/Accessori: 3 colonne */
  .bb-landing__categories--3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1025px) {
  /* Borse: 4 categorie */
  .bb-landing__categories {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Scarpe/Accessori: sempre 3 */
  .bb-landing__categories--3col {
    grid-template-columns: repeat(3, 1fr);
  }
}
