/* =========================================================
   Imóveis Península Barra — Layout das páginas institucionais
   Mobile-first. Identidade verde Península (#15A11C).
   Carregado via mu-plugin invexo-peninsula-layout.php
   ========================================================= */

:root {
    --pen-green: #15A11C;
    --pen-green-dark: #0e7314;
    --pen-ink: #1c2a1d;
    --pen-text: #33403a;
    --pen-soft: #f4f8f4;
    --pen-line: #e3ece3;
}

/* ---------- HERO ---------- */
.pen-hero {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: hidden;
    margin: 0 0 26px;
    padding: 34px 22px;
}
.pen-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,26,14,.35) 0%, rgba(12,26,14,.72) 100%);
}
.pen-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}
.pen-hero h1 {
    color: #fff;
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 0 0 12px;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.pen-hero__sub {
    color: #f1f7f1;
    font-size: 1.02rem;
    line-height: 1.5;
    margin: 0;
}

/* ---------- ANSWER CAPSULE (GEO/AEO) ---------- */
.pen-answer {
    max-width: 820px;
    margin: 0 auto 30px;
    padding: 18px 22px;
    background: var(--pen-soft);
    border-left: 4px solid var(--pen-green);
    border-radius: 8px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--pen-ink);
}

/* ---------- CONTEÚDO ---------- */
.pen-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4px 0 8px;
    color: var(--pen-text);
}
.pen-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 0 36px;
}
.pen-section__text { flex: 1; min-width: 0; }
.pen-section__text h2 {
    color: var(--pen-green-dark);
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0 0 12px;
}
.pen-section__text h3 {
    color: var(--pen-ink);
    font-size: 1.1rem;
    margin: 18px 0 8px;
}
.pen-section__text p {
    line-height: 1.7;
    margin: 0 0 14px;
    font-size: 1rem;
}
.pen-section__media { flex: 1; min-width: 0; }
.pen-section__media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(14,40,18,.14);
    display: block;
}
.pen-section__media figcaption {
    margin-top: 8px;
    font-size: .85rem;
    color: #6b7a6e;
    text-align: center;
}

/* ---------- CTA WHATSAPP ---------- */
.pen-cta {
    margin: 8px 0 18px;
    padding: 30px 24px;
    background: linear-gradient(135deg, var(--pen-green) 0%, var(--pen-green-dark) 100%);
    border-radius: 14px;
    text-align: center;
    color: #fff;
}
.pen-cta h2 { color: #fff; font-size: 1.35rem; margin: 0 0 8px; }
.pen-cta p { color: #eafbe9; margin: 0 0 18px; font-size: 1rem; }
.pen-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: var(--pen-green-dark);
    font-weight: 700;
    font-size: 1.02rem;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    min-height: 48px;
    box-sizing: border-box;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pen-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.pen-cta__btn svg { width: 22px; height: 22px; fill: var(--pen-green-dark); }

/* ---------- LISTA DE CONDOMÍNIOS (hub & spoke) ---------- */
.pen-condos { margin: 6px 0 36px; }
.pen-condos h2 { color: var(--pen-green-dark); font-size: 1.35rem; margin: 0 0 16px; }
.pen-condos__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.pen-condos__grid a {
    display: block;
    padding: 13px 16px;
    background: var(--pen-soft);
    border: 1px solid var(--pen-line);
    border-radius: 9px;
    color: var(--pen-ink);
    text-decoration: none;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease;
}
.pen-condos__grid a:hover { border-color: var(--pen-green); background: #eef6ee; }

/* ---------- TEXTO LEGAL (Política) ---------- */
.pen-legal { max-width: 820px; margin: 0 auto; color: var(--pen-text); }
.pen-legal h2 { color: var(--pen-green-dark); font-size: 1.25rem; margin: 26px 0 10px; }
.pen-legal p, .pen-legal li { line-height: 1.7; }

/* ---------- DESKTOP ---------- */
@media (min-width: 768px) {
    .pen-hero { min-height: 250px; padding: 46px 40px; }
    .pen-hero h1 { font-size: 2.2rem; }
    .pen-hero__sub { font-size: 1.18rem; }
    .pen-section { flex-direction: row; align-items: center; gap: 40px; }
    .pen-section--rev { flex-direction: row-reverse; }
    .pen-section__text h2 { font-size: 1.7rem; }
    .pen-cta h2 { font-size: 1.7rem; }
    .pen-condos__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1200px) {
    .pen-hero { min-height: 300px; }
}

/* ---------- WHATSAPP FLUTUANTE (global) ---------- */
.pen-wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99990;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.28);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: pen-wa-pulse 2.4s ease-in-out infinite;
}
.pen-wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(0,0,0,.34); }
.pen-wa-float svg { width: 34px; height: 34px; fill: #fff; }
@keyframes pen-wa-pulse {
    0%   { box-shadow: 0 6px 20px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,.5); }
    70%  { box-shadow: 0 6px 20px rgba(0,0,0,.28), 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 20px rgba(0,0,0,.28), 0 0 0 0 rgba(37,211,102,0); }
}
@media (min-width: 768px) {
    .pen-wa-float { width: 62px; height: 62px; right: 24px; bottom: 24px; }
    .pen-wa-float svg { width: 37px; height: 37px; }
}

