/* ======================================================
   BLOG — Grupo Premium (extensão de www.grupopremium.com.br)
   Mesma identidade do site: azul-marinho #091A61, azul #0A50A2,
   azul-céu #23A4DE e verde #50DD00, Montserrat.
   Usado por blog.asp e blog_detalhes.asp.
   ====================================================== */
:root {
  --navy:      #091A61;
  --navy2:     #06123F;
  --blue:      #0A50A2;
  --blue2:     #0086C5;
  --sky:       #23A4DE;
  --green:     #50DD00;
  --green-dk:  #3BAA00;
  --green-ink: #2C7A00;   /* verde para texto sobre fundo claro */
  --white:     #FFFFFF;
  --off:       #F3F6FB;
  --mist:      #E8F1FB;
  --text:      #3F4A63;
  --gray:      #64708A;
  --border:    #DFE5EF;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { font-family: 'Montserrat', sans-serif; background: var(--off); color: var(--navy); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container-nar { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--green); z-index: 9999; transition: width .1s linear; }

/* ── HEADER: logo + selo "Blog Premium" ── */
.site-header { position: sticky; top: 0; z-index: 900; background: var(--white); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(9,26,97,.14); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.5rem; }
.header-logo-wrap { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; flex-shrink: 0; min-width: 0; }
.header-logo { height: 48px; width: auto; object-fit: contain; }
.brand-sep { width: 2px; height: 40px; border-radius: 2px; background: linear-gradient(180deg, var(--sky), var(--green)); }
.brand-blog {
  position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1.2rem .55rem 1rem;
  border-radius: 50px; background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate;
  box-shadow: 0 6px 18px rgba(9,26,97,.25);
}
/* borda em gradiente girando */
.brand-blog::before {
  content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: inherit;
  background: conic-gradient(from var(--ang, 0deg), var(--sky), var(--green), var(--blue), var(--sky));
  animation: girarBorda 4s linear infinite;
}
.brand-blog::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: inherit; background: var(--navy); }
.brand-blog-txt { font-size: 1.02rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.brand-blog-txt strong {
  font-weight: 900; background: linear-gradient(90deg, var(--green) 0%, #B9FF7A 25%, var(--sky) 50%, var(--green) 75%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brilho 3.5s linear infinite;
}
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: pulsar 1.8s ease-out infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes girarBorda { to { --ang: 360deg; } }
@keyframes brilho { to { background-position: -200% center; } }
@keyframes pulsar { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }

.header-site {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--gray);
  font-size: .76rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap;
  padding: .55rem .9rem; border-radius: 50px; border: 1.5px solid var(--border); transition: color .2s, border-color .2s;
}
.header-site:hover { color: var(--blue); border-color: var(--sky); }
@media (max-width: 760px) {
  .header-top { padding: .7rem 1rem; }
  .header-logo { height: 34px; }
  .header-logo-wrap { gap: .7rem; }
  .brand-sep { height: 30px; }
  .brand-blog { padding: .4rem .8rem .4rem .7rem; gap: .45rem; }
  .brand-blog-txt { font-size: .78rem; }
  .header-site span { display: none; }
  .header-site { padding: .5rem .65rem; }
}
@media (max-width: 420px) {
  .header-top { padding: .65rem .8rem; gap: .5rem; }
  .brand-sep { display: none; }
  .header-logo { height: 27px; }
  .header-logo-wrap { gap: .55rem; }
  .brand-blog { padding: .35rem .7rem .35rem .6rem; gap: .4rem; }
  .brand-blog-txt { font-size: .68rem; letter-spacing: .3px; }
  .live-dot { width: 7px; height: 7px; }
  .blog-search button .txt { display: none; }
  .blog-search button { padding: .85rem 1.05rem; }
}

/* Faixa azul-marinho com as categorias (tags mais usadas) */
.cat-bar { background: var(--navy); }
.cat-bar .container-nar { display: flex; align-items: center; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding-top: .35rem; padding-bottom: .35rem; }
.cat-bar .container-nar::-webkit-scrollbar { display: none; }
.cat-bar a {
  color: #E3E9F8; text-decoration: none; font-size: .86rem; font-weight: 500; padding: .7rem 1rem; border-radius: 6px;
  white-space: nowrap; transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: .5rem;
}
.cat-bar a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.cat-bar a.active { color: var(--navy2); background: var(--green); font-weight: 700; }
.cat-bar a.cat-all { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .brand-blog::before, .brand-blog-txt strong, .live-dot::after { animation: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Breadcrumb */
.breadcrumb-custom { font-size: .8rem; color: var(--gray); margin-bottom: .6rem; }
.breadcrumb-custom ol { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.breadcrumb-custom li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb-custom li + li::before { content: "/"; color: #B8C2D6; }
.breadcrumb-custom a { color: var(--gray); text-decoration: none; transition: color .2s; }
.breadcrumb-custom a:hover { color: var(--blue); }
.breadcrumb-custom [aria-current] { color: var(--navy); font-weight: 600; }

/* ── Título da página + busca compacta ── */
.blog-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap;
  padding-bottom: 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--border);
}
.blog-top-txt { min-width: 0; flex: 1 1 420px; }
.blog-top h1 { font-weight: 800; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; color: var(--navy); }
.blog-top h1::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; margin-top: .55rem; background: linear-gradient(90deg, var(--sky), var(--green)); }
.blog-top p { margin-top: .6rem; color: var(--gray); font-size: .92rem; line-height: 1.55; }
.blog-search-mini {
  position: relative; display: flex; align-items: center; flex: 0 1 380px; min-width: 0;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 50px; padding: 4px;
  transition: border-color .2s, box-shadow .2s;
}
.blog-search-mini:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(35,164,222,.15); }
.blog-search-mini > i { position: absolute; left: 1rem; color: var(--gray); font-size: .95rem; pointer-events: none; }
.blog-search-mini input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--navy);
  font-family: inherit; font-size: .9rem; padding: .6rem .6rem .6rem 2.3rem;
}
.blog-search-mini input::placeholder { color: #8A94AB; }
.blog-search-mini button {
  border: none; background: var(--navy); color: var(--white); font-family: inherit; font-weight: 700; font-size: .85rem;
  padding: .6rem 1.1rem; border-radius: 50px; cursor: pointer; transition: background .2s;
}
.blog-search-mini button:hover { background: var(--blue); }
@media (max-width: 620px) { .blog-search-mini { flex-basis: 100%; } }

.blog-wrap { padding: 28px 0 80px; min-height: 50vh; }

/* Filtro ativo */
.blog-filter-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.blog-filter-chip {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--navy); color: var(--white);
  font-weight: 700; font-size: .82rem; padding: .45rem .9rem; border-radius: 50px;
}
.blog-filter-chip > i { color: var(--green); }
.blog-filter-chip a { color: #fff; text-decoration: none; opacity: .7; }
.blog-filter-chip a:hover { opacity: 1; }
.blog-count { color: var(--gray); font-size: .88rem; }
.blog-count strong { color: var(--navy); }

/* Cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(9,26,97,.12); border-color: var(--sky); }
.blog-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); display: block; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .date-pill {
  position: absolute; top: 14px; left: 14px; background: var(--green); color: var(--navy2);
  font-weight: 700; font-size: .72rem; padding: .3rem .75rem; border-radius: 50px; display: inline-flex; align-items: center; gap: .35rem;
}
.blog-card .body { padding: 1.3rem 1.3rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.blog-card .tags-mini { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.blog-card .tags-mini a {
  font-size: .68rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--blue);
  text-decoration: none; background: var(--mist); padding: .22rem .6rem; border-radius: 50px; transition: background .2s, color .2s;
}
.blog-card .tags-mini a:hover { background: var(--blue); color: var(--white); }
.blog-card h2, .blog-card h3 { font-weight: 700; font-size: 1.05rem; line-height: 1.38; margin-bottom: .55rem; }
.blog-card h2 a, .blog-card h3 a { text-decoration: none; color: var(--navy); transition: color .2s; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--blue); }
.blog-card p.resumo { font-size: .87rem; color: var(--text); line-height: 1.65; margin-bottom: 1rem; flex: 1; }
.blog-card .meta {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  border-top: 1px solid #EDF1F7; padding-top: .8rem; font-size: .8rem; color: var(--gray);
}
.blog-card .meta i { color: var(--sky); }
.blog-card .read-more { color: var(--blue); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s, color .2s; }
.blog-card .read-more i { color: var(--blue); }
.blog-card .read-more:hover { gap: .55rem; color: var(--navy); }

/* Paginação */
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 3rem; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); color: var(--text); text-decoration: none; font-weight: 700; border: 2px solid var(--border); font-size: .9rem; transition: all .2s;
}
.blog-pagination span.gap { border: none; background: transparent; color: #9AA6C0; }
.blog-pagination a:hover, .blog-pagination span.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.blog-pagination span.disabled { opacity: .3; }

/* Vazio */
.blog-empty { text-align: center; padding: 70px 20px; background: var(--white); border: 1px dashed #C8D2E4; border-radius: 14px; }
.blog-empty i { font-size: 3rem; color: var(--sky); display: block; margin-bottom: .8rem; }
.blog-empty h1, .blog-empty h2 { font-weight: 800; font-size: 1.3rem; margin-bottom: .4rem; }
.blog-empty p { color: var(--gray); }
.blog-empty a { color: var(--blue); font-weight: 700; }

/* ── DETALHE ── */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 991px) { .detail-grid { grid-template-columns: 1fr; } }

.post-article { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.post-article .post-img { background: var(--navy); margin: 0; }
.post-article .post-img img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.post-body { padding: 2.2rem 2.4rem 2.4rem; }
@media (max-width: 620px) { .post-body { padding: 1.5rem 1.3rem; } }
.post-body h1 { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; margin-bottom: 1rem; color: var(--navy); }
.post-meta {
  display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; padding: .9rem 0 1.2rem; margin-bottom: 1.6rem;
  border-bottom: 2px solid #EDF1F7; color: var(--gray); font-size: .86rem;
}
.post-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.post-meta strong { color: var(--navy); }
.post-meta i { color: var(--sky); }
.post-content { font-size: 1rem; line-height: 1.85; color: var(--text); overflow-wrap: anywhere; }
.post-content p { margin-bottom: 1.1rem; }
.post-content h2, .post-content h3 { font-weight: 800; color: var(--navy); margin: 1.6rem 0 .7rem; line-height: 1.25; }
.post-content ul, .post-content ol { margin: 0 0 1.1rem 1.4rem; }
.post-content li { margin-bottom: .35rem; }
.post-content li::marker { color: var(--sky); }
.post-content a { color: var(--blue); font-weight: 600; }
.post-content strong { color: var(--navy); }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }
.post-content blockquote { border-left: 4px solid var(--green); background: var(--off); padding: .9rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }

.post-tags { background: var(--off); border-left: 4px solid var(--sky); border-radius: 12px; padding: 1.1rem 1.3rem; margin-top: 2rem; display: flex; gap: .8rem; align-items: flex-start; }
.post-tags > i { color: var(--sky); font-size: 1.1rem; margin-top: .25rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.tag-list a {
  display: inline-block; padding: .35rem .9rem; background: var(--white); color: var(--text); text-decoration: none;
  border-radius: 50px; font-size: .8rem; font-weight: 500; border: 1.5px solid var(--border); transition: all .2s;
}
.tag-list a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }
.tag-list a small { color: var(--gray); margin-left: .2rem; }
.tag-list a:hover small { color: #B8C2D6; }

.share-section { background: var(--off); padding: 1rem 1.3rem; border-radius: 12px; margin-top: 1.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.share-section .share-title { font-size: .88rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: .4rem; }
.share-buttons { display: flex; gap: .6rem; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  color: #fff; text-decoration: none; transition: transform .2s; font-size: 1.05rem; border: none; cursor: pointer;
}
.share-btn:hover { transform: translateY(-3px) scale(1.08); color: #fff; }
.share-btn.facebook { background: #3b5998; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.copy-link { background: var(--navy); color: var(--white); }
.share-note { font-size: .78rem; color: var(--gray); }

/* Leia também */
.related { margin-top: 3rem; }
.related > h2 { font-weight: 800; font-size: 1.35rem; color: var(--navy); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .7rem; }
.related > h2::before { content: ""; width: 6px; height: 1.3em; border-radius: 4px; background: linear-gradient(180deg, var(--sky), var(--green)); }
.related .blog-card .meta { border-top: 0; padding-top: 0; margin-top: auto; }
.related .blog-card h3 { margin-bottom: 1rem; }
.blog-clear { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.blog-clear:hover { color: var(--navy); }

/* Sidebar */
.sidebar { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 1.3rem; }
@media (max-width: 991px) { .sidebar { position: static; } }
.sidebar-widget { background: var(--white); border-radius: 14px; padding: 1.4rem; border: 1px solid var(--border); }
.widget-title { font-weight: 800; font-size: .98rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid #EDF1F7; position: relative; display: flex; align-items: center; gap: .5rem; color: var(--navy); }
.widget-title i { color: var(--sky); }
.widget-title::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 48px; height: 3px; background: var(--green); border-radius: 2px; }
.recent-post-item { display: flex; gap: .8rem; padding: .55rem; border-radius: 10px; text-decoration: none; transition: background .2s, transform .2s; }
.recent-post-item + .recent-post-item { margin-top: .3rem; }
.recent-post-item:hover { background: var(--off); transform: translateX(4px); }
.recent-post-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--navy); }
.recent-post-item h3 { font-size: .85rem; font-weight: 700; color: var(--navy); line-height: 1.38; margin-bottom: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-post-item time { font-size: .75rem; color: var(--gray); display: flex; align-items: center; gap: .3rem; }
.sidebar-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; border: none; position: relative; overflow: hidden; }
.sidebar-cta::after { content: ''; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; border: 12px solid var(--green); opacity: .25; }
.sidebar-cta .widget-title-cta { font-weight: 800; font-size: 1.05rem; margin-bottom: 1rem; position: relative; display: flex; align-items: center; gap: .5rem; }
.sidebar-cta .widget-title-cta i { color: var(--green); }
.sidebar-cta .widget-title-cta span { color: var(--green); }
.mais-lidos { list-style: none; position: relative; display: flex; flex-direction: column; gap: .2rem; }
.mais-lidos li { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.mais-lidos li:first-child { border-top: 0; }
.mais-lidos .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 900; font-size: .85rem; background: rgba(255,255,255,.12); color: var(--white); }
.mais-lidos li:first-child .n { background: var(--green); color: var(--navy2); }
.mais-lidos a { color: var(--white); text-decoration: none; font-size: .86rem; font-weight: 600; line-height: 1.4; transition: color .2s; }
.mais-lidos a:hover { color: var(--green); }
.mais-lidos small { display: block; margin-top: .2rem; font-size: .74rem; font-weight: 500; color: #A9B5D4; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: #C9D3EA; padding: 56px 0 0; border-top: 4px solid var(--sky); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr 1fr; gap: 2.2rem; padding-bottom: 2.4rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }
.site-footer p.desc { font-size: .86rem; color: #A9B5D4; line-height: 1.65; max-width: 340px; }
.site-footer h5 { font-weight: 800; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .65rem; font-size: .86rem; }
.site-footer ul li a { text-decoration: none; color: #C9D3EA; transition: color .2s; }
.site-footer ul li a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact li i { color: var(--sky); margin-top: .15rem; }
.footer-bottom { border-top: 1px solid #1C2E78; padding: 1.4rem 0; text-align: center; font-size: .76rem; color: #8C9AC4; }

.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 800; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem;
  box-shadow: 0 10px 28px rgba(9,26,97,.3); text-decoration: none; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }
