.wp-site-blocks .mt-hacienda-header,
.wp-site-blocks:has(.mt-video-hero) .mt-hacienda-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transition: background-color .25s ease, color .25s ease, padding .25s ease;
}
.admin-bar .wp-site-blocks .mt-hacienda-header { top: 32px; }
.wp-site-blocks:not(:has(.mt-video-hero)) > main { padding-top: 124px; }
.wp-site-blocks .mt-hacienda-header.mt-header-scrolled {
  background: #fff !important;
  color: #496553 !important;
  padding: 14px 32px !important;
  box-shadow: 0 1px 0 rgba(41,58,48,.08);
}
.mt-hacienda-header.mt-header-scrolled .mt-brand p { display: none; }
.mt-hacienda-header.mt-header-scrolled .mt-brand figure { margin: 0 !important; }
.mt-hacienda-header.mt-header-scrolled .mt-brand img { width: 54px !important; height: 54px; object-fit: contain; display:block; }
.wp-site-blocks .mt-hacienda-header.mt-header-scrolled .wp-block-button .wp-block-button__link {
  color: #496553 !important;
  border-color: #496553 !important;
  background: transparent !important;
}
.wp-site-blocks .mt-hacienda-header.mt-header-scrolled .wp-block-button .wp-block-button__link:hover,
.wp-site-blocks .mt-hacienda-header.mt-header-scrolled .wp-block-button .wp-block-button__link:focus-visible {
  background: #496553 !important;
  color: #fff !important;
}
@media(max-width:781px) {
  .wp-site-blocks .mt-hacienda-header.mt-header-scrolled { padding: 12px 20px !important; }
  .mt-hacienda-header.mt-header-scrolled .mt-brand img { width: 44px !important; height:44px; }
  .wp-site-blocks:not(:has(.mt-video-hero)) > main { padding-top: 112px; }
}
@media(max-width:782px) { .admin-bar .wp-site-blocks .mt-hacienda-header { top: 46px; } }
@media(prefers-reduced-motion:reduce) { .wp-site-blocks .mt-hacienda-header { transition:none; } }
