
/* ==========================================================
   CORRECAO 19/09/2026 — MENU QUEBRADO EM ESPANHOL E ITALIANO
   ----------------------------------------------------------
   As regras do cabecalho miravam nav[aria-label="Main"] e
   a[aria-label*="home"]. Esses textos SAO TRADUZIDOS:
       EN  nav aria-label="Main"        a ... "— home"
       ES  nav aria-label="Principal"   a ... "— inicio"
       IT  nav aria-label="Principale"  a ... "— home"
   Resultado: em /es/ e /it/ NENHUMA das 11 regras se aplicava.
   O menu ficava com fonte cheia, espacamento maior e quebrava
   em duas e tres linhas, inflando o cabecalho.
   Os seletores passam a ser estruturais:
       nav:not(.ney-mobile-nav)   -> o menu do desktop
       > div > a:first-child      -> o link da marca
   Nunca mirar aria-label em site multi-idioma.
   ========================================================== */
/* ==========================================================
   NEYLA TOUR GUIDE — tema de cores
   Paleta tirada do logo: verde-bandeira, verde-mata, creme,
   amarelo-sol, sálvia e teal.
   Este arquivo entra DEPOIS do CSS do Lovable e apenas
   sobrescreve as variáveis do tema — nenhuma classe é tocada.
   ========================================================== */

:root, .dark {
  /* --- verdes do logo --- */
  --verde:        #00A257;   /* verde-bandeira, derivado do #00B460 */
  --verde-vivo:   #00B460;   /* o verde exato das letras do logo */
  --verde-mata:   #006030;   /* contorno escuro do logo */
  --verde-tinta:  #04210F;   /* quase preto esverdeado */
  --creme:        #F0EFDC;   /* o creme da estátua */
  --creme-claro:  #FBFAF2;
  --amarelo:      #F0D860;   /* o céu do logo */
  --salvia:       #9CB490;   /* a pedra do logo */
  --teal:         #48786C;

  /* --- tokens do tema --- */
  --background:        var(--creme-claro);
  --foreground:        #10241A;
  --card:              #FFFFFF;
  --card-foreground:   #13291D;
  --popover:           #FFFFFF;
  --popover-foreground:#13291D;

  --primary:            var(--verde);
  --primary-foreground: #FFFFFF;
  --primary-deep:       var(--verde-mata);
  --primary-ink:        var(--verde-tinta);

  --secondary:            var(--creme);
  --secondary-foreground: #10241A;

  --muted:            #EAEEE0;
  --muted-foreground: #5A6B58;

  --accent:            var(--teal);
  --accent-foreground: #FFFFFF;

  --ocean:  #1F8FA8;
  --border: #DCE3D0;
  --input:  #DCE3D0;
  --ring:   var(--verde);

  --gradient-jungle: linear-gradient(135deg, var(--verde-tinta), var(--verde-mata) 55%, var(--verde));
  --gradient-sun:    linear-gradient(100deg, var(--amarelo), var(--verde-vivo));
}

/* vermelhos que ficaram fixos no CSS compilado */
.vh-nav a:after,
.vh-header-cta, .vh-btn,
.vh-service-card:hover,
.vh-manifesto,
.vh-work-image span            { background: var(--verde) !important; }
.vh-eyebrow, .vh-intro h2 em,
.vh-work > div:last-child p,
.vh-process article span,
.vh-label, .vh-highlights span,
.vh-highlights svg,
.vh-contact-link strong        { color: var(--verde) !important; }
.vh-text-link                  { border-bottom-color: var(--verde) !important; }

/* o quadradinho "N" do cabeçalho vira o logo de verdade */
.neyla-marca {
  display: block;
  height: 46px;
  width: auto;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 4px 6px;
}
@media (max-width: 640px) { .neyla-marca { height: 38px; } }

/* ==========================================================
   SLIDER DA HOME
   ========================================================== */
