/*
Theme Name: Rafa Zimbaldi MVP
Theme URI: https://tecnocorp.com.br/
Author: Tecnocorp Tecnologia
Author URI: https://tecnocorp.com.br/
Description: Tema WordPress responsivo para portal institucional, notícias, artigos, downloads, banners e vídeos.
Version: 1.0.2
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: rafa-zimbaldi
License: GNU General Public License v2 or later
*/

:root {
  --rz-blue-900: #10195f;
  --rz-blue-700: #1642a8;
  --rz-cyan: #25aee4;
  --rz-yellow: #ffd500;
  --rz-green: #168b2e;
  --rz-red: #c71f32;
  --rz-dark: #141820;
  --rz-muted: #667085;
  --rz-light: #f5f7fb;
  --rz-white: #fff;
  --rz-radius: 18px;
  --rz-shadow: 0 12px 30px rgba(16, 25, 95, .12);
  --rz-container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--rz-dark);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 32px), var(--rz-container)); margin-inline: auto; }
.screen-reader-text { position:absolute; left:-9999px; }
.site-main { min-height: 55vh; }

.topbar {
  background: linear-gradient(90deg, var(--rz-blue-900), var(--rz-cyan));
  color: #fff;
  font-size: .88rem;
}
.topbar .container {
  min-height: 38px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap: 14px;
}
.topbar a { opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

.hero-header {
  position: relative;
  overflow: visible;
  min-height: 360px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(110deg, #10175a 0%, #17369a 55%, #2380e4 100%);
}
.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .35;
  pointer-events: none;
}
.header-content {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: grid;
  grid-template-columns: 340px minmax(480px, 1fr) 485px;
  gap: 24px;
  align-items: end;
}
.header-flag {
    position: absolute;

    top: -55px;      /* sobe a bandeira */

    left: 0;

    z-index: 30;     /* fica acima da barra azul */

    width: 280px;    /* um pouco maior */

    max-height: none;

    object-fit: contain;

    object-position: top left;

    pointer-events: none;
}
.header-alesp {
  position: absolute;
  top: 20px;
  right: 100px;
  left: auto;
  z-index: 6;
  width: 120px;
  object-fit: contain;
  pointer-events: none;
}
.header-search {
  position: relative;
  z-index: 4;
  align-self: end;
  margin-bottom: 185px;
}
.header-search form {
  display: flex;
  width: 100%;
  max-width: 400px;
}
.header-search input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px 0 0 999px;
  padding: 12px 18px;
  outline: none;
}
.header-search input::placeholder {
  color: rgba(255,255,255,.78);
}
.header-search button {
  border: 0;
  border-radius: 0 999px 999px 0;
  min-width: 52px;
  padding: 0 18px;
  cursor: pointer;
  background: var(--rz-yellow);
  color: #111;
  font-weight: 900;
}
.brand-block {
  position: relative;
  z-index: 4;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 150px;
}
.brand-block .custom-logo-link {
  display: block;
  width: 100%;
  text-align: center;
}
.brand-block .custom-logo {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}
.brand-block .site-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.7rem);
  line-height: .88;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -3px;
  text-transform: uppercase;
}
.brand-block .site-title strong { color: var(--rz-yellow); }
.brand-block .site-tagline {
  margin: 8px 0 0;
  font-size: clamp(.95rem, 1.8vw, 1.45rem);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .05em;
}

.header-person {
  position: relative;
  z-index: 3;
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-left: 0;
  transform: translateX(-110px);
}

