/*
Theme Name: Laboratori Pavaglione
Theme URI: https://laboratoripavaglione.it/
Author: Laboratori Pavaglione
Description: Child FSE theme for the Laboratori Pavaglione brand hub.
Template: korevolution
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: laboratori
Tags: block-theme, full-site-editing, one-page, responsive
*/

:root {
  --lp-ink: var(--wp--preset--color--ink, #0a0a0a);
  --lp-brand: var(--wp--preset--color--brand, #006e75);
  --lp-paper: var(--wp--preset--color--paper, #fbfaf7);
  --lp-mist: var(--wp--preset--color--mist, #edf1ee);
  --lp-sage: var(--wp--preset--color--sage, #23af95);
  --lp-rose: var(--wp--preset--color--rose, #eb308a);
  --lp-copper: var(--wp--preset--color--copper, #a3004f);
  --lp-smoke: var(--wp--preset--color--smoke, #143b42);
  --lp-border: rgba(10, 10, 10, 0.13);
  --lp-shadow: 0 22px 70px rgba(10, 10, 10, 0.11);
  --lp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--lp-paper);
  color: var(--lp-ink);
  font-family: var(--wp--preset--font-family--body);
  font-size: clamp(1rem, 0.95rem + 0.18vw, 1.125rem);
  line-height: 1.7;
  overflow-x: hidden;
}

body.admin-bar .lab-site-header {
  top: 32px;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lp-sage);
  outline-offset: 4px;
}

.lab-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.lab-header__inner {
  display: grid;
  grid-template-columns: minmax(160px, 270px) minmax(0, 1fr) minmax(
      160px,
      270px
    );
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  width: min(100% - 2rem, 1240px);
  min-height: 84px;
  margin: 0 auto;
  padding: 0.55em 0;
}

.lab-header__brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  margin: 0;
}

.lab-header__brand a {
  display: inline-flex;
}

.lab-header__brand img {
  display: block;
  width: min(220px, 42vw);
  height: auto;
}

.lab-nav {
  display: flex;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  gap: clamp(1rem, 2.6vw, 2.6rem);
}

.lab-header__inner > .wp-block-buttons {
  justify-self: end;
}

.lab-nav .wp-block-navigation__container {
  gap: clamp(1rem, 2.6vw, 2.6rem);
}

.lab-nav a,
.lab-header__action .wp-block-button__link,
.lab-button,
.lab-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.lab-nav a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lab-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 180ms var(--lp-ease),
    transform 180ms var(--lp-ease);
}

.lab-nav a:hover::after,
.lab-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.lab-header__action .wp-block-button__link,
.lab-button,
.lab-button .wp-block-button__link {
  border: 1px solid var(--lp-brand);
  border-radius: 999px;
  padding: 0.68rem 1rem;
  background: var(--lp-brand);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  transition:
    background 180ms var(--lp-ease),
    color 180ms var(--lp-ease),
    transform 180ms var(--lp-ease);
}

.lab-header__action .wp-block-button__link:hover,
.lab-button:hover,
.lab-button .wp-block-button__link:hover {
  background: transparent;
  color: var(--lp-ink);
  transform: translateY(-1px);
}

.lab-button--ghost,
.lab-button--ghost .wp-block-button__link {
  background: transparent;
  color: var(--lp-ink);
  padding: 0.79rem 1.35rem;
}

.lab-button--ghost:hover,
.lab-button--ghost .wp-block-button__link:hover {
  background: var(--lp-ink);
  color: #ffffff;
}

.wp-block-button.lab-button,
.wp-block-button.lab-header__action {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.wp-block-button.lab-button:hover,
.wp-block-button.lab-header__action:hover {
  background: transparent;
  color: inherit;
  transform: none;
}

.wp-block-button.is-style-lab-button-cosmetics {
  --lab-button-style-accent: var(--lp-rose);
}

.wp-block-button.is-style-lab-button-integratori {
  --lab-button-style-accent: var(--lp-sage);
}

.wp-block-button.is-style-lab-button-profumi {
  --lab-button-style-accent: #ccae5a;
}

.wp-block-button:is(
    .is-style-lab-button-cosmetics,
    .is-style-lab-button-integratori,
    .is-style-lab-button-profumi
  )
  .wp-block-button__link {
  position: relative;
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lab-button-style-accent);
  border-radius: 999px;
  padding: 0.82rem 3.55rem 0.82rem 1.55rem;
  background: #ffffff !important;
  color: var(--lp-ink) !important;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(10, 10, 10, 0.07);
  overflow: hidden;
  transition:
    background 220ms var(--lp-ease),
    border-color 220ms var(--lp-ease),
    color 220ms var(--lp-ease),
    transform 220ms var(--lp-ease),
    box-shadow 220ms var(--lp-ease);
}

.wp-block-button:is(
    .is-style-lab-button-cosmetics,
    .is-style-lab-button-integratori,
    .is-style-lab-button-profumi
  )
  .wp-block-button__link::after {
  position: absolute;
  top: 50%;
  right: 0.36rem;
  display: inline-grid;
  width: 2.28rem;
  height: 2.28rem;
  place-items: center;
  border-radius: 999px;
  background: var(--lab-button-style-accent);
  color: #ffffff;
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  transform: translate3d(0, -50%, 0) rotate(0deg);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform;
  transition:
    background 220ms var(--lp-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    color 220ms var(--lp-ease, cubic-bezier(0.22, 0.61, 0.36, 1)),
    transform 260ms var(--lp-ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}

.wp-block-button:is(
    .is-style-lab-button-cosmetics,
    .is-style-lab-button-integratori,
    .is-style-lab-button-profumi
  )
  .wp-block-button__link:hover,
.wp-block-button:is(
    .is-style-lab-button-cosmetics,
    .is-style-lab-button-integratori,
    .is-style-lab-button-profumi
  )
  .wp-block-button__link:focus-visible {
  border-color: var(--lab-button-style-accent);
  background: var(--lab-button-style-accent) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.11);
  transform: translateY(-1px);
}

.wp-block-button:is(
    .is-style-lab-button-cosmetics,
    .is-style-lab-button-integratori,
    .is-style-lab-button-profumi
  )
  .wp-block-button__link:hover::after,
.wp-block-button:is(
    .is-style-lab-button-cosmetics,
    .is-style-lab-button-integratori,
    .is-style-lab-button-profumi
  )
  .wp-block-button__link:focus-visible::after {
  background: #ffffff;
  color: var(--lab-button-style-accent);
  transform: translate3d(0, -50%, 0) rotate(-45deg);
}

.wp-block-image.is-style-lab-image-zoom-light {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
}

.wp-block-image.is-style-lab-image-zoom-light a,
.wp-block-image.is-style-lab-image-zoom-light img {
  display: block;
}

.wp-block-image.is-style-lab-image-zoom-light img {
  width: 100%;
  transform: scale(1);
  transition:
    filter 700ms var(--lp-ease),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wp-block-image.is-style-lab-image-zoom-light::after {
  position: absolute;
  inset: -35% -70%;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.62) 50%,
    transparent 58%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-38%) rotate(8deg);
  transition:
    opacity 520ms var(--lp-ease),
    transform 780ms var(--lp-ease);
}

.wp-block-image.is-style-lab-image-zoom-light figcaption {
  position: relative;
  z-index: 2;
}

.wp-block-image.is-style-lab-image-zoom-light:hover img,
.wp-block-image.is-style-lab-image-zoom-light:focus-within img {
  filter: saturate(1.03);
  transform: scale(1.035);
}

.wp-block-image.is-style-lab-image-zoom-light:hover::after,
.wp-block-image.is-style-lab-image-zoom-light:focus-within::after {
  opacity: 1;
  transform: translateX(38%) rotate(8deg);
}

.lab-back-to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.6rem);
  bottom: clamp(1rem, 2.5vw, 1.6rem);
  z-index: 30;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(20, 97, 83, 0.38);
  border-radius: 999px;
  background: rgba(20, 97, 83, 0.72);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(20, 97, 83, 0.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms var(--lp-ease),
    transform 180ms var(--lp-ease),
    background 180ms var(--lp-ease),
    border-color 180ms var(--lp-ease);
}

.lab-back-to-top[hidden] {
  display: none;
}

.lab-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lab-back-to-top:hover,
.lab-back-to-top:focus-visible {
  border-color: rgba(20, 97, 83, 0.7);
  background: #146153;
  transform: translateY(-2px);
}

.lab-back-to-top i,
.lab-back-to-top span {
  font-size: 1.05rem;
  line-height: 1;
}

.lab-main {
  overflow: hidden;
}

.lab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  color: var(--lp-smoke);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-section h2,
.lab-footer h2,
.lab-content-template h1,
.lab-content-template h2 {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

.lab-section {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 3.25rem) 0;
}

.lab-section--intro {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.lab-section h2,
.lab-section h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.55vw, 3.35rem);
  line-height: 1.3;
  text-wrap: balance;
}

.lab-lead {
  margin: 0;
  color: rgba(10, 10, 10, 0.76);
  font-size: clamp(1.12rem, 1rem + 0.45vw, 1.35rem);
}

.lab-intro__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.2rem;
  border: 1px solid var(--lp-border);
  background: var(--lp-border);
}

.lab-intro__facts span,
.lab-intro__facts p {
  display: grid;
  min-height: 92px;
  place-items: center;
  margin: 0;
  padding: 1rem;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.lab-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lab-brand-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(10, 10, 10, 0.07);
}

.lab-brand-card::before {
  position: absolute;
  inset: 0;
  content: "";
}

.lab-brand-card--cosmetics::before {
  background:
    linear-gradient(
      160deg,
      rgba(201, 159, 154, 0.46),
      rgba(255, 255, 255, 0.2) 45%
    ),
    radial-gradient(
      circle at 30% 26%,
      rgba(255, 255, 255, 0.95) 0 9%,
      transparent 10%
    ),
    linear-gradient(
      110deg,
      transparent 0 52%,
      rgba(10, 10, 10, 0.08) 53% 54%,
      transparent 55%
    );
}

.lab-brand-card--integratori::before {
  background:
    linear-gradient(
      160deg,
      rgba(102, 125, 105, 0.5),
      rgba(255, 255, 255, 0.22) 48%
    ),
    radial-gradient(
      circle at 76% 18%,
      rgba(255, 255, 255, 0.9) 0 12%,
      transparent 32%
    ),
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.18) 0 34%,
      rgba(102, 125, 105, 0.12) 35% 46%,
      transparent 58%
    );
}

