/*
Theme Name: Otoni de Paula 5550
Theme URI: https://example.com/
Author: NNY
Description: Tema institucional/campanha para Otoni de Paula, com notícias integradas ao WordPress e layout responsivo.
Version: 1.0.0
Text Domain: otoni5550
*/

:root {
  --navy: #061b3a;
  --navy-2: #0a2b5f;
  --blue: #2d4fa8;
  --yellow: #ffc400;
  --green: #63b62c;
  --white: #ffffff;
  --ink: #0e2245;
  --muted: #667085;
  --line: #e6e9ef;
  --soft: #f5f7fb;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(6, 27, 58, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 82px 0; }
.section-title {
  margin: 0 0 30px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  border: 2px solid var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-outline { background: transparent; color: #fff; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
}
.site-logo img { width: 165px; max-height: 74px; object-fit: contain; object-position: left center; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 34px; }
.primary-nav a { color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; }
.primary-nav a:hover { color: var(--yellow); }
.social-mini { display: flex; gap: 8px; }
.social-icon {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 14px;
  transition: .2s ease;
}
.social-icon:hover { background: #fff; color: var(--navy); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 8px;
  background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 21px; height: 2px; background: currentColor; position: relative;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }

/* Hero */
.hero {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 75% 25%, rgba(46,79,168,.28), transparent 32%),
    linear-gradient(105deg, #04142d 0%, #072554 52%, #061b3a 100%);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  width: 560px; height: 240px;
  right: -80px; top: 120px;
  background: linear-gradient(15deg, var(--green) 0 46%, var(--yellow) 46% 82%, transparent 82%);
  transform: skewX(-16deg) rotate(-8deg);
  opacity: .95;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(to top, rgba(2, 12, 28, .95), transparent);
  pointer-events: none;
}
.hero-inner {
  min-height: 760px;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: end;
  position: relative;
  z-index: 2;
}
.hero-copy { padding: 165px 0 90px; align-self: center; }
.hero-title {
  margin: 0 0 22px;
  font-size: clamp(54px, 6vw, 86px);
  line-height: .92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  font-weight: 1000;
  max-width: 680px;
}
.hero-title .yellow { color: var(--yellow); }
.hero-text { max-width: 520px; margin: 0 0 20px; font-size: 20px; line-height: 1.45; color: rgba(255,255,255,.9); }
.hero-number { margin: 14px 0 12px; font-size: clamp(86px, 11vw, 150px); line-height: .8; font-weight: 1000; font-style: italic; color: var(--yellow); letter-spacing: -.06em; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo-wrap { height: 700px; align-self: end; position: relative; display: flex; justify-content: flex-end; align-items: flex-end; }
.hero-photo {
  width: min(620px, 100%);
  max-height: 690px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 32px rgba(0,0,0,.28));
  position: relative; z-index: 3;
}

/* About */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .85fr 1.45fr; gap: 72px; align-items: center; }
.about-photo-card { border-radius: 12px; overflow: hidden; background: linear-gradient(145deg,#dbe8f7,#eef3f9); box-shadow: var(--shadow); }
.about-photo-card img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 18%; }
.about-copy p { font-size: 18px; line-height: 1.65; color: #35425a; max-width: 720px; }

/* Bandeiras */
.flags { background: linear-gradient(#fafbfc, #f2f4f8); }
.flags .section-title { text-align: center; }
.flag-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.flag-card { overflow: hidden; border-radius: 10px; box-shadow: 0 12px 28px rgba(6,27,58,.09); background: #fff; }
.flag-top { min-height: 120px; background: var(--navy); display: grid; place-items: center; color: white; font-size: 46px; }
.flag-body { min-height: 145px; padding: 20px 16px; text-align: center; background: var(--yellow); color: #0a1a35; }
.flag-body h3 { margin: 0 0 10px; font-size: 18px; text-transform: uppercase; }
.flag-body p { margin: 0; font-size: 14px; line-height: 1.45; }

/* News */
.news-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.news-header .section-title { margin: 0; }
.news-all { color: var(--blue); font-weight: 900; text-transform: uppercase; font-size: 14px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(6,27,58,.06); transition: .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #dfe5ee; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-thumb img { transform: scale(1.035); }
.news-date { position: absolute; left: 14px; bottom: 12px; background: var(--blue); color: #fff; border-radius: 4px; padding: 6px 9px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.news-body { padding: 20px; }
.news-body h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.15; }
.news-body p { margin: 0 0 16px; color: var(--muted); line-height: 1.55; }
.read-more { color: var(--blue); font-weight: 900; font-size: 13px; text-transform: uppercase; }
.news-empty { grid-column: 1/-1; padding: 30px; background: var(--soft); border-radius: 12px; text-align: center; }

/* Social strip */
.social-section { background: var(--navy); color: #fff; padding: 34px 0; }
.social-section h2 { margin: 0 0 20px; text-align: center; font-size: 24px; text-transform: uppercase; }
.social-links-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.social-link-wide { min-height: 78px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; color: #fff; font-weight: 800; border-right: 1px solid rgba(255,255,255,.16); }
.social-link-wide:last-child { border-right: 0; }
.social-link-wide .icon-box { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; display: grid; place-items: center; font-weight: 1000; }
.social-link-wide:hover { background: rgba(255,255,255,.06); }

/* Contact CTA */
.contact-cta { background: linear-gradient(115deg, var(--yellow), #ffd84d); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-inner h2 { margin: 0 0 8px; font-size: clamp(34px,4vw,56px); line-height: .95; color: var(--navy); }
.contact-inner p { margin: 0; color: #24334f; font-size: 18px; }

/* Footer */
.site-footer { background: #04142d; color: #fff; }
.footer-main { padding: 48px 0 34px; display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 60px; }
.footer-logo img { width: 150px; }
.footer-title { margin: 0 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-menu a { color: rgba(255,255,255,.85); }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.65); font-size: 13px; }

/* Internal */
.page-hero { padding: 150px 0 70px; background: linear-gradient(105deg,#04142d,#0a2b5f); color: #fff; }
.page-hero h1 { margin: 0; font-size: clamp(44px,6vw,74px); letter-spacing: -.04em; }
.content-area { padding: 70px 0; }
.content-area article { max-width: 860px; margin: 0 auto; }
.entry-title { font-size: clamp(38px,5vw,62px); line-height: 1.05; margin: 0 0 20px; }
.entry-meta { color: var(--muted); margin-bottom: 28px; }
.entry-content { font-size: 18px; line-height: 1.8; color: #253650; }
.entry-content img { border-radius: 12px; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { border: 1px solid var(--line); padding: 10px 13px; border-radius: 6px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* WP admin bar */
.admin-bar .site-header { top: 32px; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 180px 1fr auto; }
  .flag-grid { grid-template-columns: repeat(3,1fr); }
  .hero-inner { grid-template-columns: 52% 48%; }
  .hero-photo-wrap { height: 620px; }
}

@media (max-width: 860px) {
  .container { width: min(100% - 28px, 720px); }
  .site-header { position: fixed; background: rgba(4,20,45,.96); backdrop-filter: blur(12px); }
  .header-inner { min-height: 76px; grid-template-columns: 1fr auto; }
  .site-logo img { width: 125px; max-height: 62px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 76px; left: 0; width: 100%; background: #04142d; border-top: 1px solid rgba(255,255,255,.08); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav a { display: block; padding: 18px 24px; }
  .header-social { display: none; }
  .hero { min-height: auto; padding-top: 76px; }
  .hero::before { width: 390px; height: 150px; right: -130px; top: 120px; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 68px 0 26px; text-align: center; }
  .hero-title { margin-inline: auto; font-size: clamp(48px,14vw,72px); }
  .hero-text { margin-inline: auto; font-size: 17px; }
  .hero-number { font-size: clamp(92px,28vw,138px); }
  .hero-actions { justify-content: center; }
  .hero-photo-wrap { height: 470px; justify-content: center; }
  .hero-photo { max-height: 500px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-photo-card { max-width: 520px; margin: 0 auto; }
  .flag-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid, .archive-grid { grid-template-columns: 1fr 1fr; }
  .social-links-row { grid-template-columns: 1fr 1fr; }
  .social-link-wide:nth-child(2) { border-right: 0; }
  .social-link-wide:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 600px) {
  .section { padding: 58px 0; }
  .hero-copy { padding-top: 300px; }
  .hero-title { font-size: 46px; }
  .hero-text { font-size: 16px; }
  .hero-photo-wrap { height: 385px; }
  .hero-photo { max-height: 420px; width: 95%; }
  .about-photo-card img { height: 330px; }
  .flag-grid, .news-grid, .archive-grid, .social-links-row, .footer-main { grid-template-columns: 1fr; }
  .flag-card { display: grid; grid-template-columns: 110px 1fr; }
  .flag-top { min-height: 150px; }
  .flag-body { min-height: 150px; text-align: left; display: flex; flex-direction: column; justify-content: center; }
  .news-header { align-items: flex-start; flex-direction: column; }
  .social-link-wide { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .social-link-wide:last-child { border-bottom: 0; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding-top: 120px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
/* CORREÇÃO HERO - TEXTO SEMPRE NA FRENTE */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 10 !important;
}

/* elementos decorativos ficam atrás do conteúdo */
.hero::before,
.hero::after,
.hero-bg,
.hero-shapes,
.hero-decoration,
.hero-art {
    z-index: 0 !important;
    pointer-events: none;
}

/* foto pode ficar entre o fundo e o texto */
.hero-photo,
.hero-person {
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .hero-copy {
        position: relative;
        z-index: 10 !important;
        padding-top: 120px;
    }

    .hero-title,
    .hero-text,
    .hero-number,
    .hero-cta {
        position: relative;
        z-index: 11;
    }
}
