*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: 68px;
  overflow-x: clip;
  background: var(--nlc-bg);
  color: var(--nlc-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

a:hover {
  color: var(--nlc-primary);
}

img,
video {
  max-width: 100%;
}

/* Header */
.nlc-custom-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1200;
  margin: 0;
  background: rgba(244, 242, 236, .98);
  border-bottom: 1px solid rgba(22, 44, 55, .10);
}

body.admin-bar .nlc-custom-header {
  top: 32px;
}

.nlc-custom-header__inner {
  width: min(1440px, calc(100% - 68px));
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nlc-custom-header__brand {
  color: var(--nlc-ink);
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.nlc-custom-header__desktop {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nlc-custom-header__desktop a {
  position: relative;
  color: var(--nlc-ink);
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
}

.nlc-custom-header__desktop a:hover,
.nlc-custom-header__desktop a.is-active {
  color: var(--nlc-primary);
}

.nlc-custom-header__desktop a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--nlc-primary);
}

.nlc-mobile-toggle {
  display: none;
  appearance: none;
  width: 34px;
  height: 34px;
  padding: 7px 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nlc-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--nlc-ink);
}

.nlc-mobile-backdrop,
.nlc-mobile-drawer {
  display: none;
}

/* Footer */
.nlc-footer {
  margin: 0;
  background: var(--nlc-bg);
  border-top: 1px solid var(--nlc-border);
}

.nlc-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-block: 2.5rem;
}

.nlc-footer__small {
  display: flex;
  flex-direction: column;
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nlc-footer__rule {
  height: 1px;
  background: var(--nlc-muted);
}

.nlc-footer__slogan {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.045em;
}

.nlc-footer__slogan strong {
  color: var(--nlc-primary);
  font-weight: inherit;
}

@media (max-width: 1000px) {
  .nlc-footer__inner {
    grid-template-columns: 1fr;
  }

  .nlc-footer__rule {
    width: 100%;
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 62px;
  }




  body.admin-bar .nlc-custom-header {
    top: 46px;
  }

  .nlc-custom-header__inner {
    width: calc(100% - 32px);
    min-height: 62px;
  }

  .nlc-custom-header__desktop {
    display: none;
  }

  .nlc-mobile-toggle {
    display: block;
  }

  .nlc-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1198;
    background: rgba(9, 19, 22, .58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
  }

  .nlc-mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1199;
    width: min(78vw, 360px);
    height: 100dvh;
    padding: 28px 28px 34px;
    flex-direction: column;
    background: var(--nlc-ink);
    color: #fff;
    transform: translateX(100%);
    transition: transform .26s ease;
    overflow-y: auto;
    box-shadow: -24px 0 50px rgba(0, 0, 0, .24);
  }

  body.admin-bar .nlc-mobile-drawer {
    top: 46px;
    height: calc(100dvh - 46px);
  }

  body.nlc-menu-open {
    overflow: hidden;
  }

  body.nlc-menu-open .nlc-mobile-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nlc-menu-open .nlc-mobile-drawer {
    transform: translateX(0);
  }

  .nlc-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.6rem;
  }

  .nlc-mobile-drawer__head strong {
    font-size: 1.05rem;
    line-height: 1.1;
    letter-spacing: -.03em;
  }

  .nlc-mobile-close {
    position: relative;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nlc-mobile-close span {
    position: absolute;
    top: 17px;
    left: 5px;
    width: 27px;
    height: 2px;
    background: #fff;
  }

  .nlc-mobile-close span:first-child {
    transform: rotate(45deg);
  }

  .nlc-mobile-close span:last-child {
    transform: rotate(-45deg);
  }

  .nlc-mobile-drawer__nav {
    display: grid;
    gap: 0;
  }

  .nlc-mobile-drawer__nav a {
    display: block;
    padding: 13px 0;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 500;
    text-decoration: none;
  }

  .nlc-mobile-drawer__rule {
    width: 100%;
    height: 1px;
    margin: 1.6rem 0;
    background: rgba(255, 255, 255, .45);
  }

  .nlc-mobile-drawer__contacts {
    display: grid;
    gap: 1rem;
  }

  .nlc-mobile-drawer__contacts a,
  .nlc-mobile-drawer__contacts > div {
    display: flex;
    align-items: center;
    gap: .9rem;
    color: #fff;
    font-size: .95rem;
    line-height: 1.25;
    text-decoration: none;
  }

  .nlc-mobile-drawer__contacts svg {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
  }

  .nlc-mobile-drawer__slogan {
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: .16rem;
    font-size: .82rem;
    line-height: 1.15;
    letter-spacing: .16em;
  }

  .nlc-mobile-drawer__slogan strong {
    color: var(--nlc-primary);
    font-weight: 800;
  }
}


@media (max-width: 420px) {
  .nlc-custom-header__inner {
    width: calc(100% - 24px);
  }

  .nlc-mobile-drawer {
    width: 80vw;
    padding: 26px 24px 30px;
  }

  .nlc-mobile-drawer__nav a {
    font-size: 1.25rem;
  }

  .nlc-mobile-drawer__contacts a,
  .nlc-mobile-drawer__contacts > div {
    font-size: .88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
  }
}

.wp-site-blocks > .nlc-home-content { margin-block: 0; }

/* 0.9.0-rc10 — Logo nell'header (Aspetto → Personalizza → Identità del sito) */
.nlc-custom-header__brand,
.nlc-mobile-drawer__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.nlc-brand-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: none;
}
.nlc-mobile-drawer__brand .nlc-brand-logo { height: 32px; }
@media (max-width: 781px) {
  .nlc-custom-header__brand .nlc-brand-logo { height: 30px; }
}
