/* Matina: alinhamento compartilhado dos cabeçalhos nas cinco páginas do menu. */
body.page-id-399, body.page-id-384, body.page-id-529, body.page-id-389, body.page-id-394 { overflow-x: hidden; }

#matina-site .m-head,
.elementor header.mt-header {
  box-sizing: border-box;
  height: 82px !important;
  min-height: 82px !important;
  padding: 0 clamp(22px, 6vw, 92px) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid #9AA49C;
}
#matina-site .m-head nav,
.elementor header.mt-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 38px) !important;
  font-size: 13px;
}
#matina-site .m-head nav a,
.elementor header.mt-header nav a { white-space: nowrap; }
#matina-site .m-head nav a:first-child { border-bottom: 0; }
#matina-site .m-head nav a.mt-current { border-bottom: 1px solid #FFFFFF; }
#matina-site .m-head .m-social,
.elementor header.mt-header .mt-social {
  order: 3;
  margin-left: auto !important;
  flex-shrink: 0;
}
#matina-site .m-head .mt-lang,
.elementor header.mt-header .mt-lang {
  order: 4;
  margin-left: 0 !important;
  flex-shrink: 0;
}
#matina-site .m-head .m-language { display: none !important; }
.elementor header.mt-header .mt-right { display: contents !important; }