.ney-slider {
  position: relative;
  overflow: hidden;
  background: var(--verde-tinta);
  height: min(78vh, 620px);
  min-height: 430px;
}
.ney-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease;
}
.ney-slide.ativo { opacity: 1; visibility: visible; }
.ney-slide-foto {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7.5s linear;
}
.ney-slide.ativo .ney-slide-foto { transform: scale(1); }
.ney-slide-veu {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,33,15,.88) 0%, rgba(4,33,15,.62) 46%, rgba(4,33,15,.12) 82%, transparent 100%),
    linear-gradient(0deg, rgba(4,33,15,.72) 0%, transparent 48%);
}
.ney-slide-conteudo {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ney-env {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .ney-env { padding: 0 2rem; } }
.ney-caixa { max-width: 40rem; color: #fff; }
.ney-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amarelo);
  margin-bottom: 18px;
}
.ney-etiqueta::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--verde-vivo);
}
.ney-caixa h2, .ney-caixa h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  color: #fff;
}
.ney-caixa h2 em, .ney-caixa h1 em {
  font-style: normal;
  color: var(--amarelo);
}
.ney-caixa p {
  font-size: 1.03rem;
  line-height: 1.6;
  color: #E4EADF;
  margin: 0 0 26px;
  max-width: 34rem;
}
.ney-acoes { display: flex; gap: 12px; flex-wrap: wrap; }
.ney-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 8px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--verde);
  color: #fff;
  border: 1px solid var(--verde);
  transition: background .2s, border-color .2s;
}
.ney-btn:hover { background: var(--verde-vivo); border-color: var(--verde-vivo); }
.ney-btn--linha {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.42);
}
.ney-btn--linha:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}
.ney-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(4,33,15,.42);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ney-seta:hover { background: var(--verde); border-color: var(--verde); }
.ney-seta.ant { left: 20px; }
.ney-seta.pro { right: 20px; }
.ney-pontos {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  z-index: 4;
  display: flex;
  gap: 9px;
  justify-content: center;
}
.ney-pontos button {
  width: 36px; height: 3px;
  padding: 0; border: 0;
  background: rgba(255,255,255,.34);
  cursor: pointer;
}
.ney-pontos button.ativo { background: var(--amarelo); }

@media (max-width: 860px) {
  .ney-slider { height: auto; min-height: 0; }
  .ney-slide { position: relative; display: none; }
  .ney-slide.ativo { display: block; }
  .ney-slide-conteudo { padding: 72px 0; }
  .ney-slide-veu {
    background: linear-gradient(0deg, rgba(4,33,15,.9) 0%, rgba(4,33,15,.55) 100%);
  }
  .ney-seta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ney-slide, .ney-slide-foto { transition: none !important; }
}

/* ==========================================================
   Rede de seguranca para a animacao "reveal".
   Se o JavaScript nao rodar, o conteudo aparece mesmo assim —
   nada pode ficar invisivel por causa de animacao.
   ========================================================== */