.header-person img {
  display: block;
  width: auto;
  height: 380px;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.primary-nav {
  background: var(--rz-yellow);
  border-bottom: 1px solid rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 50;
}
.primary-nav .container { display:flex; align-items:center; justify-content:center; }
.primary-menu {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  list-style:none;
  padding:0;
  margin:0;
}
.primary-menu li { position:relative; }
.primary-menu a {
  display:block;
  padding: 12px 14px;
  font-size:.82rem;
  font-weight:900;
  text-transform:uppercase;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: rgba(255,255,255,.52); }
.menu-toggle {
  display:none;
  border:0;
  background:transparent;
  padding:12px 0;
  font-weight:900;
  cursor:pointer;
}

.home-banner {
  margin: 22px auto;
  border-radius: 28px;
  padding: 24px clamp(20px, 5vw, 55px);
  text-align:center;
  color:#fff;
  background:
    radial-gradient(circle at 88% 30%, rgba(255,255,255,.15), transparent 25%),
    linear-gradient(135deg, #087322, #299841);
  box-shadow: var(--rz-shadow);
}
.home-banner h2 {
  margin:0;
  font-size:clamp(1.45rem, 3vw, 2.3rem);
  line-height:1.05;
  text-transform:uppercase;
}
.home-banner p { margin: 8px auto 0; max-width:760px; }

.home-grid {
  display:grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 24px;
  align-items:start;
}
.section-heading {
  margin: 0 0 14px;
  padding: 7px 12px;
  background: #ebedf0;
  border-left: 6px solid var(--rz-blue-700);
  font-size: .96rem;
  text-transform:uppercase;
  font-weight:900;
}
.topic-block { margin-bottom: 18px; }
.topic-block h3 {
  margin: 0;
  padding: 6px 12px;
  background:#e7e7e7;
  font-size:.92rem;
  text-transform:uppercase;
}
.topic-block:nth-child(2) h3 { border-left: 6px solid var(--rz-green); }
.topic-block:nth-child(3) h3 { border-left: 6px solid var(--rz-cyan); }
.topic-block:nth-child(4) h3 { border-left: 6px solid var(--rz-yellow); }
.topic-block ul { list-style:none; margin:0; padding:8px 12px; }
.topic-block li { margin-bottom:9px; }
.topic-block a { font-weight:800; line-height:1.15; display:block; }
.topic-block a:hover { color:var(--rz-blue-700); }

.featured-card {
  background:#fff;
  border-radius: var(--rz-radius);
  overflow:hidden;
  box-shadow:var(--rz-shadow);
}
.featured-card img, .image-placeholder {
  width:100%;
  aspect-ratio: 16/9;
  object-fit:cover;
}
.image-placeholder {
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  background:linear-gradient(135deg, var(--rz-blue-900), var(--rz-cyan));
}
.featured-card .content { padding:18px; }
.featured-card h1, .featured-card h2 {
  margin:0;
  font-size:clamp(1.7rem,3vw,2.45rem);
  line-height:1.02;
}
.meta { color:var(--rz-muted); font-size:.88rem; margin-top:7px; }

.cards-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
  margin-top:20px;
}
.news-card {
  border:1px solid #e6e9ef;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  transition:.2s ease;
}
.news-card:hover { transform:translateY(-3px); box-shadow:var(--rz-shadow); }
.news-card img, .news-card .image-placeholder { aspect-ratio: 16/10; }
.news-card .content { padding:13px; }
.news-card h3 { margin:0; font-size:1rem; line-height:1.18; }

.download-card {
  margin-bottom:16px;
  overflow:hidden;
  border-radius:14px;
  border:1px solid #e6e9ef;
  background:#fff;
}
.download-card .cover {
  aspect-ratio: 4/5;
  background:linear-gradient(145deg,#fff,var(--rz-light));
  display:grid;
  place-items:center;
  padding:10px;
}
.download-card .content { padding:12px; }
.download-card h3 { margin:0 0 8px; font-size:.95rem; }
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  padding:10px 18px;
  background:var(--rz-blue-700);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.button:hover { filter:brightness(1.08); }

.social-strip {
  margin-top:32px;
  background:#171c25;
  padding:28px 0;
}
.social-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.social-card {
  overflow:hidden;
  border-radius:16px;
  background:#fff;
}
.social-card .image-placeholder { aspect-ratio:4/5; }
.social-card .content { padding:13px; }
.social-card h3 { margin:0; font-size:.96rem; }

.site-footer {
  color:#fff;
  background:
    linear-gradient(rgba(21,78,149,.87), rgba(30,169,216,.88)),
    radial-gradient(circle at 40% 0%, #4cc7eb, #154e95);
  padding:48px 0 24px;
  text-align:center;
}
.footer-title { font-size:clamp(1.6rem,3vw,2.25rem); font-weight:900; text-transform:uppercase; line-height:1; }
.footer-social { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:18px 0; }
.footer-social a {
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.27);
}
.copyright { margin-top:28px; font-size:.85rem; opacity:.86; }

.content-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:30px;
  padding:34px 0 50px;
}
.article-content {
  background:#fff;
  border:1px solid #e7eaf0;
  border-radius:18px;
  padding:clamp(20px,4vw,42px);
}
.article-content h1 { margin-top:0; font-size:clamp(2rem,4vw,3.6rem); line-height:1.03; }
.article-content .post-thumbnail { border-radius:16px; margin:22px 0; }
.article-content p { font-size:1.06rem; }
.sidebar-widget {
  border:1px solid #e7eaf0;
  border-radius:16px;
  padding:18px;
  margin-bottom:18px;
}
.sidebar-widget h2 { margin-top:0; font-size:1.1rem; }

.archive-header { padding:36px 0 12px; }
.archive-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding-bottom:48px; }
.pagination { padding:20px 0 45px; }
.nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.page-numbers { padding:8px 12px; border-radius:8px; background:#eef2f7; }
.page-numbers.current { background:var(--rz-blue-700); color:#fff; }

.notice {
  padding:14px 16px;
  border-radius:12px;
  background:#fff7d6;
  border:1px solid #f1dc83;
}
.empty-state { padding:40px; text-align:center; border:2px dashed #d7dce5; border-radius:18px; }

@media (max-width: 1180px) {
  .hero-header { min-height: 330px; }
  .header-content {
    min-height: 330px;
    grid-template-columns: 280px minmax(380px, 1fr) 280px;
  }
  .header-person { height: 330px; }
  .header-person img { height: 255px; }
  .header-flag { width: 210px; }
  .header-alesp { width: 100px; right: 18px; }
  .brand-block .custom-logo { max-width: 490px; }
  .header-search { margin-bottom: 70px; }
  .home-grid { grid-template-columns: 220px minmax(0,1fr) 220px; }
}

@media (max-width: 980px) {
  .header-content {
    grid-template-columns: 240px minmax(320px, 1fr) 240px;
    gap: 18px;
  }
  .brand-block .custom-logo { max-width: 430px; }
  .header-person img { height: 235px; }
  .header-search { margin-bottom: 65px; }
  .home-grid { grid-template-columns:210px minmax(0,1fr); }
  .downloads-column {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
  }
  .downloads-column .section-heading { grid-column:1/-1; }
  .social-grid { grid-template-columns:repeat(2,1fr); }
  .content-layout { grid-template-columns:1fr; }
  .archive-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 720px) {
  .topbar .container { justify-content:center; }
  .hero-header { min-height:auto; }
  .header-content {
    min-height:auto;
    grid-template-columns:1fr;
    gap:18px;
    padding-top:95px;
    padding-bottom:0;
    text-align:center;
  }
  .header-flag {
    width:155px;
    max-height:100px;
  }
  .header-alesp {
    top:14px;
    right:14px;
    width:80px;
  }
  .brand-block {
    order:1;
    padding-bottom:0;
  }
  .brand-block .custom-logo {
    max-width:420px;
    margin:0 auto;
  }
  .brand-block .site-title { letter-spacing:-1px; }
  .header-search {
    order:2;
    margin-bottom:0;
  }
  .header-search form { margin:0 auto; }
  .header-person {
    order:3;
    height:280px;
  }
  .header-person img {
    height:280px;
    max-width:100%;
  }
  .primary-nav .container { display:block; }
  .menu-toggle {
    display:block;
    width:100%;
    text-align:left;
  }
  .primary-menu {
    display:none;
    flex-direction:column;
  }
  .primary-menu.is-open { display:flex; }
  .primary-menu a {
    padding:11px 0;
    border-top:1px solid rgba(0,0,0,.08);
  }
  .home-grid { grid-template-columns:1fr; }
  .topics-column { order:2; }
  .main-column { order:1; }
  .downloads-column {
    order:3;
    grid-template-columns:1fr 1fr;
  }
  .cards-grid { grid-template-columns:1fr; }
  .social-grid { grid-template-columns:1fr 1fr; }
  .archive-grid { grid-template-columns:1fr; }
}

@media (max-width: 480px) {
  .container { width:min(calc(100% - 22px), var(--rz-container)); }
  .brand-block .custom-logo { max-width:340px; }
  .header-person { height:240px; }
  .header-person img { height:240px; }
  .downloads-column { grid-template-columns:1fr; }
  .social-grid { grid-template-columns:1fr; }
  .home-banner { border-radius:18px; }
}

/* =========================================================
   REDES SOCIAIS — ÍCONES COM TEXTO
   ========================================================= */

.topbar {
  min-height: 54px;
}

.topbar .container,
.topbar .topbar-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
}

@media (min-width: 721px) {
  .social-icons-header {
    margin-left: auto;
    margin-right: 260px;
  }
}

.social-icons {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  visibility: visible !important;
  opacity: 1 !important;
}

.social-icons a,
.social-icons .social-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.social-icons a:hover {
  color: var(--rz-blue-900) !important;
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.social-icons svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  fill: currentColor !important;
  color: inherit !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.social-icons svg path {
  fill: currentColor !important;
}

.social-icon-label {
  display: inline-block;
  white-space: nowrap;
}

.social-icons-header {
  justify-content: flex-end;
  gap: 8px;
}

.social-icons-header a {
  min-height: 34px;
  padding: 5px 10px;
  font-size: .76rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 25px 0;
}

.social-icons-footer {
  justify-content: center;
  gap: 12px;
}

.social-icons-footer a {
  min-height: 46px;
  padding: 9px 16px;
  font-size: .92rem;
  background: rgba(255,255,255,.10);
}

.social-icon-whatsapp,
.social-icon-whatsapp_channel {
  background: rgba(37,211,102,.20) !important;
}

.social-icon-whatsapp:hover,
.social-icon-whatsapp_channel:hover {
  color: #128c4a !important;
  background: #fff !important;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.footer-menu a {
  color: #fff;
  opacity: .90;
}

.footer-menu a:hover {
  opacity: 1;
}

@media (max-width: 1180px) {
  .social-icons-header {
    justify-content: center;
  }

  .topbar .container,
  .topbar .topbar-inner {
    justify-content: center;
    padding-block: 6px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: auto;
  }

  .topbar .container,
  .topbar .topbar-inner {
    min-height: auto;
    justify-content: center;
    padding-block: 8px;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons a {
    min-height: 34px;
    padding: 6px 9px;
  }

  .social-icon-label {
    font-size: .72rem;
  }

  .footer-menu {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .social-icons-header .social-icon-label {
    display: none;
  }

  .social-icons-header a {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
  }

  .social-icons-footer a {
    width: 100%;
    max-width: 260px;
  }
}
/* Mostrar texto somente em WhatsApp e Canal de notícias */

.social-icon-label {
  display: none;
}

.social-icon-whatsapp .social-icon-label,
.social-icon-whatsapp_channel .social-icon-label {
  display: inline-block;
}

/* Redes comuns ficam circulares, apenas com ícone */

.social-icons a:not(.social-icon-whatsapp):not(.social-icon-whatsapp_channel) {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
}

/* WhatsApp e canal continuam em formato de botão */

.social-icon-whatsapp,
.social-icon-whatsapp_channel {
  width: auto;
  min-width: auto;
  padding: 6px 14px !important;
  border-radius: 999px;
}

/* Rodapé um pouco maior */

.social-icons-footer a:not(.social-icon-whatsapp):not(.social-icon-whatsapp_channel) {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
}

.social-icons-footer .social-icon-whatsapp,
.social-icons-footer .social-icon-whatsapp_channel {
  min-height: 46px;
  padding: 9px 16px !important;
}
/* =========================================================
   CORREÇÃO DAS REDES SOCIAIS NO CELULAR
   ========================================================= */

@media (max-width: 720px) {

  .topbar {
    min-height: auto;
  }

  .topbar .container,
  .topbar .topbar-inner {
    width: 100%;
    min-height: auto;
    padding: 8px 10px;
    justify-content: center;
  }

  .social-icons-header {
    display: grid !important;
    grid-template-columns: repeat(5, 36px);
    justify-content: center;
    align-items: center;
    gap: 8px 10px;

    width: 100%;
    margin: 0 auto !important;
  }

  .social-icons-header a,
  .social-icons-header .social-icon,
  .social-icons-header .social-icon-whatsapp,
  .social-icons-header .social-icon-whatsapp_channel {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;

    padding: 0 !important;
    border-radius: 50% !important;
  }

  .social-icons-header svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
  }

  /* No celular, mostra somente os ícones no topo */
  .social-icons-header .social-icon-label {
    display: none !important;
  }
}
/* Banner de transparência clicável */

.home-banner-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-banner-link:hover,
.home-banner-link:focus {
  color: inherit;
  text-decoration: none;
}

.home-banner-link .home-banner {
  cursor: pointer;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    filter .22s ease;
}

.home-banner-link:hover .home-banner,
.home-banner-link:focus-visible .home-banner {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .20);
  filter: brightness(1.04);
}

.home-banner-link:focus-visible {
  outline: 3px solid var(--rz-yellow);
  outline-offset: 4px;
  border-radius: 28px;
}
@media (max-width: 720px) {
  .header-flag {
    top: 0 !important;
    left: 0;
    width: 155px;
    max-height: 100px;
    z-index: 5;
  }

  .hero-header {
    overflow: hidden;
  }
}
/* =========================================================
   BOX DO CANAL DE NOTÍCIAS — COLUNA ESQUERDA
   ========================================================= */

.home-left-widgets {
  margin-top: 22px;
}

.home-left-widget {
  margin-bottom: 18px;
}

.home-left-widget > :first-child {
  margin-top: 0;
}

.home-left-widget > :last-child {
  margin-bottom: 0;
}

.whatsapp-channel-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 190px;
  padding: 20px 16px;

  overflow: hidden;
  color: #fff;
  text-align: center;

  border-radius: 16px;
  background:
    radial-gradient(
      circle at 85% 12%,
      rgba(255,255,255,.18),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #08782f,
      #15a64b
    );

  box-shadow: 0 12px 26px rgba(8,120,47,.20);

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    filter .22s ease;
}

.whatsapp-channel-box::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.025) 0,
      rgba(255,255,255,.025) 8px,
      transparent 8px,
      transparent 16px
    );

  pointer-events: none;
}

