/* ================================
   BASE.CSS – fundações do site (organizado + responsivo em ordem)
   NOTA: Nada foi deletado; apenas reformatado e reordenado.
   ================================ */

/* ---------- Webfont ---------- */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variáveis Globais ---------- */
:root {
  /* Header */
  --nav-h-desktop: 120px;
  --nav-h-mobile: 72px;
  --nav-h: var(--nav-h-desktop);

  /* Container */
  --container-gutter: clamp(16px, 3vw, 32px);

  /* Espaços */
  --space-0: 0;
  --space-1: clamp(6px, 0.6vw, 8px);
  --space-2: clamp(10px, 1vw, 14px);
  --space-3: clamp(16px, 1.4vw, 20px);
  --space-4: clamp(22px, 2vw, 28px);
  --space-5: clamp(32px, 3vw, 44px);
  --space-6: clamp(48px, 4vw, 64px);

  /* Ritmo */
  --flow: var(--space-4);
  --section-y: var(--space-6);

  /* Cores */
  --color-bg: #f9f9f9;
  --color-text: #222;
  --color-muted: #444;
  --color-brand-ink: #06527b;
  --color-coral: #f2675b;
  --color-header-bg: #0f2b3a;
  --color-footer-bg: #1c2a36;

  /* Tipografia */
  --fs-body: clamp(18px, 1.4vw, 20px);
  --fs-p: 1.2rem;
  --lh-p: 1.6;

  --fs-h1: clamp(1.8rem, 4vw, 2.5rem);
  --fs-h2: clamp(1.4rem, 3vw, 1.9rem);
  --fs-h3: clamp(1.1rem, 2.2vw, 1.4rem);
  --fs-h4: clamp(1rem, 1.8vw, 1.15rem);

  /* Usos especiais */
  --fs-overlay: clamp(1.4rem, 2.2vw, 2rem);
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
html, body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: var(--fs-body);
  background: var(--color-bg);
  color: var(--color-text);
}
@supports (height: 100svh) { body { min-height: 100svh; } }
.no-scroll { overflow: hidden; }

/* Compensa header fixo */
.wrapper,
body > main { padding-top: var(--nav-h) !important; }
main { flex: 1; }

/* Mídia fluida */
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; }
h1 { font-size: var(--fs-h1); color: var(--color-brand-ink); }
h2 { font-size: var(--fs-h2); color: var(--color-coral); }
h3 { font-size: var(--fs-h3); color: var(--color-coral); }
h4 { font-size: var(--fs-h4); color: var(--color-coral); }
p  { font-size: var(--fs-p); line-height: var(--lh-p); color: var(--color-muted); }
h1 + p, h2 + p, h3 + p, h4 + p { margin-top: var(--space-2); }

ul, ol { padding-left: 1.25rem; }
ul > li + li, ol > li + li { margin-top: .4em; }

/* ---------- Containers ---------- */
.container, .conteudo {
  max-width: 1500px;
  margin-inline: auto;
  padding: 2rem 1.5rem;
}
#conteudo_interno, .conteudo_interno {
  max-width: 1500px;
  margin: 0 auto;
  padding-inline: var(--container-gutter);
}
.interno { margin-top: 50px; }

/* ---------- Utilitários ---------- */
.grid, .flex { gap: var(--space-4); }
.u-left  { text-align: left !important; }
.u-center{ text-align: center !important; }

/* ---------- Bandeiras (desktop) ---------- */
.bandeiras-topo {
  position: fixed; top: -5px; right: 10px; z-index: 1100;
  display: flex; gap: .3rem; padding: 5px;
}
.bandeiras-topo img {
  height: 25px; width: auto; opacity: .3; cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.bandeiras-topo img:hover { opacity: 1; transform: scale(1.1); }

/* ---------- Header / Navbar ---------- */
header.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h-desktop);
  background: var(--color-header-bg); color:#fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.nav-container {
  max-width: 1500px; margin: 0 auto; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}

/* Logo */
.logo-nav { height: clamp(56px, 9vw, 100px); width: auto; display: block; }
.logo-desktop { display: block; }
.logo-mobile  { display: none; }

