/* =========================================================
   CANOINHAS DIGITAL — V1.0.24.11
   DESKTOP RECOVERY
   Preserva integralmente o menu premium mobile <= 760px.
   ========================================================= */

@media (min-width:761px){

  /* Nunca mostrar componentes exclusivos do drawer mobile no desktop. */
  body:not(.admin-body) .cd-menu-backdrop,
  body:not(.admin-body) #cdMainNav .cd-premium-menu-hero,
  body:not(.admin-body) #cdMainNav .cd-premium-menu-icon,
  body:not(.admin-body) #cdMainNav .cd-premium-menu-arrow,
  body:not(.admin-body) #cdMainNav .cd-premium-menu-bottom,
  body:not(.admin-body) .site-header .menu-toggle{
    display:none !important;
  }

  /* Header desktop: uma única linha, sem herdar dimensões do drawer. */
  body:not(.admin-body) .site-header{
    width:100% !important;
    min-height:76px !important;
    height:76px !important;
    padding:0 clamp(24px,3vw,56px) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:clamp(20px,2.2vw,38px) !important;
    background:#062d40 !important;
    border:0 !important;
    box-shadow:0 1px 0 rgba(255,255,255,.06) !important;
    position:relative !important;
    z-index:1000 !important;
    overflow:visible !important;
  }

  body:not(.admin-body) .site-header.header-overlay{
    position:absolute !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    background:linear-gradient(180deg,rgba(3,36,50,.96),rgba(3,36,50,.82)) !important;
  }

  body:not(.admin-body) .site-header .brand.brand-official{
    width:190px !important;
    height:58px !important;
    min-width:190px !important;
    flex:0 0 190px !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    overflow:visible !important;
  }

  body:not(.admin-body) .site-header .brand-official-logo{
    display:block !important;
    width:184px !important;
    max-width:184px !important;
    height:auto !important;
    max-height:56px !important;
    margin:0 !important;
    padding:0 !important;
    object-fit:contain !important;
    object-position:left center !important;
    transform:none !important;
    filter:none !important;
    opacity:1 !important;
  }

  /* Neutraliza totalmente o comportamento de drawer no desktop. */
  body:not(.admin-body) .site-header #cdMainNav.cd-premium-drawer{
    position:static !important;
    inset:auto !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    z-index:auto !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    flex:1 1 auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    transform:none !important;
    visibility:visible !important;
    opacity:1 !important;
    filter:none !important;
    backdrop-filter:none !important;
    transition:none !important;
  }

  body:not(.admin-body) #cdMainNav .cd-premium-menu-list{
    width:auto !important;
    max-width:none !important;
    flex:0 1 auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:clamp(8px,1vw,18px) !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    background:transparent !important;
  }

  body:not(.admin-body) #cdMainNav .cd-premium-menu-item{
    width:auto !important;
    min-width:0 !important;
    height:40px !important;
    min-height:40px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    padding:0 3px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#d9e8ed !important;
    font-size:13px !important;
    font-weight:750 !important;
    line-height:1 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    transform:none !important;
  }

  body:not(.admin-body) #cdMainNav .cd-premium-menu-item::before,
  body:not(.admin-body) #cdMainNav .cd-premium-menu-item::after{
    content:none !important;
    display:none !important;
  }

  body:not(.admin-body) #cdMainNav .cd-premium-menu-label{
    display:inline !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    color:inherit !important;
    font:inherit !important;
    line-height:inherit !important;
    text-align:center !important;
  }

  body:not(.admin-body) #cdMainNav .cd-premium-menu-item:hover,
  body:not(.admin-body) #cdMainNav .cd-premium-menu-item.active{
    color:#ffffff !important;
    background:transparent !important;
  }

  body:not(.admin-body) #cdMainNav .cd-premium-menu-item.active{
    position:relative !important;
  }

  body:not(.admin-body) #cdMainNav .cd-premium-menu-item.active .cd-premium-menu-label::after{
    content:"" !important;
    display:block !important;
    width:100% !important;
    height:2px !important;
    margin-top:7px !important;
    border-radius:4px !important;
    background:#00cf96 !important;
  }

  /* Ações reais do header desktop continuam sendo as do layout original. */
  body:not(.admin-body) .site-header .header-actions{
    flex:0 0 auto !important;
    display:flex !important;
    align-items:center !important;
    gap:9px !important;
    margin:0 !important;
    padding:0 !important;
  }

  body:not(.admin-body) .site-header .header-actions a{
    min-height:40px !important;
    height:40px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    padding:0 16px !important;
    border-radius:11px !important;
    font-size:13px !important;
    font-weight:800 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    text-decoration:none !important;
  }

  body:not(.admin-body) .site-header .header-actions .login{
    border:1px solid rgba(255,255,255,.20) !important;
    background:transparent !important;
    color:#fff !important;
  }

  body:not(.admin-body) .site-header .header-actions .signup{
    border:1px solid #00c98d !important;
    background:#00c98d !important;
    color:#053a31 !important;
  }

  /* Garante que classes de menu aberto nunca alterem o desktop. */
  body.cd-menu-open,
  body.cd-public-menu-open,
  body.cd-app-menu-open{
    overflow:auto !important;
  }
}