.whatsapp-channel-box:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(8,120,47,.28);
  filter: brightness(1.04);
}

.whatsapp-channel-icon,
.whatsapp-channel-content {
  position: relative;
  z-index: 1;
}

.whatsapp-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 66px;
  height: 66px;
  margin-bottom: 12px;

  color: #fff;

  border: 3px solid rgba(255,255,255,.95);
  border-radius: 50%;
}

.whatsapp-channel-icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.whatsapp-channel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.whatsapp-channel-content strong {
  max-width: 190px;
  font-size: 1.08rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.whatsapp-channel-content small {
  display: block;
  max-width: 190px;
  margin-top: 9px;

  font-size: .73rem;
  line-height: 1.25;
  opacity: .92;
}

@media (max-width: 980px) {
  .whatsapp-channel-box {
    min-height: 170px;
  }
}

@media (max-width: 720px) {
  .home-left-widgets {
    margin-top: 18px;
  }

  .whatsapp-channel-box {
    min-height: auto;
    flex-direction: row;
    gap: 14px;
    padding: 18px;
    text-align: left;
  }

  .whatsapp-channel-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin: 0;
  }

  .whatsapp-channel-icon svg {
    width: 34px;
    height: 34px;
  }

  .whatsapp-channel-content {
    align-items: flex-start;
  }

  .whatsapp-channel-content strong,
  .whatsapp-channel-content small {
    max-width: none;
  }
}
/* =========================================================
   CARD VERTICAL — CANAL DE NOTÍCIAS NO WHATSAPP
   ========================================================= */

