/* ============================================================
   BoLOVEgna — Header & Footer
   ============================================================ */

/* ── Topbar ── */
.topbar {
  background: var(--color-avorio);
  border-bottom: var(--border-thin);
  padding: 7px 0;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.topbar__social {
  display: flex;
  gap: var(--space-md);
}

.topbar__social a {
  color: var(--color-ink-soft);
  transition: color var(--ease-std);
}

.topbar__social a:hover {
  color: var(--color-terracotta);
}

/* ── Main header ── */
.site-header {
  border-bottom: var(--border-thin);
}

.site-header__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg) 0 0;
}

.site-header__logo {
 /* height: 90px; */
 /* width: auto; */
  object-fit: contain;
  margin-bottom: var(--space-xs);
  transition: opacity var(--ease-std);
}

.site-header__logo:hover {
  opacity: 0.85;
}

.site-header__tagline {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-md);
}

/* ── Primary navigation ── */
.site-nav {
  display: flex;
  gap: var(--space-2xl);
  padding: var(--space-sm) 0;
  border-top: var(--border-thin);
  margin-top: var(--space-xs);
}

.site-nav__item {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-mid);
  font-weight: 500;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid transparent;
  transition: color var(--ease-std), border-color var(--ease-std);
}

/* .site-nav__item::first-letter { */
/*   background-image: url("../images/favicon600x600.svg"); */
/*   background-origin: padding-box; */
/*   background-position: 0 9px; */
/*   background-repeat: no-repeat; */
/*   background-size: 16px 16px; */
/*   color: transparent; */
/*   font-size: 22px; */
/* } */

.site-nav__item:hover,
.site-nav__item.is-active {
  color: var(--color-terracotta);
  border-bottom-color: var(--color-terracotta);
}

/* ── Mobile header ── */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--gutter-mobile);
  border-bottom: var(--border-thin);
}

.mobile-header__logo {
  height: 52px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-ink-mid);
  transition: transform var(--ease-std), opacity var(--ease-std);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--color-avorio);
  border-bottom: var(--border-thin);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.mobile-nav.is-open {
  max-height: 400px;
}

.mobile-nav__item {
  padding: var(--space-md) var(--gutter-mobile);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-mid);
  border-bottom: var(--border-thin);
  font-weight: 500;
  transition: color var(--ease-std);
}

.mobile-nav__item:last-child {
  border-bottom: none;
}

.mobile-nav__item:hover,
.mobile-nav__item.is-active {
  color: var(--color-terracotta);
}

/* Nav pills (mobile category scroll) */
.nav-pills {
  display: none;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--gutter-mobile);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: var(--border-thin);
  background: var(--color-avorio);
}

.nav-pills::-webkit-scrollbar { display: none; }

.nav-pills__item {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 0;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  transition: border-color var(--ease-std), color var(--ease-std);
  white-space: nowrap;
}

.nav-pills__item.is-active,
.nav-pills__item:hover {
  background: transparent;
  color: var(--color-terracotta);
  border-bottom: 2px solid var(--color-terracotta);
}

/* ── Footer ── */
.site-footer {
  background: var(--color-ink);
  padding: var(--space-xl) 0;
  /* margin-top: var(--space-2xl); */
  flex-shrink: 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding-bottom: var(--space-xl);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-lg);
}

.footer-brand__logo-text {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--color-avorio);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.footer-brand__logo-text .wordmark {
  font-size: 28px;
  display: inline;
}

.footer-brand__tagline {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,246,240,0.4);
}

.footer-brand__logo {
  width: 150px;
  height: 39px;
  max-width: 100%;
  margin-bottom: var(--space-sm);
  object-fit: contain;
}

@media (max-width: 182px) {
  .footer-brand__logo {
    width: 100%;
    height: auto;
  }
}

.footer-nav__title {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,246,240,0.4);
  margin-bottom: var(--space-md);
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav__item {
  font-size: 13px;
  color: rgba(250,246,240,0.65);
  transition: color var(--ease-std);
}

.footer-nav__item:hover {
  color: var(--color-avorio);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(250,246,240,0.3);
}

/* ── Responsive breakpoints ── */
@media (max-width: 960px) {
  .site-header__top    { display: none; }
  .mobile-header       { display: flex; }
  .mobile-nav          { display: flex; }
  .nav-pills           { display: flex; }

  .site-footer__inner  {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ── Header wordmark (font custom con B-logo) ───────────────────
   Il wordmark resta testo puro; il glifo iniziale B arriva dal font.
   ────────────────────────────────────────────────────────────── */
.site-header__wordmark {
  font-size: 52px;
  margin-bottom: var(--space-xs);
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.mobile-header__wordmark {
  font-size: 32px;
  text-decoration: none;
  display: block;
  overflow: hidden;
}