.reveal { opacity: 1; transform: none; }
html.js-on .reveal { opacity: 0; transform: translateY(18px); }
html.js-on .reveal[data-visible="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-on .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================
   v5 — TAMANHO DAS FONTES
   O Lovable usava --text-sm (14px) no corpo do texto, em 1410
   lugares. Agora 17px. Para ajustar de novo, mexa so aqui.
   ========================================================== */
:root {
  --text-xs:   0.875rem;    /* 14px — era 12px */
  --text-sm:   1.0625rem;   /* 17px — era 14px  <<< texto do site */
  --text-base: 1.125rem;    /* 18px — era 16px */
  --text-lg:   1.25rem;     /* 20px — era 18px */
  --text-xl:   1.4375rem;   /* 23px — era 20px */
  --text-2xl:  1.75rem;     /* 28px — era 24px */
  --text-3xl:  2.125rem;    /* 34px — era 30px */
  --text-4xl:  2.625rem;    /* 42px — era 36px */
  --text-5xl:  3.375rem;    /* 54px — era 48px */
  --text-6xl:  4.125rem;    /* 66px — era 60px */
  --text-7xl:  4.875rem;    /* 78px — era 72px */
}
.text-xs   { line-height: 1.55; }
.text-sm   { line-height: 1.68; }
.text-base { line-height: 1.68; }
.text-lg   { line-height: 1.6; }

.ney-caixa p  { font-size: 1.2rem; line-height: 1.6; }
.ney-etiqueta { font-size: .84rem; }
.ney-btn      { font-size: 1.05rem; }

/* ==========================================================
   v6 — FOTO LIMPA + FAIXA SUAVE ATRAS DO TEXTO
   O Lovable escurecia a FOTO INTEIRA com degrade. Agora a
   foto fica limpa e o degrade aparece so atras do texto,
   como no site em WordPress: escuro do lado do texto,
   dissolvendo ate sumir antes do meio da imagem.
   Cor: verde-tinta do logo (#04210F). Le como preto, mas
   pertence a paleta dela.
   ========================================================== */

/* 1. tira a camada de cima da foto */
[class*="bg-gradient-to-"] {
  background-image: none !important;
  background-color: transparent !important;
}
.ney-slide-veu { background: transparent !important; }

/* 2. faixa atras do texto dos 24 herois das paginas internas */
.relative.isolate.overflow-hidden > .mx-auto.text-background {
  position: relative;
}
.relative.isolate.overflow-hidden > .mx-auto.text-background::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4.25rem;
  bottom: 4.25rem;
  left: 0;
  width: min(100%, 46rem);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(
    90deg,
    rgba(4, 33, 15, .72) 0%,
    rgba(4, 33, 15, .60) 42%,
    rgba(4, 33, 15, .28) 78%,
    rgba(4, 33, 15, 0) 100%
  );
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
@media (min-width: 640px) {
  .relative.isolate.overflow-hidden > .mx-auto.text-background::before {
    top: 6rem;
    bottom: 6rem;
  }
}
@media (max-width: 640px) {
  .relative.isolate.overflow-hidden > .mx-auto.text-background::before {
    top: 3rem;
    bottom: 3rem;
    width: 100%;
    border-radius: 0;
    background: linear-gradient(
      90deg,
      rgba(4, 33, 15, .78) 0%,
      rgba(4, 33, 15, .66) 70%,
      rgba(4, 33, 15, .45) 100%
    );
  }
}

/* 3. mesma faixa no slider da home */
.ney-caixa { position: relative; }
.ney-caixa::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2rem -2.5rem -2rem -1.75rem;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(4, 33, 15, .74) 0%,
    rgba(4, 33, 15, .60) 45%,
    rgba(4, 33, 15, .24) 80%,
    rgba(4, 33, 15, 0) 100%
  );
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
@media (max-width: 860px) {
  .ney-caixa::before { inset: -1.5rem -1.25rem; border-radius: 10px; }
}

/* 4. sombra leve, so para segurar as bordas do texto */
.ney-caixa h1, .ney-caixa h2, .ney-caixa p,
.relative.isolate.overflow-hidden h1,
.relative.isolate.overflow-hidden .text-lg {
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

/* --- PARA TROCAR A COR DA FAIXA ---------------------------
   Verde-tinta (atual) : rgba(4, 33, 15, ...)
   Preto puro          : rgba(0, 0, 0, ...)
   Azul-noite          : rgba(6, 20, 40, ...)
   Substitua nas tres regras acima mantendo os mesmos numeros
   de opacidade no final.
   ---------------------------------------------------------- */

/* ==========================================================
   v7 — GALERIA ROTATIVA DAS PAGINAS DE TOUR
   ========================================================== */
.ney-galeria { background: var(--secondary); padding: 3.5rem 0; }
.ney-gal-env { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .ney-gal-env { padding: 0 2rem; } }

.ney-gal-rotulo {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--verde-mata); margin-bottom: 1rem;
}
.ney-gal-rotulo::after {
  content: ""; display: block; width: 40px; height: 2px;
  background: var(--verde-vivo); margin-top: .55rem;
}
.ney-gal-palco {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--verde-tinta);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(4,33,15,.22);
}
.ney-gal-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity .8s ease;
}
.ney-gal-slide.ativo { opacity: 1; }
.ney-gal-slide img { width: 100%; height: 100%; object-fit: cover; }

.ney-gal-seta {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(4,33,15,.45);
  color: #fff; font-size: 1.05rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s, background .2s;
}
.ney-gal-palco:hover .ney-gal-seta { opacity: 1; }
.ney-gal-seta:hover { background: var(--verde); border-color: var(--verde); }
.ney-gal-seta.ant { left: 14px; } .ney-gal-seta.pro { right: 14px; }
@media (hover: none) { .ney-gal-seta { opacity: 1; } }

