/* finesse · register=brand · A=olive+ivory · B=800/400 · C=editorial-split
 * D=CSS-only transitions · E=linen-paper · SOUL=7 SPECTACLE=4 DENSITY=4
 * ==========================================================================
   NEVEITALIA — UI v8 fix layer
   Loaded AFTER main.css. Purpose: one authoritative surface for
   (a) global chrome (header states, footer v2), (b) craft-floor repairs,
   (c) components whose earlier main.css rules collide (last-wins bugs).
   Keep this file append-only per page family; page files live in
   assets/css/fix-*.css and load after this one.
   ========================================================================== */

:root {
  --nv-ivory: #FAF9F4;
  --nv-ivory-deep: #F2F0E7;
  --nv-ink: #1B221A;
  --nv-ink-soft: #3B4538;
  --nv-olive: #3D473C;
  --nv-olive-deep: #262E25;
  --nv-line: rgba(27, 34, 26, 0.12);
  --nv-line-strong: rgba(27, 34, 26, 0.2);
  --nv-line-inv: rgba(250, 249, 244, 0.16);
  --nv-text-inv: #F4F2E9;
  --nv-text-inv-soft: rgba(244, 242, 233, 0.66);
  --nv-header-h: 92px;
  --nv-header-h-scrolled: 72px;
  --nv-header-h-mobile: 64px;
  --nv-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- craft floor */
html,
body {
  overflow-x: clip;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--nv-olive);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: rgba(61, 71, 60, 0.16);
}

/* ---------------------------------------------------------------- header base */
/* header skin: superseded 2026-10-27 — the header chrome now lives in
   functions.php #nv-ui-critical (evergocasa-spec: black top-bar + white
   navbar). The rules that stood here were removed to avoid cascade fights. */

/* hero clearance: handled by body padding-top in #nv-ui-critical. */

/* ==========================================================================
   FOOTER v2 — dark olive band, editorial columns, both breakpoints
   ========================================================================== */
body .site-footer {
  padding: 0;
  margin-top: 0;
  background: var(--nv-olive-deep);
  color: var(--nv-text-inv);
  border-top: 0;
  position: relative;
  isolation: isolate;
}

body .site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--nv-grain);
  opacity: .035;
  pointer-events: none;
  z-index: 0;
}

body .site-footer > .container-xl,
body .site-footer > .nv-foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 48px;
}

.nv-foot__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 88px);
  padding: clamp(56px, 6vw, 88px) 0 clamp(44px, 4vw, 64px);
}

.nv-foot__logo-link {
  display: inline-block;
  margin-bottom: 22px;
}

.nv-foot__logo {
  display: block;
  width: auto;
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 1 !important;
}

.nv-foot__lede {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--nv-text-inv-soft);
  max-width: 34ch;
  margin: 0 0 26px;
}

.nv-foot__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(250, 249, 244, .34);
  color: var(--nv-text-inv) !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.nv-foot__cta svg {
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.nv-foot__cta:hover {
  background: var(--nv-ivory);
  border-color: var(--nv-ivory);
  color: var(--nv-ink) !important;
}

.nv-foot__cta:hover svg {
  transform: translateX(4px);
}

.nv-foot__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.nv-foot__badges li {
  font-family: var(--primitive-font-mono, ui-monospace, monospace);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244, 242, 233, .5);
  border: 1px solid rgba(250, 249, 244, .16);
  padding: 5px 9px;
  white-space: nowrap;
}

.nv-foot__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.nv-foot__label {
  margin: 0 0 18px;
  font-family: var(--primitive-font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244, 242, 233, .42);
}

.nv-foot__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nv-foot__list li + li {
  margin-top: 10px;
}

.nv-foot__list a {
  color: rgba(244, 242, 233, .82);
  font-size: 13.5px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
  display: inline-block;
}

.nv-foot__list a:hover {
  color: #FAF9F4;
  transform: translateX(3px);
}

.nv-foot__contact-line {
  display: block;
  margin: 0 0 14px;
  color: rgba(244, 242, 233, .82);
  font-size: 13.5px;
  line-height: 1.55;
  text-decoration: none;
}

.nv-foot__contact-line b {
  display: block;
  font-family: var(--primitive-font-mono, ui-monospace, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 242, 233, .4);
  margin-bottom: 3px;
}

a.nv-foot__contact-line:hover {
  color: #FAF9F4;
}

.nv-foot__social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.nv-foot__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 249, 244, .18);
  border-radius: 50%;
  color: rgba(244, 242, 233, .8);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.nv-foot__social a:hover {
  background: var(--nv-ivory);
  border-color: var(--nv-ivory);
  color: var(--nv-ink);
  transform: translateY(-2px);
}

