/* ============== RESET / BASE ============== */
@font-face {
  font-family: 'FreestyleScriptStd';
  src: url('/staging/wp-content/themes/bob-elementor-child/assets/fonts/FreestyleScriptStd.woff2') format('woff2'),
  url('/staging//wp-content/themes/bob-elementor-child/assets/fonts/FreestyleScriptStd.woff')  format('woff'),
  url('/staging//wp-content/themes/bob-elementor-child/assets/fonts/FreestyleScriptStd.otf')   format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'LoveCraft';
  src: url('/staging/wp-content/themes/bob-elementor-child/assets/fonts/LoveCraft.woff2') format('woff2'),
  url('/staging//wp-content/themes/bob-elementor-child/assets/fonts/LoveCraft.woff')  format('woff'),
  url('/staging//wp-content/themes/bob-elementor-child/assets/fonts/LoveCraft.otf')   format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@property --bg {
  syntax: '<color>';
  inherits: true;
  initial-value: #FFFFFF;
}
@property --fg {
  syntax: '<color>';
  inherits: true;
  initial-value: #0B131F;
}
@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #E63329;
}

:root {
  --bg: #FFFFFF;
  --bg-grey: #F5F5F5;
  --fg: #0B131F;
  --accent: #E63329;
  --black: #000000;
  --white: #FFFFFF;
  --cream: #eeeae3;
  --ff-display: "Instrument Serif", Georgia, serif;
  --ff-display-freestyle: 'FreestyleScriptStd', "Instrument Serif", Georgia, serif;
  --ff-ui: "Space Grotesk", -apple-system, system-ui, sans-serif;
  --ff-mono: "Space Grotesk", -apple-system, system-ui, sans-serif; /*"JetBrains Mono", ui-monospace, monospace*/
  --ff-love: "LoveCraft", sans-serif;
  --italic-style: italic;
  --marquee-dur: 60s;
  --bb-nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /*background: var(--bg, #EEEAE3);*/
  color: var(--fg, #0E0E0C);
  font-family: var(--ff-ui);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Templates that want content (e.g. a full-height video) to start behind the
   transparent header — add this class via body_class() on that template. */
body.bb-nav-overlay { padding-top: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--fg); }

.bb-root {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}

.bb-italic { font-style: var(--italic-style, italic); }



/* ============== NAV ============== */
.bb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bb-nav-h);
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  transition: background .3s, border-color .3s;
}
.logged-in.admin-bar .bb-nav{ top: 32px; }
/* Transparent variant — add to .bb-nav (e.g. via body_class hook) on templates
   where the header should float over full-bleed content like a video hero. */

.bb-nav--transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.bb-nav::before {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; content: ""; background: var(--bg); transform: scaleY(1); transform-origin: top; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.bb-nav.is-scrolled::before { transform: scaleY(1); }
.bb-nav-left { display: flex; align-items: center; }
.bb-nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.bb-nav-right {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.bb-nav-right .bb-mono{ color: var(--cream); }
.bb-logo { display: flex; align-items: center; gap: 12px; }
.bb-logo-img {
  width: 56px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 0 transparent);
}
.bb-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.bb-logo-sub {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.bb-logo-sub-2 { opacity: 0.45; }

.bb-nav-num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.5;
}
.bb-nav-label {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
}
.bb-nav .bb-menu-btn {
  position: relative;
  display: grid;
  width: 44px; height: 36px;
  background: transparent !important;
  border:none;
  gap: 4px;
  place-content: center;
  padding: 0 12px;
}
.bb-nav .bb-menu-btn:hover,.bb-nav .bb-menu-btn:active { background: transparent; }
.bb-nav .bb-menu-btn span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--cream);
}
.bb-nav.is-scrolled .bb-menu-btn span { background: var(--fg); }
/* ── Off-canvas nav drawer — slides in from the left, used at all breakpoints ── */
.bb-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(420px, 88vw);
  background: var(--bg);
  color: var(--fg);
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--bb-nav-h) + 24px) 32px 32px;
  border-right: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  transform: translateX(-100%);
  transition: transform .55s cubic-bezier(.76, 0, .24, 1);
  overflow-y: auto;
}
.bb-nav-drawer.is-open { transform: translateX(0); }

.bb-nav-drawer-list {
  display: flex;
  flex-direction: column;
}
.bb-nav-drawer-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  color:var(--fg);
}
.bb-nav-drawer-list a .bb-nav-label {
  font-size: clamp(26px, 4.5vw, 38px);
}

.bb-nav .bb-menu-btn span{ background: var(--fg);}
.bb-nav .bb-nav-right .bb-mono{ color: var(--fg); }
.bb-nav .bb-nav-drawer-list a.is-current .bb-nav-label,
.bb-nav .bb-nav-drawer-list a:hover, .bb-nav .bb-nav-drawer-list a:hover .bb-nav-label { color: var(--accent); }

.bb-nav-drawer-footer {
  padding-top: 24px;
  opacity: 0.5;
}

.bb-nav-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--black) 55%, transparent);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.bb-nav-drawer-overlay.is-visible { opacity: 1; pointer-events: auto; }

body.bb-drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .bb-nav-drawer { transition: none; }
  .bb-nav-drawer-overlay { transition: none; }
}
/* ============== HERO ============== */
.bb-hero {
  position: relative;
  padding: 56px 32px 0;
  min-height: calc(100vh - var(--bb-nav-h));
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.bb-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.65;
}
.bb-hero-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(42px, 8.5vw, 120px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 60px 0 0;
  text-wrap: pretty;
  padding-right: clamp(280px, 36vw, 500px);
  position: relative;
  z-index: 2;
  word-spacing: 0.08em;
}
.bb-line { display: block; }
.bb-line-2 { padding-left: clamp(40px, 14vw, 220px); padding-right: 0; }
.bb-word { display: inline-block; margin-right: 0.32em; }
.bb-outline {
  -webkit-text-stroke: 1.5px var(--fg, #EEEAE3);
  color: transparent;
}

.bb-hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding: 60px 0 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
}
.bb-hero-paragraph {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.45;
  opacity: 0.85;
  text-wrap: pretty;
}
.bb-hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
button.bb-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: 16px;
  position: relative;
  overflow: hidden;
  transition: color .3s;
}
button.bb-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .35s cubic-bezier(.65,.05,.36,1);
  z-index: -1;
}
button.bb-btn:hover { color: var(--bg); background: var(--fg); }
button.bb-btn:hover::before { transform: translateY(0); }
button.bb-btn-arrow { transition: transform .3s; }
button.bb-btn:hover .bb-btn-arrow { transform: translateX(6px); }

