/* Keep the original layout and components from Rotoli Design. */
header.rgh:has(> .rgh-main > .rgh-logo) {
  background: var(--rgh-black, #171717) !important;
}

header.rgh > .rgh-main {
  position: relative;
  isolation: isolate;
  color: #fff;
}

header.rgh > .rgh-main > .rgh-logo {
  position: relative;
  z-index: 0;
  color: var(--rgh-black, #171717);
}

header.rgh > .rgh-main .rgh-phone,
header.rgh > .rgh-main .rgh-address {
  color: #fff;
}

header.rgh > .rgh-main .rgh-phone > span,
header.rgh > .rgh-main .rgh-address svg {
  color: var(--rgh-yellow, #ffd400);
}

header.rgh > .rgh-main .rgh-quote {
  background: var(--rgh-yellow, #ffd400);
  border-color: var(--rgh-yellow, #ffd400);
  color: var(--rgh-black, #171717);
}

header.rgh > .rgh-main .rgh-wa {
  border-color: var(--rgh-yellow, #ffd400);
  color: var(--rgh-yellow, #ffd400);
}

header.rgh > .rgh-navigation {
  background: #fff;
  color: var(--rgh-black, #171717);
}

@media (min-width: 601px) {
  header.rgh > .rgh-main {
    clip-path: inset(0 -100vmax);
  }

  header.rgh > .rgh-main > .rgh-logo {
    align-self: stretch;
    justify-content: center;
  }

  header.rgh > .rgh-main > .rgh-logo::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: -22px -27px -22px calc(-1 * max(14px, (100vw - 1240px) / 2));
    background: var(--rgh-yellow, #ffd400);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  }

}

@media (min-width: 601px) and (max-width: 1100px) {
  header.rgh > .rgh-main > .rgh-logo::before {
    inset-block: -17px 0;
    right: -14px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  }
}

@media (max-width: 600px) {
  header.rgh > .rgh-main:has(.rgh-phone, .rgh-address, .rgh-quote) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "logo menu"
      "divider divider"
      "phone phone"
      "address address"
      "quote whatsapp";
    grid-template-rows: auto 1px auto auto auto;
    gap: 10px 8px;
  }

  header.rgh > .rgh-main > .rgh-logo {
    justify-self: start;
    margin-bottom: 0;
    padding: 4px 0;
  }

  header.rgh > .rgh-main > .rgh-logo::before {
    content: "";
    position: absolute;
    inset: -14px -25px -10px calc(-1 * max(14px, (100vw - 1240px) / 2));
    z-index: -1;
    pointer-events: none;
    background: var(--rgh-yellow, #ffd400);
    clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 50%, calc(100% - 17px) 100%, 0 100%);
  }

  header.rgh > .rgh-main > .rgh-toggle {
    align-self: center;
    margin-bottom: 0;
  }

  header.rgh > .rgh-main .rgh-quote,
  header.rgh > .rgh-main .rgh-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding-inline: 8px;
  }

  header.rgh > .rgh-main .rgh-quote { grid-area: quote; }
  header.rgh > .rgh-main .rgh-wa { grid-area: whatsapp; }
}