.nv-foot__social svg {
  width: 15px;
  height: 15px;
  display: block;
}

.nv-foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--nv-line-inv);
  font-size: 12px;
  color: rgba(244, 242, 233, .46);
}

.nv-foot__copy {
  margin: 0;
}

.nv-foot__legal {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nv-foot__legal a {
  color: rgba(244, 242, 233, .58);
  text-decoration: none;
  transition: color .2s ease;
}

.nv-foot__legal a:hover {
  color: #FAF9F4;
}

.nv-foot__totop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 242, 233, .58) !important;
  font-family: var(--primitive-font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}

.nv-foot__totop:hover {
  color: #FAF9F4 !important;
}

/* preferred-source widget sits in the gap above the legal row, left-aligned */
body .site-footer__preferred {
  padding: 0 0 22px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 0;
}

body .site-footer__preferred [google-add-preferred-source-btn] {
  opacity: .82;
  transition: opacity .2s ease;
}

body .site-footer__preferred [google-add-preferred-source-btn]:hover {
  opacity: 1;
}

/* legacy footer pieces that still render inside other templates */
body .site-footer a {
  color: rgba(244, 242, 233, .8);
}

body .site-footer a:hover {
  color: #FAF9F4;
}

@media (max-width: 1024px) {
  .nv-foot__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 40px 36px;
  }

  .nv-foot__contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    align-items: start;
  }

  .nv-foot__contact .nv-foot__label {
    grid-column: 1 / -1;
  }

  .nv-foot__social {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  body .site-footer > .container-xl,
  body .site-footer > .nv-foot {
    padding: 0 20px;
  }

  .nv-foot__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 44px 0 36px;
  }

  .nv-foot__logo {
    height: 26px;
  }

  .nv-foot__lede {
    max-width: none;
    font-size: 14px;
  }

  .nv-foot__cta {
    width: 100%;
    justify-content: center;
  }

  .nv-foot__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 24px;
  }

  .nv-foot__contact {
    display: block;
    padding-top: 26px;
    border-top: 1px solid var(--nv-line-inv);
  }

  .nv-foot__contact-line {
    font-size: 14px;
  }

  .nv-foot__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 0 14px;
    font-size: 12.5px;
  }

  .nv-foot__legal {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .nv-foot__list a,
  .nv-foot__legal a {
    padding: 2px 0;
  }

  body .site-footer__preferred {
    padding-bottom: 22px;
  }
}

/* ==========================================================================
   CATEGORY CARD component (restores the image-card design that a later
   legacy block in main.css overwrote with icon-card padding)
   ========================================================================== */
.nv-cat-page .nv-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.nv-cat-page .nv-cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #EDEAE1;
  padding: 0;
  padding-top: 128%;
  border: 0;
  border-radius: 0;
  text-align: left;
  text-decoration: none;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s cubic-bezier(.22, 1, .36, 1);
}

.nv-cat-page .nv-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -34px rgba(27, 34, 26, .55);
}

.nv-cat-page .nv-cat-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}

.nv-cat-page .nv-cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24, 30, 23, 0) 34%, rgba(24, 30, 23, .42) 62%, rgba(20, 26, 19, .88) 100%);
  transition: opacity .4s ease;
}

.nv-cat-page .nv-cat-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 26px 24px;
  z-index: 2;
  color: #FAF9F4;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nv-cat-page .nv-cat-card__num {
  font-family: var(--primitive-font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(250, 249, 244, .62);
  border-bottom: 1px solid rgba(250, 249, 244, .24);
  padding-bottom: 8px;
  margin-bottom: 2px;
  display: inline-block;
  align-self: flex-start;
}

.nv-cat-page .nv-cat-card__body h3 {
  font-size: 1.22rem;
  line-height: 1.25;
  color: #FAF9F4;
  margin: 0;
  letter-spacing: -.01em;
}

.nv-cat-page .nv-cat-card__desc {
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(250, 249, 244, .78);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: max-height .45s ease, opacity .35s ease, transform .35s ease;
}

