/* ============================================================
   Parceiros Ação Sat - Páginas públicas (lista + interna)
   ============================================================ */

:root {
    --parceiros-primary: #0d6efd;
    --parceiros-dark: #11203b;
    --parceiros-accent: #16a34a;
}

/* ---------------- Lista ---------------- */
.parceiros-section {
    padding: 60px 0 80px;
}

.parceiros-header {
    max-width: 760px;
    margin: 0 auto 40px;
}

.parceiros-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--parceiros-dark);
    margin-bottom: 12px;
}

.parceiros-subtitle {
    color: #5b6576;
    font-size: 1.05rem;
    margin-bottom: 26px;
}

.parceiros-search {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.parceiros-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
}

.parceiros-search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid #e3e8ef;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.parceiros-search-input:focus {
    border-color: var(--parceiros-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .12);
}

/* Cards */
.parceiro-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(17, 32, 59, .08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.parceiro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(17, 32, 59, .16);
}

.parceiro-card-img {
    position: relative;
    display: block;
    height: 190px;
    background: #f1f4f9;
    overflow: hidden;
}

.parceiro-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.parceiro-card:hover .parceiro-card-img img {
    transform: scale(1.06);
}

.parceiro-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: #c2cad6;
}

.parceiro-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--parceiros-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
}

.parceiro-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.parceiro-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--parceiros-dark);
    margin-bottom: 8px;
}

.parceiro-card-desc {
    color: #5b6576;
    font-size: .92rem;
    margin-bottom: 12px;
}

.parceiro-card-promo {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #eafaf0;
    color: #0f7a3d;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.parceiro-card-promo i {
    margin-top: 2px;
}

.parceiro-card-bairros {
    color: #7a8699;
    font-size: .82rem;
    margin-bottom: 16px;
}

.parceiro-card-bairros i {
    color: var(--parceiros-primary);
    margin-right: 4px;
}

.parceiro-card-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--parceiros-primary);
    color: #fff;
    padding: 11px 18px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, gap .2s;
}

.parceiro-card-btn:hover {
    background: #0b5ed7;
    color: #fff;
    gap: 12px;
}

.parceiros-empty {
    padding: 50px 20px;
    color: #8a94a6;
}

.parceiros-empty i {
    font-size: 2.6rem;
    margin-bottom: 12px;
    display: block;
}

/* ---------------- Página interna ---------------- */
.parceiro-single {
    padding: 50px 0 80px;
}

.parceiro-single-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(17, 32, 59, .08);
}

.parceiro-single-cover {
    background: #f1f4f9;
    line-height: 0;
}

.parceiro-single-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.parceiro-single-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
    font-size: 4rem;
    color: #c2cad6;
}

.parceiro-single-head {
    padding: 26px 30px 6px;
}

.parceiro-single-cat {
    display: inline-block;
    background: var(--parceiros-primary);
    color: #fff;
    font-size: .76rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.parceiro-single-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--parceiros-dark);
    margin-bottom: 8px;
}

.parceiro-single-sub {
    color: #5b6576;
    font-size: 1.05rem;
}

.parceiro-single-promo {
    margin: 16px 30px;
    background: #eafaf0;
    border-left: 5px solid var(--parceiros-accent);
    border-radius: 12px;
    padding: 18px 22px;
}

.parceiro-single-promo h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f7a3d;
    margin-bottom: 8px;
}

.parceiro-single-promo p,
.parceiro-single-content p {
    color: #44505f;
    margin: 0;
    line-height: 1.7;
}

/* Conteúdo vindo do editor (CKEditor) */
.rich-text {
    color: #44505f;
    line-height: 1.7;
}

.rich-text p { margin: 0 0 12px; }
.rich-text ul,
.rich-text ol { margin: 0 0 12px 22px; }
.rich-text li { margin-bottom: 6px; }
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 { color: var(--parceiros-dark); margin: 14px 0 8px; }
.rich-text a { color: var(--parceiros-primary); }
.rich-text blockquote {
    border-left: 4px solid #d4dbe6;
    margin: 0 0 12px;
    padding: 4px 0 4px 16px;
    color: #5b6576;
}
.rich-text img { max-width: 100%; height: auto; border-radius: 8px; }
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.rich-text table td,
.rich-text table th { border: 1px solid #e3e8ef; padding: 8px; }

.parceiro-single-content {
    padding: 8px 30px 30px;
}

.parceiro-single-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--parceiros-dark);
    margin-bottom: 10px;
}

