/* Carv | Menu mobile (painel do Menu Burger dos headers PT e EN). O menu de desktop não é afetado. */
body:has(.column_header_burger.mfn-header-tmpl-menu-active){overflow:hidden}

/* O Betheme esconde o painel com right: calc(largura * -1), por isso a largura muda-se pela variável e não pelo width. */
.column_header_burger .mfn-header-tmpl-menu-sidebar{
  --mfn-header-menu-sidebar-width:100vw;
  width:var(--mfn-header-menu-sidebar-width)!important;max-width:none!important;height:100vh;height:100dvh;
  visibility:hidden;transition:right .5s ease-in-out,left .5s ease-in-out,visibility 0s linear .5s!important;
  background:#1b1e3d!important;
  background-image:
    radial-gradient(120% 60% at 100% 0%,rgba(87,94,254,.38) 0%,rgba(87,94,254,0) 60%),
    radial-gradient(90% 50% at 0% 100%,rgba(0,215,255,.16) 0%,rgba(0,215,255,0) 60%)!important;
  box-shadow:none!important;
}
.column_header_burger.mfn-header-tmpl-menu-active .mfn-header-tmpl-menu-sidebar{
  visibility:visible;transition:right .5s ease-in-out,left .5s ease-in-out,visibility 0s!important;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar .mfn-header-tmpl-menu-sidebar-wrapper{
  display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;
  height:100%;min-height:100%;padding:24px 24px calc(28px + env(safe-area-inset-bottom))!important;
  overflow-y:auto;overflow-x:hidden;text-align:left;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar .mfn-header-tmpl-menu-sidebar-wrapper>*{flex-shrink:0;max-width:100%}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a .label-wrapper{min-width:0;overflow-wrap:anywhere}

/* Topo: logo + botão fechar */
.column_header_burger .carv-mm-top{display:flex;align-items:center;justify-content:space-between;min-height:52px;margin:0 0 40px}
.column_header_burger .carv-mm-top img{height:38px;width:auto;display:block}
.column_header_burger .mfn-header-tmpl-menu-sidebar .mfn-close-icon{
  position:absolute!important;top:24px!important;right:24px!important;left:auto!important;
  width:52px;height:52px;display:flex!important;align-items:center;justify-content:center;
  border:1px solid #323779;border-radius:50%;background:rgba(37,40,76,.7);
  font-size:18px!important;line-height:1;transition:border-color .2s,background-color .2s,transform .3s;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar .mfn-close-icon .icon{color:#e3f4f8!important}
.column_header_burger .mfn-header-tmpl-menu-sidebar .mfn-close-icon:hover{border-color:#00d7ff;transform:rotate(90deg)}

.column_header_burger .carv-mm-eyebrow{
  font-family:'Jost',sans-serif;font-size:12px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;
  color:#00d7ff;margin:0 0 10px;display:flex;align-items:center;gap:10px;
}
.column_header_burger .carv-mm-eyebrow:before{content:"";width:24px;height:1px;background:#00d7ff}

/* Lista de links */
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu{
  display:block!important;width:100%;margin:0!important;padding:0!important;counter-reset:carvmm;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li{
  --mfn-header-menu-gap:0px!important;display:block!important;width:100%;margin:0!important;padding:0!important;
  border-bottom:1px solid #323779;counter-increment:carvmm;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li.lang-item{display:none!important}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a{
  display:flex!important;align-items:center;justify-content:flex-start;gap:16px;width:100%;
  padding:20px 0!important;text-decoration:none;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a:before{
  content:counter(carvmm,decimal-leading-zero);font-family:'Jost',sans-serif;font-size:13px;font-weight:600;
  letter-spacing:.06em;color:#6b709f;min-width:22px;transition:color .2s;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a:after{
  content:"↗";margin-left:auto;font-size:20px;color:#6b709f;transition:transform .2s,color .2s;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a .menu-item-helper,
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a .menu-sub{display:none!important}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a .menu-label{
  font-family:'Unbounded',sans-serif!important;font-weight:800!important;font-size:clamp(24px,7.4vw,34px)!important;
  line-height:1.1!important;letter-spacing:-.01em;text-transform:uppercase;color:#e3f4f8;transition:color .2s;
}
/* Hover e página ativa com o gradiente do botão de proposta (roxo/azul) */
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a:hover .menu-label,
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li.carv-mm-current>a .menu-label{
  background:linear-gradient(100deg,#6f75ff 0%,#575efe 40%,#00d7ff 120%);
  -webkit-background-clip:text;background-clip:text;color:transparent!important;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a:hover:after,
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li.carv-mm-current>a:after{color:#7a80ff}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a:hover:after{transform:translate(3px,-3px)}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li.carv-mm-current{border-bottom-color:#575efe}
/* Sem números antes dos links e sem o texto "Menu" */
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a:before{content:none!important;display:none!important}
.column_header_burger .carv-mm-eyebrow{display:none!important}

/* Rodapé: idioma, CTA e email */
.column_header_burger .carv-mm-footer{margin-top:auto;padding-top:36px;display:flex;flex-direction:column;gap:18px}
.column_header_burger .carv-mm-langs{display:flex;gap:8px}
.column_header_burger .carv-mm-langs a{
  font-family:'Jost',sans-serif;font-size:13px;font-weight:600;letter-spacing:.12em;
  padding:9px 16px;border-radius:64px;border:1px solid #323779;color:#8589b2!important;text-decoration:none;
}
.column_header_burger .carv-mm-langs a.is-active{background:#e3f4f8;border-color:#e3f4f8;color:#1b1e3d!important}
.column_header_burger .carv-mm-cta{
  display:flex;align-items:center;justify-content:space-between;width:100%;
  padding:20px 26px;border-radius:64px;background:#575efe;color:#fff!important;text-decoration:none;
  font-family:'Jost',sans-serif;font-size:17px;font-weight:600;letter-spacing:.02em;
  box-shadow:0 14px 40px rgba(87,94,254,.35);transition:background-color .2s,color .2s;
}
.column_header_burger .carv-mm-cta span{font-size:20px}
.column_header_burger .carv-mm-cta:hover{background:#00d7ff;color:#1b1e3d!important}
.column_header_burger .carv-mm-mail{
  font-family:'Jost',sans-serif;font-size:15px;color:#8589b2!important;text-decoration:none;text-align:center;
}
.column_header_burger .carv-mm-mail b{color:#e3f4f8;font-weight:500}

/* Entrada animada quando o menu abre */
@keyframes carvMmIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.column_header_burger.mfn-header-tmpl-menu-active ul.mfn-header-menu>li,
.column_header_burger.mfn-header-tmpl-menu-active .carv-mm-eyebrow,
.column_header_burger.mfn-header-tmpl-menu-active .carv-mm-footer{animation:carvMmIn .55s cubic-bezier(.2,.7,.2,1) both}
.column_header_burger.mfn-header-tmpl-menu-active .carv-mm-eyebrow{animation-delay:.08s}
.column_header_burger.mfn-header-tmpl-menu-active ul.mfn-header-menu>li:nth-child(1){animation-delay:.12s}
.column_header_burger.mfn-header-tmpl-menu-active ul.mfn-header-menu>li:nth-child(2){animation-delay:.17s}
.column_header_burger.mfn-header-tmpl-menu-active ul.mfn-header-menu>li:nth-child(3){animation-delay:.22s}
.column_header_burger.mfn-header-tmpl-menu-active ul.mfn-header-menu>li:nth-child(4){animation-delay:.27s}
.column_header_burger.mfn-header-tmpl-menu-active ul.mfn-header-menu>li:nth-child(5){animation-delay:.32s}
.column_header_burger.mfn-header-tmpl-menu-active ul.mfn-header-menu>li:nth-child(6){animation-delay:.37s}
.column_header_burger.mfn-header-tmpl-menu-active .carv-mm-footer{animation-delay:.42s}
@media (prefers-reduced-motion:reduce){
  .column_header_burger.mfn-header-tmpl-menu-active *{animation:none!important}
}

/* Tudo dentro do ecrã, sem scroll: tamanhos e espaçamentos acompanham a altura disponível (svh = altura visível no telemóvel). */
.column_header_burger .mfn-header-tmpl-menu-sidebar .mfn-header-tmpl-menu-sidebar-wrapper{
  overflow-y:hidden;
  padding:clamp(14px,2.6vh,24px) 22px clamp(14px,2.6vh,28px)!important;
  padding:clamp(14px,2.6svh,24px) 22px calc(clamp(14px,2.6svh,28px) + env(safe-area-inset-bottom))!important;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar .mfn-close-icon{
  top:clamp(12px,2.2svh,24px)!important;right:22px!important;
  width:clamp(40px,6svh,50px);height:clamp(40px,6svh,50px);
}
.column_header_burger .carv-mm-top{min-height:clamp(40px,6svh,50px);margin:0 0 clamp(10px,3svh,34px)}
.column_header_burger .carv-mm-top img{height:clamp(26px,4.4svh,38px)}
.column_header_burger .carv-mm-eyebrow{margin-bottom:clamp(2px,1svh,10px);font-size:clamp(10px,1.5svh,12px)}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a{padding:clamp(7px,1.9svh,18px) 0!important}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a .menu-label{
  font-size:clamp(17px,min(7vw,4.4svh),32px)!important;
}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a:before{font-size:clamp(10px,1.6svh,13px)}
.column_header_burger .mfn-header-tmpl-menu-sidebar ul.mfn-header-menu>li>a:after{font-size:clamp(15px,2.4svh,20px)}
.column_header_burger .carv-mm-footer{padding-top:clamp(10px,2.6svh,32px);gap:clamp(8px,1.6svh,16px)}
.column_header_burger .carv-mm-langs a{padding:clamp(5px,1svh,9px) 16px;font-size:clamp(11px,1.6svh,13px)}
.column_header_burger .carv-mm-cta{padding:clamp(11px,2.1svh,20px) 24px;font-size:clamp(14px,2.1svh,17px)}
.column_header_burger .carv-mm-mail{font-size:clamp(12px,1.8svh,15px)}
/* Ecrãs muito baixos (ex.: telemóvel na horizontal): esconde o que é secundário */
@media (max-height:520px){
  .column_header_burger .carv-mm-eyebrow,
  .column_header_burger .carv-mm-mail{display:none}
}