.lab-brand-card--spezieria::before {
  background:
    linear-gradient(
      150deg,
      rgba(154, 116, 87, 0.44),
      rgba(255, 255, 255, 0.2) 48%
    ),
    linear-gradient(
      45deg,
      transparent 0 44%,
      rgba(10, 10, 10, 0.08) 45% 46%,
      transparent 47%
    );
}

.lab-brand-card__mark {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 1;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(10, 10, 10, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: rgba(251, 250, 247, 0.78);
  font-size: 0.75rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.lab-brand-card__body {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(
    180deg,
    rgba(251, 250, 247, 0.78),
    rgba(251, 250, 247, 0.96)
  );
}

.lab-brand-card h3 {
  margin: 0;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.6rem, 2.12vw, 2.25rem);
  line-height: 1.08;
  text-wrap: balance;
}

.lab-brand-card p {
  margin: 1rem 0 1.35rem;
  color: rgba(10, 10, 10, 0.76);
}

.lab-brand-long {
  --lab-brand-long-accent: var(--lp-brand);
}

.lab-brand-long--cosmetics {
  --lab-brand-long-accent: var(--lp-rose);
}

.lab-brand-long--integratori {
  --lab-brand-long-accent: #23af95;
}

.lab-brand-long--spezieria {
  --lab-brand-long-accent: var(--lp-copper);
}

.lab-brand-long__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 18px 54px rgba(10, 10, 10, 0.08);
}