.bb-hero-img {
  position: absolute;
  right: 32px;
  top: 200px;
  width: clamp(260px, 32vw, 460px);
  z-index: 0;
  pointer-events: none;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.bb-hero-corner {
  position: absolute;
  left: 32px;
  bottom: 110px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.bb-bignum {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 96px;
  line-height: 0.85;
  color: var(--accent);
}
@media (max-width: 900px) {

  /* Hero: passa a flex colonna per controllare l'ordine */
  .bb-hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: 24px 18px 32px;
    gap: 0;
  }

  /* Ordine visivo: meta → titolo → immagine → bottom */
  .bb-hero-meta  { order: 0; flex-shrink: 0; }
  .bb-hero-title {
    order: 1;
    flex-shrink: 0;
    padding-right: 0;
    margin-top: 28px;
    font-size: clamp(48px, 13vw, 80px);
  }

  /* Immagine: torna nel flusso e occupa lo spazio disponibile */
  .bb-hero-img {
    order: 2;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    flex: 1 1 auto;
    min-height: 180px;
    margin: 28px 0;
    pointer-events: auto;
  }

  /* Il frame interno deve riempire l'altezza disponibile,
     sovrascriviamo l'aspect-ratio inline del widget */
  .bb-hero-img .bb-image-frame {
    width: 100%;
    height: 100% !important;
    aspect-ratio: unset !important;
    min-height: 180px;
  }

  .bb-hero-bottom {
    order: 3;
    flex-shrink: 0;
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .bb-hero-title { margin: 28px 0 0; }
  .bb-line-2 { padding-left: 0; }
  .bb-hero-cta { align-items: flex-start; }
  .bb-hero-meta { flex-wrap: wrap; gap: 4px 16px; }
}
/* ============== MARQUEE ============== */
.bb-marquee {
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  padding: 22px 0;
  overflow: hidden;
}
.bb-marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: bb-marquee var(--marquee-dur) linear infinite;
  white-space: nowrap;
}
.bb-marquee-group { display: flex; align-items: center; }
.bb-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-family: var(--ff-display);
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1;
  padding-right: 32px;
}
.bb-marquee-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
@keyframes bb-marquee {
  to { transform: translateX(-33.333%); }
}

/* ============== SECTIONS ============== */
.bb-section {
  padding: 60px 32px;
  /*border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);*/
}
.bb-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 60px;
  /*border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);*/
  opacity: 1;
}

/* Manifesto */
.bb-manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.bb-manifesto-text p {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.bb-manifesto-small {
  font-family: var(--ff-ui) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  max-width: 480px;
  opacity: 0.7;
  letter-spacing: 0 !important;
}
.bb-manifesto-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}
.bb-aside-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
}
.bb-aside-row > span {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
}

/* Pillars */
.bb-pillars-list { display: flex; flex-direction: column; }
.bb-pillar {
  display: grid;
  grid-template-columns: 100px minmax(0, 1.4fr) minmax(0, 1.2fr) auto;
  gap: 40px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  transition: padding-left .35s cubic-bezier(.2,.8,.2,1), background .3s;
}
.bb-pillar.is-hover { padding-left: 32px; background: color-mix(in srgb, var(--fg) 4%, transparent); }
.bb-pillar-num { opacity: 0.55; }
.bb-pillar-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3vw, 50px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}
.bb-pillar-title .bb-italic {
  font-size: 0.5em;
  opacity: 0.85;
}
.bb-pillar-body {
  font-size: 16px;
  line-height: 1.5;
  max-width: 360px;
  opacity: 0.8;
}
.bb-pillar-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
}
.bb-pillar-tag span:last-child {
  width: 32px; height: 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .3s, background .3s, color .3s;
}
.bb-pillar.is-hover .bb-pillar-tag span:last-child {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
  transform: rotate(-45deg);
}

/* Collection */
.bb-collection-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 0 80px;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.bb-collection-title h2 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22em;
}
.bb-collection-title h2 > span { display: inline-block; }
.bb-collection-year {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.9;
  opacity: 0.4;
}

.bb-collection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.bb-collection-feature { display: flex; flex-direction: column; gap: 20px; }
.bb-collection-feature-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.bb-feature-name {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 36px;
  margin-top: 4px;
}

.bb-collection-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bb-thumb {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: opacity .3s;
}
.bb-thumb:not(.is-active) { opacity: 0.55; }
.bb-thumb:hover { opacity: 1; }
.bb-thumb.is-active::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.bb-thumb-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.bb-thumb-meta span {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
}

/* Outsider */
.bb-outsider-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 80px;
  align-items: start;
}
.bb-outsider-image { position: relative; }
.bb-outsider-stamp {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px; height: 120px;
  border: 1.5px solid;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--bg);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  transform: rotate(-12deg);
}
.bb-outsider-stamp span:last-child { display: block; }

.bb-outsider-faq { display: flex; flex-direction: column; }
.bb-faq-row {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  padding: 24px 0;
  cursor: pointer;
  transition: padding .3s;
}
.bb-faq-row.is-open { padding: 32px 0; }
.bb-faq-q {
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  gap: 20px;
  align-items: baseline;
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
}
.bb-faq-q .bb-faq-title{ font-style: italic;}
.bb-faq-toggle {
  font-family: var(--ff-ui);
  font-weight: 300;
  font-size: 28px;
  text-align: center;
  transition: transform .3s, color .3s;
}
.bb-faq-row.is-open .bb-faq-toggle { transform: rotate(180deg); }
.bb-faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .35s, padding-top .35s;
  padding-top: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 580px;
  margin-left: 60px;
  opacity: 0;
}
.bb-faq-row.is-open .bb-faq-a {
  max-height: 200px;
  opacity: 0.8;
  padding-top: 18px;
}

/* Footer */
.bb-footer {
  border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  padding: 100px 32px 24px;
}
.bb-footer-top { margin-bottom: 80px; }
.bb-footer-headline {
  font-family: var(--ff-love);
  font-size: clamp(32px, 6vw, 105px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  flex-wrap: wrap;
  gap: 0.18em;
  text-wrap: pretty;
}
.bb-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
}
.bb-footer-col { display: flex; flex-direction: column; gap: 16px; }
.bb-footer-col address {
  font-style: normal;
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.4;
}
.bb-footer-col address a {
  font-family: var(--ff-display);
  font-style: italic;
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  margin-top: 8px;
}
.bb-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.bb-footer-links li { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.bb-footer-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  transition: padding .3s;
}
.bb-footer-links a:hover { padding-left: 12px; }