/* O mesmo seletor visual e menu de idiomas em todas as páginas. */
.mt-lang { position: relative; font-family: Cabin, sans-serif; }
.mt-lang-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 0; color: #F4F5F1; font-family: inherit; font-size: 0.95rem; cursor: pointer; padding: 0.4rem 0; }
.mt-flag { display: block; width: 20px; height: 14px; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.mt-chev { width: 10px; height: 6px; flex: 0 0 auto; }
.mt-lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 100; margin: 0; padding: 0.35rem 0; list-style: none; min-width: 9.5rem; background: #fff; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.mt-lang-list[hidden] { display: none; }
.mt-lang-opt { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.9rem; background: none; border: 0; color: #1B2B22; font-family: inherit; font-size: 0.9rem; text-align: left; cursor: pointer; }
.mt-lang-opt:hover { background: #E9EDE8; }
.mt-lang-opt.mt-selected { background: #1B2B22; color: #fff; }

/* Ajustes exclusivos do conteúdo da página Eventos e Reservas. */
body.page-id-529 .elementor header { border-bottom: 1px solid #9AA49C; }
body.page-id-529 .elementor header > a { align-items: baseline; }
body.page-id-529 .elementor footer > div:last-child { border-top: 1px solid #2D3F35; }
body.page-id-529 .elementor a[href*="wa.me"][href*="text="] { animation: mt-pulse 2s ease-in-out infinite; }
@keyframes mt-pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(24,53,43,.55); } 70% { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(24,53,43,0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(24,53,43,0); } }
@media (prefers-reduced-motion: reduce) { body.page-id-529 .elementor a[href*="wa.me"][href*="text="] { animation: none; } }
body.page-id-529 .elementor .elementor-image-carousel .swiper-slide img { display: block; width: 100%; height: 520px; object-fit: cover; }

@media (max-width: 850px) {
  #matina-site .m-head, .elementor header.mt-header {
    height: auto !important; min-height: 68px !important; flex-wrap: wrap !important;
    align-items: center !important; gap: 14px !important; padding: 10px 17px !important;
  }
  #matina-site .m-head nav, .elementor header.mt-header nav {
    order: 4 !important; flex: 0 0 100% !important; width: 100% !important;
    margin: 0 !important; padding: 4px 0 8px !important; border-top: 1px solid rgba(244,245,241,.15);
    display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important;
    gap: 13px !important; white-space: nowrap !important; overflow-x: auto !important; overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    scrollbar-width: none !important; -webkit-mask-image: none !important; mask-image: none !important;
  }
  #matina-site .m-head nav::-webkit-scrollbar,
  .elementor header.mt-header nav::-webkit-scrollbar { display: none; }
  #matina-site .m-head nav a, .elementor header.mt-header nav a {
    flex: 0 0 auto !important; white-space: nowrap !important; scroll-snap-align: start;
  }
  #matina-site .m-head .m-social, .elementor header.mt-header .mt-social { order: 2 !important; margin-left: auto !important; }
  #matina-site .m-head .mt-lang, .elementor header.mt-header .mt-lang {
    order: 3 !important; margin-left: 0 !important; margin-right: 0 !important;
  }
  #matina-site .m-head .m-language { display: none !important; }
  .elementor header.mt-header .mt-right { display: contents !important; }
  body.page-id-529 .elementor .elementor-image-carousel .swiper-slide img { height: 440px; }
}
@media (max-width: 560px) {
  #matina-site .m-brand span, .elementor header.mt-header .mt-logo-name { font-size: 31px !important; }
  #matina-site .m-brand small, .elementor header.mt-header .mt-logo-sub { font-size: 7px !important; }
  #matina-site .m-head nav, .elementor header.mt-header nav { font-size: 11px !important; gap: 13px !important; }
  body.page-id-529 .elementor .elementor-image-carousel .swiper-slide img { height: 380px; }
}
@media (max-width: 400px) {
  .mt-lang-code { display: none; }
  body.page-id-529 .elementor .elementor-image-carousel .swiper-slide img { height: 320px; }
}


/* Centraliza o menu e agrupa redes sociais e idioma no lado direito. */
#matina-site .m-head, .elementor header.mt-header { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
#matina-site .m-head .m-brand, .elementor header.mt-header .mt-logo { grid-column: 1; justify-self: start; }
#matina-site .m-head nav, .elementor header.mt-header nav { grid-column: 2; justify-self: center; }
#matina-site .m-head .mt-right, .elementor header.mt-header .mt-right { grid-column: 3; justify-self: end; display: flex !important; align-items: center; gap: 1.5rem; }
#matina-site .m-head .m-social, .elementor header.mt-header .mt-social { order: 0 !important; margin-left: 0 !important; gap: 2rem; }
#matina-site .m-head .mt-lang, .elementor header.mt-header .mt-lang { order: 1 !important; }
@media (max-width: 850px) {
  #matina-site .m-head, .elementor header.mt-header { display: flex !important; justify-content: space-between; }
  #matina-site .m-head nav, .elementor header.mt-header nav { grid-column: auto; }
  #matina-site .m-head .mt-right, .elementor header.mt-header .mt-right { grid-column: auto; order: 2 !important; justify-self: auto; margin-left: auto; gap: 8px; }
  #matina-site .m-head .m-social, .elementor header.mt-header .mt-social { order: 0 !important; margin: 0 !important; gap: 14px !important; }
  #matina-site .m-head .mt-lang, .elementor header.mt-header .mt-lang { order: 1 !important; margin: 0 !important; }
}


/* Corrige o cabeçalho Elementor de Eventos para usar o menu lateral no celular. */
@media (max-width:850px){body.page-id-529 .elementor header.e-default-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand social lang" "nav nav nav";align-items:center;column-gap:8px;row-gap:6px;height:auto!important;min-height:0!important;padding:10px 17px!important}body.page-id-529 .elementor header.e-default-header>a:first-child{grid-area:brand;justify-self:start}body.page-id-529 .elementor header.e-default-header>nav{grid-area:nav;display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:13px!important;width:100%!important;min-width:0;margin:0!important;padding:4px 0 8px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none!important;-webkit-mask-image:none!important;mask-image:none!important}body.page-id-529 .elementor header.e-default-header>nav::-webkit-scrollbar{display:none}body.page-id-529 .elementor header.e-default-header>nav p{flex:0 0 auto!important;margin:0!important;white-space:nowrap!important;scroll-snap-align:start}body.page-id-529 .elementor header.e-default-header>nav a{white-space:nowrap!important}body.page-id-529 .elementor header.e-default-header>div.e-default-div{grid-area:social;display:flex;align-items:center;justify-self:end;gap:14px}body.page-id-529 .elementor header.e-default-header>.mt-lang{grid-area:lang;justify-self:end}}
@media (max-width:560px){body.page-id-529 .elementor header.e-default-header>a:first-child span.e-heading-base{font-size:31px!important}body.page-id-529 .elementor header.e-default-header>a:first-child span.e-paragraph-base{font-size:7px!important}body.page-id-529 .elementor header.e-default-header>nav{font-size:11px!important;gap:13px!important}}
@media (max-width:400px){body.page-id-529 .elementor header.e-default-header .mt-lang-code{display:none}}


/* Corrige o cabeçalho Elementor de Eventos para usar o menu lateral no celular. */
@media (max-width:850px){body.page-id-529 .elementor header.e-default-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand social lang" "nav nav nav";align-items:center;column-gap:8px;row-gap:6px;height:auto!important;min-height:0!important;padding:10px 17px!important}body.page-id-529 .elementor header.e-default-header>a:first-child{grid-area:brand;justify-self:start}body.page-id-529 .elementor header.e-default-header>nav{grid-area:nav;display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:13px!important;width:100%!important;min-width:0;margin:0!important;padding:4px 0 8px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none!important;-webkit-mask-image:none!important;mask-image:none!important}body.page-id-529 .elementor header.e-default-header>nav::-webkit-scrollbar{display:none}body.page-id-529 .elementor header.e-default-header>nav p{flex:0 0 auto!important;margin:0!important;white-space:nowrap!important;scroll-snap-align:start}body.page-id-529 .elementor header.e-default-header>nav a{white-space:nowrap!important}body.page-id-529 .elementor header.e-default-header>div.e-default-div{grid-area:social;display:flex;align-items:center;justify-self:end;gap:14px}body.page-id-529 .elementor header.e-default-header>.mt-lang{grid-area:lang;justify-self:end}}
@media (max-width:560px){body.page-id-529 .elementor header.e-default-header>a:first-child span.e-heading-base{font-size:31px!important}body.page-id-529 .elementor header.e-default-header>a:first-child span.e-paragraph-base{font-size:7px!important}body.page-id-529 .elementor header.e-default-header>nav{font-size:11px!important;gap:13px!important}}
@media (max-width:400px){body.page-id-529 .elementor header.e-default-header .mt-lang-code{display:none}}


/* Empilha cabeçalho, conteúdo e rodapé da página Elementor de Eventos. */
body.page-id-529 .elementor.elementor-529 { display:flex !important; flex-direction:column !important; align-items:stretch !important; width:100% !important; }
body.page-id-529 .elementor.elementor-529 > header, body.page-id-529 .elementor.elementor-529 > section, body.page-id-529 .elementor.elementor-529 > footer { flex:0 0 auto !important; width:100% !important; max-width:100% !important; }


/* Cabeçalho de Eventos alinhado ao padrão das outras páginas no desktop. */
@media (min-width:851px){body.page-id-529 .elementor header.e-default-header{box-sizing:border-box;display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-rows:1fr;height:82px!important;min-height:82px!important;padding:0 clamp(22px,6vw,92px)!important;gap:0!important;align-items:center!important;justify-content:initial!important;border-bottom:1px solid #9AA49C}body.page-id-529 .elementor header.e-default-header>a:first-child{grid-column:1;grid-row:1;justify-self:start;width:auto!important}body.page-id-529 .elementor header.e-default-header>nav{grid-column:2;grid-row:1;justify-self:center;width:auto!important;display:flex!important;align-items:center;gap:clamp(18px,2.2vw,38px)!important;white-space:nowrap}body.page-id-529 .elementor header.e-default-header>div.e-default-div{grid-column:3;grid-row:1;justify-self:end;margin-right:112px!important;display:flex;align-items:center;gap:24px}body.page-id-529 .elementor header.e-default-header>.mt-lang{grid-column:3;grid-row:1;justify-self:end;margin:0!important;width:auto!important}}

/* Remove o intervalo entre as seções Elementor de Eventos. */
body.page-id-529 .elementor.elementor-529 { row-gap:0!important; column-gap:0!important; }

/* Indicador da rolagem horizontal do menu de Eventos: aparece durante o toque/arrasto. */
@media (max-width: 850px) {
  body.page-id-529 .elementor header.e-default-header > nav:active { scrollbar-width: thin !important; scrollbar-color: rgb(170, 178, 170) rgb(82, 97, 87) !important; }
  body.page-id-529 .elementor header.e-default-header > nav:active::-webkit-scrollbar { display: block; height: 7px; }
  body.page-id-529 .elementor header.e-default-header > nav:active::-webkit-scrollbar-track { background: rgb(82, 97, 87); border-radius: 8px; }
  body.page-id-529 .elementor header.e-default-header > nav:active::-webkit-scrollbar-thumb { background: rgb(170, 178, 170); border-radius: 8px; }
}
