/*
Theme Name: Arreganho Pop 2026
Theme URI: https://www.arreganho.com.br/
Author: Arreganho
Description: Tema responsivo de humor Arreganho com cabeçalhos sazonais, publicidade, parceiros e widgets.
Version: 1.0.8
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: arreganho-pop
License: GPL-2.0-or-later
*/

:root {
  --red: #b9000a;
  --dark: #710008;
  --yellow: #ffcc13;
  --cream: #fff8f0;
  --line: #f1dfd4;
  --ink: #26151a;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #bc090d;
}

.wrap {
  width: min(1370px, calc(100% - 36px));
  margin: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 10px;
}

.top-strip {
  background: #730007;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.top-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  min-height: 40px;
}

.socials {
  display: flex;
  gap: 7px;
}

.socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #a71316;
  color: #fff;
  border-radius: 7px;
  padding: 5px 9px;
  font-weight: bold;
}

.masthead {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #ffab11, #cb0d06, #ffab11);
}

.masthead-art {
  position: relative;
}

.masthead-banner {
  display: block;
  width: 100%;
  height: auto;
}

.masthead-content {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nav-wrap {
  position: relative;
  z-index: 4;
  margin-top: 8px;
}

.primary-nav {
  background: #85000a;
  border: 2px solid #f5b49e;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  box-shadow: 0 4px 9px #a2000029;
  padding: 4px 15px;
  min-height: 51px;
  color: #fff;
}

.primary-nav .menu {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}

.primary-nav .menu > li > a {
  display: block;
  padding: 12px 13px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.primary-nav .menu > li:first-child > a {
  background: var(--yellow);
  color: #511b05;
  border-radius: 10px;
}

.primary-nav li {
  position: relative;
}

.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #90000b;
  min-width: 180px;
  padding: 8px;
  list-style: none;
  z-index: 10;
  box-shadow: 0 8px 18px #3334;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  display: block;
}

.primary-nav .sub-menu a {
  display: block;
  color: #fff;
  padding: 9px;
}

.search-form {
  display: flex;
  min-width: 205px;
  max-width: 280px;
  flex: 1;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 20px 0 0 20px;
}

.search-form button,
.search-submit {
  border: 0;
  background: var(--yellow);
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 16px;
}

.menu-toggle {
  display: none;
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  padding: 10px;
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(275px, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.main-column,
.sidebar {
  min-width: 0;
}

.hero {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(110deg, #e20012, #ffb814);
  min-height: 184px;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-placeholder {
  padding: 35px;
  color: #fff;
  font-weight: 900;
}

.hero-placeholder strong {
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.12;
  display: block;
}

.dot-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px;
}

.dot-nav button {
  border: 0;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: #b5b5b5;
  padding: 0;
  cursor: pointer;
}

.dot-nav button.active {
  background: #d10013;
}

.section-title {
  font-size: 23px;
  border-bottom: 3px solid #ffcb18;
  display: inline-block;
  margin: 19px 0 15px;
  line-height: 1.4;
}

.features {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 138px 138px;
  gap: 11px;
}

.feature {
  position: relative;
  display: block;
  border-radius: 13px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(30deg, #9e1a13, #ffc43b);
}

.feature:first-child {
  grid-row: span 2;
}

.feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
  background: #f4ece4;
}

.feature:hover img {
  transform: scale(1.045);
}

.feature .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #160900ef 0%, #17060000 70%);
}

.feature .meta {
  position: absolute;
  bottom: 13px;
  left: 16px;
  right: 12px;
}

.feature h2 {
  font-size: clamp(16px, 1.65vw, 25px);
  margin: 5px 0;
  line-height: 1.13;
}

.feature:not(:first-child) h2 {
  font-size: 17px;
}

.feature .term {
  background: var(--yellow);
  color: #351600;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.feature .byline {
  font-size: 12px;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.latest-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 108px;
  box-shadow: 0 2px 6px #3b120d0a;
}

.latest-item img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  background: #f4ece4;
}

.ap-thumb.is-default-thumb {
  background: #f4ece4;
}

.latest-item .latest-text {
  padding: 10px;
  flex: 1;
  min-width: 0;
}

.latest-item h3 {
  font-size: 14px;
  line-height: 1.2;
  margin: 5px 0;
}

.latest-item small {
  font-size: 11px;
  color: #6b5c58;
}

.box-widget {
  background: #fff;
  border: 1px solid #efd9cc;
  border-radius: 14px;
  box-shadow: 0 4px 9px #381b1014;
  padding: 13px;
  margin-bottom: 13px;
}

.box-widget h2,
.box-widget .widget-title {
  font-size: 19px;
  background: #ffeddf;
  color: #7e0d11;
  padding: 10px;
  margin: -13px -13px 12px;
  border-radius: 13px 13px 0 0;
}

.cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-list li {
  border-bottom: 1px solid #ecd9d0;
}

.cat-list a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 700;
}

.cat-list .count {
  background: #c91c14;
  color: #fff;
  padding: 1px 9px;
  border-radius: 15px;
}

.popular-list {
  list-style: none;
  counter-reset: pop;
  margin: 0;
  padding: 0;
}

.popular-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.popular-list li::before {
  counter-increment: pop;
  content: counter(pop);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  height: 25px;
  background: #c60810;
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
}

.newsletter {
  background: linear-gradient(140deg, #da0011, #8f0004);
  color: #fff;
}

.newsletter h2 {
  color: #fff;
  background: transparent;
}

.newsletter p {
  font-size: 13px;
}

.newsletter a {
  display: inline-block;
  background: var(--yellow);
  color: #3b1400;
  padding: 11px;
  border-radius: 9px;
  font-weight: 700;
}

.partners-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.partners-list a {
  background: #fff4eb;
  border: 1px solid #f4dac8;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  word-break: break-word;
}

.ad-slot {
  margin: 14px auto;
  text-align: center;
}

.ad-slot img {
  max-width: 100%;
  height: auto;
}

.ad-placeholder {
  background: #fff3e8;
  border: 1px dashed #eac8ba;
  color: #877777;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}

.site-footer {
  margin-top: 28px;
  background: #710007;
  color: #fff;
  padding: 25px 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 25px;
}

.footer-cols h2 {
  font-size: 17px;
  color: #ffd235;
}

.footer-cols .menu,
.footer-cols ul {
  list-style: none;
  padding: 0;
}

.footer-cols li {
  margin: 8px 0;
}

.footer-bottom {
  border-top: 1px solid #ffffff3b;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: #fff;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.post-card,
.entry-content,
.entry-header {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
}

.post-card img {
  border-radius: 9px;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f4ece4;
}

.post-card h2 {
  margin: 12px 0 6px;
}

.post-card .excerpt {
  font-size: 14px;
  line-height: 1.5;
}

.article-title {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.14;
  margin: 0 0 12px;
}

.article-image {
  width: 100%;
  border-radius: 13px;
  margin: 18px 0;
  display: block;
  background: #f4ece4;
}

.entry-content {
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.entry-content a {
  text-decoration: underline;
  color: #a5000d;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.pagination {
  margin: 25px 0;
}

.pagination .page-numbers {
  padding: 7px 11px;
  background: #fff;
  border: 1px solid #eed9c9;
  border-radius: 5px;
}

.pagination .current {
  background: #ffd322;
}

.widget {
  margin: 0 0 16px;
}

.widget ul {
  padding-left: 22px;
}

.footer-widget .widget {
  margin-bottom: 20px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #3274ec;
  outline-offset: 2px;
}

@media (max-width: 1000px) {
  .primary-nav .menu > li > a {
    padding: 10px 7px;
    font-size: 12px;
  }

  .latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 22px, 600px);
  }

  .top-strip {
    font-size: 11px;
  }

  .top-strip .socials {
    display: none;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 100%;
    text-align: left;
  }

  .primary-nav .menu {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.open .menu {
    display: flex;
  }

  .primary-nav li {
    width: 100%;
  }

  .primary-nav .menu > li > a {
    font-size: 15px;
    padding: 12px;
  }

  .primary-nav .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    margin-left: 14px;
  }

  .search-form {
    max-width: none;
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .content-grid {
    display: block;
  }

  .sidebar {
    margin-top: 20px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 260px 175px;
  }

  .feature:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .feature:not(:first-child) h2 {
    font-size: 15px;
  }

  .feature h2 {
    font-size: 23px;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .latest-item {
    grid-template-columns: 120px 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: block;
  }

  .section-title {
    font-size: 21px;
  }

  .hero {
    min-height: 100px;
  }

  .hero-placeholder {
    padding: 20px;
  }

  .hero-placeholder strong {
    font-size: 25px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .content-grid {
    gap: 15px;
  }

  .wrap {
    width: calc(100% - 20px);
  }
}

@media (max-width: 760px) {
  .hero img {
    max-height: 220px;
    object-fit: cover;
  }
}

/* v1.0.4 — Cabeçalho sem deformação. Imagem inteira substituível no painel. */
.masthead-art { width:100%; aspect-ratio:1920 / 325; max-height:325px; overflow:hidden; }
.masthead-art picture { display:block; width:100%; height:100%; }
.masthead-banner { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 50%; }
@media (max-width:760px) {
  .masthead-art { aspect-ratio:3 / 1; max-height:none; }
  .masthead-banner { object-fit:contain; background:#d20b05; }
}


/* v1.0.5 — cabeçalho compacto e sem cortes, inclusive para imagens sazonais. */
.masthead-art {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1920 / 250;
  overflow: hidden;
  background: linear-gradient(90deg, #ad0806, #d40007 50%, #ad0806);
}
.masthead-art picture { display: block; width: 100%; height: 100%; }
.masthead-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}
@media (max-width: 760px) {
  .masthead-art { aspect-ratio: 3 / 1; height: auto; max-height: none; }
  .masthead-banner { object-fit: contain; object-position: center center; background: transparent; }
}

/* v1.0.6 — partner banners and polished comments */
.partner-banners { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.partner-banner { display:block; border:1px solid #f2dbcb; border-radius:10px; overflow:hidden; box-shadow:0 3px 10px #35040016; background:#fff4ea; }
.partner-banner img { display:block; width:100%; aspect-ratio:3 / 1; height:auto; object-fit:cover; transition:transform .2s; }
.partner-banner:hover img { transform:scale(1.025); }
.partner-empty { font-size:13px; color:#706260; }
.footer-partner-links .partners-list { display:flex; flex-wrap:wrap; gap:4px 10px; margin:0 0 10px; }
.footer-partner-links .partners-list a { display:inline; border:0; border-radius:0; background:transparent; padding:2px 0; font-size:12px; color:#ffdfbe; text-decoration:underline; text-underline-offset:3px; opacity:.8; overflow-wrap:anywhere; }
.footer-partner-links .partners-list a:hover { opacity:1; color:#fff; }
.footer-widget .widget a { overflow-wrap:anywhere; }
.comments-area { margin:22px 0; }
.comments-list-card, .comments-area .comment-respond { border:1px solid #f3d7c5; background:white; border-radius:18px; padding:clamp(18px,3vw,30px); box-shadow:0 7px 24px #5c19100d; margin:0 0 22px; }
.comments-area .comments-title, .comments-area .comment-reply-title { font-size:clamp(22px,2.2vw,27px); line-height:1.2; color:#85100c; font-weight:800; margin:0 0 8px; }
.comments-intro, .comment-hint { font-size:14px; color:#776662; margin:0 0 22px; }
.comments-area .comment-list, .comments-area .children { list-style:none; margin:0; padding:0; }
.comments-area .comment-list > li { margin-bottom:14px; }
.comments-area .comment-body { padding:16px; border:1px solid #f3e4d7; background:#fffaf5; border-radius:13px; overflow-wrap:anywhere; }
.comments-area .comment-author { display:flex; flex-wrap:wrap; align-items:center; gap:7px; font-size:14px; }
.comments-area .comment-author .avatar { width:44px; height:44px; border-radius:50%; margin-right:7px; object-fit:cover; }
.comments-area .comment-author .fn { font-size:15px; font-weight:800; color:#7a080a; }
.comments-area .comment-author .says { color:#766460; }
.comments-area .comment-metadata { margin:7px 0 10px; font-size:12px; color:#796a64; }
.comments-area .comment-content { font-size:15px; line-height:1.65; }
.comments-area .comment-content p { margin:0 0 10px; }
.comments-area .reply a, .comments-area .comment-reply-link { color:#a60814; font-size:13px; font-weight:800; text-decoration:none; }
.comments-area .children { margin:12px 0 0 18px; padding-left:15px; border-left:3px solid #ffcc13; }
.comments-area .comment-awaiting-moderation { color:#8d4a00; font-style:italic; }
.comments-area .comment-reply-title small { font-size:13px; margin-left:9px; }
.comments-area .logged-in-as, .comments-area .comment-notes { font-size:13px; line-height:1.6; color:#72615d; }
.comments-area .logged-in-as a { color:#b0191d; text-decoration:underline; }
.arreganho-comment-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; }
.arreganho-comment-form > p { margin:0; min-width:0; }
.arreganho-comment-form .comment-form-comment, .arreganho-comment-form .comment-form-url, .arreganho-comment-form .comment-form-cookies-consent, .arreganho-comment-form .form-submit, .arreganho-comment-form .comment-form-captcha { grid-column:1 / -1; }
.arreganho-comment-form label { display:block; margin-bottom:8px; font-weight:700; color:#4e3430; font-size:14px; }
.arreganho-comment-form input:not([type=checkbox]), .arreganho-comment-form textarea { font:inherit; display:block; width:100%; max-width:100%; border:1px solid #dfc9bc; background:#fffdfb; border-radius:11px; padding:12px 14px; outline:none; color:#26151a; }
.arreganho-comment-form textarea { min-height:145px; resize:vertical; }
.arreganho-comment-form input:focus, .arreganho-comment-form textarea:focus { border-color:#cf1b21; box-shadow:0 0 0 3px #cf1b211b; }
.arreganho-comment-form .comment-form-cookies-consent { display:flex; align-items:flex-start; gap:9px; font-size:13px; color:#605452; }
.arreganho-comment-form .comment-form-cookies-consent input { margin-top:3px; }
.arreganho-comment-form .comment-form-cookies-consent label { font-size:13px; font-weight:400; margin:0; }
.arreganho-comment-form .comment-submit-button { background:linear-gradient(110deg,#d40018,#9c0010); color:#fff; border:0; border-radius:11px; padding:13px 26px; font-size:15px; font-weight:800; cursor:pointer; box-shadow:0 4px 0 #65000a; transition:filter .15s; }
.arreganho-comment-form .comment-submit-button:hover { filter:brightness(1.1); }
.arreganho-comment-form .comment-submit-button:focus-visible { outline:3px solid #ffce21; outline-offset:3px; }
.comments-area .akismet_comment_form_privacy_notice, .comments-area .akismet-comment-notice { margin:14px 0 0; font-size:12px; line-height:1.5; color:#82736d; }
.comments-area .akismet_comment_form_privacy_notice a, .comments-area .akismet-comment-notice a { color:#9f1c16; text-decoration:underline; }
@media(max-width:760px) {
 .partner-banners { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .arreganho-comment-form { display:block; }
 .arreganho-comment-form > p { margin-bottom:16px; }
 .comments-area .children { margin-left:8px; padding-left:9px; }
 .comments-area .comment-body { padding:12px; }
}
@media(max-width:390px) { .partner-banners { grid-template-columns:1fr; } }


/* v1.0.7 — header fills the full width again, with normal visual size. */
.masthead {
  background: #c90b06;
}
.masthead-art {
  width: 100%;
  aspect-ratio: 1920 / 250;
  min-height: 180px;
  max-height: 250px;
  overflow: hidden;
  background: transparent;
}
.masthead-art picture {
  display: block;
  width: 100%;
  height: 100%;
}
.masthead-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: transparent;
}
@media (max-width: 1100px) {
  .masthead-art {
    aspect-ratio: 1920 / 260;
    min-height: 150px;
    max-height: 220px;
  }
}
@media (max-width: 760px) {
  .masthead-art {
    aspect-ratio: 3 / 1;
    min-height: 115px;
    max-height: none;
  }
  .masthead-banner {
    object-fit: cover;
    object-position: center center;
  }
}


/* v1.0.8 — safer Christmas header and fuller fallback menu. */
.primary-nav .menu > li:last-child > a {
  background: #a4000b;
  border-radius: 10px;
}
