.hubgrade-double-bullet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 20px;
  height: 10px;
  flex: 0 0 20px;
}

.hubgrade-double-bullet::before,
.hubgrade-double-bullet::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.hubgrade-double-bullet::before {
  background: #FB047B;
}

.hubgrade-double-bullet::after {
  background: #8D3FE7;
}

button[data-menu-toggle] {
  position: relative;
}

button[data-menu-toggle] > svg {
  visibility: hidden;
}

button[data-menu-toggle]::before,
button[data-menu-toggle]::after {
  content: '';
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 9px);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease;
}

button[data-menu-toggle]::before {
  transform: translateY(-6px);
  box-shadow: 0 6px 0 currentColor;
}

button[data-menu-toggle]::after {
  transform: translateY(6px);
}

button[data-menu-toggle].is-open::before {
  transform: rotate(45deg);
  box-shadow: 0 0 0 transparent;
}

button[data-menu-toggle].is-open::after {
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  button[data-menu-toggle]::before,
  button[data-menu-toggle]::after {
    transition: none;
  }
}

header.shell.header {
  width: 100%;
  padding-inline: max(16px, calc((100vw - 1280px) / 2 + 32px));
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
}

header.shell.header > nav {
  white-space: nowrap;
  flex-shrink: 0;
}

header.shell.header > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

header.shell.header > div:last-child > a:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--menu-icon);
}

header.shell.header > div:last-child > a:first-child svg {
  display: block;
  width: 20px;
  height: 20px;
}

header.shell.header .contact {
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(217, 70, 239, .35);
}

body.bg-midnight .mobile-nav nav a:hover,
body.bg-midnight .mobile-nav nav .active {
  background: rgba(255, 255, 255, .07);
}

@media (min-width: 1101px) and (max-width: 1279px) {
  header.shell.header > nav {
    display: none;
  }

  header.shell.header .menu-toggle {
    display: inline-flex;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  header.shell.header {
    height: 80px;
  }

  header.shell.header .brand-divider,
  header.shell.header .brand-tagline {
    display: block;
  }
}

@media (max-width: 767px) {
  header.hgm-header:not(.header) > div:first-child {
    gap: 8px;
    padding-left: 16px;
    padding-right: 16px;
  }

  header.hgm-header.header {
    gap: 8px;
    padding-left: 16px;
    padding-right: 16px;
  }

  header.hgm-header [data-menu-toggle] {
    order: 2;
    flex: 0 0 40px;
    margin-left: 0;
  }

  header.hgm-header [data-menu-toggle] + div {
    order: 1;
    margin-left: auto;
    gap: 8px;
  }

  header.hgm-header [data-menu-toggle] + div > a[href="contatti.html"] {
    display: none;
  }

  [data-mobile-menu] {
    position: fixed;
    top: var(--hgm-header-h, 80px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: calc(100vh - var(--hgm-header-h, 80px));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 18px 45px rgba(2, 6, 23, .25);
  }

  [data-mobile-menu] nav > a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  [data-mobile-menu] nav > .hgm-mobile-contact {
    justify-content: center;
    margin-top: 8px;
    border-radius: 12px;
    background: #c026d3;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
}

@media (max-width: 1279px) {
  header.hgm-header.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--panel);
  }
}

.detail-menu-toggle,
.detail-mobile-menu {
  display: none;
}

@media (max-width: 950px) {
  header.head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--panel);
  }

  .detail-menu-toggle {
    display: block;
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
  }

  .detail-mobile-menu:not([hidden]) {
    display: block;
    position: fixed;
    top: var(--hgm-header-h, 80px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: calc(100vh - var(--hgm-header-h, 80px));
    overflow-y: auto;
    background: var(--panel);
    box-shadow: 0 18px 45px rgba(2, 6, 23, .25);
  }

  .detail-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 1280px;
    margin: auto;
    padding: 12px 32px;
  }

  .detail-mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 9px;
    color: var(--text);
  }

  .detail-mobile-menu nav a.active {
    color: var(--accent);
    background: var(--panel);
  }

  .detail-mobile-menu nav .detail-menu-contact {
    justify-content: center;
    margin-top: 8px;
    background: var(--accent);
    color: #fff;
  }
}

@media (max-width: 520px) {
  header.head {
    gap: 8px;
  }

  header.head .actions {
    order: 1;
    gap: 8px;
    margin-left: auto;
  }

  header.head .actions .contact {
    display: none;
  }

  header.head .detail-menu-toggle {
    order: 2;
    margin-left: 0;
  }

  .detail-mobile-menu nav {
    padding: 12px 14px;
  }
}