.whatsapp-channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  min-height: 305px;
  padding: 26px 22px 24px;

  overflow: hidden;
  color: #fff;
  background: #087c24;
  border-radius: 0;
  text-decoration: none;

  box-shadow: 0 10px 24px rgba(8, 124, 36, .18);

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    filter .22s ease;
}

.whatsapp-channel-card:hover,
.whatsapp-channel-card:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(8, 124, 36, .28);
  filter: brightness(1.04);
}

.whatsapp-channel-card-icon {
  position: absolute;
  top: -12px;
  right: -12px;

  width: 112px;
  height: 112px;

  color: #fff;
}

.whatsapp-channel-card-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.whatsapp-channel-card-title {
  position: relative;
  z-index: 2;

  max-width: 175px;
  margin-bottom: 18px;

  font-size: 1.65rem;
  font-weight: 900;
  line-height: .88;
  text-transform: uppercase;
}

.whatsapp-channel-card-subtitle {
  position: relative;
  z-index: 2;

  align-self: flex-start;
  padding: 10px 14px;

  color: #1c7c2c;
  background: #fff;
  border-radius: 0 18px 18px 0;

  font-size: .78rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .whatsapp-channel-card {
    min-height: 270px;
    padding: 22px 18px;
  }

  .whatsapp-channel-card-icon {
    width: 96px;
    height: 96px;
  }

  .whatsapp-channel-card-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 720px) {
  .whatsapp-channel-card {
    min-height: 230px;
  }
}