.nv-cat-page .nv-cat-card__link {
  font-family: var(--primitive-font-mono, ui-monospace, monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #FAF9F4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(250, 249, 244, .22);
  opacity: .9;
  transition: gap .3s ease, opacity .3s ease;
}

.nv-cat-page .nv-cat-card:hover > img {
  transform: scale(1.06);
}

.nv-cat-page .nv-cat-card:hover .nv-cat-card__desc {
  max-height: 120px;
  opacity: 1;
  transform: none;
}

.nv-cat-page .nv-cat-card:hover .nv-cat-card__link {
  gap: 14px;
  opacity: 1;
}

@media (hover: none) {
  .nv-cat-page .nv-cat-card__desc {
    max-height: 140px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .nv-cat-page .nv-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .nv-cat-page .nv-cat-card {
    padding-top: 118%;
  }
}

@media (max-width: 560px) {
  .nv-cat-page .nv-cat-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .nv-cat-page .nv-cat-card {
    padding-top: 82%;
  }

  .nv-cat-page .nv-cat-card__body {
    padding: 22px 20px 20px;
  }

  .nv-cat-page .nv-cat-card__desc {
    max-height: 160px;
    opacity: 1;
    transform: none;
  }
}

/* section head rhythm inside category pages */
.nv-cat-page .nv-cat-sec {
  padding: clamp(64px, 8vw, 96px) 24px;
}

.nv-cat-page .nv-cat-sec__head {
  max-width: 760px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.nv-cat-page .nv-cat-sec__head h2 {
  letter-spacing: -.02em;
}

/* ==========================================================================
   FLOATING WIDGETS — keep them in the corners, out of the reading column
   ========================================================================== */
.trp-language-switcher.trp-floating-switcher {
  left: 16px !important;
  bottom: 16px !important;
  right: auto !important;
  z-index: 9000 !important;
  transform: scale(.92);
  transform-origin: bottom left;
}

.trp-language-switcher.trp-floating-switcher .trp-language-item {
  border-radius: 6px;
}

#wa-smart-toast.wa-engagement-bubble {
  max-width: 300px;
  right: 16px !important;
  z-index: 9001 !important;
}

#wa-trigger-btn,
.wa-expand-btn {
  z-index: 9002 !important;
}

@media (max-width: 767px) {
  .trp-language-switcher.trp-floating-switcher {
    left: 10px !important;
    bottom: 10px !important;
    transform: scale(.82);
  }

  /* the persistent WhatsApp teaser covers body copy on phones; the round
     chat button stays available */
  #wa-smart-toast.wa-engagement-bubble {
    display: none !important;
  }

  #wa-trigger-btn,
  .wa-expand-btn {
    bottom: 14px !important;
    right: 14px !important;
  }
}

/* stronger scrim so white card text stays legible over bright photography */
.nv-cat-page .nv-cat-card__overlay {
  background: linear-gradient(to bottom,
    rgba(18, 24, 17, 0) 26%,
    rgba(18, 24, 17, .48) 56%,
    rgba(16, 22, 15, .94) 100%);
}

.nv-foot__logo {
  filter: brightness(0) invert(1) !important;
}

/* ==========================================================================
   Blog post body — one typographic scale (2026-10-19)
   Template body is 17px; legacy inline styles in old posts carried 14/16/18/28px
   values that made the same article look inconsistent. Normalise at the
   container level so stored content stays untouched.
   ========================================================================== */
.kj-post-content {
  font-size: 17px;
  line-height: 1.8;
}
.kj-post-content p,
.kj-post-content li,
.kj-post-content div,
.kj-post-content td,
.kj-post-content figcaption {
  font-size: 17px !important;
  line-height: 1.8;
}
.kj-post-content p:first-child {
  font-size: 19px !important;
  line-height: 1.7;
  font-weight: 500;
}
.kj-post-content h2 {
  font-size: 26px !important;
  line-height: 1.25;
}
.kj-post-content h3 {
  font-size: 20px !important;
  line-height: 1.35;
}
.kj-post-content h4 {
  font-size: 18px !important;
  line-height: 1.4;
}
.kj-post-content table {
  font-size: 16px;
}
.kj-post-content table th {
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.kj-post-content table td {
  font-size: 16px !important;
}
.kj-post-content small,
.kj-post-content figcaption {
  font-size: 13.5px !important;
  color: #6B736A;
}
.kj-post-content ul li,
.kj-post-content ol li {
  font-size: 17px !important;
}

/* Related-reading block appended by the theme when a post has <3 internal links */
.kj-related-inline {
  margin: 40px 0 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(27, 34, 26, .14);
}
.kj-related-inline__label {
  font-family: var(--primitive-font-mono, ui-monospace, monospace) !important;
  font-size: 11px !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6B736A;
  margin: 0 0 12px !important;
}
.kj-related-inline ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}
.kj-related-inline li {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 15.5px !important;
}
.kj-related-inline li::before {
  display: none !important;
}
.kj-related-inline a {
  color: #3D473C !important;
  text-decoration: underline;
  text-decoration-color: rgba(61, 71, 60, .35);
  text-underline-offset: 3px;
  font-weight: 600;
}
.kj-related-inline a:hover {
  color: #1B221A !important;
}
@media (max-width: 640px) {
  .kj-related-inline ul { grid-template-columns: minmax(0, 1fr); }
}