/* Links do menu (desktop) */
.nav-links {
  display: flex; align-items: center;
  gap: clamp(1.25rem, 3vw, 6rem);
}
.nav-links a {
  color:#fff; font-size: 1.5rem; text-decoration: none; position: relative;
  padding-bottom: 4px; transition: color .2s ease;
}
.nav-links a:hover,
.nav-links a.active, footer a.active { color: var(--color-coral); }
.nav-links a:hover::after,
.nav-links a.active::after {
  content:""; position:absolute; left:0; bottom:0; height:2px; width:100%; background: var(--color-coral);
}

/* Hambúrguer (desktop escondido) */
.hamburger {
  display: none; font-size: 1.8rem; background: none; border: none; color: #fff; cursor: pointer;
}

/* Idiomas (dropdown – desktop escondido) */
.lang-toggle, .lang-menu { display: none; }
.lang-toggle img { width: 25px; height: 20px; }
.lang-menu img { width: 25px; height: 20px; }

/* ---------- Footer ---------- */
footer.footer { background-color: #0f2b3a; }
.footer-conteudo {
  max-width: 1500px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(2rem, 6vw, 8rem); padding: 2rem 1rem 1rem;
}
.footer-coluna h3 { color: var(--color-coral); margin-bottom: .5rem; font-size: 1.2rem; }
.footer-coluna p, .footer-coluna a { color: #fff; font-size: 1rem; text-decoration: none; }
.footer-social { display: flex; justify-content: center; gap: .8rem; margin-top: .5rem; }
.footer-social img { height: 50px; width: 50px; background: var(--color-coral); border-radius: 50%; transition: transform .2s; }
.footer-social img:hover { transform: scale(1.1); }
.footer-bottom { display: flex; justify-content: center; gap: 2rem; font-size: .9rem; margin: 1rem 0; }
.footer-bottom a { color: #ccc; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-mapa iframe { width: 100%; height: 180px; border: none; display: block; }

.footer-copy {
  background-color: #0f2b3a;
  text-align: center;
  font-size: 0.85rem;
  color: #aaaaaa;
  padding: 1rem 0;
  line-height: 1.6;
}

/* ---------- Acessibilidade ---------- */
:focus-visible { outline: 2px solid var(--color-coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Full-bleed util ---------- */
.full-bleed {
  position: relative; width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: 0; background: transparent;
}
.full-bleed > .container {
  max-width: 1500px; margin-inline: auto; padding-inline: var(--container-gutter);
}

/* ---------- Âncoras: compensar header fixo ---------- */
html { scroll-padding-top: var(--nav-h); }

/* =========================================================
   RESPONSIVO – ordenado por max-width (maior → menor)
   ========================================================= */

/* ===== ≤1024px (tablets/landscape) ===== */
@media (max-width: 1024px) {
  /* BLOCO 1 (tipografia/ritmo) */
  :root {
    --section-y: var(--space-5);
    --flow: var(--space-3);
    --fs-body: 18px;
    --fs-p: 1.15rem;
    --fs-h1: clamp(1.5rem, 3vw, 2rem);
    --fs-h2: clamp(1.2rem, 2.2vw, 1.5rem);
    --fs-h3: clamp(1.05rem, 1.8vw, 1.2rem);
    --fs-h4: clamp(1rem, 1.6vw, 1.1rem);
  }
  .nav-links a { font-size: 1.25rem; }

  /* BLOCO 2 (anteriormente em "Tablet e abaixo") */
  :root { --tarja-h: 200px; } /* dá mais fôlego no tablet Android */
  .coluna { min-height: 320px; }
}

/* ===== ≤834px (iPad retrato) ===== */
@media (max-width: 834px) and (orientation: portrait) {
  :root { --nav-h: var(--nav-h-mobile); }
  



  /* Mantido do original (borda de debug no footer) */
 

  .footer-conteudo {
    flex-direction: column;      /* empilha */
    align-items: center;         /* centraliza blocos */
    text-align: center;          /* centraliza textos */
    gap: 1.25rem;
  }
  .footer-coluna {
    width: min(700px, 100%);     /* largura fluida centrada */
    flex: 0 1 auto;              /* evita esticar estranhamente */
    margin-inline: auto;
  }
  .footer-coluna > * { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-bottom {
    flex-direction: column;      /* links um abaixo do outro */
    align-items: center;
    gap: .5rem;
    text-align: center;
  }
  .footer-mapa iframe { height: 220px; }
}

/* ===== ≤768px (mobile) ===== */
@media (max-width: 768px) {
  /* BLOCO 1 (variáveis e navbar mobile) */
  :root { --nav-h: var(--nav-h-mobile); --section-y: var(--space-4); --flow: var(--space-2); }

  header.navbar { height: 100px; padding: 20px 0; }
  .nav-container { justify-content: center; } /* logo centralizada */

  /* Logo mobile */
  .logo-desktop { display: none !important; }
  .logo-mobile  { display: block !important; margin: 0 auto; width: 70px; height: 70px; }

  /* Esconde bandeiras (usar dropdown) */
  .bandeiras-topo { display: none !important; }

  /* Hambúrguer à esquerda */
  .hamburger {
    display: block; position: absolute; left: 12px; right: auto;
    top: 50%; transform: translateY(-50%);
    z-index: 1002; transition: transform .2s ease;
  }
  .hamburger:active { transform: translateY(-45%) scale(.96); }

  /* Botão de idioma à direita */
  .lang-toggle {
    display: inline-flex; align-items: center; gap: .15rem;
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    z-index: 1003; font: inherit; line-height: 1;
    padding: .20rem .3rem; border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0);
    background: rgba(103, 101, 101, 0); color: #fff;
    backdrop-filter: blur(6px); cursor: pointer;
    transition: background .3s ease, transform .3s ease;
  }
  .lang-toggle:hover { background: rgba(255, 255, 255, 0.39); }

  .lang-menu {
    position: absolute;
    right: 15px;
    top: calc(var(--nav-h-mobile) - 25px);
    z-index: 1002;
    display: inline-block;
    background: rgba(255, 255, 255, 0.709);
    border: 1px solid #eee;
    border-radius: 3px;
    padding: .1rem 0; /* antes: .4rem 0 — reduz altura */
    list-style: none;
    margin: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
  }
  .lang-menu.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .lang-menu a {
    display: flex; justify-content: center;
    font-size: 2rem; /* tamanho da bandeira */
    padding: .25rem .5rem; /* antes: .5rem — reduz altura do item */
    text-decoration: none; color: #000; transition: background .2s ease;
  }
  .lang-menu a:hover { background: #f2f2f2; }

  .interno { margin-top: 25px; }

  /* Menu principal (slide-down) */
  .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 135%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.756); border: 1px solid #eee; border-radius: 3px;
    text-align: center; gap: 1rem; padding: 2rem 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.12); backdrop-filter: blur(4px);
    z-index: 1001; opacity: 0; transform: translateY(-16px);
    pointer-events: none; overflow: hidden;
    transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .5s ease;
  }
  .nav-links.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a {
    color: #333; border-bottom: 1px solid #eee; padding: .55rem 0;
    transition: color .2s ease, transform .45s ease, opacity .45s ease;
    opacity: 0; transform: translateY(-6px);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a:hover { color: var(--color-coral); }
  .nav-links.active a { opacity: 1; transform: translateY(0); }
  .nav-links.active a:nth-child(1){ transition-delay: .05s; }
  .nav-links.active a:nth-child(2){ transition-delay: .10s; }
  .nav-links.active a:nth-child(3){ transition-delay: .15s; }
  .nav-links.active a:nth-child(4){ transition-delay: .20s; }

  /* BLOCO 2 (mobile extra) */
  :root { --tarja-h: 180px; } /* pode subir p/ 200px se o texto for maior */
  .coluna { min-height: 260px; }
  .tarja { padding: 0 clamp(16px, 4vw, 28px); }
  .tarja p { max-width: 66ch; } /* um pouco mais largo no mobile */

  /* BLOCO 3 (overrides footer mobile) */
  .footer-conteudo {
    flex-direction: column;      /* empilha */
    align-items: center;         /* centraliza blocos */
    text-align: center;          /* centraliza textos */
    gap: 1.25rem;
  }
  .footer-coluna {
    width: min(700px, 100%);     /* largura fluida centrada */
    flex: 0 1 auto;              /* evita esticar estranhamente */
    margin-inline: auto;
  }
  .footer-coluna > * { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-bottom {
    flex-direction: column;      /* links um abaixo do outro */
    align-items: center;
    gap: .5rem;
    text-align: center;
  }
  .footer-mapa iframe { height: 220px; }
}
