/* Static TIM-style header for Gratta hero (no MyTIM / LC icon) */
.gratta-tim-header {
  width: 100%;
  font-family: "TIMSans", system-ui, sans-serif;
  margin-bottom: 8px;
}

.gth-pre {
  background: #002db7;
  color: #fff;
  padding: 8px 12px;
}

.gth-pre__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gth-pre__gruppo {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: default;
}

.gth-pre__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  line-height: 1.2;
}

.gth-pre__pill--active {
  background: #eb0028;
  color: #fff;
}

.gth-pre__link {
  opacity: 0.95;
  cursor: default;
}

.gth-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 12px;
  background: #fff;
  border-bottom: 1px solid #e6ebf5;
}

.gth-main__logo {
  width: 88px;
  height: 24px;
  object-fit: contain;
}

.gth-main__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gth-main__menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px 8px 16px;
  background: #eb0028;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.gth-main__menu-bars {
  flex-shrink: 0;
  width: 18px;
  height: 14px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 6px / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 12px / 100% 2px no-repeat;
}

/* Mobile menu overlay */
.gth-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.gth-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 119, 0.35);
}

.gth-menu__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  height: 100%;
  margin-left: auto;
  background: #fff;
  box-shadow: -8px 0 28px rgba(0, 33, 120, 0.12);
}

.gth-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e6ebf5;
}

.gth-menu__close {
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: #002b78;
  padding: 4px 8px;
  cursor: pointer;
}

.gth-menu__primary {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 10px;
  gap: 18px;
}

.gth-menu__primary a {
  font-size: 1.35rem;
  font-weight: 700;
  color: #002b78;
  text-decoration: none;
}

.gth-menu__secondary {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 14px 24px;
  background: #f2f4fa;
  border-radius: 24px 24px 0 0;
}

.gth-menu__secondary a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  color: #002b78;
  font-weight: 700;
  text-decoration: none;
}

.gth-menu__secondary img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

body.gratta-menu-open {
  overflow: hidden;
}

.gratta-splice .gth-menu__panel {
  max-width: min(430px, 100vw);
}