/* =========================================================
   Site público: tema "portfólio".
   Fonte própria (Schibsted Grotesk), claro e escuro, cor por modalidade.
   O painel continua usando styles.css + admin-tema.css.
   ========================================================= */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --bg:        #F5F4F1;
  --surface:   #FFFFFF;
  --fg:        #12131A;
  --fg-2:      #5A5D68;
  --line:      rgba(18, 19, 26, .14);
  --line-2:    rgba(18, 19, 26, .30);

  --accent:     #FF5B3A;
  --accent-ink: #C93A1B;   /* acento legível como texto sobre o fundo claro */
  --btn:        #D9381A;   /* botão principal: fundo, com letra branca (contraste 4,6:1) */
  --btn-hover:  #B92D12;   /* ao passar o mouse só escurece */
  --ink:        #12131A;   /* tinta fixa, para cima do acento */
  --navy:       #141C5C;
  --navy-2:     #1D2780;

  --ok:   #0B7A52;
  --erro: #C0341A;

  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --largura: 76rem;
}

/* Escuro sem JS: segue o sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema]) {
    color-scheme: dark;
    --bg: #0E1016; --surface: #151821; --fg: #EEF0F5; --fg-2: #A6ABBB;
    --line: rgba(255, 255, 255, .14); --line-2: rgba(255, 255, 255, .30);
    --accent-ink: #FF8466; --navy: #0C1342; --navy-2: #162069;
    --ok: #3DD9A4; --erro: #FF8466;
  }
}
/* Escuro escolhido (ou automático resolvido pelo JS) */
:root[data-tema='escuro'] {
  color-scheme: dark;
  --bg: #0E1016; --surface: #151821; --fg: #EEF0F5; --fg-2: #A6ABBB;
  --line: rgba(255, 255, 255, .14); --line-2: rgba(255, 255, 255, .30);
  --accent-ink: #FF8466; --navy: #0C1342; --navy-2: #162069;
  --ok: #3DD9A4; --erro: #FF8466;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; }
.secao--azul :focus-visible { outline-color: #fff; }
.secao--acento :focus-visible, .rodape :focus-visible { outline-color: var(--ink); }
.rodape :focus-visible { outline-color: #fff; }

.envolucro { width: 100%; max-width: calc(var(--largura) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.barra-carga { display: none; }
.pular { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--fg); color: var(--bg); padding: .6rem 1rem; font-weight: 600; border-radius: .5rem; text-decoration: none; }
.pular:focus { top: 1rem; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--line);
}
.topo__interno { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.marca { font-weight: 800; font-size: 1.15rem; letter-spacing: -.025em; text-decoration: none; margin-right: auto; }
.marca i { font-style: normal; color: var(--accent); }
.menu { display: none; gap: 2rem; }
.menu a { font-size: .97rem; font-weight: 500; color: var(--fg-2); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--fg); }
.menu a[aria-current='page'] { color: var(--fg); border-color: var(--accent); }
@media (min-width: 56rem) { .menu { display: flex; } }
.topo__acoes { display: flex; align-items: center; gap: .75rem; }
.btn-tema { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: none; border: 1.5px solid var(--line-2); color: var(--fg); transition: border-color .2s; }
.btn-tema:hover { border-color: var(--fg); }
.btn-tema svg { width: 1.15rem; height: 1.15rem; }
.btn-topo2 { display: inline-flex; background: var(--btn); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; padding: .55rem 1.1rem; border-radius: 999px; transition: background .25s var(--ease), color .25s var(--ease); }
.btn-topo2:hover { background: var(--btn-hover); }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--fg);
  background: transparent; color: var(--fg);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
.botao:hover { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.botao--enviar, .botao--principal { background: var(--btn); border-color: var(--btn); color: #fff; }
.botao--enviar:hover, .botao--principal:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.botao:disabled { opacity: .6; cursor: not-allowed; }
.acoes-linha { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

/* ---------- Entrada (um momento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .entra { animation: subir 1s var(--ease) both; animation-delay: var(--atraso, 0ms); }
  @keyframes subir { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Herói ---------- */
.heroi { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.heroi__grade { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .heroi__grade { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.heroi h1 { font-weight: 700; font-size: clamp(3.2rem, 8.8vw, 6rem); line-height: .95; letter-spacing: -.045em; }
.heroi__funcao { margin-top: 1.5rem; max-width: 22ch; font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.2; letter-spacing: -.025em; }
.heroi__lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1.12rem; color: var(--fg-2); }
.heroi__numeros { margin-top: .9rem; max-width: 36rem; font-size: 1.05rem; color: var(--fg-2); }
.heroi__numeros b { color: var(--fg); font-weight: 700; }
.heroi__links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.heroi__links a { display: inline-flex; padding: .55rem 1.15rem; border: 1.5px solid var(--fg); border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.heroi__links a:hover { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.heroi .acoes-linha { margin-top: 2rem; gap: .75rem 1.5rem; }

.retrato { position: relative; isolation: isolate; width: 100%; max-width: 28rem; aspect-ratio: 4 / 5; justify-self: end; overflow: hidden; border-radius: 2rem; background: var(--accent); }
.retrato::before { content: ''; position: absolute; z-index: -1; right: -22%; bottom: -18%; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--navy); }
.retrato::after { content: ''; position: absolute; z-index: -1; left: 10%; top: 9%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #F5F4F1; }
.retrato__iniciais { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: clamp(7rem, 16vw, 11rem); letter-spacing: -.06em; color: var(--ink); }
.retrato img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 55.99rem) { .retrato { justify-self: start; max-width: 20rem; } }

/* ---------- Seções ---------- */
.secao { padding-block: clamp(4rem, 9vw, 7rem); }
.secao--azul { background: var(--navy); color: #fff; }
.secao--acento { background: var(--accent); color: var(--ink); }
.cabecalho { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.cabecalho > div { max-width: 46rem; }
.cabecalho h1, .cabecalho h2, .convite h2 { font-weight: 700; font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.cabecalho p { margin-top: .9rem; font-size: 1.1rem; color: var(--fg-2); }
.secao--azul .cabecalho p { color: rgba(255, 255, 255, .78); }
.mais { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: .1rem; transition: color .2s; }
.mais:hover { color: var(--accent); }
.secao:not(.secao--azul) .mais:hover { color: var(--accent-ink); }
.vazio { padding: 1.5rem; border: 1.5px dashed var(--line-2); border-radius: 1rem; color: var(--fg-2); }
.secao--azul .vazio { color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .35); }

.foto-capa { margin-bottom: clamp(2rem, 5vw, 3rem); overflow: hidden; border-radius: 1.75rem; aspect-ratio: 21 / 9; background: var(--navy-2); }
.foto-capa img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 40rem) { .foto-capa { aspect-ratio: 4 / 3; } }

/* ---------- Filtros por modalidade ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem .4rem .45rem; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; color: #fff;
  font-weight: 600; font-size: .93rem; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.chip img { width: 1.55rem; height: 1.55rem; border-radius: 50%; object-fit: contain; background: #fff; padding: .12rem; }
.chip b { font-weight: 800; color: #FFB4A3; }
.chip:hover { border-color: #fff; }
.chip[aria-pressed='true'] { background: #fff; border-color: #fff; color: var(--navy); }
.chip[aria-pressed='true'] b { color: var(--accent-ink); }
.chip:not(:has(img)) { padding-left: 1rem; }

/* ---------- Eventos: pôsteres ---------- */
.posters { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 27rem), 1fr)); }
.item.poster { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 1.75rem; background: var(--navy-2); color: #fff; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.item.poster:hover { transform: translateY(-6px); box-shadow: 0 1.8rem 2.4rem -1.4rem rgba(3, 6, 40, .8); }
.poster__capa { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; aspect-ratio: 16 / 9; padding: 1.4rem; background: var(--cor, var(--accent)); color: var(--cor-texto, var(--ink)); }
.poster__topo { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.poster__quando { padding: .28rem .85rem; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.poster__icone { display: grid; place-items: center; min-width: 7.5rem; min-height: 7.5rem; padding: .7rem; border-radius: 1.4rem; background: #fff; overflow: hidden; box-shadow: 0 .6rem 1.4rem -.8rem rgba(0, 0, 0, .55); }
.poster__icone img { width: auto; height: auto; max-width: 11.5rem; max-height: 6.1rem; object-fit: contain; }
.poster__icone span { font-weight: 800; font-size: 1.9rem; letter-spacing: -.03em; color: #12131A; }
@media (max-width: 40rem) { .poster__icone { min-width: 5.75rem; min-height: 5.75rem; } .poster__icone img { max-width: 8.5rem; max-height: 4.4rem; } }
.poster__nome { font-weight: 800; font-size: clamp(1.6rem, 2.9vw, 2.3rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.poster__corpo { padding: 1.15rem 1.4rem 1.5rem; }
.poster__papel { font-weight: 700; }
.poster__meta { margin-top: .25rem; color: rgba(255, 255, 255, .78); font-size: .97rem; }
.poster__meta a { color: #fff; }
.poster__meta a:hover { color: #FFB4A3; }
.cliente-final { color: rgba(255, 255, 255, .78); }

.citacao { margin-top: clamp(2rem, 5vw, 3.25rem); padding: clamp(1.75rem, 4vw, 3rem); border-radius: 1.75rem; background: rgba(255, 255, 255, .08); }
.citacao p { max-width: 24ch; font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.citacao small { display: block; margin-top: 1rem; max-width: 34rem; font-size: 1.02rem; color: rgba(255, 255, 255, .78); }

/* ---------- Carreira ---------- */
.carreira { border-top: 2px solid var(--fg); }
.linha-carreira { position: relative; display: grid; gap: .2rem 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); grid-template-columns: 6rem minmax(0, 1fr); }
.linha-carreira::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.linha-carreira:hover::before { transform: scaleX(1); }
.linha-carreira__ano { font-weight: 600; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.03em; color: var(--fg-2); transition: color .3s; }
.linha-carreira:hover .linha-carreira__ano { color: var(--accent-ink); }
.linha-carreira h3 { font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.15; letter-spacing: -.03em; transition: transform .5s var(--ease); }
.linha-carreira:hover h3 { transform: translateX(.35rem); }
.linha-carreira p { margin-top: .3rem; font-weight: 600; color: var(--fg-2); }
.linha-carreira p a { color: inherit; }
.linha-carreira__tag { grid-column: 2; color: var(--fg-2); font-size: .98rem; }
@media (min-width: 56rem) {
  .linha-carreira { grid-template-columns: 8rem minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
  .linha-carreira__tag { grid-column: auto; text-align: right; padding-top: .35rem; }
}

/* ---------- Convite ---------- */
.convite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.convite h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: .96; max-width: 14ch; }
.convite p { margin-top: 1rem; max-width: 30rem; font-size: 1.15rem; font-weight: 500; color: #3A1208; }
.secao--acento .botao { border-color: var(--ink); color: var(--ink); }
.secao--acento .botao:hover { background: var(--ink); color: #fff; }
.secao--acento .botao--enviar { background: var(--ink); border-color: var(--ink); color: #fff; }
.secao--acento .botao--enviar:hover { background: #2A2C38; border-color: #2A2C38; color: #fff; }

/* ---------- Formulário de contato ---------- */
.formulario { display: grid; gap: 1.25rem; max-width: 44rem; }
.linha-dupla { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .linha-dupla { grid-template-columns: 1fr 1fr; } }
.campo label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .95rem; }
.campo input, .campo textarea { width: 100%; padding: .8rem .95rem; border-radius: .75rem; border: 1px solid var(--line-2); background: var(--surface); line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.campo textarea { min-height: 9rem; resize: vertical; }
.campo input::placeholder { color: var(--fg-2); opacity: .8; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.campo input:user-invalid, .campo textarea:user-invalid { border-color: var(--erro); }
.campo__ajuda { display: block; margin-top: .4rem; font-size: .88rem; color: var(--fg-2); }
.mel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso { padding: 1rem 1.15rem; border-radius: .75rem; border: 1px solid var(--line-2); background: var(--surface); }
.aviso--ok { border-color: var(--ok); }
.aviso--erro { border-color: var(--erro); }

/* ---------- Rodapé ---------- */
.rodape { background: #0B0C10; color: #B9BAC6; padding-block: 1.75rem; font-size: .93rem; }
.rodape__interno { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.rodape a { color: #fff; text-decoration: none; font-weight: 600; }
.rodape a:hover { color: var(--accent); }

/* ---------- Pôster com a imagem do jogo de capa ---------- */
.poster__capa--foto { background: #0B0C10; color: #fff; }
.poster__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.item.poster:hover .poster__foto { transform: scale(1.05); }
/* véu escuro só para o texto ficar legível sobre qualquer foto */
.poster__capa--foto::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 6, 20, .88) 0%, rgba(5, 6, 20, .50) 42%, rgba(5, 6, 20, .12) 100%); }
.poster__capa--foto .poster__quando { background: rgba(5, 6, 20, .45); }
.poster__capa--foto .poster__nome { text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
/* com foto, o ícone do evento fica pequeno, no cantinho */
.poster__capa--foto .poster__icone { min-width: 4.5rem; min-height: 4.5rem; padding: .5rem; border-radius: 1rem; }
.poster__capa--foto .poster__icone img { max-width: 7rem; max-height: 3.5rem; }
.poster__capa--foto .poster__icone span { font-size: 1.15rem; }
@media (max-width: 40rem) { .poster__capa--foto .poster__icone { min-width: 3.75rem; min-height: 3.75rem; } .poster__capa--foto .poster__icone img { max-width: 5.5rem; max-height: 2.75rem; } }

/* ---------- Pôster sem imagem enviada: a logo cresce e fica no centro ---------- */
.poster__capa--logo {
  color: #fff;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cor) 72%, #0B0C10) 0%, color-mix(in srgb, var(--cor) 34%, #0B0C10) 72%),
    #0B0C10;
}
/* véu embaixo para o nome ficar legível em qualquer cor de jogo */
.poster__capa--logo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 6, 20, .78) 0%, rgba(5, 6, 20, 0) 55%); }
.poster__logo { position: absolute; inset: 0 0 4.4rem 0; z-index: -2; display: grid; place-items: center; }
/* halo claro atrás da logo: logo escura ou clara aparece igual */
.poster__logo::before { content: ''; position: absolute; width: min(56%, 16rem); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, 0) 72%); transition: transform .9s var(--ease); }
.poster__logo img { position: relative; max-width: min(46%, 13rem); max-height: 64%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 .5rem 1rem rgba(0, 0, 0, .35)); transition: transform .9s var(--ease); }
.poster__logo span { position: relative; font-weight: 800; font-size: clamp(3rem, 7vw, 4.5rem); letter-spacing: -.05em; color: #12131A; }
.item.poster:hover .poster__logo::before, .item.poster:hover .poster__logo img, .item.poster:hover .poster__logo span { transform: scale(1.06); }
.poster__capa--logo .poster__quando { background: rgba(5, 6, 20, .35); }
.poster__capa--logo .poster__nome { text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
@media (max-width: 40rem) { .poster__logo { inset: 0 0 3.8rem 0; } }
.poster__logo--escuro::before { background: radial-gradient(circle, rgba(5, 6, 20, .78) 0%, rgba(5, 6, 20, .42) 50%, rgba(5, 6, 20, 0) 74%); }
.poster__logo--escuro img { filter: drop-shadow(0 .4rem .8rem rgba(0, 0, 0, .3)); }