/* ---------- HEADER: tira telefone (secondary CTA) + botão Contato (primary CTA) ---------- */
.myhome-myhome-menu__secondary-cta-button { display: none !important; }
.myhome-menu__primary-cta-button { display: none !important; }
.myhome-button--primary-1 {
    background-color: var(--pen-green) !important;
    border-color: var(--pen-green) !important;
}
.myhome-button--primary-1:hover {
    background-color: var(--pen-green-dark) !important;
    border-color: var(--pen-green-dark) !important;
}

/* ---------- FOOTER Península ---------- */
.pen-foot__wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 4px;
}
.pen-foot__logo { max-width: 210px; height: auto; margin: 0 0 14px; display: block; }
.pen-foot__tag { color: #56655a; line-height: 1.6; margin: 0 0 14px; font-size: .95rem; }
.pen-foot__nap { color: #56655a; line-height: 1.85; font-size: .95rem; margin: 0; }
.pen-foot__nap a { color: var(--pen-green-dark); text-decoration: none; font-weight: 600; }
.pen-foot__nap a:hover { text-decoration: underline; }
.pen-foot__col h3 { color: var(--pen-green-dark); font-size: 1.05rem; margin: 0 0 14px; }
.pen-foot__col a { display: block; color: #4c5a50; text-decoration: none; padding: 5px 0; font-size: .95rem; transition: color .15s ease; }
.pen-foot__col a:hover { color: var(--pen-green-dark); }
.pen-foot__wabtn {
    display: inline-block !important;
    background: #25D366;
    color: #fff !important;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 999px;
    margin-top: 8px;
    min-height: 44px;
    box-sizing: border-box;
}
.pen-foot__wabtn:hover { background: #1ebe5a; color: #fff !important; }
@media (min-width: 768px) {
    .pen-foot__wrap { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 20px 4px; }
}

/* ---------- HOME: conteúdo institucional rico (ex-paredão) ---------- */
.pen-home-rich { max-width: 980px; margin: 0 auto; color: var(--pen-text); }
.pen-home-rich h2 {
    color: var(--pen-green-dark);
    font-size: 1.45rem;
    line-height: 1.25;
    margin: 34px 0 12px;
}
.pen-home-rich p { line-height: 1.8; margin: 0 0 16px; font-size: 1rem; }
.pen-home-rich .pen-answer { margin-bottom: 26px; }
.pen-rich-img { margin: 28px 0; }
.pen-rich-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(14,40,18,.14);
    display: block;
}
@media (min-width: 768px) {
    .pen-home-rich h2 { font-size: 1.85rem; }
}

/* ---------- FAQ (Vender) ---------- */
.pen-faq { margin: 10px 0 32px; }
.pen-faq h2 { color: var(--pen-green-dark); font-size: 1.5rem; margin: 0 0 16px; }
.pen-faq__item {
    border: 1px solid var(--pen-line);
    border-radius: 9px;
    margin-bottom: 10px;
    padding: 2px 18px;
    background: #fff;
}
.pen-faq__item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
    color: var(--pen-ink);
    list-style: none;
    position: relative;
}
.pen-faq__item summary::-webkit-details-marker { display: none; }
.pen-faq__item summary::after { content: "+"; position: absolute; right: 0; color: var(--pen-green); font-size: 1.4rem; line-height: 1; }
.pen-faq__item[open] summary::after { content: "–"; }
.pen-faq__item[open] summary { color: var(--pen-green-dark); }
.pen-faq__item p { margin: 0 0 14px; line-height: 1.7; }

/* ---------- NAP (Contato) ---------- */
.pen-nap { background: var(--pen-soft); border-radius: 8px; padding: 14px 16px; line-height: 1.95; margin: 14px 0 0; }

/* ---------- Blog: CTA + lista + listas no conteúdo rico ---------- */
.pen-blog-cta { background: var(--pen-soft); border-left: 4px solid var(--pen-green); border-radius: 8px; padding: 14px 18px; margin: 26px 0 0; line-height: 1.7; }
.pen-blog-list { line-height: 2; }
.pen-home-rich ul, .pen-home-rich ol { line-height: 1.9; margin: 0 0 16px; padding-left: 22px; }
.pen-home-rich ul li { margin-bottom: 4px; }
.pen-list { line-height: 1.9; margin: 0 0 18px; padding-left: 22px; columns: 2; column-gap: 30px; }
.pen-list li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 600px) { .pen-list { columns: 1; } }

/* ---------- Condomínios: grid com contagem + texto extra ---------- */
.pen-condos__grid span { color: #8aa08d; font-weight: 400; font-size: .85rem; }
.pen-cond-extra { max-width: 900px; margin: 36px auto 0; color: var(--pen-text); }
.pen-cond-extra h2 { color: var(--pen-green-dark); font-size: 1.35rem; margin: 26px 0 10px; }
.pen-cond-extra p { line-height: 1.8; margin: 0 0 14px; }

/* ---------- Grid de imóveis (/imoveis/ e term archive) ---------- */
.pen-imoveis-h1 { font-size: 1.6rem; line-height: 1.25; color: var(--pen-ink); margin: 6px 0 24px; }
.pen-imoveis-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
@media (min-width: 768px) { .pen-imoveis-h1 { font-size: 2.1rem; margin: 10px 0 28px; } }
.pen-imoveis-filter a { font-size: .9rem; padding: 7px 14px; border-radius: 999px; background: var(--pen-soft); color: var(--pen-ink); text-decoration: none; border: 1px solid var(--pen-line); }
.pen-imoveis-filter a:hover, .pen-imoveis-filter a.is-on { background: var(--pen-green); color: #fff; border-color: var(--pen-green); }
.pen-imoveis-count { font-weight: 700; color: var(--pen-green-dark); margin: 0 0 16px; font-size: 1.05rem; }
.pen-imoveis-empty { padding: 30px; background: var(--pen-soft); border-radius: 10px; text-align: center; }
.pen-imoveis-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pen-imovel-card { display: block; background: #fff; border: 1px solid var(--pen-line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--pen-text); transition: transform .2s ease, box-shadow .2s ease; }
.pen-imovel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(14,40,18,.16); }
.pen-imovel-card__img { aspect-ratio: 4/3; overflow: hidden; background: #eef2ee; }
.pen-imovel-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pen-imovel-card__body { padding: 14px 16px; }
.pen-imovel-card__body h3 { font-size: 1rem; line-height: 1.3; margin: 0 0 8px; color: var(--pen-ink); }
.pen-imovel-card__price { color: var(--pen-green-dark); font-weight: 700; font-size: 1.1rem; }
.pen-imovel-card__meta { color: #6b7a6e; font-size: .9rem; margin-top: 4px; }
@media (min-width: 600px) { .pen-imoveis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pen-imoveis-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA box do sidebar (blog) + botão WhatsApp ---------- */
.pen-cta-box { background: var(--pen-soft); border: 1px solid var(--pen-line); border-radius: 12px; padding: 24px 20px; text-align: center; }
.pen-cta-box h3 { color: var(--pen-green-dark); font-size: 1.15rem; margin: 0 0 8px; }
.pen-cta-box p { color: var(--pen-text); font-size: .95rem; line-height: 1.5; margin: 0 0 16px; }
.pen-wa-btn { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff !important; font-weight: 700; padding: 12px 24px; border-radius: 999px; text-decoration: none; min-height: 46px; box-sizing: border-box; }
.pen-wa-btn:hover { background: #1ebe5a; color: #fff !important; }
.pen-wa-btn svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- Related/Veja também: cards não espremidos ---------- */
.myhome-related-posts .myhome-blog-card-wrapper, .mh-related-posts__item { min-width: 0; }
.myhome-related-posts .myhome-blog-card__title, .mh-related-posts__title { font-size: .95rem !important; line-height: 1.3 !important; white-space: normal !important; }