.bb-newsletter { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.bb-newsletter input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent);
  padding: 10px 0;
  color: inherit;
  font-family: var(--ff-display);
  font-size: 24px;
  outline: none;
}
.bb-newsletter input::placeholder { opacity: 0.4; }
.bb-newsletter button {
  align-self: flex-start;
  background: transparent;
  border: 1.5px solid;
  color: inherit;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--ff-ui);
  font-size: 14px;
  transition: background .3s, color .3s;
}
.bb-newsletter button:hover { background: var(--accent); color: var(--fg); border-color: var(--accent); }

.bb-footer-bigtype {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.06em;
  font-family: var(--ff-display);
  font-size: clamp(120px, 28vw, 460px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  padding: 60px 0 40px;
}

.bb-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  opacity: 0.55;
}

/* Responsive */
@media (max-width: 900px) {
  .bb-nav { padding: 0 18px; }
  .bb-hero { padding: 32px 18px 0; }
  .bb-line-2 { padding-left: 0; }
  .bb-section { padding: 80px 18px; }
  .bb-manifesto-grid, .bb-collection-grid, .bb-outsider-grid { grid-template-columns: 1fr; gap: 40px; }
  .bb-pillar { grid-template-columns: 60px 1fr; gap: 16px; }
  .bb-pillar-body, .bb-pillar-tag { grid-column: 2; }
  .bb-collection-thumbs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bb-footer { padding: 60px 18px 24px; }
  .bb-footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
  .bb-nav-drawer { width: 100vw; padding: calc(var(--bb-nav-h) + 16px) 18px 24px; }
}

/* Animazione del pulsante Burger -> X */
.bb-nav .bb-menu-btn span {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bb-nav .bb-menu-btn.is-active span{ background-color: var(--accent); }
.bb-nav .bb-menu-btn.is-active span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.bb-nav .bb-menu-btn.is-active span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* ============== PAGES ============== */
.bb-page-wrap { min-height: 60vh; }

.bb-page-hero {
  padding: 0px 32px 0px;
  /*border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);*/
  display: grid;
  gap: 32px;
}
.bb-page-title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 105px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  display: block;
  word-spacing: 0.12em;
  text-wrap: pretty;
}
.bb-page-title-xl { font-size: clamp(72px, 13vw, 220px); line-height: 1.04; }
.bb-page-title > span { display: inline; margin-right: 0.18em; }
.bb-page-lede {
  max-width: 640px;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  opacity: 0.8;
  margin: 0;
  text-wrap: pretty;
}
.bb-page-meta {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
}
.bb-page-meta > div { display: flex; flex-direction: column; gap: 6px; }
.bb-page-meta span {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
}

/* About */
.bb-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.bb-h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.bb-about-text p {
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.8;
  max-width: 560px;
  margin: 0 0 16px;
}
.bb-about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bb-about-stats > div {
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 1.1 / 1;
  justify-content: space-between;
}
.bb-stat-n {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
}

.bb-about-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bb-about-images > *:nth-child(2) { transform: translateY(40px); }

/* SS26 page */
.bb-look-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}
.bb-look { display: flex; flex-direction: column; gap: 12px; transition: transform .35s; }
.bb-look:hover { transform: translateY(-4px); }
.bb-look-meta { display: flex; flex-direction: column; gap: 4px; }
.bb-look-name {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.1;
}

/* Outsider page */
.bb-stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}
.bb-story { display: flex; flex-direction: column; gap: 16px; }
.bb-story-meta { display: flex; flex-direction: column; gap: 10px; }
.bb-story-title {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.bb-story-meta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.75;
}
.bb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: 14px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 4px;
  transition: color .25s;
}
.bb-link:hover { color: var(--accent); border-color: var(--accent); }

/* Contact */
.bb-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.bb-contact-form { display: flex; flex-direction: column; gap: 28px; max-width: 560px; }
.bb-contact-form label { display: flex; flex-direction: column; gap: 8px; }
.bb-contact-form input,
.bb-contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  padding: 12px 0;
  color: inherit;
  font-family: var(--ff-display);
  font-size: 24px;
  outline: none;
  resize: vertical;
  transition: border-color .25s;
}
.bb-contact-form input:focus,
.bb-contact-form textarea:focus { border-color: var(--accent); }
.bb-contact-form input::placeholder,
.bb-contact-form textarea::placeholder { opacity: 0.4; font-style: italic; }
.bb-contact-form button { align-self: flex-start; margin-top: 8px; }

.bb-contact-aside { display: flex; flex-direction: column; gap: 28px; }
.bb-aside-block { display: flex; flex-direction: column; gap: 6px; }

/* Bob — Info Blocks widget — standalone version with column layouts */
.bb-info-blocks { display: grid; gap: 28px; }
.bb-info-blocks.bb-info-blocks--cols-1 { grid-template-columns: 1fr; }
.bb-info-blocks.bb-info-blocks--cols-2 { grid-template-columns: repeat(2, 1fr); }
.bb-info-blocks.bb-info-blocks--cols-3 { grid-template-columns: repeat(3, 1fr); }
.bb-info-blocks.bb-info-blocks--cols-4 { grid-template-columns: repeat(4, 1fr); }
.bb-info-blocks.bb-info-blocks--dividers .bb-aside-block {
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
}
.bb-info-blocks.bb-info-blocks--dividers.bb-info-blocks--cols-1 .bb-aside-block:first-child {
  padding-top: 0;
  border-top: 0;
}
@media (max-width: 900px) {
  .bb-info-blocks.bb-info-blocks--cols-3,
  .bb-info-blocks.bb-info-blocks--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bb-info-blocks.bb-info-blocks--cols-2,
  .bb-info-blocks.bb-info-blocks--cols-3,
  .bb-info-blocks.bb-info-blocks--cols-4 { grid-template-columns: 1fr; }
}

