/* Paleta do manual de identidade Italínea.
   A fonte oficial é a Filson Soft; Outfit é a família usada na web. */

:root {
  --navy: #164187;
  --navy-hover: #1b4d9c;
  --blue: #298dec;
  --coral: #ff9c73;
  --peach: #ffd0b9;
  --ink: #17315d;
  --muted: #4e6080;
  --line: #e5d9cf;
  --bg: #f6f1eb;
  --white: #ffffff;
  --danger: #9d2c2c;
  --font: "Outfit", "Segoe UI", sans-serif;
  --header: 76px;
  --wrap: 840px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.6;
  color-scheme: light;
}

img { max-width: 100%; display: block; }

button, input, textarea { font: inherit; }

::selection {
  background: var(--peach);
  color: var(--navy);
}

::placeholder {
  color: #8d7d72;
  opacity: 1;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 50;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: var(--white);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 196px;
  text-decoration: none;
  color: inherit;
  gap: 5px;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand-tag {
  display: block;
  text-align: center;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.31em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-left: 0.31em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.nav-link { opacity: 0.88; }

.nav-link:hover { opacity: 1; }

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 10px 16px;
}

.header-cta:hover {
  background: var(--white);
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.header a:focus-visible { outline-color: var(--peach); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 28px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(22, 65, 135, 0.16);
  pointer-events: none;
}

.orb-a {
  width: 240px;
  height: 240px;
  right: -70px;
  top: -50px;
}

.orb-b {
  width: 92px;
  height: 92px;
  right: 120px;
  bottom: 12px;
  border-color: rgba(255, 156, 115, 0.9);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex: 0 0 auto;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  color: var(--navy);
}

.lead {
  margin: 18px 0 0;
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 14px 22px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: var(--navy-hover); }

.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.btn-full { width: 100%; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts li {
  padding: 16px 18px 16px 0;
}

.facts span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts strong {
  font-weight: 600;
  color: var(--navy);
}

.vaga {
  padding: 28px 0 12px;
}

.vaga h2 { margin: 8px 0 18px; font-size: 1.7rem; color: var(--navy); }

.vaga h3 {
  margin: 32px 0 10px;
  font-size: 1.25rem;
  color: var(--navy);
}

.vaga p { margin: 0 0 14px; }

.vaga ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vaga li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
}

.vaga li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.perfil li strong {
  color: var(--navy);
  font-weight: 600;
}

.porque {
  margin: 36px 0 8px;
  padding: 28px 28px 14px;
  background: var(--peach);
  border-radius: 24px;
  color: var(--navy);
}

.porque h2 { margin-top: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 36px;
}

.candidatura {
  padding: 36px 0 80px;
  scroll-margin-top: 88px;
}

#vaga { scroll-margin-top: 88px; }

.form-card,
.success {
  background: var(--white);
  border: 1px solid rgba(22, 65, 135, 0.08);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 18px 40px rgba(22, 65, 135, 0.06);
}

.form-card h2,
.success h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--navy);
}

.form-intro {
  margin: 0 0 22px;
  color: var(--muted);
}

.aplicando {
  margin: 0 0 22px;
  color: var(--navy);
}

.aplicando strong { font-weight: 600; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }

.field > label:not(.check):not(.dropzone),
.dropzone-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.req { color: var(--coral); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}

textarea { resize: vertical; min-height: 110px; }

input:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(22, 65, 135, 0.12);
}

.dropzone {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1.5px dashed rgba(22, 65, 135, 0.35);
  border-radius: 16px;
  background: #fbf8f5;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone strong,
.dropzone span {
  display: block;
}

.dropzone strong {
  color: var(--navy);
  font-weight: 600;
}

.dropzone span,
#arquivo-nome {
  color: var(--muted);
  font-size: 0.92rem;
}

.dropzone.has-file #arquivo-nome {
  color: var(--navy);
  font-weight: 600;
}

.dropzone:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(22, 65, 135, 0.12);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  font-size: 0.95rem;
}

.check input {
  margin-top: 4px;
  accent-color: var(--navy);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.error {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid .dropzone {
  border-color: var(--danger);
}

.form-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdeeee;
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.success p { margin: 0 0 20px; color: var(--muted); }

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  padding: 36px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.footer .brand { width: 168px; }

.footer p {
  margin: 0;
  text-align: right;
  font-size: 0.95rem;
}

.mobile-bar {
  display: none;
}

@media (max-width: 720px) {
  .nav-link { display: none; }

  .brand { width: 148px; }

  .facts,
  .split,
  .grid-2 { grid-template-columns: 1fr; }

  .facts li { padding-right: 0; }

  .porque,
  .form-card,
  .success { padding: 22px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer p { text-align: left; }

  .mobile-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(246, 241, 235, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  .mobile-bar.is-hidden { display: none; }

  body { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