.lab-brand-long--image .lab-brand-long__shell {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
}

.lab-brand-long--image-left .lab-brand-long__shell {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
}

.lab-brand-long--sidebar-left .lab-brand-long__shell {
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
}

.lab-brand-long__shell > * {
  position: relative;
  z-index: 1;
}

.lab-brand-long__main {
  max-width: 820px;
}

.lab-brand-long h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.08;
}

.lab-brand-long .lab-lead {
  max-width: 760px;
  margin: 1.25rem 0 1.6rem;
}

.lab-brand-long__main > p:not(.lab-eyebrow):not(.lab-lead) {
  max-width: 76ch;
  margin: 0 0 1.05rem;
  color: rgba(10, 10, 10, 0.76);
}

.lab-brand-long__main > .wp-block-buttons {
  margin-top: 1.5rem;
}

.lab-brand-long__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
}

.lab-brand-long__media {
  min-height: clamp(340px, 38vw, 560px);
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 8px;
  margin: 0;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 38px rgba(10, 10, 10, 0.08);
}

.lab-brand-long__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.lab-brand-long__label {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(10, 10, 10, 0.16);
  border-radius: 999px;
  margin: 0;
  padding: 0.2rem 0.72rem;
  background: rgba(251, 250, 247, 0.72);
  color: rgba(10, 10, 10, 0.72);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-brand-long__points {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-brand-long__points li {
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
  padding: 0.95rem 0;
  color: rgba(10, 10, 10, 0.78);
  font-weight: 700;
}

.lab-brand-long__points li:first-child {
  border-top: 1px solid rgba(10, 10, 10, 0.12);
}

.lab-brand-long .lab-button--ghost .wp-block-button__link {
  border-color: var(--lab-brand-long-accent);
}

.lab-brand-long .lab-button--ghost .wp-block-button__link:hover {
  border-color: var(--lp-ink);
}

.lab-paths {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  border-top: 1px solid var(--lp-border);
}

.lab-path-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-path-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid var(--lp-border);
  padding: 1.1rem 0;
}

.lab-path-list strong {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: var(--lp-ink);
  color: #ffffff;
  font-size: 1.25rem;
}

.lab-path-list span {
  display: block;
  color: rgba(10, 10, 10, 0.72);
}

.lab-final {
  background: var(--lp-ink);
  color: #ffffff;
}

.lab-final__inner {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: clamp(3.4rem, 6.8vw, 6rem) 0;
}

.lab-final .lab-eyebrow,
.lab-final p {
  color: rgba(255, 255, 255, 0.72);
}

.lab-final h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.95rem, 4.35vw, 4.3rem);
  line-height: 1.08;
  text-wrap: balance;
}