.ney-gal-contador {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  background: rgba(4,33,15,.6); color: #fff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: .8rem; padding: 4px 11px; border-radius: 999px;
}
.ney-gal-contador b { color: var(--amarelo); font-weight: 700; }

.ney-gal-tiras {
  display: flex; gap: 9px; margin-top: 12px;
  overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin;
}
.ney-gal-tira {
  flex: 0 0 auto; width: 92px; height: 62px;
  padding: 0; border: 2px solid transparent; border-radius: 7px;
  overflow: hidden; cursor: pointer; background: none;
  opacity: .55; transition: opacity .2s, border-color .2s;
}
.ney-gal-tira img { width: 100%; height: 100%; object-fit: cover; }
.ney-gal-tira:hover { opacity: .85; }
.ney-gal-tira.ativo { opacity: 1; border-color: var(--verde-vivo); }
@media (max-width: 640px) {
  .ney-galeria { padding: 2.5rem 0; }
  .ney-gal-palco { aspect-ratio: 4 / 3; border-radius: 8px; }
  .ney-gal-tira { width: 74px; height: 52px; }
}

/* ==========================================================
   v7 — FAIXA ATRAS DO TEXTO UM POUCO MAIS FORTE
   ========================================================== */
.relative.isolate.overflow-hidden > .mx-auto.text-background::before {
  background: linear-gradient(
    90deg,
    rgba(4, 33, 15, .86) 0%,
    rgba(4, 33, 15, .76) 42%,
    rgba(4, 33, 15, .40) 78%,
    rgba(4, 33, 15, 0) 100%
  );
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
}
@media (max-width: 640px) {
  .relative.isolate.overflow-hidden > .mx-auto.text-background::before {
    background: linear-gradient(
      90deg,
      rgba(4, 33, 15, .9) 0%,
      rgba(4, 33, 15, .8) 70%,
      rgba(4, 33, 15, .58) 100%
    );
  }
}
.ney-caixa::before {
  background: linear-gradient(
    90deg,
    rgba(4, 33, 15, .86) 0%,
    rgba(4, 33, 15, .74) 45%,
    rgba(4, 33, 15, .36) 80%,
    rgba(4, 33, 15, 0) 100%
  );
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
}

/* ==========================================================
   v8 — BLOCO TRIPADVISOR NA PAGINA DE REVIEWS
   ========================================================== */
