/*
Theme Name: INOVA IA 2026
Theme URI: https://inova.ia.br/
Author: RIOSOFT
Description: Tema institucional e responsivo para o INOVA IA 2026, preparado para homologacao em WordPress.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: inova-ia-2026
*/

:root {
  --ink: #0b1733;
  --ink-soft: #24314f;
  --blue: #163e89;
  --blue-2: #2065b4;
  --cyan: #73e7ee;
  --cyan-2: #c8fbfd;
  --magenta: #e5428d;
  --cream: #f6f7f4;
  --white: #ffffff;
  --line: rgba(11, 23, 51, 0.14);
  --shadow: 0 22px 60px rgba(11, 23, 51, 0.14);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; z-index: 1000; top: 12px; left: 12px; width: auto; height: auto;
  padding: 10px 14px; margin: 0; clip: auto; color: var(--white); background: var(--ink);
}
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 104px 0; }
.section--white { background: var(--white); }
.section--ink { color: var(--white); background: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--blue-2); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 99px; background: var(--cyan); }
.section--ink .eyebrow { color: var(--cyan); }
h1, h2, h3 { margin-top: 0; line-height: 1.07; letter-spacing: -.035em; }
h1 { font-size: clamp(3.1rem, 7vw, 6.9rem); }
h2 { max-width: 840px; margin-bottom: 26px; font-size: clamp(2.2rem, 4vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.25em; }
.lead { max-width: 790px; color: var(--ink-soft); font-size: clamp(1.12rem, 2vw, 1.35rem); }
.section--ink .lead { color: rgba(255,255,255,.76); }

.site-header {
  position: sticky; z-index: 100; top: 0; color: var(--white);
  background: rgba(11, 23, 51, .91); border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 900; }
.brand img { width: 48px; height: 48px; object-fit: contain; background: var(--white); border-radius: 50%; }
.brand span { line-height: 1.1; }
.brand small { display: block; color: var(--cyan); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: rgba(255,255,255,.9); font-size: .88rem; font-weight: 760; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { color: var(--cyan); }
.menu-toggle { display: none; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; padding: 8px 12px; }

.hero {
  position: relative; min-height: 760px; display: grid; align-items: end; color: var(--white);
  background-color: var(--ink); background-size: cover; background-position: center 38%; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(7,16,38,.97) 0%, rgba(8,23,53,.86) 42%, rgba(8,23,53,.3) 72%, rgba(8,23,53,.56) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 210px;
  background: linear-gradient(transparent, var(--ink));
}
.hero__content { padding: 132px 0 92px; }
.hero__kicker { margin-bottom: 28px; color: var(--cyan); font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin-bottom: 16px; }
.hero h1 span { color: var(--cyan); }
.hero__subtitle { max-width: 790px; margin-bottom: 34px; font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.4; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 0 0 34px; padding: 0; list-style: none; }
.hero__meta li { display: flex; align-items: center; gap: 9px; font-weight: 760; }
.hero__meta li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 5px rgba(229,66,141,.18); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 24px;
  color: var(--ink); background: var(--cyan); border: 2px solid var(--cyan); border-radius: 999px;
  font-weight: 880; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .button:focus { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(115,231,238,.25); }
.button--outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.7); }
.button--outline:hover, .button--outline:focus { background: rgba(255,255,255,.1); box-shadow: none; }
.button--dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button--disabled { opacity: .72; pointer-events: none; }

.metrics { position: relative; z-index: 2; margin-top: -38px; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.metric { padding: 30px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--blue); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1; }
.metric span { display: block; margin-top: 9px; color: var(--ink-soft); font-size: .84rem; font-weight: 720; }