.lab-final p {
  max-width: 660px;
  margin: 1.2rem 0 0;
}

.lab-final .lab-button .wp-block-button__link {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--lp-ink);
}

.lab-final .lab-button .wp-block-button__link:hover {
  background: transparent;
  color: #ffffff;
}

.lab-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.lab-prefooter-contact {
  background: #050505;
  color: #ffffff;
}

.lab-prefooter-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: clamp(3.6rem, 7vw, 6.8rem) 0;
}

.lab-prefooter-contact__copy {
  max-width: 760px;
}

.lab-prefooter-contact .lab-eyebrow,
.lab-prefooter-contact__copy p,
.lab-prefooter-contact__topics {
  color: rgba(255, 255, 255, 0.72);
}

.lab-prefooter-contact h2 {
  max-width: 880px;
  margin: 0;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2rem, 4.1vw, 4.05rem);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

.lab-prefooter-contact__copy > p {
  max-width: 680px;
  margin: 1.25rem 0 0;
}

.lab-prefooter-contact__topics {
  display: grid;
  gap: 0.75rem;
  max-width: 620px;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.lab-prefooter-contact__topics li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.lab-prefooter-contact__topics li::before {
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--lp-sage);
  content: "";
}

.lab-prefooter-contact__form {
  padding: 0;
  color: #ffffff;
}

