/* Vetrina v21: menu mobile traslucido, completo e scorrevole. */
[hidden] { display: none !important; }

#menuToggle {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  align-items: center;
  justify-content: center;
}
#menuToggle:focus-visible,
.gp-mobile-menu a:focus-visible,
.gp-mobile-menu button:focus-visible,
.gp-contact-button:focus-visible {
  outline: 2px solid #767676;
  outline-offset: 5px;
}
.gp-mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 480px);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: max(28px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
  border: 0;
  background: #000000;
  color: #f5f5f5;
  overflow: hidden;
  overscroll-behavior: contain;
  font-family: var(--font-sans, sans-serif);
}
.gp-mobile-menu[open] { display: flex; flex-direction: column; }
.gp-mobile-menu::backdrop { background: rgba(0, 0, 0, .25); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gp-mobile-menu {
    background: rgba(0, 0, 0, .72);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    backdrop-filter: blur(40px) saturate(150%);
  }
}
@media (max-width: 480px) {
  .gp-mobile-menu::backdrop { background: transparent; }
}
.gp-mobile-menu__top {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}
.gp-mobile-menu__top p {
  margin: 0;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c4c4c4;
}
.gp-mobile-menu__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: transparent;
  color: inherit;
  font: 30px/1 sans-serif;
  cursor: pointer;
}
.gp-mobile-menu__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 6px 12px 0;
}
.gp-mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gp-mobile-menu__links > a,
.gp-mobile-menu__treatment-toggle {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: transparent;
  color: inherit;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
}
.gp-mobile-menu__treatment-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.gp-mobile-menu__indicator {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: #c4c4c4;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.gp-mobile-menu__treatment-toggle[aria-expanded="true"] .gp-mobile-menu__indicator {
  transform: translateY(2px) rotate(225deg);
}
.gp-mobile-menu__treatments,
.gp-mobile-menu__treatment-areas {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gp-mobile-menu__treatments { padding: 8px 0 12px 12px; }
.gp-mobile-menu__treatments > li > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .95);
  font-family: inherit;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.gp-mobile-menu__treatment-areas {
  margin: 6px 0 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(196,196,196, .3);
}
.gp-mobile-menu__treatment-areas a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 0;
  color: rgba(255, 255, 255, .78);
  font-family: inherit;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .04em;
  text-decoration: none;
}
.gp-mobile-menu__links a[aria-current="page"] { color: #ffffff; }
.gp-mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}
.gp-mobile-menu__contact a {
  color: #c4c4c4;
  font-size: 12px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.mega-item--has-sub:focus-within .mega-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.gp-contact-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.gp-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 22px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font-family: var(--font-sans, sans-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.6;
}
.gp-contact-button:hover { background: rgba(118,118,118, .12); }
.gp-contact-copy {
  margin: 0 0 22px;
  max-width: 54ch;
  font-family: var(--font-sans, sans-serif);
  font-size: 13px;
  line-height: 1.9;
}
.site-footer .gp-contact-actions { align-items: stretch; flex-direction: column; }
.site-footer .gp-contact-copy { color: rgba(255, 255, 255, .65); font-size: 11px; }
.site-footer .gp-contact-button { color: #c4c4c4; }

/* La fade-in usa transform: il centraggio del titolo non deve dipenderne. */
.treatments__header {
  left: 0;
  right: 0;
  width: 100%;
  padding-inline: 24px;
  text-align: center;
  white-space: normal;
}
.fl-desc__text { min-width: 0; }
.fl-desc__title { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  #siteHeader { padding: 10px 18px; }
  #siteHeader .nav-left { display: none; }
  #siteHeader .nav-right { display: flex; grid-column: 3; }
  #siteHeader .nav-right > .nav-link { display: none; }
  #siteHeader #headerLogo { grid-column: 2; grid-row: 1; }
  #siteHeader #headerLogo img { height: 84px !important; max-width: 56vw; object-fit: contain; }
  #menuToggle {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 8px;
    margin-left: 0;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .4);
  }
  #menuToggle span { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-mobile-menu *, #menuToggle { scroll-behavior: auto; transition: none; }
}

/* Focus da tastiera coerente con la palette neutra. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline-color: #767676; }

/* v33: identico fondo glass per header e menu Trattamenti, desktop e mobile. */
#siteHeader.scrolled {
  background: #000000;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #siteHeader.scrolled,
  #megaMenu,
  .gp-mobile-menu {
    background: rgba(0, 0, 0, .72);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    backdrop-filter: blur(40px) saturate(150%);
  }
}
#siteHeader.scrolled .nav-link,
#siteHeader.scrolled .nav-link--has-menu,
#siteHeader.scrolled .site-logo__name {
  color: #f5f5f5;
}
#siteHeader.scrolled .site-logo__sub {
  color: rgba(255, 255, 255, .6);
}
#siteHeader.scrolled .nav-link:hover {
  opacity: .7;
}
#siteHeader.scrolled .hamburger span,
#siteHeader.scrolled #menuToggle span,
#siteHeader.scrolled .nav-link.active::after {
  background: #f5f5f5;
}
@media (max-width: 900px) {
  #siteHeader.scrolled #menuToggle {
    border-color: rgba(255, 255, 255, .3);
    background: transparent;
  }
}