.bb-aside-block { display: flex; flex-direction: column; gap: 6px; }
.bb-aside-block p {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .bb-page-hero { padding: 60px 18px 40px; }
  .bb-about-grid, .bb-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .bb-about-images { grid-template-columns: 1fr 1fr; }
  .bb-about-images > *:nth-child(2) { transform: none; }
  .bb-look-grid { grid-template-columns: 1fr 1fr; }
  .bb-stories { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact Page Grid
   ============================================================ */
.bb-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

/* Colonna testuale / Info di contatto */
.bb-contact-aside { display: flex; flex-direction: column; gap: 28px; }
.bb-aside-block { display: flex; flex-direction: column; gap: 6px; }
.bb-aside-block p {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.4;
}

/* ============================================================
   Contact Form 7 Integration (.bb-contact-form)
   ============================================================ */
.bb-contact-form {
  max-width: 560px;
}

/* CF7 genera un form interno, applichiamo il flex a quello */
.bb-contact-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* CF7 avvolge automaticamente gli input in tag <p>.
   Usiamo i <p> per distanziare label e input, rimuovendo il margine di default */
.bb-contact-form .wpcf7-form p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Gestione delle label (se le usi nel form) */
.bb-contact-form .wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
/* Input text, email, tel, textarea e SELECT di CF7 */
.bb-contact-form .wpcf7-form-control.wpcf7-text,
.bb-contact-form .wpcf7-form-control.wpcf7-textarea,
.bb-contact-form .wpcf7-form-control.wpcf7-select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  border-radius: 0; /* Previene gli arrotondamenti di iOS */
  padding: 12px 0;
  color: inherit;
  font-family: var(--ff-display);
  font-size: 1.6rem;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  resize: vertical;
  transition: border-color .25s;
}

/* Stile specifico per la select (aggiunge la freccia personalizzata) */
.bb-contact-form .wpcf7-form-control.wpcf7-select {
  cursor: pointer;
  /* Freccia SVG inline pulita, eredita il colore dal testo */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='var(--accent)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 16px;
  padding-right: 32px; /* Evita che il testo finisca sopra la freccia */
}

/* Fix per i file <option> all'interno della select (per i browser che lo supportano) */
.bb-contact-form .wpcf7-form-control.wpcf7-select option {
  background-color: var(--bg);
  color: var(--fg);
}

/* Focus state */
.bb-contact-form .wpcf7-form-control.wpcf7-text:focus,
.bb-contact-form .wpcf7-form-control.wpcf7-textarea:focus,
.bb-contact-form .wpcf7-form-control.wpcf7-select:focus {
  border-bottom-color: var(--accent);
}
/* Input text, email, tel, textarea di CF7 */
.bb-contact-form .wpcf7-form-control.wpcf7-text,
.bb-contact-form .wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  border-radius: 0; /* Previene gli arrotondamenti di iOS */
  padding: 12px 0;
  color: inherit;
  font-family: var(--ff-display);
  font-size: 24px;
  outline: none;
  box-shadow: none;
  appearance: none;
  resize: vertical;
  transition: border-color .25s;
}

/* Focus state */
.bb-contact-form .wpcf7-form-control.wpcf7-text:focus,
.bb-contact-form .wpcf7-form-control.wpcf7-textarea:focus { border-bottom-color: var(--accent); }

/* Placeholder */
.bb-contact-form .wpcf7-form-control::placeholder {
  opacity: 0.4;
  font-style: italic;
  color: inherit;
}

/* Bottone di Submit di CF7 */
.bb-contact-form .wpcf7-form-control.wpcf7-submit {
  align-self: flex-start;
  margin-top: 8px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: inherit;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: inherit; /* O usa var(--ui) se hai una variabile specifica per i bottoni */
  font-size: 16px;
  cursor: pointer;
  transition: background .3s, color .3s;
}

.bb-contact-form .wpcf7-form-control.wpcf7-submit:hover {
  background: var(--accent);
  color: var(--bg); /* Colore del testo sul bottone hoverato */
}

/* Spinner e Messaggi di sistema CF7 */
.bb-contact-form .wpcf7-spinner {
  margin: 0 0 0 12px;
  background-color: var(--accent);
}