.lab-prefooter-contact__form h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.2;
}

.lab-prefooter-contact__form > p {
  margin: 0.35rem 0 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

.lab-prefooter-contact .wpcf7 {
  margin: 0;
}

.lab-prefooter-contact .wpcf7 form,
.lab-cf7-form {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.lab-cf7-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.lab-cf7-form p {
  margin: 0;
}

.lab-cf7-form > p {
  min-width: 0;
}

.lab-cf7-form > p:empty {
  display: none;
}

.lab-cf7-form__row > p:only-child {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.lab-cf7-form br {
  display: none;
}

.lab-cf7-form label,
.lab-prefooter-contact .wpcf7-form label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.lab-cf7-form .wpcf7-form-control-wrap,
.lab-prefooter-contact .wpcf7-form-control-wrap {
  display: block;
}

.lab-cf7-form input:not([type="submit"]),
.lab-cf7-form textarea,
.lab-prefooter-contact .wpcf7-form input:not([type="submit"]),
.lab-prefooter-contact .wpcf7-form textarea {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  padding: 0.52rem 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  line-height: 1.35;
  transition:
    border-color 180ms var(--lp-ease),
    color 180ms var(--lp-ease);
}

.lab-cf7-form input::placeholder,
.lab-cf7-form textarea::placeholder,
.lab-prefooter-contact .wpcf7-form input::placeholder,
.lab-prefooter-contact .wpcf7-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
  opacity: 1;
}

.lab-cf7-form textarea,
.lab-prefooter-contact .wpcf7-form textarea {
  min-height: 86px;
  max-height: 130px;
  resize: vertical;
}

.lab-cf7-form input:not([type="submit"]):focus,
.lab-cf7-form textarea:focus,
.lab-prefooter-contact .wpcf7-form input:not([type="submit"]):focus,
.lab-prefooter-contact .wpcf7-form textarea:focus {
  border-color: var(--lp-sage);
  box-shadow: none;
  outline: none;
}

.lab-cf7-form .wpcf7-acceptance,
.lab-prefooter-contact .wpcf7-acceptance {
  display: block;
}

.lab-cf7-form .wpcf7-list-item,
.lab-prefooter-contact .wpcf7-list-item {
  margin: 0;
}

.lab-cf7-form .wpcf7-acceptance label,
.lab-prefooter-contact .wpcf7-acceptance label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.lab-cf7-form input[type="checkbox"],
.lab-prefooter-contact .wpcf7-form input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  border: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  background: transparent;
  accent-color: var(--lp-sage);
}

.lab-cf7-form .wpcf7-acceptance a,
.lab-prefooter-contact .wpcf7-acceptance a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lab-cf7-form > p:has(.wpcf7-submit),
.lab-prefooter-contact .wpcf7-form > p:has(.wpcf7-submit) {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.15rem;
}

.lab-cf7-form__submit,
.lab-prefooter-contact .wpcf7-submit {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 0.76rem 1.35rem;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  text-transform: uppercase;
  transition:
    background 180ms var(--lp-ease),
    color 180ms var(--lp-ease),
    transform 180ms var(--lp-ease);
}

.lab-cf7-form__submit:hover,
.lab-cf7-form__submit:focus-visible,
.lab-prefooter-contact .wpcf7-submit:hover,
.lab-prefooter-contact .wpcf7-submit:focus-visible {
  background: transparent;
  color: #ffffff;
  transform: translateY(-1px);
}

.lab-prefooter-contact .wpcf7-spinner {
  margin: 0 0 0 0.6rem;
}

.lab-prefooter-contact .wpcf7-not-valid-tip {
  margin-top: 0.28rem;
  color: #ffb8c6;
  font-size: 0.82rem;
  font-weight: 700;
}

.lab-prefooter-contact .wpcf7 form .wpcf7-response-output {
  margin: 0.25rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.lab-footer {
  background: #cae6da;
  color: #0a0a0a;
}

.lab-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: clamp(2.6rem, 5.2vw, 4rem) 0;
}

.lab-footer h2,
.lab-footer h3 {
  margin: 0 0 1rem;
}

.lab-footer h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
}

