:root {
  --ink: #10253d;
  --blue: #075e9d;
  --cyan: #25a6d9;
  --red: #e5313d;
  --paper: #f5f8fb;
  --line: #dce7ef;
  --white: #fff;
  --shadow: 0 18px 55px rgba(8, 37, 62, 0.16);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 Inter,
    system-ui,
    sans-serif;
}
button,
select,
input {
  font: inherit;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: #fff;
  padding: 0.7rem;
  z-index: 99;
}
.skip:focus {
  top: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 var(--line);
}
.utility {
  height: 30px;
  background: var(--ink);
  color: #fff;
  padding: 0 max(4vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.masthead {
  max-width: 1400px;
  margin: auto;
  padding: 0.2rem max(3vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  width: min(430px, 65vw);
  height: 134px;
  overflow: hidden;
  flex: 0 1 auto;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-20.5%);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.icon-btn,
.menu-btn,
.language select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  height: 42px;
  padding: 0 0.85rem;
  color: var(--ink);
}
.menu-btn {
  display: none;
}
.search-box {
  padding: 0.7rem max(4vw, 1rem);
  background: #eef5fa;
}
.search-box input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #b9cfdf;
  border-radius: 6px;
}
.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 3pt solid var(--white);
}
.main-nav > ul {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 0.75rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--blue);
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 250px;
  list-style: none;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--cyan);
}
.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  display: block;
}
.submenu button,
.submenu a {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 0.55rem;
  border-radius: 4px;
  color: #304a62;
  display: block;
  text-decoration: none;
  font-size: .86rem;
}
.submenu button:hover,
.submenu a:hover {
  background: #eaf5fb;
}
.hero {
  position: relative;
  background: #071d32;
  min-height: 510px;
  color: #fff;
  overflow: hidden;
}
.slides {
  min-height: 510px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-position: center;
  background-size: cover;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 22, 40, 0.95) 0%,
    rgba(3, 22, 40, 0.72) 45%,
    rgba(3, 22, 40, 0.15) 100%
  );
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: auto;
  padding: 7rem max(5vw, 1.4rem);
  width: 100%;
}
.slide-content > div {
  max-width: 680px;
}
.kicker {
  color: #78d5f3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.slide h2 {
  font:
    700 clamp(2.25rem, 5vw, 4.7rem) / 1.02 "Space Grotesk",
    sans-serif;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.04em;
}
.slide p {
  font-size: 1.1rem;
  color: #d9eaf4;
  max-width: 58ch;
}
.read {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
}
.hero-controls {
  position: absolute;
  z-index: 4;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-controls button {
  border: 1px solid #ffffff55;
  background: #071d3299;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
#dots {
  display: flex;
  gap: 0.45rem;
}
.dot {
  width: 7px !important;
  height: 7px !important;
  padding: 0;
  border: 0 !important;
  background: #ffffff66 !important;
}
.dot.active {
  background: #fff !important;
  transform: scale(1.35);
}
.ticker {
  background: var(--blue);
  color: #fff;
  padding: 0.65rem max(4vw, 1rem);
  display: flex;
  gap: 1rem;
  font-size: 0.87rem;
  overflow: hidden;
}
.ticker strong {
  color: #fff;
  background: var(--red);
  padding: 0 0.5rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
.ticker-viewport {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  width: max-content;
  gap: 2.5rem;
  animation: ticker-scroll 38s linear infinite;
  will-change: transform;
}
.ticker-item::after {
  content: "•";
  margin-left: 2.5rem;
  color: #7ce1ff;
}
.ticker-item {
  cursor: pointer;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.content-shell {
  max-width: 1400px;
  margin: auto;
  padding: 5rem max(4vw, 1rem);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.section-head h1,
.ebooks h2,
.newsletter h2 {
  font: 700 clamp(2rem, 3vw, 3rem) / 1.1 "Space Grotesk";
  margin: 0.4rem 0;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
}
.card {
  grid-column: span 4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.25s;
  cursor: pointer;
}
.card:first-child {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-image {
  height: 210px;
  background: linear-gradient(135deg, #052d50, #1b9fd2);
  background-size: cover;
  background-position: center;
}
.card:first-child .card-image {
  height: 100%;
  min-height: 330px;
}
.card-body {
  padding: 1.3rem;
}
.tag {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.card h3 {
  font: 700 1.3rem/1.22 "Space Grotesk";
  margin: 0.5rem 0;
}
.card p {
  color: #587086;
  font-size: 0.91rem;
}
.meta {
  font-size: 0.76rem;
  color: #7c90a2;
}
.empty {
  text-align: center;
  padding: 4rem;
}
.ebooks {
  background: linear-gradient(120deg, #061d33, #063d68);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 620px);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: 5rem max(8vw, 1rem);
  overflow: hidden;
}
.ebook-copy {
  max-width: 700px;
}
.ebook-copy p:not(.eyebrow) {
  color: #cde0ec;
}
.cta {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
  border-radius: 5px;
}
.book {
  display: grid;
  place-items: center;
}
.ebook-showcase {
  display: block;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center 72%;
  border-radius: 10px;
  box-shadow: 20px 25px 50px #0009;
}
.book-cover {
  width: 250px;
  aspect-ratio: 0.7;
  background: linear-gradient(160deg, #fff 0 23%, #0a65a1 23%);
  box-shadow:
    20px 25px 0 #031323,
    25px 32px 50px #0009;
  transform: rotateY(-17deg);
  padding: 1.3rem;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.book-cover img {
  width: 100%;
  height: 65px;
  object-fit: contain;
  background: white;
}
.book-cover span {
  margin-top: 4rem;
  font-size: 2.8rem;
  font-weight: 800;
}
.book-cover strong {
  font-size: 1.4rem;
  color: #7ce1ff;
}
.book-cover small {
  margin-top: auto;
}
.newsletter {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 3rem max(4vw, 1rem);
  background: #dff2fb;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
}
.newsletter input {
  padding: 1rem;
  border: 1px solid #abc7d8;
}
.newsletter button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0 1.3rem;
  font-weight: 700;
}
.newsletter form p {
  grid-column: 1/-1;
}
footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 3rem max(4vw, 1rem);
  text-align: center;
  color: #607487;
  font-size: 0.85rem;
}
footer img {
  width: 840px;
  height: 195px;
  max-width: 100%;
  object-fit: contain;
}
.footer-brand-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  max-width: 1200px;
  margin: 0 auto 1rem;
}
.footer-contact {
  max-width: 420px;
  text-align: left;
}
.footer-contact a {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}
.display-rights {
  margin-top: -0.65rem;
  color: var(--red);
  font: inherit;
}
dialog {
  border: 0;
  border-radius: 12px;
  max-width: 760px;
  width: calc(100% - 2rem);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #051522cc;
}
.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: 0;
  background: none;
  font-size: 2rem;
}
.dialog-tag {
  color: var(--red);
  font-weight: 800;
}
.dialog-source {
  display: inline-block;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 700;
}
@media (max-width: 900px) {
  .brand {
    width: min(360px, 58vw);
    height: 112px;
  }
  .menu-btn {
    display: block;
  }
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav > ul {
    display: block;
    padding: 1rem;
  }
  .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    display: block;
    padding-left: 1rem;
  }
  .nav-link {
    border-bottom: 1px solid var(--line);
  }
  .hero,
  .slides {
    min-height: 560px;
  }
  .slide-content {
    padding-top: 6rem;
  }
  .article-grid {
    display: block;
  }
  .card,
  .card:first-child {
    display: block;
    margin-bottom: 1rem;
  }
  .card:first-child .card-image {
    height: 220px;
    min-height: 0;
  }
  .ebooks {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .book {
    margin-top: 1rem;
  }
  .newsletter {
    grid-template-columns: 1fr;
  }
  .utility {
    display: none;
  }
  .footer-brand-contact {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-contact {
    text-align: center;
  }
}
@media (max-width: 520px) {
  .brand {
    width: min(300px, 62vw);
    height: 93px;
  }
  .icon-btn {
    display: none;
  }
  .slide h2 {
    font-size: 2.35rem;
  }
  .slide-content {
    padding-top: 5rem;
  }
  .newsletter form {
    grid-template-columns: 1fr;
  }
  .newsletter button {
    padding: 1rem;
  }
  .section-head {
    align-items: flex-start;
    gap: 1rem;
  }
  dialog {
    padding: 2rem 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .ticker-track {
    animation: none !important;
  }
}

/* Identidade visual SciTekVision 2026 */
.site-header { background: #061bb6; box-shadow: 0 2px 0 #fff; }
.utility { background: #03128f; }
.masthead { padding-top: 0; padding-bottom: 0; }
.brand { width: min(404px, 68vw); height: auto; aspect-ratio: 2048 / 780; overflow: visible; }
.brand img { display: block; width: 100%; height: auto; object-fit: contain; transform: none; border: 1pt solid #fff; }
.main-nav { border-top-color: rgba(255, 255, 255, 0.25); }
.nav-link { background: transparent; color: #fff; }
.nav-link:hover, .nav-link:focus { color: #ddff39; }
@media (max-width: 900px) {
  .brand { width: min(347px, 68vw); height: auto; }
}
@media (max-width: 520px) {
  .brand { width: min(294px, 70vw); height: auto; }
}

/* Navegação editorial: categorias sempre claras e submenus acionáveis por toque. */
.nav-link {
  border: 0;
  background: #fff;
  cursor: pointer;
}
.nav-item.open .submenu {
  display: block;
}
@media (max-width: 900px) {
  .main-nav {
    max-height: 58vh;
    overflow-y: auto;
  }
  .main-nav > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.5rem 1rem 1rem;
  }
  .nav-item {
    position: static;
  }
  .nav-link {
    width: 100%;
    text-align: left;
  }
  .submenu {
    display: none;
    position: static;
    box-shadow: none;
    border-top: 0;
    border-left: 3px solid var(--cyan);
    padding: 0.25rem 0 0.4rem 0.7rem;
    margin-bottom: 0.35rem;
  }
  .nav-item:hover .submenu,
  .nav-item:focus-within .submenu {
    display: none;
  }
  .nav-item.open .submenu {
    display: block;
  }
}

.site-header .nav-link {
  background: transparent;
  color: #fff;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: #ddff39;
}

/* --- SciTekVision: matérias vindas do WordPress --- */
/* Estilo das matérias vindas do WordPress dentro da janela de leitura do app.js.
   Acrescente ao final do CSS do site (ou carregue este arquivo depois dele). */
.wp-article-body h2{font-size:1.25rem;font-weight:700;line-height:1.3;margin:1.4em 0 .5em}
.wp-article-body p{margin:0 0 1em;line-height:1.65}
.wp-article-body .linha-fina{font-size:1.08rem;color:#555}
.wp-article-body .scitek-fonte,.wp-article-body .scitek-credito-imagem{font-size:.92rem;color:#555;margin-top:1.4em}
.wp-article-body .scitek-credito-imagem{margin-top:0}
.wp-article-body .scitek-hashtags{font-size:.92rem;color:#0b5cad;word-spacing:.3em}
.wp-article-body a{word-break:break-word}
.dialog-full{display:inline-block;margin-right:1rem;font-weight:700}
/* Páginas de tópico e de artigo (editorial.js) */
.story-empty{grid-column:1/-1;background:#fff;border:1px dashed #a9bdcb;border-radius:10px;padding:2rem;text-align:center;color:#587086}
#articleBody .wp-article-body h2{font:700 1.45rem/1.2 "Space Grotesk",sans-serif;margin-top:2rem}

/* Ajuste responsivo do carrossel: texto centralizado e sem cortes */
.slide {
  background-position: center center;
}
.slide-content {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) max(5vw, 1.4rem) clamp(5rem, 10vw, 7rem);
}
.slide-content > div {
  width: min(680px, 100%);
  margin-inline: auto;
}
.slide h2 {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.slide p {
  margin-left: auto;
  margin-right: auto;
}
.slide p {
  max-width: 52ch;
}
@media (max-width: 900px) {
  .slide-content {
    justify-content: center;
    text-align: center;
  }
  .slide-content > div {
    margin-inline: auto;
  }
  .slide h2,
  .slide p {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 520px) {
  .hero,
  .slides {
    min-height: 600px;
  }
  .slide-content {
    padding: 4.5rem 1.25rem 5.5rem;
  }
  .slide h2 {
    max-width: 14ch;
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
  .slide p {
    font-size: 1rem;
  }
}

/* Carregamento: o conteúdo de demonstração não aparece antes das matérias do WordPress. */
.aguardando .slide,
.aguardando .hero-controls,
.aguardando #articleGrid,
.aguardando #tickerTrack {
  visibility: hidden;
}
.aguardando .hero {
  background: linear-gradient(110deg, #071d32 30%, #0c2c4a 50%, #071d32 70%);
  background-size: 200% 100%;
  animation: scitek-carregando 1.4s linear infinite;
}
@keyframes scitek-carregando {
  to { background-position: -200% 0; }
}

/* Carrossel: títulos longos das matérias cabem inteiros (complementa o ajuste centralizado acima). */
.slide-content {
  padding: clamp(2.5rem, 5vw, 4rem) max(5vw, 1.4rem) 5.5rem;
}
.slide h2 {
  max-width: 24ch;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 520px) {
  .slide-content {
    padding: 3rem 1.2rem 5.5rem;
  }
  .slide h2 {
    max-width: 18ch;
    font-size: clamp(1.5rem, 7vw, 2rem);
    -webkit-line-clamp: 6;
  }
}