.ney-ta {
  background: linear-gradient(150deg, var(--verde-tinta) 0%, var(--verde-mata) 70%, var(--verde) 140%);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.ney-ta-env { width: 100%; max-width: 52rem; margin: 0 auto; padding: 0 1.25rem; }
.ney-ta-rotulo {
  display: inline-block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--amarelo); margin-bottom: .9rem;
}
.ney-ta-titulo {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800; letter-spacing: -.03em;
  color: #fff; margin: 0 0 .9rem;
}
.ney-ta-texto {
  color: #DCE6D8; font-size: 1.05rem; line-height: 1.62;
  max-width: 40rem; margin: 0 auto 2rem;
}
.ney-ta-selos {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; align-items: center; margin-bottom: .8rem;
}
.ney-ta-selos img {
  width: 86px; height: auto; border-radius: 10px;
  background: #fff; padding: 5px;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.ney-ta-legenda {
  font-size: .8rem; color: #A9BCA4; margin: 0 auto 2rem;
  letter-spacing: .04em;
}
.ney-ta-btn {
  background: var(--amarelo) !important;
  border-color: var(--amarelo) !important;
  color: var(--verde-tinta) !important;
  font-weight: 700;
}
.ney-ta-btn:hover { background: #FFE785 !important; border-color: #FFE785 !important; }
@media (max-width: 640px) {
  .ney-ta { padding: 3rem 0; }
  .ney-ta-selos img { width: 68px; }
}

/* ==========================================================
   v9 — MENU EM UMA LINHA SO
   O aumento de fonte da v5 subiu tambem o --text-xs, que e o
   tamanho usado pelo menu: os itens cresceram e passaram a
   quebrar em duas linhas. Aqui o cabecalho volta a ter escala
   propria, sem desfazer o aumento do texto das paginas.
   ========================================================== */

/* nenhum item do menu pode quebrar no meio */
header.sticky nav:not(.ney-mobile-nav) a,
header.sticky nav:not(.ney-mobile-nav) span,
header.sticky > div > a:first-child span {
  white-space: nowrap;
}

/* itens do menu: fonte e respiro proprios */
header.sticky nav:not(.ney-mobile-nav) { gap: 0; }
header.sticky nav:not(.ney-mobile-nav) > .group > a {
  font-size: .73rem;
  letter-spacing: .015em;
  padding-left: .55rem;
  padding-right: .55rem;
  padding-top: .45rem;
  padding-bottom: .45rem;
  line-height: 1.15;
}
header.sticky nav:not(.ney-mobile-nav) > .group > a > span[aria-hidden="true"] {
  font-size: .6rem;
  margin-left: .1rem;
}

/* marca: o nome tambem estava quebrando em duas linhas */
header.sticky > div > a:first-child { gap: .6rem; flex-shrink: 0; }
header.sticky > div > a:first-child span.font-display { font-size: .82rem; letter-spacing: .04em; }
header.sticky > div > a:first-child span.text-\[11px\] { font-size: .68rem; }
header.sticky .neyla-marca { height: 42px; }

/* botao do WhatsApp no fim da barra */
header.sticky nav:not(.ney-mobile-nav) ~ a,
header.sticky > div > a:last-child {
  white-space: nowrap;
  font-size: .75rem;
  flex-shrink: 0;
}

/* a barra usa a largura toda antes de apertar o menu */
header.sticky > div { max-width: 88rem; gap: .75rem; }

/* 19/09/2026: o limite era 1440px. Acima dele a fonte e o recuo dos
   links voltavam ao tamanho cheio, o menu passava de 823px para 896px e
   o cabecalho estourava a tela entre 1441px e 1535px — barra de rolagem
   horizontal justamente em telas de 1440 e 1536, comuns no Windows.
   O limite passa a 1535.98px, que e onde o menu cheio realmente cabe. */
@media (max-width: 1535.98px) {
  header.sticky nav:not(.ney-mobile-nav) > .group > a {
    font-size: .69rem;
    padding-left: .42rem;
    padding-right: .42rem;
  }
  header.sticky > div > a:first-child span.font-display { font-size: .78rem; }
  header.sticky .neyla-marca { height: 38px; }
}

/* submenus mantem o tamanho de texto normal do site (nao sao reduzidos);
   a caixa do submenu ficou mais larga para os nomes longos caberem */
header.sticky nav:not(.ney-mobile-nav) .absolute a { white-space: normal; }
header.sticky nav:not(.ney-mobile-nav) .absolute { width: 24rem; }
@media (max-width: 1440px) {
  header.sticky nav:not(.ney-mobile-nav) .absolute { width: 21rem; }
}


/* NEYLA LANGUAGE SWITCHER */
.ney-lang-switcher{
  display:flex;align-items:center;gap:4px;padding:3px 5px;
  border:1px solid rgba(255,255,255,.22);border-radius:999px;
  background:rgba(255,255,255,.06);backdrop-filter:blur(4px);
}
.ney-lang-flag{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:22px;padding:2px;border-radius:6px;
  opacity:.78;transition:transform .18s ease,opacity .18s ease,background-color .18s ease;
}
.ney-lang-flag:hover{opacity:1;transform:translateY(-1px);background:rgba(255,255,255,.12)}
.ney-lang-flag.is-active{opacity:1;background:rgba(255,255,255,.17);box-shadow:0 0 0 1px rgba(255,255,255,.35) inset}
.ney-lang-flag img{display:block;width:24px;height:14px;object-fit:cover;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.28)}
@media (max-width:420px){
  .ney-lang-switcher{gap:2px;padding:2px 3px}
  .ney-lang-flag{width:26px;height:21px;padding:1px}
  .ney-lang-flag img{width:22px;height:13px}
}

/* ==========================================================
   MENU MOBILE — v10
   Mantém o cabeçalho/idiomas originais e abre os links em
   painel vertical abaixo do header somente abaixo de 1280px.
   ========================================================== */
.ney-mobile-menu{display:none}