.lab-footer h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
}

.lab-footer p,
.lab-footer a {
  color: #0a0a0a;
}

.lab-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.lab-footer a:hover {
  text-decoration: underline;
}
.lab-footer ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-content-template {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: clamp(2.4rem, 5.5vw, 4.6rem) 0;
  text-align: left;
}

.lab-content-template
  > :where(
    .wp-block-post-title,
    .wp-block-query-title,
    .wp-block-term-description,
    .entry-content,
    .wp-block-query,
    .wp-block-search,
    .wp-block-post-featured-image,
    .wp-block-group
  ) {
  width: 100%;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.lab-content-template .entry-content {
  width: 100%;
}

.lab-content-template .entry-content > :where(:not(.alignwide):not(.alignfull)),
.lab-content-template
  .wp-block-term-description
  > :where(:not(.alignwide):not(.alignfull)) {
  max-width: 100%;
  margin-right: auto !important;
  margin-left: 0 !important;
}

.lab-content-template .entry-content > :where(p, ul, ol, blockquote),
.lab-content-template
  .wp-block-term-description
  > :where(p, ul, ol, blockquote) {
  max-width: min(100%, 980px);
}

.lab-content-template .entry-content > :where(.alignwide) {
  max-width: 100%;
}

.lab-content-template .entry-content > * + * {
  margin-block-start: clamp(0.85rem, 1.35vw, 1.2rem);
}

.lab-content-template h1 {
  margin-top: 0;
  margin-bottom: clamp(1rem, 2vw, 1.45rem);
  font-size: clamp(1.95rem, 3.65vw, 3.55rem);
  line-height: 1.14;
}

.lab-content-template h2 {
  margin-top: clamp(1.75rem, 3.4vw, 2.75rem);
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 2.45vw, 2.25rem);
  line-height: 1.18;
}

.lab-content-template h3 {
  margin-top: clamp(1.45rem, 2.5vw, 2.2rem);
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.25;
}

.lab-content-template p,
.lab-content-template li {
  font-size: clamp(1rem, 0.95rem + 0.18vw, 1.1rem);
  line-height: 1.75;
}

.lab-content-template .entry-content > h2:first-child,
.lab-content-template .entry-content > h3:first-child {
  margin-top: 0;
}

.lab-query-list {
  display: grid;
  gap: 1.25rem;
}

.lab-query-card {
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.58);
}

.lab-query-card h2,
.lab-query-card h3 {
  margin-top: 0;
}

@media (max-width: 980px) {
  .lab-header__inner {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 0.85rem 0;
  }

  .lab-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .lab-section--intro,
  .lab-paths,
  .lab-brand-long__shell,
  .lab-brand-long--image .lab-brand-long__shell,
  .lab-brand-long--image-left .lab-brand-long__shell,
  .lab-brand-long--sidebar-left .lab-brand-long__shell,
  .lab-prefooter-contact__inner,
  .lab-footer__inner {
    grid-template-columns: 1fr;
  }

  .lab-brand-long--image-left .lab-brand-long__main {
    order: 1;
  }

  .lab-brand-long--image-left .lab-brand-long__media {
    order: 2;
  }

  .lab-brand-long--sidebar-left .lab-brand-long__main {
    order: 1;
  }

  .lab-brand-long--sidebar-left .lab-brand-long__aside {
    order: 2;
  }

  .lab-brand-grid {
    grid-template-columns: 1fr;
  }

  .lab-brand-card {
    min-height: 390px;
  }
}

