/*
Theme Name: Página do Interior
Theme URI: https://paginadointerior.com.br
Author: Página do Interior
Author URI: https://paginadointerior.com.br
Description: Tema para portal/revista eletrônica de cidade do interior. Feed estilo rede social, com Notícias, Agenda de Eventos, Cinema, Cultura, Guia Comercial, Utilidade Pública, Classificados e Anuncie Aqui. Estrutura pronta para banners reutilizáveis, eventos/listagens/classificados patrocinados e conteúdo publieditorial.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pagina-do-interior
Tags: news, blog, custom-menu, translation-ready
*/

/* ============ RESET / BASE ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #F7F6F4;
  color: #212121;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #3F007D; text-decoration: none; }
a:hover { color: #DB7400; }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 800; color: #212121; margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.pdi-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.pdi-narrow { max-width: 640px; margin: 0 auto; }

/* ============ HEADER ============ */
.pdi-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #E6E6E6;
}
.pdi-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pdi-logo img { height: 28px; width: auto; }
.pdi-nav { display: none; align-items: center; gap: 4px; flex-wrap: nowrap; }
.pdi-nav a {
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: #212121; white-space: nowrap; transition: transform .15s ease;
}
.pdi-nav a:hover { color: #212121; transform: translateY(-1px); }
.pdi-nav a.is-active {
  background: linear-gradient(135deg,#3F007D,#7A4FBF); color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(63,0,125,.28);
}
.pdi-menu-btn {
  background: linear-gradient(135deg,#3F007D,#6B3FA0); border: none; border-radius: 14px;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(63,0,125,.25);
}
.pdi-menu-btn span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; margin: 4px 0; }

.pdi-drawer {
  position: fixed; inset: 0; background: rgba(33,33,33,.4); z-index: 60; display: none;
}
.pdi-drawer.is-open { display: block; }
.pdi-drawer-panel {
  background: #FFFFFF; width: 82%; max-width: 320px; height: 100%; padding: 18px 8px;
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
}
.pdi-drawer-panel a {
  padding: 13px 16px; border-radius: 12px; font-weight: 700; font-size: 16px; color: #212121;
}
.pdi-drawer-panel a.is-active { color: #3F007D; background: #F4EEFB; }
.pdi-drawer-logo { height: 26px; margin: 6px 14px 14px; }
.pdi-drawer-divider { height: 1px; background: #E6E6E6; margin: 8px 14px; }

@media (min-width: 860px) {
  .pdi-nav { display: flex; }
  .pdi-menu-btn { display: none; }
}

/* ============ AD SLOTS ============ */
.pdi-ad-slot {
  width: 100%; margin: 0 auto; background: #E6E6E6; border: 2px dashed #C2C2C2; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 10px; min-height: 90px;
}
.pdi-ad-slot span.label { font: 700 11px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
.pdi-ad-slot span.pos { font: 600 13px/1.3 'Inter', sans-serif; color: #616161; text-align: center; }
.pdi-ad-slot span.size { font: 500 11px/1 'Inter', sans-serif; color: #9a9a9a; }
.widget_media_image, .widget_custom_html, .widget_text { max-width: 100%; }

/* ============ CARDS ============ */
.pdi-card {
  background: #FFFFFF; border-radius: 22px; box-shadow: 0 8px 22px rgba(33,33,33,.06);
  overflow: hidden; transition: transform .18s ease;
}
.pdi-card:hover { transform: translateY(-3px); }
.pdi-card-photo {
  position: relative; border-radius: 26px; overflow: hidden; cursor: pointer;
  box-shadow: 0 10px 28px rgba(33,33,33,.14); transition: transform .18s ease; display: block; color: inherit;
}
.pdi-card-photo:hover { transform: translateY(-3px); color: inherit; }
.pdi-card-photo img, .pdi-card-photo .pdi-fallback-bg { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pdi-fallback-bg { background: linear-gradient(135deg,#3F007D,#7A4FBF); }
.pdi-card-photo .overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%);
}
.pdi-card-photo .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.pdi-badge {
  align-self: flex-start; font: 700 11px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .03em;
  color: #FFFFFF; padding: 6px 12px; border-radius: 999px;
}
.pdi-badge-sponsor { background: linear-gradient(135deg,#DB7400,#F0A050); box-shadow: 0 4px 12px rgba(219,116,0,.4); }
.pdi-badge-partner { background: linear-gradient(135deg,#DB7400,#F0A050); }
.pdi-badge-editorial { background: #E6E6E6; color: #212121; }
.pdi-title-photo { font: 800 20px/1.25 'Plus Jakarta Sans', sans-serif; color: #FFFFFF; }
.pdi-excerpt-photo { font: 500 13px/1.4 'Inter', sans-serif; color: rgba(255,255,255,.85); }
.pdi-meta-photo { font: 600 11.5px/1 'Inter', sans-serif; color: rgba(255,255,255,.6); }

.pdi-panel { background: #FFFFFF; border-radius: 22px; box-shadow: 0 8px 22px rgba(33,33,33,.06); padding: 16px; }
.pdi-panel-guia { background: linear-gradient(135deg,#F4EEFB,#FBF3FF); box-shadow: 0 8px 22px rgba(63,0,125,.08); }
.pdi-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.pdi-panel-head h3 { font: 800 16px/1.2 'Plus Jakarta Sans', sans-serif; }
.pdi-panel-head a { font: 700 12px/1 'Inter', sans-serif; color: #DB7400; }
.pdi-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid #F0F0F0; }
.pdi-row:last-child { border-bottom: none; }
.pdi-row-thumb { width: 44px; height: 44px; border-radius: 11px; flex: none; background-size: cover; background-position: center; }
.pdi-row-title { font: 700 13px/1.3 'Plus Jakarta Sans', sans-serif; color: #212121; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdi-row-sub { font: 600 11px/1.3 'Inter', sans-serif; color: #9a9a9a; }
.pdi-dot-sponsor { flex: none; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg,#DB7400,#F0A050); }

/* ============ CHIPS ============ */
.pdi-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pdi-chip {
  padding: 9px 17px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap;
  background: #EFEFEF; color: #212121; flex: none;
}
.pdi-chip.is-active { background: linear-gradient(135deg,#3F007D,#7A4FBF); color: #FFFFFF; }
.pdi-chip.orange.is-active { background: linear-gradient(135deg,#DB7400,#F0A050); }

/* ============ GRIDS ============ */
.pdi-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pdi-grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) {
  .pdi-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .pdi-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.pdi-home-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 860px) {
  .pdi-home-grid { grid-template-columns: 1.7fr 1fr; }
}
.pdi-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ============ SHELVES (Guia Comercial) ============ */
.pdi-shelf { display: flex; flex-direction: column; gap: 10px; }
.pdi-shelf-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.pdi-partner-card {
  flex: none; width: 210px; border-radius: 22px; padding: 2px;
  background: linear-gradient(135deg,#DB7400,#F0A050); box-shadow: 0 10px 24px rgba(219,116,0,.2);
}
.pdi-partner-card-inner { background: #FFFFFF; border-radius: 20px; overflow: hidden; }
.pdi-basic-card { flex: none; width: 150px; background: #FFFFFF; border-radius: 18px; border: 1px solid #E6E6E6; overflow: hidden; }

/* ============ FOOTER ============ */
.pdi-footer { background: #3F007D; padding: 32px 16px 24px; }
.pdi-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.pdi-footer-logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.pdi-footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.pdi-footer-links a { font: 600 13px/1 'Inter', sans-serif; color: rgba(255,255,255,.85); }
.pdi-footer-links a:hover { color: #fff; }
.pdi-footer-note { font: 500 12px/1.5 'Inter', sans-serif; color: rgba(255,255,255,.55); }

/* ============ MOBILE BOTTOM TAB BAR ============ */
.pdi-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #E6E6E6; display: flex; align-items: center; justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.pdi-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #ADADAD; }
.pdi-tabbar a.is-active { color: #3F007D; }
.pdi-tabbar svg { display: block; }
.pdi-tabbar span { font: 700 10px/1 'Inter', sans-serif; }
body.pdi-has-tabbar { padding-bottom: 78px; }
@media (min-width: 860px) { .pdi-tabbar { display: none; } body.pdi-has-tabbar { padding-bottom: 0; } }

/* ============ UTILIDADE PÚBLICA ============ */
.pdi-util-block { background: #FFFFFF; border-radius: 20px; box-shadow: 0 8px 22px rgba(33,33,33,.06); padding: 18px; }
.pdi-util-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #E6E6E6; font: 600 14px/1.3 'Inter', sans-serif; }
.pdi-util-row:last-child { border-bottom: none; }

/* ============ CLASSIFICADOS ============ */
.pdi-class-card { background: #FFFFFF; border-radius: 20px; border: 1px solid #E6E6E6; padding: 16px; box-shadow: 0 6px 16px rgba(33,33,33,.06); display: flex; flex-direction: column; gap: 6px; }
.pdi-class-card.is-destaque { background: #FFF7EC; border-color: #F2D6AD; }
.pdi-class-price { font: 700 16px/1.3 'Plus Jakarta Sans', sans-serif; color: #3F007D; }

/* ============ ANUNCIE AQUI ============ */
.pdi-offer-card { background: #FFFFFF; border-radius: 20px; box-shadow: 0 8px 22px rgba(33,33,33,.06); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pdi-offer-title { font: 800 17px/1.3 'Plus Jakarta Sans', sans-serif; color: #3F007D; }
.pdi-offer-price { font: 700 12.5px/1 'Inter', sans-serif; color: #DB7400; }
.pdi-btn-whatsapp {
  display: inline-block; text-align: center; text-decoration: none; font: 700 15px/1 'Inter', sans-serif;
  color: #FFFFFF; background: linear-gradient(135deg,#DB7400,#F0A050); padding: 17px 18px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(219,116,0,.3);
}

/* ============ PAGE HEADER ============ */
.pdi-page-title { font: 800 26px/1.2 'Plus Jakarta Sans', sans-serif; color: #212121; margin-bottom: 2px; }
.pdi-page-sub { font: 500 14px/1.4 'Inter', sans-serif; color: #616161; margin-bottom: 6px; }

.pdi-content { padding: 18px 14px 60px; display: flex; flex-direction: column; gap: 16px; }
.pdi-hero-gradient { position: relative; height: 320px; }