/* Sidebar */
.parceiro-single-info {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(17, 32, 59, .08);
    padding: 24px;
    position: sticky;
    top: 20px;
}

.parceiro-single-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--parceiros-dark);
    margin-bottom: 16px;
}

/* Botão WhatsApp com luz percorrendo a borda + pulso */
@property --wa-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.parceiro-info-whats {
    position: relative;
    z-index: 0;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 18px;
    animation: wa-pulse 2s ease-in-out infinite;
}

/* anel de luz girando ao redor das bordas */
.parceiro-info-whats::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -3px;
    border-radius: inherit;
    background: conic-gradient(from var(--wa-angle),
        rgba(255, 255, 255, 0) 0deg,
        rgba(255, 255, 255, 0) 250deg,
        #d9fff0 300deg,
        #ffffff 330deg,
        #5dffab 350deg,
        rgba(255, 255, 255, 0) 360deg);
    animation: wa-spin 2.4s linear infinite;
}

/* preenchimento interno: deixa visível apenas a borda iluminada */
.parceiro-info-whats::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: #25d366;
    transition: background .2s;
}

.parceiro-info-whats:hover { color: #fff; }
.parceiro-info-whats:hover::after { background: #1da851; }

.parceiro-info-whats i,
.parceiro-info-whats span { position: relative; z-index: 1; }

@keyframes wa-spin {
    to { --wa-angle: 360deg; }
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70%      { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* Fallback p/ navegadores sem @property: mantém o pulso e um brilho fixo */
@supports not (background: conic-gradient(from var(--wa-angle), #000, #000)) {
    .parceiro-info-whats::before {
        background: linear-gradient(90deg, #ffffff, #5dffab);
        animation: none;
        opacity: .9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .parceiro-info-whats,
    .parceiro-info-whats::before { animation: none; }
}

.parceiro-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.parceiro-info-list li {
    padding: 9px 0;
    border-bottom: 1px solid #eef1f6;
    color: #44505f;
}

.parceiro-info-list li i {
    color: var(--parceiros-primary);
    width: 22px;
}

.parceiro-info-list a {
    color: #44505f;
    text-decoration: none;
}

.parceiro-info-list a:hover {
    color: var(--parceiros-primary);
}

.parceiro-info-end,
.parceiro-info-bairros {
    margin-top: 16px;
}

.parceiro-info-end h4,
.parceiro-info-bairros h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--parceiros-dark);
    margin-bottom: 8px;
}

.parceiro-info-end h4 i,
.parceiro-info-bairros h4 i {
    color: var(--parceiros-primary);
    margin-right: 5px;
}

.parceiro-info-end p {
    color: #5b6576;
    font-size: .92rem;
}

.parceiro-info-chips .chip {
    display: inline-block;
    background: #eef2ff;
    color: #3b3f87;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .78rem;
    margin: 0 4px 6px 0;
}

.parceiro-info-bcount {
    color: #9aa3af;
    font-weight: 600;
    font-size: .85rem;
}

.parceiro-info-more {
    display: inline-block;
    background: var(--parceiros-primary);
    color: #fff;
    border: 0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 4px 6px 0;
    transition: background .15s;
}

.parceiro-info-more:hover {
    background: #0b5ed7;
}

.parceiro-info-back {
    display: inline-block;
    margin-top: 18px;
    color: var(--parceiros-primary);
    font-weight: 600;
    text-decoration: none;
}

.parceiro-info-back:hover {
    text-decoration: underline;
}

/* ---------------- Bloco na Home ---------------- */
.home-parceiros-section {
    padding: 70px 0;
    background: #f7f9fc;
}

.home-parceiros-header {
    max-width: 700px;
    margin: 0 auto 36px;
}

.home-parceiros-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--parceiros-dark);
    margin-bottom: 10px;
}

.home-parceiros-subtitle {
    color: #5b6576;
}

.home-parceiros-cta {
    margin-top: 34px;
}

.home-parceiros-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--parceiros-primary);
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, gap .2s;
}

.home-parceiros-btn:hover {
    background: #0b5ed7;
    color: #fff;
    gap: 14px;
}

@media (max-width: 991px) {
    .parceiro-single-info { position: static; margin-top: 24px; }
    .parceiro-single-noimg { height: 240px; }
}