/* Em telas desktop menores, reduz apenas a densidade da navegação. */
@media (min-width:761px) and (max-width:1180px){
  body:not(.admin-body) .site-header{
    padding-left:20px !important;
    padding-right:20px !important;
    gap:16px !important;
  }
  body:not(.admin-body) .site-header .brand.brand-official{
    width:164px !important;
    min-width:164px !important;
    flex-basis:164px !important;
  }
  body:not(.admin-body) .site-header .brand-official-logo{
    width:158px !important;
  }
  body:not(.admin-body) #cdMainNav .cd-premium-menu-list{
    gap:8px !important;
  }
  body:not(.admin-body) #cdMainNav .cd-premium-menu-item{
    font-size:12px !important;
  }
  body:not(.admin-body) .site-header .header-actions a{
    padding-left:11px !important;
    padding-right:11px !important;
    font-size:12px !important;
  }
}

/* =========================================================
   CANOINHAS DIGITAL — V1.0.24.12
   DESKTOP HEADER — ACABAMENTO
   ========================================================= */

@media (min-width:761px){

    /* HEADER com proporção mais premium */
    body:not(.admin-body) .site-header{
        min-height:88px !important;
        height:88px !important;
        padding-left:clamp(34px,3.2vw,64px) !important;
        padding-right:clamp(34px,3.2vw,64px) !important;
        gap:28px !important;
    }

    /* LOGO maior */
    body:not(.admin-body) .site-header .brand.brand-official{
        width:225px !important;
        min-width:225px !important;
        flex:0 0 225px !important;
        height:70px !important;
    }

    body:not(.admin-body) .site-header .brand-official-logo{
        width:215px !important;
        max-width:215px !important;
        max-height:68px !important;
    }

    /* navegação ocupa corretamente o espaço central */
    body:not(.admin-body) .site-header #cdMainNav.cd-premium-drawer{
        flex:1 1 auto !important;
        min-width:0 !important;
    }

    body:not(.admin-body) #cdMainNav .cd-premium-menu-list{
        flex:1 1 auto !important;
        display:flex !important;
        justify-content:flex-end !important;
        align-items:center !important;
        gap:24px !important;
    }

    /* menus maiores e mais legíveis */
    body:not(.admin-body) #cdMainNav .cd-premium-menu-item{
        height:46px !important;
        min-height:46px !important;
        padding:0 !important;

        font-size:15px !important;
        font-weight:800 !important;
        letter-spacing:-.1px !important;
    }

    /* ações à direita */
    body:not(.admin-body) .site-header .header-actions{
        gap:11px !important;
        flex:0 0 auto !important;
    }

    body:not(.admin-body) .site-header .header-actions a{
        height:46px !important;
        min-height:46px !important;
        padding:0 20px !important;
        font-size:14px !important;
        border-radius:12px !important;
    }

    /*
     * O Planos já existe dentro de #cdMainNav.
     * Remove somente o Planos antigo/duplicado que ficou
     * em header-actions.
     */
    body:not(.admin-body)
    .site-header
    .header-actions
    a[href$="/planos"]{
        display:none !important;
    }
}


/* notebook / desktop menor */
@media (min-width:761px) and (max-width:1280px){

    body:not(.admin-body) .site-header{
        padding-left:24px !important;
        padding-right:24px !important;
        gap:18px !important;
    }

    body:not(.admin-body) .site-header .brand.brand-official{
        width:190px !important;
        min-width:190px !important;
        flex-basis:190px !important;
    }

    body:not(.admin-body) .site-header .brand-official-logo{
        width:185px !important;
    }

    body:not(.admin-body) #cdMainNav .cd-premium-menu-list{
        gap:14px !important;
    }

    body:not(.admin-body) #cdMainNav .cd-premium-menu-item{
        font-size:13.5px !important;
    }

    body:not(.admin-body) .site-header .header-actions a{
        padding-left:15px !important;
        padding-right:15px !important;
        font-size:13px !important;
    }
}


/* =========================================================
   V1.0.24.13 — REMOVE PLANOS DUPLICADO SOMENTE NO DESKTOP
   ========================================================= */
@media (min-width:761px){

    /* mantém o Planos oficial dentro da lista principal */
    body:not(.admin-body)
    #cdMainNav
    .cd-premium-menu-list
    .cd-menu-planos{
        display:flex !important;
    }

    /* remove qualquer Planos irmão que esteja fora da lista */
    body:not(.admin-body)
    #cdMainNav.cd-premium-drawer
    > a[href$="/planos"]{
        display:none !important;
    }

    body:not(.admin-body)
    #cdMainNav.cd-premium-drawer
    > .cd-menu-planos{
        display:none !important;
    }

    /* segurança para Planos legado direto no header */
    body:not(.admin-body)
    .site-header
    > a[href$="/planos"]{
        display:none !important;
    }
}

