/* CP327: one responsive navigation and one responsive homepage Hero in the DOM. */
.pg-site-header .header-inner { position: relative; }
.pg-site-header .burger-btn { display: none !important; }
.pg-header-whatsapp { display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.pg-header-whatsapp svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .pg-site-header { position: sticky !important; overflow: visible !important; padding-inline: 0 !important; }
  .pg-site-header .header-inner { position: static !important; gap: 8px !important; padding-inline: 16px !important; }
  html body.pg-visual-system .pg-site-header .header-inner > a.logo { flex: 0 0 56px !important; width: 56px !important; min-width: 56px !important; }
  html body.pg-visual-system .pg-site-header .header-inner > a.logo img { width: 56px !important; max-width: 56px !important; height: auto !important; max-height: 30px !important; }
  .pg-site-header .desktop-nav { display: none !important; }
  .pg-site-header.menu-open .desktop-nav {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1101 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100dvh - 72px) !important;
    overflow: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 16px !important;
    border-bottom: 1px solid rgba(195, 210, 227, .14) !important;
    background: #020811 !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42) !important;
  }
  .pg-site-header.menu-open .desktop-nav > a,
  .pg-site-header.menu-open .desktop-nav .pg-mega-trigger {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    justify-content: flex-start !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(195, 210, 227, .12) !important;
    border-radius: 9px !important;
    background: #0A1119 !important;
    color: #F3F6F8 !important;
    text-align: left !important;
  }
  .pg-site-header.menu-open .desktop-nav .pg-mega-trigger { justify-content: space-between !important; }
  .pg-site-header.menu-open .pg-mega-wrap { width: 100% !important; }
  .pg-site-header.menu-open .pg-mega-panel {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin-top: 8px !important;
    padding: 12px !important;
    box-shadow: none !important;
    translate: none !important;
  }
  .pg-site-header .header-actions { flex: 0 0 auto !important; margin-left: auto !important; gap: 4px !important; }
  .pg-site-header .lang-switch { display: inline-flex !important; flex: 0 0 max-content !important; width: max-content !important; min-width: 0 !important; font-size: 12px !important; gap: 4px !important; }
  .pg-site-header .pg-header-whatsapp-label { display: none !important; }
  .pg-site-header .burger-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }
  .pg-site-header .pg-header-whatsapp { min-width: 40px !important; min-height: 44px !important; }
  html body.pg-visual-system .pg-site-header .header-actions > a.btn-primary { min-height: 44px !important; padding-inline: 7px !important; font-size: 10px !important; }
}
@media (max-width: 380px) {
  .pg-site-header .header-inner { gap: 4px !important; padding-inline: 10px !important; }
  html body.pg-visual-system .pg-site-header .header-inner > a.logo { min-width: 74px !important; width: 74px !important; flex: 0 0 74px !important; }
  html body.pg-visual-system .pg-site-header .header-inner > a.logo img { width: 74px !important; max-width: 74px !important; height: auto !important; max-height: 28px !important; }
  .pg-site-header .header-actions { flex: 0 0 auto !important; gap: 4px !important; }
  .pg-site-header .lang-switch { flex: 0 0 max-content !important; width: max-content !important; }
  html body.pg-visual-system .page .pg-site-header .header-inner .header-actions > a.btn-primary:not([hidden]):not(.pgd-hero *):not(.pgm-copy *) { display: none !important; }
}
@media (min-width: 381px) and (max-width: 480px) {
  html body.pg-visual-system .pg-site-header .header-actions > a.btn-primary { max-width: 72px !important; min-width: 72px !important; padding-inline: 4px !important; white-space: normal !important; line-height: 1.05 !important; text-align: center !important; }
}
@media (max-width: 340px) {
  .pg-site-header .header-inner { gap: 4px !important; }
  html body.pg-visual-system .pg-site-header .header-inner > a.logo { min-width: 64px !important; width: 64px !important; flex-basis: 64px !important; }
  html body.pg-visual-system .pg-site-header .header-inner > a.logo img { width: 64px !important; max-width: 64px !important; }
}

@media (min-width: 769px) and (max-width: 1023px) {
  html body.pg-page-home .pg-sector-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* The full-width section keeps the existing 1024px desktop Hero canvas; the same content stacks on narrower screens. */
html body.pg-page-home main#main > .pgd-hero-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #020811 !important;
}
html body.pg-page-home .pgd-hero-section > .pg-home-hero-inner {
  display: block !important;
  width: 100% !important;
  max-width: 1024px !important;
  margin-inline: auto !important;
}
@media (max-width: 1023px) {
  html body.pg-page-home .pgd-hero-section > .pg-home-hero-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  html body.pg-page-home .pgd-hero-section .pgd-hero {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: hidden !important;
    background: #020811 !important;
  }
  html body.pg-page-home .pgd-hero-section .pgd-hero-copy {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: 24px clamp(20px, 6vw, 32px) 18px !important;
    box-sizing: border-box !important;
  }
  html body.pg-page-home .pgd-hero-section .pgd-hero-copy h1 {
    margin: 0 0 12px !important;
    font-size: clamp(30px, 8vw, 43px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em !important;
  }
  html body.pg-page-home .pgd-hero-section .pgd-hero-copy > p { margin: 0 0 14px !important; }
  html body.pg-page-home .pgd-hero-section .pgd-hero-search { width: 100% !important; max-width: none !important; }
  html body.pg-page-home .pgd-hero-section .pgd-hero-visual {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    margin: 0 !important;
    aspect-ratio: 3 / 2 !important;
    background: #071522 !important;
  }
  html body.pg-page-home .pgd-hero-section .pgd-hero-visual > picture {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }
  html body.pg-page-home .pgd-hero-section .pgd-hero-visual img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  html body.pg-page-home .pgd-hero-section .pgd-hero::after { display: none !important; content: none !important; }
  html body.pg-page-home .pgd-hero-section .pgd-hero-flow,
  html body.pg-page-home .pgd-hero-section .pgm-home-steps { flex-wrap: wrap !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body.pg-visual-system .pg-site-header .desktop-nav,
  html body.pg-page-home .pgd-hero-section * { scroll-behavior: auto !important; }
}
