header.village-header {
  padding-inline: max(4%, calc((100% - 1340px) / 2));
  background: linear-gradient(110deg, #f3f6eb, #e3efd6 62%, #d4e8c6);
  box-shadow: 0 3px 14px #233a2010;
}

header.village-header #menu {
  background: #fffdf488;
  border-color: #294d2b26;
  box-shadow: inset 0 1px #ffffffa0;
}

header.village-header #menu :is(a, summary):hover,
header.village-header #menu :is(a, summary):focus-visible {
  background-color: #dcebd0;
  color: #25452d;
}

.bauhaus-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px, 4vw, 54px);
  text-align: start;
}

.bauhaus-page-heading > h1 {
  min-width: 0;
  flex: 1;
}

.bauhaus-page-mascot {
  flex: 0 0 clamp(82px, 15vw, 164px);
  aspect-ratio: 1;
  display: grid;
  overflow: hidden;
  border-radius: 48% 48% 19% 19%;
  border: 1px solid #476a3e38;
  box-shadow: 0 0 0 4px #eef4e5, 0 8px 24px #2845221a;
  background: #e7eedb;
  pointer-events: none;
}

.bauhaus-page-mascot .welcome-scene {
  width: 100%;
  height: 100%;
  transform: scale(1.17);
  transform-origin: 50% 59%;
}

@media (prefers-reduced-motion: no-preference) {
  .bauhaus-page-mascot .welcome-dog {
    animation: bauhaus-greeting 850ms 250ms ease-in-out both;
  }

  .bauhaus-page-mascot .dog-two { animation-delay: 420ms; }

  @keyframes bauhaus-greeting {
    0%, 100% { translate: 0 0; }
    38% { translate: 0 -29px; }
    69% { translate: 0 3px; }
  }
}

@media (max-width: 520px) {
  .bauhaus-page-heading { align-items: start; }
  .bauhaus-page-heading > h1 { overflow-wrap: anywhere; }
  .bauhaus-page-mascot { margin: 6px 3px 4px 0; }
}

header.bauhaus-home-header { position: relative; padding-top: 32px; }

.bauhaus-home-header .private-area {
  position: absolute;
  top: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 5px;
  color: var(--ink);
  font: 11px/1.2 Arial, sans-serif;
}

.bauhaus-home-header .private-area { right: 4%; gap: 4px; }
.bauhaus-home-header .private-area svg { width: 11px; height: 11px; }

header.village-header .header-contacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  justify-content: end;
  gap: 6px 12px;
  max-width: none;
  margin: 0;
}

header.village-header .header-contacts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 48px;
  padding: 5px 8px;
  border: 1px solid #294d2b26;
  border-radius: 12px;
  background: #fffdf470;
  color: #25452d;
  font: 11px/1.25 Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

header.village-header .header-contacts a:is(:hover, :focus-visible) {
  background: #fffdf4;
  text-decoration: underline;
}

.header-contacts svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  header.village-header .header-contacts {
    grid-area: 2 / 1 / 3 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  header.village-header .header-contacts a { padding-inline: 3px; }
  header.bauhaus-home-header .welcoming-brand { grid-row: 1; }
  header.bauhaus-home-header #menu { grid-row: 3; }
}

@media (max-width: 360px) {
  header.village-header .header-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bauhaus-reviews-heading { gap: clamp(1rem, 3vw, 2.5rem); }
.bauhaus-review-art {
  flex: 0 1 38%;
  width: min(38%, 320px);
  height: auto;
  border-radius: 1.1rem;
  box-shadow: 0 0 0 4px #eef4e5, 0 8px 24px #2845221a;
}
@media (max-width: 520px) {
  .bauhaus-reviews-heading { flex-direction: column; }
  .bauhaus-review-art { width: min(100%, 320px); }
}

.services-opening-film { margin: 0 0 clamp(24px, 4vw, 48px); overflow: hidden; }
.services-opening.page-head { padding-top: 0; }
.bauhaus-services-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 0;
  background: #203e2d;
  pointer-events: none;
}
.salon-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.salon-photo-grid .photo { width: 100%; }
.salon-photo-grid .photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.service-card .salon-bath-photo { width: 100%; margin: 0 0 24px; }
.service-card .salon-bath-photo img { width: 100%; height: auto; max-height: 480px; object-fit: contain; }
@media (max-width: 640px) {
  .salon-photo-grid { grid-template-columns: 1fr; }
  .salon-photo-grid .photo img { max-height: 520px; object-fit: contain; }
}

.salon-photo-grid .photo { margin-top: 0; }
.salon-photo-grid .photo img { object-fit: contain; background: #eaf0df; border-radius: 18px; }
.salon-photo-grid .photo span { font-size: 14px; }
.salon-gallery > .textlink { margin-top: 24px; font-size: 16px; }

.staff-story { padding-top: 32px; padding-bottom: 32px; }
.staff-story > :is(h2,p) { max-width: 800px; }
.staff-profile { padding-bottom: 32px; }
.staff-story .textlink { font-size: 16px; }
#staff-sara { scroll-margin-top: 24px; }

/* Use the same looping logo on desktop and mobile. */
@media (prefers-reduced-motion: no-preference) {
  header.village-header .welcoming-brand .living-logo { display: none; }
  header.village-header .welcoming-brand .still-mark { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  header.village-header .welcoming-brand .living-logo { display: none; }
  header.village-header .welcoming-brand .still-mark { display: block; }
}

.institutional-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.institutional-grid article { padding-top: 18px; border-top: 1px solid var(--line); }
.institutional-grid .textlink, .home-team-overview .textlink { font-size: 16px; }
@media (max-width:720px) { .institutional-grid { grid-template-columns: 1fr; gap: 24px; } }

@media (prefers-reduced-motion: no-preference) {
  header.village-header .welcoming-brand .living-logo { display: block; }
  header.village-header .welcoming-brand .still-mark { display: none; }
  .living-logo .dog-left .logo-wag-tail { transform-origin: 115px 309px; animation: logoTailWag .36s ease-in-out infinite; }
  .living-logo .dog-right .logo-wag-tail { transform-origin: 485px 309px; animation: logoTailWag .4s ease-in-out -.12s infinite reverse; }
}
@keyframes logoTailWag { 0%,100% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }

/* Bring the original green closer to the site's botanical palette. */
.welcoming-brand .living-logo:not(.sara-logo),
img:is([src="/assets/logo.png"], [src="/assets/logo-fermo.png"], [src="/assets/logo-cagnolini.gif"]) {
  filter: hue-rotate(12deg) saturate(.78);
}

.welcoming-brand :is(.living-logo, .still-mark) {
  border-radius: 50%;
  box-shadow: 0 2px 8px #153f3324;
}
