/* GW_CSS_SEM_DELAY_FINAL_2026_08_05 */
  /* ---- Notebook (<=1280): narrow the container ---- */
  @media (max-width: 1280px) {
    div[style*="max-width:1280px"] { max-width: 1080px !important; }
  }

  /* ---- Show hamburger / hide desktop nav (<=1080) ---- */
  @media (max-width: 1080px) {
    #siteHeader nav { display: none !important; }
    #menuToggle { display: inline-flex !important; }
    #navDrawer, #navOverlay { display: flex !important; }
    #headerCtas a:first-child { display: none !important; }
  }

  /* ---- Tablet horizontal (<=1024) ---- */
  @media (max-width: 1024px) {
    div[style*="grid-template-columns:1.1fr 0.9fr"],
    div[style*="grid-template-columns:5fr 7fr"] { grid-template-columns: 1fr !important; gap: 44px !important; }
    div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
    div[style*="grid-template-columns:4fr 2fr 3fr 3fr"] { grid-template-columns: repeat(2,1fr) !important; }
    div[style*="border-top:1px dashed"] { display: none !important; }
    h1:not(#heroH1) { font-size: 44px !important; }
    section[style*="padding:112px 0"] { padding-top: 80px !important; padding-bottom: 80px !important; }
    section[id="inicio"] video { object-position: 78% 14% !important; }
    #heroTextBlock { max-width: 420px !important; }
  }

  /* ---- Tablet vertical (<=820) ---- */
  @media (max-width: 820px) {
    div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
    div[style*="grid-template-columns:2fr 1fr"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns:7fr 5fr"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns:7fr 5fr"] [style*="justify-content:flex-end"] { justify-content: flex-start !important; }
  }

  /* ---- Large phones (<=640) ---- */
  @media (max-width: 640px) {
    div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    div[style*="margin:0 auto; padding:0 32px"] { padding-left: 20px !important; padding-right: 20px !important; }
    footer div[style*="padding:48px 32px"],
    footer div[style*="padding:64px 32px"],
    footer div[style*="padding:20px 32px"] { padding-left: 20px !important; padding-right: 20px !important; }
    section[style*="padding:112px 0"] { padding-top: 56px !important; padding-bottom: 56px !important; }
    section[style*="padding:144px 0 96px"] { padding-top: 104px !important; padding-bottom: 56px !important; }
    h1 { font-size: 32px !important; line-height: 1.15 !important; }
    h2 { font-size: 26px !important; }
    #leadWizard div[style*="padding:36px 36px 32px"] { padding: 24px 20px !important; }
    #leadWizard div[style*="padding:20px 28px"] { padding: 16px 18px !important; }
    /* full-width, stacked hero buttons */
    section[style*="padding:144px 0 96px"] div[style*="display:flex; gap:12px"] { flex-direction: column !important; align-items: stretch !important; }
    section[id="inicio"] video { object-position: 55% 12% !important; }
    section[id="inicio"] h1 { font-size: clamp(34px,9vw,46px) !important; line-height: 1.08 !important; }
    section[id="inicio"] > div[style*="justify-content:space-between"] > div[style*="max-width:460px"] { max-width: 100% !important; }
    #heroModule > div { flex-direction: column !important; }
    #heroModule a { width: 100% !important; }
    #metodologia { padding-top: 220px !important; }
    /* mobile hero: two-zone stacked composition (video top, content zone bottom) */
    @media (max-width: 640px) {
      section[id="inicio"] { height: 100svh !important; height: 100dvh !important; overflow: hidden !important; }
      section[id="inicio"] video { object-position: 55% 14% !important; }
      #heroGradient { background: linear-gradient(180deg, rgba(5,19,36,0) 0%, rgba(5,19,36,0.38) 18%, rgba(5,19,36,0.82) 48%, rgba(5,19,36,0.98) 76%, rgba(5,19,36,1) 100%) !important; }
      section[id="inicio"] > div[style*="justify-content:space-between"] { padding: 0 20px 32px !important; justify-content: flex-end !important; gap: 28px; }
      #heroTextBlock { max-width: 100% !important; }
      #heroModule { align-self: stretch !important; max-width: none !important; }
      #heroModule > div { width: 100%; box-sizing: border-box; }
    }
    /* footer CTA cluster stacks full-width */
    footer div[style*="justify-content:space-between"] { flex-wrap: wrap !important; gap: 10px !important; }
    footer div[style*="justify-content:flex-end"] { flex-direction: column !important; width: 100% !important; }
    footer div[style*="justify-content:flex-end"] a { width: 100% !important; justify-content: center !important; }
  }

  /* ---- Small phones (<=480) ---- */
  @media (max-width: 480px) {
    div[style*="margin:0 auto; padding:0 32px"] { padding-left: 16px !important; padding-right: 16px !important; }
    h1 { font-size: 29px !important; }
    h2 { font-size: 23px !important; }
    #headerCtas a:last-child { display: none !important; }
    #siteHeader img { height: 38px !important; }
    div[style*="font-size:46px"] { font-size: 38px !important; }
  }


/* cnpj.html additional rules */
  /* ============ RESPONSIVE SYSTEM ============ */
  #menuToggle, #navDrawer, #navOverlay { display: none; }
  a, button { -webkit-tap-highlight-color: transparent; }
  a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #C9A24D; outline-offset: 2px; }

  /* ---- Notebook (<=1280): narrow the container ---- */
  @media (max-width: 1280px) {
    div[style*="max-width:1280px"] { max-width: 1080px !important; }
  }

  /* ---- Show hamburger / hide desktop nav (<=1080) ---- */
  @media (max-width: 1080px) {
    #siteHeader nav { display: none !important; }
    #menuToggle { display: inline-flex !important; }
    #navDrawer, #navOverlay { display: flex !important; }
    #headerCtas a:first-child { display: none !important; }
  }

  /* ---- Tablet horizontal (<=1024) ---- */
  @media (max-width: 1024px) {
    div[style*="grid-template-columns:1.1fr 0.9fr"],
    div[style*="grid-template-columns:5fr 7fr"] { grid-template-columns: 1fr !important; gap: 44px !important; }
    div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
    div[style*="grid-template-columns:4fr 2fr 3fr 3fr"] { grid-template-columns: repeat(2,1fr) !important; }
    div[style*="border-top:1px dashed"] { display: none !important; }
    h1 { font-size: 44px !important; }
    section[style*="padding:112px 0"] { padding-top: 80px !important; padding-bottom: 80px !important; }
  }

  /* ---- Tablet vertical (<=820) ---- */
  @media (max-width: 820px) {
    div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
    div[style*="grid-template-columns:2fr 1fr"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns:7fr 5fr"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns:7fr 5fr"] [style*="justify-content:flex-end"] { justify-content: flex-start !important; }
  }

  /* ---- Large phones (<=640) ---- */
  @media (max-width: 640px) {
    div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    div[style*="margin:0 auto; padding:0 32px"] { padding-left: 20px !important; padding-right: 20px !important; }
    footer div[style*="padding:48px 32px"],
    footer div[style*="padding:64px 32px"],
    footer div[style*="padding:20px 32px"] { padding-left: 20px !important; padding-right: 20px !important; }
    section[style*="padding:112px 0"] { padding-top: 56px !important; padding-bottom: 56px !important; }
    section[style*="padding:144px 0 96px"] { padding-top: 104px !important; padding-bottom: 56px !important; }
    h1 { font-size: 32px !important; line-height: 1.15 !important; }
    h2 { font-size: 26px !important; }
    #leadWizard div[style*="padding:36px 36px 32px"] { padding: 24px 20px !important; }
    #leadWizard div[style*="padding:20px 28px"] { padding: 16px 18px !important; }
    /* full-width, stacked hero buttons */
    section[style*="padding:144px 0 96px"] div[style*="display:flex; gap:12px"] { flex-direction: column !important; align-items: stretch !important; }
    section[style*="padding:144px 0 96px"] a[href="#analise"],
    section[style*="padding:144px 0 96px"] a[href*="wa.me"] { width: 100% !important; justify-content: center !important; }
    /* footer CTA cluster stacks full-width */
    footer div[style*="justify-content:space-between"] { flex-wrap: wrap !important; gap: 10px !important; }
    footer div[style*="justify-content:flex-end"] { flex-direction: column !important; width: 100% !important; }
    footer div[style*="justify-content:flex-end"] a { width: 100% !important; justify-content: center !important; }
  }

  /* ---- Small phones (<=480) ---- */
  @media (max-width: 480px) {
    div[style*="margin:0 auto; padding:0 32px"] { padding-left: 16px !important; padding-right: 16px !important; }
    h1 { font-size: 29px !important; }
    h2 { font-size: 23px !important; }
    #headerCtas a:last-child { display: none !important; }
    #siteHeader img { height: 38px !important; }
    div[style*="font-size:46px"] { font-size: 38px !important; }
  }
