/* ITEP · Instituto de Turismo & Eventos de Paranaguá
   Cores do manual de identidade visual: verde #005048, cobre #BF702A, creme #F4DCBB */

:root {
  --verde: #005048;
  --verde-escuro: #003c36;
  --verde-noite: #002e29;
  --cobre: #BF702A;
  --cobre-botao: #A9601F;   /* cobre um pouco mais escuro: texto branco legível */
  --cobre-texto: #8F4E1B;   /* cobre para texto pequeno sobre fundo claro */
  --cobre-claro: #E8A866;   /* cobre para texto sobre o verde */
  --creme: #F4DCBB;
  --creme-claro: #FBF4EA;
  --papel: #FFFBF5;
  --tinta: #1E2B28;
  --tinta-suave: #4A5955;
  --linha: #E3CDA9;
  --erro: #B3261E;
  --gutter: clamp(16px, 4vw, 32px);
  --raio: 22px;
  --serifa: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--creme-claro);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pular {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--verde); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; text-decoration: none;
}
.pular:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--cobre); outline-offset: 3px; }

/* ---------- títulos ---------- */
.sobre {
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 1rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cobre-texto);
}
.sobre::before { content: ""; width: 32px; height: 2px; background: currentColor; flex: none; }
.sobre--claro { color: var(--cobre-claro); }