.split { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(45px, 7vw, 100px); }
.visual-stack { position: relative; min-height: 520px; }
.visual-stack img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.visual-stack img:first-child { inset: 0 70px 80px 0; width: calc(100% - 70px); height: 440px; }
.visual-stack img:last-child { right: 0; bottom: 0; width: 46%; height: 270px; border: 9px solid var(--cream); }
.check-list { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; font-weight: 720; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 950; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.card { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.section--ink .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.card__number { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 56px; color: var(--ink); background: var(--cyan); border-radius: 50%; font-weight: 950; }
.card p { margin-bottom: 0; color: var(--ink-soft); }
.section--ink .card p { color: rgba(255,255,255,.72); }

.program { display: grid; gap: 16px; margin-top: 48px; }
.program__item { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line); }
.section--ink .program__item { border-color: rgba(255,255,255,.17); }
.program__time { color: var(--blue-2); font-weight: 880; }
.section--ink .program__time { color: var(--cyan); }
.program__item h3 { margin-bottom: 8px; }
.program__item p { margin: 0; color: var(--ink-soft); }
.section--ink .program__item p { color: rgba(255,255,255,.7); }

.speakers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.speaker { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.speaker img { width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; background: var(--cyan-2); }
.speaker__body { padding: 23px; }
.speaker h3 { margin-bottom: 6px; font-size: 1.2rem; }
.speaker p { margin: 0; color: var(--ink-soft); font-size: .86rem; }

.history { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 24px; }
.history__copy { padding: clamp(34px, 6vw, 72px); color: var(--white); background: var(--blue); border-radius: var(--radius); }
.history__copy .eyebrow { color: var(--cyan); }
.history__copy p { color: rgba(255,255,255,.8); }
.history__image { min-height: 560px; object-fit: cover; border-radius: var(--radius); }

.callout { position: relative; overflow: hidden; padding: clamp(38px, 7vw, 82px); background: var(--cyan); border-radius: var(--radius); }
.callout::after { content: "IA"; position: absolute; right: -16px; bottom: -80px; color: rgba(22,62,137,.09); font-size: 17rem; font-weight: 950; line-height: 1; }
.callout > * { position: relative; z-index: 1; }
.callout p { max-width: 760px; }

.section--tree { padding: 54px 0; background: var(--ink); }
.tree-mark { display: flex; justify-content: center; }
.tree-mark img {
  width: min(100%, 310px); height: 230px; object-fit: contain; border-radius: 18px;
  mix-blend-mode: screen;
}

.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 42px; }
.partner { display: grid; place-items: center; min-width: 176px; min-height: 105px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.partner img { max-width: 140px; max-height: 68px; }
.partners--confirmed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.partners--confirmed .partner { min-width: 0; min-height: 170px; padding: 24px; }
.partners--confirmed .partner img { width: 100%; max-width: 190px; height: 105px; max-height: none; object-fit: contain; object-position: center; }
.partners--confirmed .partner:last-child img { transform: scale(1.32); }
.partner--placeholder { color: var(--ink-soft); background: transparent; border-style: dashed; font-size: .8rem; font-weight: 780; text-align: center; }

.content-area { padding: 90px 0; }
.content-area__inner { max-width: 850px; }
.content-area h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.post-list { display: grid; gap: 24px; }
.post-card { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.post-card a { text-decoration: none; }

.site-footer { padding: 66px 0 28px; color: rgba(255,255,255,.75); background: #071126; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer h2 { font-size: 1.8rem; }
.site-footer h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 24px 20px 30px; background: var(--ink); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 16px; }
  .menu-toggle { display: inline-flex; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .history { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .speakers { grid-template-columns: repeat(2, 1fr); }
  .partners--confirmed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history__image { min-height: 430px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 74px 0; }
  .hero { min-height: 760px; background-position: 58% center; }
  .hero__content { padding: 105px 0 80px; }
  .hero h1 { font-size: clamp(3rem, 17vw, 4.2rem); }
  .metrics { margin-top: -26px; }
  .metrics__grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .cards, .speakers { grid-template-columns: 1fr; }
  .card__number { margin-bottom: 34px; }
  .program__item { grid-template-columns: 1fr; gap: 9px; }
  .visual-stack { min-height: 410px; }
  .visual-stack img:first-child { inset: 0 35px 65px 0; width: calc(100% - 35px); height: 340px; }
  .visual-stack img:last-child { height: 190px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section--tree { padding: 42px 0; }
  .tree-mark img { width: 220px; height: 165px; }
  .partners--confirmed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .partners--confirmed .partner { min-height: 128px; padding: 14px; }
  .partners--confirmed .partner img { max-width: 145px; height: 82px; }
}

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