/* ================================
   BASE.CSS – fundações do site
   ================================ */

/* ========== 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 ========== */
:root {
  /* Altura do header (JS pode sobrescrever --nav-h dinamicamente) */
  --nav-h-desktop: 120px;
  --nav-h-mobile: 72px;
  --nav-h: var(--nav-h-desktop);

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

  /* Espaços (ritmo vertical) */
  --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);

  /* Padding vertical padrão de seção + fluxo entre blocos */
  --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 (tamanhos centralizados) */
  --fs-body: clamp(18px, 1.4vw, 20px);
  --fs-p: 1.2rem;
  --lh-p: 1.6;
  --fs-h1: clamp(1.6rem, 3.2vw, 2.2rem);
  --fs-h2: clamp(1.25rem, 2.4vw, 1.6rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.25rem);
  --fs-h4: clamp(1rem, 1.8vw, 1.15rem);
  /* usos especiais */
  --fs-overlay: clamp(1.4rem, 2.2vw, 2rem); /* ex.: tarja dos pacotes */
}

/* ========== 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;
}

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 { padding-top: var(--nav-h); }

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

/* ========== Tipografia global ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
}
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); }

/* Título de seção do mesmo tamanho do parágrafo (se quiser) */
.secao-titulo { font-size: var(--fs-p); line-height: var(--lh-p); font-weight: 600; }

/* Ex.: texto explicativo segue p */
.pacotes-descricao { font-size: var(--fs-p); line-height: var(--lh-p); }

/* Ex.: tarja sobre imagem usa overlay */
.pacote-label { font-size: var(--fs-overlay); letter-spacing: .04em; font-weight: 700; }

/* Parágrafo logo após título: respiro menor */
h1 + p, h2 + p, h3 + p, h4 + p,
h1 + .lead, h2 + .lead { margin-top: var(--space-2); }
h1 + h2 { margin-top: var(--space-2); }

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

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

/* ========== Bandeiras (idiomas) ========== */
.bandeiras-topo {
  position: fixed; top: 0; right: 10px; z-index: 1100;
  display: flex; gap: .3rem;
}
.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); }

/* ========== Seções base ========== */
.grid, .flex { gap: var(--space-4); }

/* ========== Utilitários ========== */
.u-flow-0 > * + * { margin-top: 0 !important; }
.u-flow-1 > * + * { margin-top: var(--space-1) !important; }
.u-flow-2 > * + * { margin-top: var(--space-2) !important; }
.u-flow-4 > * + * { margin-top: var(--space-4) !important; }
.u-pt-0 { padding-top: 0 !important; }
.u-pb-0 { padding-bottom: 0 !important; }
.u-left  { text-align: left !important; }
.u-center{ text-align: center !important; }

/* ========== Header fixo / 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);
}
@supports (padding: env(safe-area-inset-top)) {
  header.navbar { padding-top: max(0.4rem, env(safe-area-inset-top)); }
}

.nav-container {
  max-width: 1500px; margin: 0 auto;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}

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

.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; outline: none;
}
.nav-links a:hover,
.nav-links 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);
}
.nav-links a:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }

/* Botão hamburguer */
.hamburger {
  display: none; font-size: 1.8rem; background: none; border: none; color: #fff; cursor: pointer;
}

/* ========== Footer ========== */
footer.footer {
  background: var(--color-footer-bg); color: #fff; text-align: center;
  margin-top: auto;
}
.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: #e9634c; 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: #e9634c; 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; }

/* =========================================================
   RESPONSIVO (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px){
  /* Espaçamentos globais */
  :root { --section-y: var(--space-5); --flow: var(--space-3); }
  .interno{
    
   
    
  }
  .interno{
    border: 1px solid red;
    margin-top: 20px;
  
  
  }

}


/* =========================================================
   RESPONSIVO (≤ 768px)
   ========================================================= */
@media (max-width: 768px){
  /* Espaçamentos globais */
  :root { --section-y: var(--space-4); --flow: var(--space-2); }

  /* Header / Navbar */
  header.navbar { height: var(--nav-h-mobile); }
  .nav-container { position: relative; justify-content: center; }
  .logo-desktop{ display: none; }
  .logo-mobile { display: block; height: clamp(56px, 10vw, 80px); margin: 0 auto; }
  .hamburger   { display: block; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 1001; }

  .nav-links{
    display: none; flex-direction: column;
    position: absolute;
    top: var(--nav-h, var(--nav-h-mobile));
    right:10px; left:10px;
    background: rgba(255,255,255,.98);
    border:1px solid #eee; border-radius:12px;
    text-align:center; gap:1rem; padding:2rem 1rem;
    box-shadow:0 6px 20px rgba(0,0,0,.12);
    z-index:1000; opacity:0; transform:translateY(-20px);
    transition:opacity .25s ease, transform .25s ease;
    pointer-events:none;
    backdrop-filter: blur(4px);
  }
  .interno{
    border: 1px solid red;
    margin-top: 20px;
  
  
  }
  .nav-links.active { display:flex; opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-links a{ color:#333; border-bottom:1px solid #eee; padding:.5rem 0; }

  /* Bandeiras */
  .bandeiras-topo { padding: 5px; gap: .2rem; }
  .bandeiras-topo img { height: 18px; }

  /* Footer */
  .footer-conteudo { flex-direction: column; gap: 1rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; margin-bottom: 0; }
  .footer-social img { 
    width: 60px;   /* antes: 32px */
    height: 60px;  /* antes: 32px */
  }
  .footer-mapa {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
  }
  .footer-mapa iframe { width: 100%; height: 160px; border-radius: 0; }
}

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


/* TIPOGRAFIA – iPad / Tablets (retrato 768 até 1024 e paisagem até 1024) */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --fs-body: 18px;                 /* tamanho base do body */
    --fs-p: 1.15rem;                 /* parágrafos */
    --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);
  }

  /* Exemplos de ajustes pontuais que podem interessar no iPad */
  .nav-links a { font-size: 1.25rem; }  /* menu do topo */
  .btn-coral { font-size: 1rem; }       /* botões */
}
/* ================================
   FIXO: header em iPads (portrait)
   ================================ */
   @media (max-width: 834px) and (orientation: portrait) {
    :root {
      --nav-h: var(--nav-h-mobile); /* força altura mobile */
    }

  }
  /* Compensar o header fixo em QUALQUER página, mesmo sem .wrapper */
body > main,
.wrapper {
  padding-top: var(--nav-h) !important;
}

/* Quando navegar por âncoras (#…), não deixar o título ir para baixo do header */
html { scroll-padding-top: var(--nav-h); }

/* Cobrir iPads em portrait (até 834px) com altura mobile do header */
@media (max-width: 834px) and (orientation: portrait) {
  header.navbar { height: var(--nav-h-mobile); }
}