/* =========================================================
   AJUSTE FINAL DA FOTO DO RAFA — DESKTOP
   ========================================================= */

@media (min-width: 1181px) {
  .header-person {
    overflow: visible;
    align-items: flex-start;
    transform: translateX(-85px);

    /* Mantém folga lateral, mas impede a foto de invadir o conteúdo abaixo. */
    clip-path: inset(0 -300px 0 -300px);
  }

  .header-person img {
    height: 380px;
    max-width: none;
    transform: scale(1.16);
    transform-origin: top center;
    object-fit: contain;
    object-position: top center;
  }
}

/* =========================================================
   AJUSTE FINAL DA FOTO DO RAFA — MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .header-person {
    order: 3;
    height: 360px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transform: none !important;
    padding: 0 !important;
  }

  .header-person img {
    width: auto;
    height: 355px;
    max-width: none;
    margin: 0 auto;
    object-fit: contain;
    object-position: bottom center;
    transform: translateX(55px) !important;
    transform-origin: bottom center;
  }

  /*
   * Sobe o menu amarelo e, junto com ele, todo o conteúdo da home.
   * A foto não muda de posição: o menu apenas avança sobre a parte
   * inferior do corpo do Rafa.
   */
  body.home .primary-nav {
    margin-top: -50px;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 50;
  }
}