@media (max-width: 700px) {
  body.admin-bar .lab-site-header {
    top: 46px;
  }

  .lab-header__inner {
    grid-template-columns: 1fr;
    width: min(100% - 1.2rem, 1240px);
    justify-items: center;
    text-align: center;
  }

  .lab-header__inner > .wp-block-buttons,
  .wp-block-button.lab-header__action {
    display: none;
  }

  .lab-section,
  .lab-final__inner,
  .lab-prefooter-contact__inner,
  .lab-footer__inner {
    width: min(100% - 1.2rem, 1240px);
  }

  .lab-section,
  .lab-final__inner,
  .lab-prefooter-contact__copy,
  .lab-footer__inner {
    text-align: center;
  }

  .lab-eyebrow {
    justify-content: center;
  }

  .lab-final__actions,
  .lab-brand-card .wp-block-buttons,
  .lab-brand-long .wp-block-buttons {
    justify-content: center;
  }

  .wp-block-buttons.lab-final__actions.is-content-justification-left,
  .lab-brand-card .wp-block-buttons.is-content-justification-left,
  .lab-brand-long .wp-block-buttons.is-content-justification-left {
    justify-content: center;
  }

  .wp-block-buttons.lab-final__actions > .wp-block-button,
  .lab-brand-card .wp-block-buttons > .wp-block-button,
  .lab-brand-long .wp-block-buttons > .wp-block-button {
    margin-right: auto;
    margin-left: auto;
  }

  .lab-brand-long__main {
    max-width: none;
  }

  .lab-brand-long h2,
  .lab-brand-long .lab-lead,
  .lab-brand-long__main > p:not(.lab-eyebrow):not(.lab-lead) {
    max-width: none;
  }

  .lab-brand-long__aside {
    align-items: center;
  }

  .lab-brand-long__points {
    width: 100%;
  }

  .lab-button,
  .lab-button .wp-block-button__link {
    width: 100%;
    max-width: 260px;
  }

  .lab-back-to-top {
    width: 44px;
    height: 44px;
  }

  .lab-intro__facts {
    grid-template-columns: 1fr;
  }

  .lab-path-list li {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .lab-path-list strong {
    width: 48px;
    height: 48px;
  }

  .lab-prefooter-contact__topics li {
    justify-content: center;
  }

  .lab-prefooter-contact__form {
    text-align: left;
  }

  .lab-cf7-form__row {
    grid-template-columns: 1fr;
  }

  .lab-cf7-form__row > p:only-child {
    grid-template-columns: 1fr;
  }

  .lab-cf7-form__submit,
  .lab-prefooter-contact .wpcf7-submit {
    width: 100%;
  }

  .lab-content-template {
    width: min(100% - 1.2rem, 1240px);
    padding: clamp(2.1rem, 8vw, 3.2rem) 0;
    text-align: left;
  }

  .lab-content-template h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.55rem);
    line-height: 1.15;
  }

  .lab-content-template h2 {
    margin-top: clamp(1.55rem, 7vw, 2.25rem);
    font-size: clamp(1.32rem, 6.2vw, 1.9rem);
    line-height: 1.2;
  }

  .lab-content-template h3 {
    font-size: clamp(1.16rem, 5vw, 1.42rem);
  }

  .lab-content-template p,
  .lab-content-template li {
    font-size: 1rem;
    line-height: 1.72;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .wp-block-image.is-style-lab-image-zoom-light:hover img,
  .wp-block-image.is-style-lab-image-zoom-light:focus-within img {
    transform: none;
  }

  .wp-block-image.is-style-lab-image-zoom-light::after {
    display: none;
  }
}