.titulo {
  font-family: var(--serifa);
  font-weight: 600;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--verde);
  margin: 0 0 .7em;
  text-wrap: balance;
}

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.65em;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.botao:hover { transform: translateY(-1px); }
.botao .ico { width: 1.15em; height: 1.15em; transition: transform .2s; }
.botao:hover .ico { transform: translateX(3px); }
.botao--peq { padding: .7em 1.3em; font-size: .95rem; }
.botao--cobre { background: var(--cobre-botao); color: #fff; }
.botao--cobre:hover { background: var(--verde); }
.botao--vazado { border-color: rgba(255, 255, 255, .75); color: #fff; }
.botao--vazado:hover { background: #fff; color: var(--verde); border-color: #fff; }
.botao--verde { background: var(--verde); color: var(--creme-claro); }
.botao--verde:hover { background: var(--cobre-botao); }
.botao[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, box-shadow .3s;
}
.topo__in { display: flex; align-items: center; gap: 2rem; height: 88px; transition: height .3s; }
.topo__logo { display: block; margin-right: auto; }
.topo__logo img { height: 58px; width: auto; transition: height .3s; }
.topo__logo-cor { display: none; }
.menu__lista { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  position: relative; display: block; padding: .4rem 0;
  color: #fff; font-weight: 500; text-decoration: none;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cobre-claro); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.topo__menu-btn {
  display: none;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
  place-items: center;
}
.topo__menu-btn .ico { width: 28px; height: 28px; }

.topo--solido {
  background: rgba(251, 244, 234, .96);
  box-shadow: 0 1px 0 rgba(0, 80, 72, .1), 0 10px 30px -18px rgba(0, 46, 41, .45);
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .topo--solido { background: rgba(251, 244, 234, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.topo--solido .topo__in { height: 72px; }
.topo--solido .topo__logo img { height: 48px; }
.topo--solido .topo__logo-branco { display: none; }
.topo--solido .topo__logo-cor { display: block; }
.topo--solido .menu a { color: var(--verde); }
.topo--solido .menu a::after { background: var(--cobre); }
.topo--solido .topo__menu-btn { color: var(--verde); }

/* ---------- capa ---------- */
.capa {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: max(600px, min(100svh, 900px));
  padding: 132px 0 clamp(72px, 11vh, 120px);
  background: var(--verde-noite);
  color: #fff;
}
.capa__foto, .capa__foto img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
}
.capa__veu {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 40, 36, .9) 0%, rgba(0, 40, 36, .66) 42%, rgba(0, 40, 36, .12) 100%),
    linear-gradient(0deg, rgba(28, 14, 2, .5) 0%, rgba(28, 14, 2, 0) 50%),
    linear-gradient(180deg, rgba(0, 30, 27, .55) 0%, rgba(0, 30, 27, 0) 28%);
}
.capa__texto { position: relative; }
.capa__texto > * { max-width: 700px; }
.capa__titulo {
  font-family: var(--serifa);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.45rem + 4.3vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.018em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
.capa__titulo em { font-style: italic; font-weight: 500; color: var(--creme); }
.capa__frase { font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .9); max-width: 36em; }
.capa__acoes { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* ---------- faixa Cultura · Turismo · Eventos ---------- */
.temas { background: var(--verde); color: var(--creme); }
.temas ul {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem 0;
  list-style: none; margin-block: 0; padding: 1.35rem 0;
  font-family: var(--serifa); font-weight: 500; font-size: clamp(1.2rem, .95rem + 1vw, 1.7rem); letter-spacing: .04em;
}
.temas li { display: flex; align-items: center; }
.temas li + li::before {
  content: ""; width: .38em; height: .38em; margin: 0 clamp(1rem, 3vw, 2.2rem);
  background: var(--cobre-claro); transform: rotate(45deg);
}

/* ---------- seções ---------- */
.secao { position: relative; padding: clamp(76px, 10vw, 132px) 0; overflow: hidden; }
.secao--creme { background: var(--creme); }
.cabeca { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.cabeca .titulo { margin-bottom: 0; }

/* marca d'água com o desenho do logo, como no papel timbrado do manual */
.secao--marca::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -4%; bottom: -10%;
  width: min(48vw, 600px); aspect-ratio: 222 / 207;
  background: var(--creme);
  -webkit-mask: url(../img/itep-simbolo.svg) center / contain no-repeat;
  mask: url(../img/itep-simbolo.svg) center / contain no-repeat;
  opacity: .75;
}
.secao--marca > .container { position: relative; z-index: 1; }

/* ---------- O Instituto ---------- */
.instituto { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.instituto__texto p:not(.sobre) { color: var(--tinta-suave); max-width: 38em; }
.instituto__texto p:not(.sobre):first-of-type { color: var(--tinta); font-size: 1.125rem; }
.marcos { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.marco {
  padding: 1.5rem 1.7rem;
  background: var(--papel);
  border: 1px solid rgba(0, 80, 72, .1);
  border-left: 4px solid var(--cobre);
  border-radius: 6px var(--raio) var(--raio) 6px;
  box-shadow: 0 18px 40px -30px rgba(0, 46, 41, .5);
}
.marco strong {
  display: block; margin-bottom: .25rem;
  font-family: var(--serifa); font-weight: 600; font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); line-height: 1.15;
  color: var(--verde);
}
.marco span { display: block; color: var(--tinta-suave); font-size: .97rem; line-height: 1.45; }

/* ---------- Como atuamos ---------- */
.frentes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.frente {
  position: relative;
  padding: 2.1rem 1.9rem 2.2rem;
  background: var(--creme-claro);
  border-radius: var(--raio);
  border: 1px solid rgba(0, 80, 72, .08);
  transition: transform .3s, box-shadow .3s;
}
.frente:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(0, 46, 41, .55); }
.frente__num {
  position: absolute; top: 1.6rem; right: 1.8rem;
  font-family: var(--serifa); font-size: 1.05rem; font-weight: 500; color: var(--cobre-texto); opacity: .75;
}
.frente__ico {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 1.5rem;
  border-radius: 50%; background: var(--verde); color: var(--creme);
}
.frente__ico .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.frente h3 { font-family: var(--serifa); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--verde); margin-bottom: .65rem; }
.frente p { margin: 0; color: var(--tinta-suave); }

/* ---------- Contato ---------- */
.contato { background: var(--verde); color: var(--creme-claro); }
.contato::before {
  content: ""; position: absolute; left: -6%; top: -12%; pointer-events: none;
  width: min(44vw, 520px); aspect-ratio: 222 / 207;
  background: var(--verde-escuro);
  -webkit-mask: url(../img/itep-simbolo.svg) center / contain no-repeat;
  mask: url(../img/itep-simbolo.svg) center / contain no-repeat;
}
.contato__in { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contato .titulo { color: var(--creme); }
.contato__texto p { color: rgba(251, 244, 234, .86); max-width: 30em; }
.contato__sede {
  display: flex; gap: .9rem; align-items: flex-start;
  margin-top: 2rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(244, 220, 187, .2);
}
.contato__sede .ico { width: 26px; height: 26px; color: var(--cobre-claro); margin-top: .15rem; }
.contato__sede strong { display: block; color: var(--creme); font-weight: 600; }

.form {
  padding: clamp(24px, 4vw, 44px);
  background: var(--creme-claro); color: var(--tinta);
  border-radius: calc(var(--raio) + 6px);
  box-shadow: 0 34px 70px -36px rgba(0, 0, 0, .55);
}
.form__dupla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.campo { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.15rem; }
.campo label { font-weight: 600; font-size: .94rem; color: var(--verde); }
.campo label small { font-weight: 400; font-size: .86rem; color: var(--tinta-suave); }
.campo input:not([type="checkbox"]), .campo select, .campo textarea {
  width: 100%; min-height: 50px;
  padding: .75em 1em;
  background: #fff; color: var(--tinta);
  border: 1.5px solid var(--linha); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.campo select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005048' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9em center; background-size: 18px;
}
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: #CDB28A; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible {
  outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(0, 80, 72, .16);
}
.campo--erro input:not([type="checkbox"]), .campo--erro select, .campo--erro textarea { border-color: var(--erro); }
.campo__erro { margin: 0; color: var(--erro); font-size: .86rem; font-weight: 500; }
.campo--aceite { margin-bottom: 1.5rem; }
.aceite { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-weight: 400 !important; color: var(--tinta-suave) !important; line-height: 1.45; }
.aceite input { width: 20px; height: 20px; margin: .1rem 0 0; flex: none; accent-color: var(--verde); cursor: pointer; }
.isca { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__botao { width: 100%; }
.form__status { margin: 1rem 0 0; font-weight: 500; text-align: center; }
.form__status:empty { display: none; }
.form__status--erro { color: var(--erro); }
.form__ok { text-align: center; padding: clamp(12px, 3vw, 28px) 0; }
.form__ok:focus { outline: none; }
.form__ok .ico { width: 64px; height: 64px; margin: 0 auto 1.1rem; color: var(--verde); stroke-width: 1.5; }
.form__ok h3 { font-family: var(--serifa); font-weight: 600; font-size: 1.8rem; color: var(--verde); margin-bottom: .5rem; }
.form__ok p { margin: 0 auto; max-width: 26em; color: var(--tinta-suave); }

/* ---------- rodapé ---------- */
.rodape { background: var(--verde-noite); color: rgba(244, 220, 187, .82); padding: clamp(56px, 7vw, 80px) 0 28px; font-size: .97rem; }
.rodape__grade { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, 1fr); gap: 40px; }
.rodape__marca img { width: 230px; margin-bottom: 1.2rem; }
.rodape__marca p { max-width: 24em; margin: 0; }
.rodape__titulo { font-family: var(--serifa); font-weight: 600; font-size: 1.15rem; color: var(--creme); margin-bottom: .9rem; }
.rodape ul { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rodape__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(40px, 6vw, 64px); padding-top: 24px;
  border-top: 1px solid rgba(244, 220, 187, .15);
  font-size: .86rem; color: rgba(244, 220, 187, .7);
}
.rodape__base p { margin: 0; }
.credito { display: flex; align-items: center; gap: .65rem; white-space: nowrap; }
.credito img { width: 127px; height: 25px; }
.credito a:hover { text-decoration: none; opacity: .85; }

/* ---------- página 404 ---------- */
.erro404 { min-height: 100svh; display: grid; place-items: center; background: var(--creme-claro); text-align: center; padding: 2rem var(--gutter); }
.erro404 img { width: min(320px, 80vw); margin: 0 auto 2rem; }
.erro404 p { color: var(--tinta-suave); margin-bottom: 1.8rem; }

/* ---------- entrada suave ---------- */
.js .revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .revelar.visivel { opacity: 1; transform: none; }

/* ---------- telas menores ---------- */
@media (max-width: 1000px) {
  .instituto, .contato__in { grid-template-columns: minmax(0, 1fr); }
  .marcos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .frentes { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .rodape__grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rodape__marca { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .topo__in { gap: 1rem; height: 76px; }
  .topo__logo img { height: 50px; }
  .topo--solido .topo__in { height: 66px; }
  .topo--solido .topo__logo img { height: 44px; }
  .topo__cta { display: none; }
  .topo__menu-btn { display: grid; position: relative; z-index: 2; }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    background: var(--verde);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .menu__lista { flex-direction: column; align-items: center; gap: 1.2rem; }
  .menu a, .topo--solido .menu a { color: var(--creme); font-family: var(--serifa); font-size: 2rem; font-weight: 500; }
  .menu-aberto { overflow: hidden; }
  /* o desfoque do topo prenderia o menu dentro da barra: desliga enquanto o menu está aberto */
  .menu-aberto .topo { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-aberto .menu { opacity: 1; visibility: visible; }
  .menu-aberto .topo__menu-btn { color: var(--creme); }
  .menu-aberto .topo__logo { visibility: hidden; }
}

@media (max-width: 760px) {
  .capa { align-items: flex-end; min-height: max(620px, 100svh); padding-top: 120px; }
  .capa__foto img { object-position: 50% 70%; }
  .capa__veu {
    background: linear-gradient(180deg, rgba(0, 34, 30, .62) 0%, rgba(0, 34, 30, .5) 30%, rgba(0, 30, 27, .9) 72%, rgba(0, 30, 27, .96) 100%);
  }
  .marcos { grid-template-columns: minmax(0, 1fr); }
  .secao--marca::before { width: 90vw; right: -30%; bottom: -4%; opacity: .55; }
  .contato::before { width: 80vw; left: -30%; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .capa__acoes .botao { flex: 1 1 100%; }
  .form__dupla { grid-template-columns: minmax(0, 1fr); }
  .rodape__grade { grid-template-columns: minmax(0, 1fr); }
  .rodape__base { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .revelar { opacity: 1; transform: none; }
}