.bb-contact-form .wpcf7-response-output {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: var(--mono); /* o un font secondario */
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.bb-contact-form .wpcf7-not-valid-tip {
  color: var(--accent);
  font-size: 13px;
  margin-top: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .bb-page-hero { padding: 60px 18px 40px; }
  .bb-about-grid, .bb-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .bb-about-images { grid-template-columns: 1fr 1fr; }
  .bb-about-images > *:nth-child(2) { transform: none; }
  .bb-look-grid { grid-template-columns: 1fr 1fr; }
  .bb-stories { grid-template-columns: 1fr; }
}
/* ============== PAGE TRANSITIONS ============== */
.bb-curtain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: var(--accent, #E63329);
  transform: translate(0%, 100%);
  transition: transform .75s cubic-bezier(.76, 0, .24, 1);
  display: grid;
  place-items: center;
  will-change: transform;
}
.bb-curtain.is-covering { pointer-events: auto; }

.bb-curtain-logo {
  width: clamp(120px, 16vw, 240px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: scale(.92);
  transition: opacity .35s ease .15s, transform .55s cubic-bezier(.2,.8,.2,1) .15s;
}
.bb-curtain.is-covering .bb-curtain-logo {
  opacity: 1;
  transform: scale(1);
}

/* === Stato "appena arrivati": curtain ferma a copertura, senza animazione === */
html.bb-curtain-arriving .bb-curtain {
  transform: translate(0%, 0%);
  transition: none;
}
html.bb-curtain-arriving .bb-curtain-logo {
  opacity: 1;
  transform: scale(1);
  transition: none;
}

/* L'opacity:0 del body annullerebbe la visibilità della curtain — annullala */
html.bb-curtain-arriving body {
  opacity: 1 !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .bb-curtain { display: none; }
}
/* ============== WORDPRESS / ELEMENTOR HELPERS ============== */

/* Reveal on load */
body { opacity: 0; transition: opacity .6s ease; }
body.bb-reveal-in { opacity: 1; }

/* Image frame wrapper for widgets that render either an image or a striped placeholder */
.bb-image-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #1A1A18 0 24px, rgba(255,255,255,0.04) 24px 25px);
}
.bb-image-frame[data-tone="light"] {
  background: repeating-linear-gradient(135deg, #D9D2C5 0 24px, rgba(0,0,0,0.05) 24px 25px);
}
.bb-image-frame img {
  /*position: absolute; relative*/
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.bb-image-frame .bb-image-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: #EEEAE3;
  mix-blend-mode: difference;
  pointer-events: none;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bb-image-frame[data-has-img="1"] .bb-image-meta { color: #EEEAE3; }
.bb-image-frame .bb-image-meta .bb-image-tag { opacity: 0.85; }
.bb-image-frame .bb-image-meta .bb-image-label { opacity: 0.85; align-self: flex-start; }

/* Section wrappers — for Elementor widget context. They give the design system
   air when widgets are dropped into Elementor's container system without our
   own section padding. */
.elementor-widget-bob-hero,
.elementor-widget-bob-marquee,
.elementor-widget-bob-manifesto,
.elementor-widget-bob-pillars,
.elementor-widget-bob-collection,
.elementor-widget-bob-look-grid,
.elementor-widget-bob-faq,
.elementor-widget-bob-stories,
.elementor-widget-bob-page-hero,
.elementor-widget-bob-stats,
.elementor-widget-bob-contact,
.elementor-widget-bob-footer-cta {
  --bg: var(--bg, #FFFFFF);
  --fg: var(--fg, #0B131F);
  --accent: var(--accent, #E63329);
  color: var(--fg);
}

/* Element-level color tokens for the WP body — Elementor lets users override
   via the Customizer; these are sensible defaults. */
body.bb-root {
  background: var(--bg);
  color: var(--fg);
}


/* .bb-mono utility class (replaces React <Mono> component in widget output) */
.bb-mono {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hide Hello Elementor's default page title since we use page hero widgets */
.elementor-page .page-header { display: none; }
/* ============================================================
   Template-part: site footer (Classic Widgets Edition)
   ============================================================ */
.bb-site-footer {
  border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  background: var(--bg);
  color: var(--fg);
}
.bb-footer-widgets {
  padding: 0;
}

/* Fallback & Meta (Rimasti identici) */
.bb-footer-fallback {
  padding: 80px 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.bb-footer-fallback-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
}
.bb-footer-fallback a { color: var(--accent); }

.bb-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .bb-footer-meta { padding: 16px 18px; }
}

/* ============================================================
   Footer Composer — Widget Classici
   ============================================================ */

/* — Headline Top Area (Puoi inserire questo HTML in un Widget HTML Personalizzato:
     <h2 class="bb-footer-headline">Walk in. Rearrange the air.</h2> ) — */
.bb-footer-top-area {
  padding: 100px 32px 80px;
}
.bb-footer-headline {
  font-family: var(--ff-love);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 105px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: pretty;
}
.bb-footer-headline em,
.bb-footer-headline i { font-style: italic; }
.bb-footer-headline .has-accent-color,
.bb-footer-headline strong { color: var(--accent); font-weight: 400; }

/* — Le 4 Colonne ——————————————————————————— */
.bb-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  padding: 60px 32px 60px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  background-color: var(--bg-grey);
}
.bb-footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stile per i Widget inseriti nelle colonne */
.bb-footer-col .widget {
  margin-bottom: 32px;
}
.bb-footer-col .widget:last-child {
  margin-bottom: 0;
}

/* Kicker mono (Titoli dei Widget di default "h3.bb-widget-title") */
.bb-footer-col h3.bb-widget-title,
.bb-footer-col-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  font-weight: 400;
  margin: 0 0 12px;
}

/* Indirizzo (Se lo scrivi in un normale Widget Testo, usiamo direttamente il tag <p>) */
.bb-footer-widgets .bb-footer-top-area  p,
.bb-footer-address {
  font-family: var(--ff-display);
  font-style: normal;
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
}
.bb-footer-col .widget_text a,
.bb-footer-address a {
  font-style: italic;
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  color: inherit;
}

/* Nav Links (Copre sia un Widget Menu Navigazione classico che un <ul> in un HTML widget) */
.bb-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.bb-footer-col ul li {
  padding: 10px 0;
  /*border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);*/
  margin: 0;
}
.bb-footer-col p, .bb-footer-col ul a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 16px;
  text-decoration: none;
  color: inherit;
  transition: padding-left .3s;
}
.bb-footer-col ul a::after {
  /*content: '→';*/
  opacity: 0.6;
  transition: transform .3s, opacity .3s;
}
.bb-footer-col ul a:hover { padding-left: 12px; }
.bb-footer-col ul a:hover::after { opacity: 1; transform: translateX(4px); }

/* ============================================================
   Contact Form 7 (In un widget Testo o HTML)
   Usa: <div class="bb-newsletter">[contact-form-7 id="..."]</div>
   ============================================================ */
.bb-newsletter { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.bb-newsletter .wpcf7,
.bb-newsletter .wpcf7-form { margin: 0; padding: 0; }
.bb-newsletter .wpcf7-form p { margin: 0 0 12px; }
.bb-newsletter .wpcf7-form p:last-of-type { margin-bottom: 0; }
.bb-newsletter .wpcf7-form label { display: block; width: 100%; }

/* CF7 Inputs & Submit */
.bb-newsletter input[type="email"],
.bb-newsletter input[type="text"],
.bb-newsletter .wpcf7-form-control.wpcf7-text,
.bb-newsletter .wpcf7-form-control.wpcf7-email {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  padding: 10px 0;
  color: inherit;
  font-family: var(--ff-display);
  font-size: 24px;
  font-style: italic;
  outline: none;
  box-shadow: none;
  appearance: none;
}
.bb-newsletter input[type="email"]::placeholder,
.bb-newsletter input[type="text"]::placeholder { opacity: 0.4; }
.bb-newsletter input[type="email"]:focus,
.bb-newsletter input[type="text"]:focus { border-bottom-color: var(--accent); }

.bb-newsletter input[type="submit"],
.bb-newsletter button[type="submit"],
.bb-newsletter .wpcf7-form-control.wpcf7-submit {
  align-self: flex-start;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: inherit;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
  margin-top: 4px;
  width: auto;
}
.bb-newsletter input[type="submit"]:hover,
.bb-newsletter button[type="submit"]:hover,
.bb-newsletter .wpcf7-form-control.wpcf7-submit:hover {
  background: var(--accent);
  color: var(--fg);
}

/* CF7 Messages */
.bb-newsletter .wpcf7-spinner { margin: 0 0 0 12px; background-color: var(--accent); }
.bb-newsletter .wpcf7-response-output {
  border: 0 !important;
  padding: 8px 0 0 !important;
  margin: 8px 0 0 !important;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.bb-newsletter .wpcf7 form.invalid .wpcf7-response-output,
.bb-newsletter .wpcf7 form.unaccepted .wpcf7-response-output { color: var(--accent); }
.bb-newsletter .wpcf7 form.sent .wpcf7-response-output { color: inherit; }
.bb-newsletter .wpcf7-not-valid-tip {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* — Responsive ——————————————————————————————————————————— */
@media (max-width: 900px) {
  .bb-footer-top-area { padding: 60px 18px 40px; }
  .bb-footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 18px 60px;
  }
}
/* ============================================================
   Bob — Field Notes (flip cards)
   3D flip on click — front: image + meta overlay, back: text card
   Widget: class-bob-field-notes.php  ·  JS init: initFieldNotes()
   ============================================================ */
/* The cards have no intrinsic width (aspect-ratio + absolute faces), so a
   wrapping flex container (Elementor mobile default) measures the widget at
   ~0 width, sizes it too short and the cards overflow onto the next element.
   An explicit width makes the measurement use the real width. */
.e-con > .elementor-widget-bob-field-notes,
.e-con-inner > .elementor-widget-bob-field-notes { width: 100%; }

.bb-field-notes {
  --bb-fn-aspect: 4 / 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.bb-field-notes[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.bb-field-notes[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.bb-field-notes[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .bb-field-notes[data-cols="4"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .bb-field-notes,
  .bb-field-notes[data-cols="3"],
  .bb-field-notes[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bb-field-notes,
  .bb-field-notes[data-cols="2"],
  .bb-field-notes[data-cols="3"],
  .bb-field-notes[data-cols="4"] { grid-template-columns: 1fr; }
}

.bb-fn-card {
  position: relative;
  width: 100%;
  aspect-ratio: var(--bb-fn-aspect, 4 / 5);
  perspective: 1500px;
  cursor: pointer;
  outline: none;
}
.bb-fn-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.bb-fn-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
}
.bb-fn-card.is-flipped .bb-fn-card-inner { transform: rotateY(180deg); }

.bb-fn-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Front */
.bb-fn-front .bb-image-frame {
  position: absolute;
  inset: 0;
  height: 100%;
}
.bb-fn-flip-hint {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 2;
  color: #EEEAE3;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.bb-fn-card:hover .bb-fn-flip-hint { opacity: 1; transform: translateX(-4px); }

/* Back */
.bb-fn-back {
  transform: rotateY(180deg);
  background: var(--bg);
  color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  padding: 28px 26px 52px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.bb-fn-back[data-tone="light"] {
  background: #EEEAE3;
  color: #0E0E0C;
  border-color: color-mix(in srgb, #0E0E0C 22%, transparent);
}
.bb-fn-back-kicker {
  opacity: 0.55;
  flex: 0 0 auto;
}
.bb-fn-back-title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.bb-fn-back-text {
  flex: 1 1 auto;
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.85;
  overflow: auto;
}
.bb-fn-back-text p { margin: 0 0 10px; }
.bb-fn-back-text p:last-child { margin-bottom: 0; }
.bb-fn-cta {
  align-self: flex-start;
  margin-top: 4px;
}
.bb-fn-back-hint {
  position: absolute;
  bottom: 16px;
  right: 20px;
  opacity: 0.4;
  pointer-events: none;
}
@media (max-width: 900px) {
  .bb-fn-back { padding: 22px 20px 46px; gap: 10px; }
}

/* Respect reduced motion — fade instead of flip */
@media (prefers-reduced-motion: reduce) {
  .bb-fn-card-inner { transition: opacity .3s; transform-style: flat; }
  .bb-fn-card.is-flipped .bb-fn-card-inner { transform: none; }
  .bb-fn-face { transition: opacity .3s; }
  .bb-fn-back { transform: none; opacity: 0; pointer-events: none; }
  .bb-fn-card.is-flipped .bb-fn-front { opacity: 0; pointer-events: none; }
  .bb-fn-card.is-flipped .bb-fn-back  { opacity: 1; pointer-events: auto; }
}


/* ============================================================
   SINGLE POST template (single.php)
   Editorial long-form layout — hero, feature image, prose body,
   tags + share, author bio, prev/next, related grid.
   ============================================================ */
.bb-single { display: block; }

/* ── Hero ───────────────────────────────────────────────────── */
.bb-single-hero {
  padding: 120px 32px 56px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
}
.bb-single-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.bb-single-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.bb-single-kicker .bb-mono { text-decoration: none; color: inherit; }
.bb-single-kicker a.bb-mono:hover { color: var(--accent); }

.bb-single-title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 7.5vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.bb-single-lede {
  max-width: 720px;
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.4;
  opacity: 0.85;
  text-wrap: pretty;
}

.bb-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
}
.bb-single-meta > div { display: flex; flex-direction: column; gap: 6px; }
.bb-single-meta > div > span:last-child {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.1;
}

/* ── Feature image ──────────────────────────────────────────── */
.bb-single-feature {
  margin: 0;
  padding: 56px 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.bb-single-feature img {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.02);
}
.bb-single-feature figcaption {
  max-width: 1400px;
  margin: 16px auto 0;
  opacity: 0.5;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Body / prose ───────────────────────────────────────────── */
.bb-single-body {
  padding: 80px 32px;
  max-width: 760px;
  margin: 0 auto;
}

.bb-prose {
  font-family: var(--ff-display);
  font-size: 21px;
  line-height: 1.6;
  color: var(--fg);
  text-wrap: pretty;
}
.bb-prose > * + * { margin-top: 1.2em; }
.bb-prose p { margin: 0; }
.bb-prose p:first-of-type::first-letter {
  font-style: italic;
  font-size: 2.2em;
  float: left;
  line-height: 0.9;
  padding: 4px 12px 0 0;
  color: var(--accent);
}

.bb-prose h2,
.bb-prose h3,
.bb-prose h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 1.8em 0 0.4em;
  text-wrap: balance;
}
.bb-prose h2 { font-size: clamp(32px, 3.4vw, 48px); }
.bb-prose h3 { font-size: clamp(26px, 2.4vw, 32px); font-style: italic; }
.bb-prose h4 { font-size: 22px; font-style: italic; opacity: 0.85; }

.bb-prose strong { font-weight: 600; }
.bb-prose em { font-style: italic; }
.bb-prose a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 35%, transparent);
  transition: border-color .25s, color .25s;
}
.bb-prose a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.bb-prose ul, .bb-prose ol { padding-left: 1.2em; margin: 0; }
.bb-prose li { margin: 0.4em 0; }

.bb-prose blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--accent);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.bb-prose blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

.bb-prose img,
.bb-prose figure,
.bb-prose .wp-block-image {
  margin: 2em 0;
}
.bb-prose figure img { width: 100%; height: auto; display: block; }
.bb-prose figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

.bb-prose .alignwide,
.bb-prose .wp-block-image.alignwide {
  margin-left: calc(50% - 50vw + 32px);
  margin-right: calc(50% - 50vw + 32px);
  max-width: none;
}
.bb-prose .alignfull,
.bb-prose .wp-block-image.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.bb-prose hr {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  margin: 3em 0;
  text-align: center;
}
.bb-prose hr::after {
  content: '⁂';
  display: inline-block;
  position: relative;
  top: -0.9em;
  background: var(--bg);
  padding: 0 16px;
  color: var(--accent);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
}

.bb-prose code,
.bb-prose pre {
  font-family: var(--mono);
  font-size: 14px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border-radius: 4px;
}
.bb-prose code { padding: 2px 6px; }
.bb-prose pre {
  padding: 20px 24px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 1.6em 0;
}
.bb-prose pre code { background: transparent; padding: 0; }

.bb-prose-pagelinks {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  opacity: 0.5;
}

/* ── Single footer (tags + share) ──────────────────────────── */
.bb-single-footer {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.bb-single-tags,
.bb-single-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.bb-tag-chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  transition: border-color .25s, color .25s;
}
.bb-tag-chip:hover { color: var(--accent); border-color: var(--accent); }
.bb-copy-link {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.bb-copy-link.is-copied { color: var(--accent); }

/* ── Author bio ─────────────────────────────────────────────── */
.bb-single-author {
  margin-top: 60px;
  padding: 32px;
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
}
.bb-single-author-img img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.2);
}
.bb-single-author-text { display: flex; flex-direction: column; gap: 8px; }
.bb-single-author-text h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 400;
}
.bb-single-author-text p { margin: 0; opacity: 0.8; line-height: 1.55; font-size: 15px; }

/* ── Prev / Next ────────────────────────────────────────────── */
.bb-single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
}
.bb-single-nav-cell { padding: 48px 32px; min-height: 140px; }
.bb-single-nav-cell:first-child {
  border-right: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
}
.bb-single-nav-cell a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.bb-single-nav-prev a:hover { transform: translateX(-6px); }
.bb-single-nav-next a:hover { transform: translateX(6px); }
.bb-single-nav-next { text-align: right; }
.bb-single-nav-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ── Related ────────────────────────────────────────────────── */
.bb-single-related .bb-section-head a { text-decoration: none; color: inherit; }
.bb-single-related .bb-section-head a:hover { color: var(--accent); }

/* ── Comments ───────────────────────────────────────────────── */
.bb-single-comments .commentlist,
.bb-single-comments ol.comment-list { list-style: none; padding: 0; margin: 0; }
.bb-single-comments .comment {
  padding: 24px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
}
.bb-single-comments .comment-author { font-family: var(--ff-display); font-style: italic; font-size: 20px; }
.bb-single-comments .comment-meta,
.bb-single-comments .comment-metadata {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}
.bb-single-comments .comment-form { margin-top: 32px; max-width: 720px; }
.bb-single-comments .comment-form input[type="text"],
.bb-single-comments .comment-form input[type="email"],
.bb-single-comments .comment-form input[type="url"],
.bb-single-comments .comment-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  padding: 12px 0;
  color: inherit;
  font-family: var(--ff-display);
  font-size: 18px;
  outline: none;
}
.bb-single-comments .comment-form input:focus,
.bb-single-comments .comment-form textarea:focus { border-color: var(--accent); }
.bb-single-comments .comment-form .submit,
.bb-single-comments .form-submit input[type="submit"] {
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--ui);
  font-size: 14px;
  color: inherit;
  cursor: pointer;
  transition: background .3s, color .3s;
  margin-top: 12px;
}
.bb-single-comments .comment-form .submit:hover,
.bb-single-comments .form-submit input[type="submit"]:hover {
  background: var(--accent);
  color: var(--fg);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bb-single-hero { padding: 60px 18px 32px; }
  .bb-single-meta { gap: 24px 32px; }
  .bb-single-meta > div > span:last-child { font-size: 20px; }
  .bb-single-feature { padding: 32px 18px; }
  .bb-single-body { padding: 48px 18px; }
  .bb-prose { font-size: 19px; }
  .bb-single-author { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .bb-single-nav { grid-template-columns: 1fr; }
  .bb-single-nav-cell { padding: 28px 18px; min-height: 0; }
  .bb-single-nav-cell:first-child {
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  }
  .bb-single-nav-next, .bb-single-nav-next a { text-align: left; align-items: flex-start; }
  .bb-prose .alignwide, .bb-prose .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }
}

/* ============================================================
   Bob — Collection Carousel
   Pin-and-scrub on desktop · native scroll-snap on mobile.
   Markup ref: widgets/class-bob-collection-carousel.php
   JS: initCollectionCarousel() in assets/js/bob-design.js
   ============================================================ */
.bb-cc {
  --bb-cc-card-w: 32vw;
  --bb-cc-card-aspect: 4 / 5;
  --bb-cc-gap: 32px;
  overflow: visible;
}
.bb-cc .bb-section-head a { color: var(--fg); text-decoration: none;
  margin: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 21px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: none;
  text-transform: none;
}
.bb-cc .bb-section-head a:hover { color: var(--accent); }

/* ── Title row (re-uses .bb-collection-title styles, but standalone) — */
.bb-cc-title {
  display: flex;
  justify-content: end; /*space-between*/
  align-items: baseline;
  gap: 0px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}
.bb-cc-title h2 {
  margin: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.bb-cc-title h2 > span { display: inline-block; }
.bb-cc-year {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--accent);
  opacity: 0.85;
}

/* ── Stage/pin/viewport: plain normal-flow containers. Cards scroll
   with the page like any other content — nothing hijacks the wheel. ── */
.bb-cc-stage {
  position: relative;
}

.bb-cc-pin {
  position: relative;
  overflow: visible;
}

.bb-cc-viewport {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* ── Overlay: wraps the counter + progress bar. Each of them sticks
   to its own viewport edge independently (see below) while the
   section is on screen, then scrolls away normally once the last
   card has passed — no shared full-viewport box, so nothing can
   spill into whatever section comes next. ── */
.bb-cc-overlay {
  position: relative;
  pointer-events: none;
  z-index: 3;
}
.bb-cc-overlay > * { pointer-events: auto; }

/* Swipe mode keeps the original viewport-relative overlay. */
.bb-cc[data-mode="swipe"] .bb-cc-overlay {
  position: absolute;
  inset: 0;
}

.bb-cc-meta {
  position: absolute;
  bottom: 60px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(420px, 38vw);
  mix-blend-mode: difference;
  color: #EEEAE3;
  transition: opacity .35s;
}
.bb-cc-meta-capsule { opacity: 0.65; margin-bottom: 8px;color: var(--fg); }
.bb-cc-meta-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(72px, 9vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.bb-cc-meta-name {
  margin: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.bb-cc-meta-mat { opacity: 0.55; margin-top: 4px;color: var(--fg);  }

/* Crossfade animation when content changes */
.bb-cc-meta.is-changing { opacity: 0.2; }

.bb-cc-counter {
  position: sticky;
  top: 32px;
  margin: 0 40px 0 auto;
  width: fit-content;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  gap: 4px;
  align-items: baseline;
  color: #EEEAE3;
  mix-blend-mode: difference;
}
.bb-cc-counter-current { font-size: 16px; letter-spacing: 0.05em; }
.bb-cc-counter-sep, .bb-cc-counter-total { opacity: 0.5; }

.bb-cc-progress {
  position: sticky;
  bottom: 32px;
  margin: 0 40px 0 auto;
  width: clamp(160px, 28vw, 480px);
  height: 1px;
  background: color-mix(in srgb, #EEEAE3 25%, transparent);
  mix-blend-mode: difference;
}
.bb-cc[data-mode="swipe"] .bb-cc-counter,
.bb-cc[data-mode="swipe"] .bb-cc-progress {
  position: absolute;
  margin: 0;
  right: 40px;
}
.bb-cc[data-mode="swipe"] .bb-cc-counter { top: 32px; width: auto; }
.bb-cc[data-mode="swipe"] .bb-cc-progress { bottom: 32px; }
.bb-cc-progress-fill {
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .12s linear;
}

.bb-cc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid color-mix(in srgb, #EEEAE3 30%, transparent);
  color: #EEEAE3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 18px;
  cursor: pointer;
  mix-blend-mode: difference;
  transition: background .25s, color .25s, border-color .25s;
  z-index: 4;
}
.bb-cc-nav:hover { background: var(--accent); color: var(--fg); border-color: var(--accent); }
.bb-cc-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.bb-cc-nav-prev { left: 40px; }
.bb-cc-nav-next { right: 40px; }
.bb-cc[data-mode="scrub"] .bb-cc-nav { display: none; }

/* ── Track + slides — normal vertical stack ──────────────────── */
.bb-cc-track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bb-cc-gap);
  padding: 6vh 0 10vh;
}
.bb-cc[data-mode="swipe"] .bb-cc-track {
  flex-direction: row;
  align-items: stretch;
  padding: 0 32px;
  margin-top: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  will-change: scroll-position;
}
.bb-cc[data-mode="swipe"] .bb-cc-track::-webkit-scrollbar { display: none; }

.bb-cc-slide {
  position: relative;
  flex: 0 0 auto;
  width: var(--bb-cc-card-w);
  max-width: 600px;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s, filter .35s;
}
.bb-cc[data-mode="swipe"] .bb-cc-slide {
  scroll-snap-align: center;
  flex-basis: 78vw;
  width: auto;
  max-width: 480px;
}

.bb-cc-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.bb-cc-slide-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--bb-cc-card-aspect);
  overflow: hidden;
}
.bb-cc-slide-frame .bb-image-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bb-cc-slide-frame .bb-image-frame img {
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.bb-cc-slide.is-active .bb-cc-slide-frame .bb-image-frame img {
  transform: scale(1.04);
}

/* Distance-based attenuation is set via inline transform/opacity/filter
   from JS in vertical ("scrub") mode. Provide a safe baseline. */
.bb-cc[data-mode="scrub"] .bb-cc-slide {
  opacity: 0.7;
  transform: scale(0.94);
  filter: blur(1px);
}
.bb-cc[data-mode="scrub"] .bb-cc-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

/* Subtle accent edge on the active slide */
.bb-cc-slide.is-active .bb-cc-slide-frame::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid color-mix(in srgb, var(--accent) 80%, transparent);
  pointer-events: none;
}

/* Per-slide caption (only meaningful in swipe mode) */
.bb-cc-slide-caption {
  display: none;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
}
.bb-cc-slide-caption .bb-mono { opacity: 0.5; font-style: normal; }
.bb-cc[data-mode="swipe"] .bb-cc-slide-caption { display: flex; }

/* ── Collection Carousel — mobile ─────────────────────────────── */
@media (max-width: 900px) {

  /* Cards più larghe su mobile */
  .bb-cc {
    --bb-cc-card-w: 90vw;
  }

  .bb-cc-slide,
  .bb-cc-slide-link,
  .bb-cc-slide-frame {
    width: 90vw !important;
    min-width: 90vw !important;
    max-width: 90vw !important;
    flex-shrink: 0;
  }

  .bb-cc-meta {
    position: absolute;
    bottom: 80px;
    left: 18px;
    right: 18px;
    text-align: left;
  }

  /* Nome look più grande su mobile */
  .bb-cc-meta-name {
    font-size: clamp(28px, 7vw, 40px);
  }

  /* Counter in alto a destra */
  .bb-cc-counter {
    top: 20px;
    margin-right: 18px;
  }

  /* Progress bar in basso, a tutta larghezza */
  .bb-cc-progress {
    bottom: 0;
    margin: 0;
    width: 100%;
  }
  .bb-cc[data-mode="swipe"] .bb-cc-counter { right: 18px; }
  .bb-cc[data-mode="swipe"] .bb-cc-progress { left: 0; right: 0; }

  /* Frecce nav: più grandi e più in basso */
  .bb-cc-nav {
    bottom: 36px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .bb-cc-nav-prev { left: 18px; }
  .bb-cc-nav-next { right: 18px; }

  /* Caption sotto la card: nascosta in scrub mode,
     il meta overlay fa già questo lavoro */
  .bb-cc-slide-caption {
    display: none;
  }

  /* Riduci il scrollPerSlide visivamente aumentando
     lo spazio tra slide per dare respiro */
  .bb-cc-track {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bb-cc-slide { transition: none; filter: none !important; }
  .bb-cc[data-mode="scrub"] .bb-cc-slide-frame .bb-image-frame img { transition: none; }
}
/* ============================================================
   Bob — Subpages Grid
   Grid of the current page's child pages — background-image card,
   dark gradient to bottom, white title bottom-left, whole card linked.
   Widget: class-bob-subpages-widget.php
   ============================================================ */
.bb-subpages {
  --bb-sp-aspect: 4 / 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bb-subpages[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.bb-subpages[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.bb-subpages[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.bb-subpages[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }

.bb-subpages-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--bb-sp-aspect, 4 / 5);
  overflow: hidden;
  text-decoration: none;
}

.bb-subpages-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1A1A18;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.bb-subpages-card:hover .bb-subpages-media { transform: scale(1.04); }
/* No image (and no fallback set) — same striped placeholder used elsewhere */
.bb-subpages-media[data-has-img="0"] {
  background-image: repeating-linear-gradient(135deg, #1A1A18 0 24px, rgba(255,255,255,0.04) 24px 25px) !important;
}

.bb-subpages-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 72%);
  pointer-events: none;
}

.bb-subpages-title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  margin: 0;
  color: #FFFFFF;
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .bb-subpages[data-cols="3"],
  .bb-subpages[data-cols="4"],
  .bb-subpages[data-cols="5"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bb-subpages,
  .bb-subpages[data-cols="2"],
  .bb-subpages[data-cols="3"],
  .bb-subpages[data-cols="4"],
  .bb-subpages[data-cols="5"] { grid-template-columns: 1fr; }
}
.iub__us-widget__link{ font-family: inherit !important;}