/* 19/09/2026: era 1279.98px. Entre 1280 e 1399 o painel ficava
   display:block porem estatico e visivel, empurrando o cabecalho
   para 364px de altura. O bloco inteiro passa a cobrir ate 1399.98. */
@media (max-width:1399.98px){
  html.ney-menu-open{overflow:hidden}
  header.sticky{position:sticky}
  .ney-mobile-menu{
    display:block;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    z-index:80;
    max-height:calc(100vh - 68px);
    overflow-y:auto;
    overscroll-behavior:contain;
    background:#163b2b;
    border-top:1px solid rgba(255,255,255,.14);
    box-shadow:0 18px 35px rgba(0,0,0,.28);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    pointer-events:none;
    transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
  }
  .ney-mobile-menu.is-open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
  }
  .ney-mobile-nav{
    display:block!important;
    width:min(100%,760px);
    margin:0 auto;
    padding:14px 18px 24px;
  }
  .ney-mobile-nav>.group{
    display:block;
    position:static!important;
    border-bottom:1px solid rgba(255,255,255,.11);
  }
  .ney-mobile-nav>.group>a{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    width:100%;
    padding:14px 6px!important;
    color:#fff!important;
    font-size:.88rem!important;
    line-height:1.25!important;
    letter-spacing:.04em!important;
    white-space:normal!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .ney-mobile-nav>.group>a:hover{color:#f3c84b!important}

  /* Submenus: no mobile ficam sempre abertos e indentados. */
  .ney-mobile-nav .group>.absolute{
    position:static!important;
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
    width:auto!important;
    margin:0 0 10px 12px!important;
    padding:0 0 4px 10px!important;
    border:0!important;
    border-left:2px solid rgba(243,200,75,.45)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .ney-mobile-nav .group>.absolute a{
    display:block!important;
    padding:8px 8px!important;
    color:rgba(255,255,255,.82)!important;
    font-size:.84rem!important;
    line-height:1.35!important;
    white-space:normal!important;
    border-radius:6px!important;
    background:transparent!important;
  }
  .ney-mobile-nav .group>.absolute a:hover{
    color:#fff!important;
    background:rgba(255,255,255,.08)!important;
  }
}

/* ==========================================================
   CORRECAO 19/09/2026 — CABECALHO ESTOURANDO NO CELULAR
   ----------------------------------------------------------
   Diagnostico: em telas de ate ~430px o conteudo do cabecalho
   somava 421px (logo 197px + grupo da direita 197px + espacos
   e recuos). O grupo da direita terminava em x=421, ou seja,
   31px FORA da tela de 390px. Resultado pratico:
     - a bandeira IT ficava cortada na borda;
     - o botao do menu ficava inteiramente fora da tela e por
       isso nunca abria — o toque caia no <div> que o envolve.
   Confirmado em teste automatizado: o toque era interceptado
   por "div.flex.items-center.gap-2".

   Correcao: liberar o encolhimento dos itens, esconder as
   siglas EN/ES/IT (a bandeira ja identifica o idioma) e
   reduzir a marca, ate o conteudo caber em 320px.
   ========================================================== */
@media (max-width:767.98px){

  /* 1. o container do cabecalho passa a poder encolher */
  header.sticky > div{
    gap:8px!important;
    padding-left:12px!important;
    padding-right:12px!important;
    flex-wrap:nowrap!important;
  }

  /* 2. o bloco da marca cede espaco em vez de empurrar o resto */
  header.sticky > div > a{
    min-width:0!important;
    flex:0 1 auto!important;
    gap:8px!important;
  }
  /* a imagem do logo e QUADRADA (500x500): controlar pela ALTURA.
     Definir por largura inflava a altura do cabecalho. */
  header.sticky .neyla-marca{
    height:40px!important;
    width:auto!important;
    flex:0 0 auto!important;
  }
  /* O texto "Neyla Tour Guide / Private Tour Guide in Rio" ao lado da
     marca nao cabe no celular: transbordava por baixo das bandeiras.
     A propria imagem do logo ja traz o nome escrito, entao no celular
     fica so a imagem. No desktop o texto continua igual. */
  header.sticky > div > a > span{display:none!important}

  /* 3. grupo da direita (idiomas + botao) nunca encolhe nem sai da tela */
  header.sticky > div > div:last-child{
    flex:0 0 auto!important;
    gap:6px!important;
  }

  /* 4. siglas EN/ES/IT saem; a bandeira sozinha ja identifica o idioma.
        ATENCAO: o index.html traz um bloco <style> inline com regras
        .ney-lang-switcher.ney-lang-visible ... !important, que vence
        qualquer arquivo CSS por vir depois no documento. Por isso os
        seletores abaixo levam "header.sticky" na frente: isso eleva a
        especificidade e passa a frente do bloco inline sem precisar
        editar as 84 paginas HTML. */
  header.sticky .ney-lang-switcher.ney-lang-visible .ney-lang-code{
    display:none!important;
  }
  header.sticky .ney-lang-switcher.ney-lang-visible{
    gap:3px!important;padding:2px 4px!important;flex:0 0 auto!important;
  }
  header.sticky .ney-lang-switcher.ney-lang-visible .ney-lang-flag{
    min-width:0!important;width:30px!important;height:24px!important;
    padding:2px!important;gap:0!important;flex:0 0 auto!important;
  }
  header.sticky .ney-lang-switcher.ney-lang-visible img{
    width:22px!important;height:13px!important;
  }

  /* 5. o botao do menu tem area de toque garantida */
  header.sticky button[aria-expanded]{
    flex:0 0 auto!important;
    padding:7px 9px!important;
    min-width:38px!important;
    min-height:38px!important;
  }
}

/* telas bem estreitas: some o subtitulo para garantir o encaixe */
@media (max-width:359.98px){
  header.sticky .neyla-marca{height:36px!important;width:auto!important}
}


/* ==========================================================
   CORRECAO 19/09/2026 — ESTOURO ENTRE 1280px E 1400px
   ----------------------------------------------------------
   O menu horizontal de desktop liga na classe xl do Tailwind
   (1280px), mas ele precisa de 1383px para caber. Entre 1280 e
   1382 o cabecalho estourava a tela e a pagina rolava para o
   lado — afeta laptops de 1280x720 e 1366x768.
   Correcao: manter o menu em painel (hamburguer) ate 1400px.
   O JS tambem foi ajustado para fechar o painel so a partir
   de 1400px.
   ========================================================== */
@media (min-width:1280px) and (max-width:1399.98px){
  header.sticky nav:not(.ney-mobile-nav){display:none!important}
  header.sticky button[aria-expanded]{display:block!important}
}


/* ==========================================================
   19/09/2026 — ESCALA DO MENU POR IDIOMA
   Os rotulos em espanhol sao bem mais longos ("TOURS DE
   MERCADOS LOCALES", "SOBRE NOSOTROS"). Medido: em ingles e
   italiano o menu cabe numa linha a partir de 1400px, mas em
   espanhol so a partir de 1780px. Em vez de deixar o espanhol
   no hamburguer ate 1780px, o menu ganha uma escala mais
   compacta nas telas intermediarias.
   ========================================================== */
@media (min-width:1400px) and (max-width:1780px){
  html[lang="es"] header.sticky nav:not(.ney-mobile-nav) > .group > a{
    font-size:.615rem!important;
    letter-spacing:0!important;
    padding-left:.26rem!important;
    padding-right:.26rem!important;
  }
  html[lang="es"] header.sticky > div > a:first-child span.font-display{font-size:.72rem!important}
  html[lang="es"] header.sticky > div > a:first-child span.text-\[11px\]{font-size:.6rem!important}
  html[lang="es"] header.sticky .neyla-marca{height:34px!important}
  html[lang="es"] header.sticky > div{gap:.4rem!important}
}


/* 19/09/2026: os rotulos italianos sao um pouco mais longos que os
   ingleses. Em 1536px (onde a escala compacta ja saiu) o cabecalho
   passava 1px da tela e aparecia barra de rolagem horizontal.
   Ajuste minimo de recuo so para o italiano nessa faixa. */
@media (min-width:1536px) and (max-width:1600px){
  html[lang="it"] header.sticky nav:not(.ney-mobile-nav) > .group > a{
    padding-left:.44rem!important;
    padding-right:.44rem!important;
  }
}
