/*
Theme Name: Casa Climatizada
Theme URI: https://casaclimatizada.com
Author: Casa Climatizada Team
Author URI: https://casaclimatizada.com
Description: Tema WordPress completo e interativo para CasaClimatizada.com. Paleta vibrante, modo escuro nativo, logo profissional em SVG, banner ticker de notícias, ícones vetoriais próprios, tempestade de neve em canvas, vento de ar-condicionado ao rolar a página com mini ventilador lateral, cursor padrão do sistema com rastro de geada refinado, calculadoras e ferramentas 100% funcionais, categorias pré-configuradas e cores editáveis via Personalizar. Otimizado para Google Discover.
Version: 4.0.7
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casaclimatizada
*/

/* --- PALETA DE CORES (modo claro) ---
   Azul-petróleo profundo + turquesa vibrante + coral quente de destaque.
   Editável em Aparência > Personalizar > Cores do Tema (sem precisar mexer no código). */
:root {
  --primary-color: #0A4B78;
  --primary-dark: #073656;
  --primary-light: #1670A8;
  --accent-color: #00C9B7;
  --accent-dark: #00A897;
  --accent-light: #4FE0D2;
  --highlight-color: #FF6B4A;
  --highlight-dark: #E8532F;

  --text-dark: #16202B;
  --text-muted: #56636F;
  --bg-light: #EAF3F5;
  --bg-card: #F8FCFC;
  --border-color: #C9DDE1;

  --shadow-color: 12, 75, 120;
  color-scheme: light;
}

/* --- PALETA DE CORES (modo escuro) --- */
[data-theme="dark"] {
  --primary-color: #2FA9E0;
  --primary-dark: #1670A8;
  --primary-light: #6BC6ED;
  --accent-color: #22E6D2;
  --accent-dark: #00C9B7;
  --accent-light: #7DF2E4;
  --highlight-color: #FF8264;
  --highlight-dark: #FF6B4A;

  --text-dark: #EAF1F5;
  --text-muted: #A6B4BF;
  --bg-light: #0B141C;
  --bg-card: #121D27;
  --border-color: #223038;

  --shadow-color: 0, 0, 0;
  color-scheme: dark;
}

[data-theme="dark"] .cc-cursor-spark { color: var(--accent-light); }
[data-theme="dark"] .article-thumbnail-placeholder { background: #1A2833; color: #4A5C68; }

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.35s ease, color 0.35s ease;
}

#page { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

a { color: var(--primary-color); text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover { color: var(--accent-color); }

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

ul, ol { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
html, body { max-width: 100%; overflow-x: clip; }
body { position: relative; }

/* ============================================================
   SISTEMA DE ÍCONES SVG (substitui os emojis por vetores nítidos
   e consistentes em qualquer aparelho/navegador — visual profissional)
   ============================================================ */
.cc-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.silo-icon .cc-icon { width: 26px; height: 26px; }
.category-block-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, rgba(10,75,120,0.10), rgba(0,201,183,0.14)); color: var(--primary-color); }
.category-block-icon .cc-icon { width: 17px; height: 17px; }
.cc-ferramentas-nav a { display: inline-flex; align-items: center; gap: 0.4rem; }
.cc-ferramentas-nav a .cc-icon { width: 15px; height: 15px; color: var(--primary-color); }
.cc-ferramentas-final-titulo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.cc-ferramentas-final-titulo .cc-icon { width: 1.15em; height: 1.15em; color: var(--accent-color); }
.theme-toggle .cc-icon { width: 19px; height: 19px; }

.screen-reader-text {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* --- HEADER --- */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.header-container { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; min-width: 0; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; min-width: 0; flex: 1 1 auto; }

.site-branding .site-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
.site-branding .site-title a { color: var(--primary-color); }
.site-branding .site-tagline { font-size: 0.8rem; color: var(--text-muted); }

/* --- SELO DE MARCA PADRÃO (discreto, usado enquanto nenhuma logo própria é enviada) --- */
.site-brand-mark { display: inline-flex; align-items: center; gap: 0.6rem; line-height: 1; }
.site-brand-mark-icon { width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(var(--shadow-color),0.25)); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.site-brand-mark-icon svg { width: 100%; height: 100%; display: block; }
.site-brand-mark:hover .site-brand-mark-icon { transform: rotate(-8deg) scale(1.06); }
.site-brand-mark-title { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-color); }
[data-theme="dark"] .site-brand-mark-title { color: var(--text-dark); }

.main-navigation { display: flex; align-items: center; justify-content: flex-end; min-width: 0; flex: 1 1 auto; }
.main-navigation ul { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; list-style: none; gap: 0.4rem 1rem; min-width: 0; }
.main-navigation ul ul { display: none; }
.main-navigation ul li { min-width: 0; }
.main-navigation ul a { display: block; color: var(--text-muted); font-weight: 600; font-size: clamp(0.72rem, 0.78vw, 0.9rem); line-height: 1.25; padding: 0.35rem 0; overflow-wrap: anywhere; }
.main-navigation ul a:hover,
.main-navigation ul .current-menu-item > a { color: var(--primary-color); }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary-color);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: var(--primary-color);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (min-width: 861px) and (max-width: 1180px) {
  .header-container { align-items: flex-start; }
  .header-actions { align-items: flex-start; flex-wrap: wrap; }
  .main-navigation ul { justify-content: flex-end; gap: 0.3rem 0.75rem; }
  .main-navigation ul a { font-size: 0.76rem; }
  .theme-toggle { margin-top: 0.15rem; }
}

/* --- HERO --- */
.hero-section { background-color: var(--primary-color); color: #ffffff; padding: 4.5rem 0; text-align: center; }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.15rem; margin-bottom: 2rem; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-cta {
  background: linear-gradient(135deg, var(--highlight-color), var(--highlight-dark)); color: #ffffff !important; font-weight: 700;
  padding: 0.85rem 2.25rem; border-radius: 0.5rem; font-size: 1rem; display: inline-block;
  box-shadow: 0 8px 20px -6px rgba(232,83,47,0.55); transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* --- SILO GRID --- */
.category-silos-section { padding: 3rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; text-align: center; margin-bottom: 2rem; position: relative; }
.section-title::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 4px; background-color: var(--accent-color); border-radius: 2px;
}
.silo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.silo-card-anchor { display: block; }
.silo-card {
  background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.75rem;
  padding: 1.5rem; text-align: center; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.35s;
  box-shadow: 0 1px 3px rgba(var(--shadow-color),0.06); height: 100%; position: relative; overflow: hidden;
}
.silo-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.silo-card:hover::before { transform: scaleX(1); }
.silo-card:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -8px rgba(var(--shadow-color),0.16); border-color: var(--accent-color); }
.silo-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, rgba(10,75,120,0.10), rgba(0,201,183,0.14));
  color: var(--primary-color);
  border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem auto; font-size: 1.55rem;
  transition: background 0.3s ease;
}
.silo-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.silo-card p { font-size: 0.85rem; color: var(--text-muted); }

/* --- ARTICLE GRID/CARDS --- */
.recent-articles-section { padding-bottom: 4rem; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.article-card {
  background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.75rem;
  overflow: hidden; box-shadow: 0 1px 3px rgba(var(--shadow-color),0.06);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.35s, border-color 0.35s; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -8px rgba(var(--shadow-color),0.18); border-color: var(--accent-color); }
.article-thumbnail { aspect-ratio: 16/9; background-color: #e5e7eb; overflow: hidden; position: relative; }
.article-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.article-card:hover .article-thumbnail img { transform: scale(1.05); }
.article-thumbnail-placeholder {
  width: 100%; height: 100%; background: #e2e8f0; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700; color: #94a3b8;
}
.article-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.3rem 0.8rem; border-radius: 9999px; text-transform: uppercase;
  box-shadow: 0 4px 10px -2px rgba(var(--shadow-color),0.35);
}
.article-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.article-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.article-card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
.article-card-title a { color: var(--text-dark); }
.article-card-title a:hover { color: var(--primary-color); }
.article-excerpt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; flex: 1; }
.read-more-link { font-weight: 600; font-size: 0.85rem; color: var(--accent-color); margin-top: auto; }

/* --- SINGLE ARTICLE --- */
.single-article-layout { padding: 3rem 0; }
.article-header { max-width: 800px; margin: 0 auto 2rem auto; }
.single-category-badge {
  display: inline-block; background-color: rgba(12,68,124,0.08); color: var(--primary-color); font-weight: 600;
  font-size: 0.8rem; padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem; text-transform: uppercase;
}
.single-category-badge a { color: inherit; }
.single-title { font-size: 2.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 1rem; }
.single-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.single-featured-image { max-width: 800px; margin: 0 auto 2rem auto; border-radius: 0.75rem; overflow: hidden; aspect-ratio: 16/9; }
.single-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.article-content { max-width: 700px; margin: 0 auto; font-size: 1.1rem; line-height: 1.7; }
.article-content > p:first-of-type {
  font-size: 1.25rem; font-weight: 500; color: var(--text-dark); border-left: 4px solid var(--accent-color);
  padding-left: 1.25rem; margin-bottom: 2rem; line-height: 1.6;
}
.article-content p { margin-bottom: 1.5rem; }
.article-content h2, .article-content h3 { font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content ul, .article-content ol { margin: 0 0 1.5rem 1.5rem; list-style: revert; }
.article-content img { border-radius: 0.5rem; margin: 1.5rem 0; }
.article-content blockquote {
  border-left: 4px solid var(--primary-color); padding-left: 1.25rem; margin: 1.5rem 0; font-style: italic; color: var(--text-muted);
}
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.article-content table th, .article-content table td { border: 1px solid var(--border-color); padding: 0.6rem 0.9rem; text-align: left; }
.article-content table th { background: var(--bg-light); }

.entry-footer-note {
  max-width: 700px; margin: 3rem auto 0 auto; border-top: 1px solid var(--border-color); padding-top: 2rem;
  font-size: 0.9rem; color: var(--text-muted); font-style: italic;
}

.post-tags { max-width: 700px; margin: 1.5rem auto 0 auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-tags a {
  font-size: 0.8rem; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 9999px;
  padding: 0.25rem 0.75rem; color: var(--text-muted);
}
.post-tags a:hover { color: var(--primary-color); border-color: var(--primary-color); }

/* --- ARCHIVE / CATEGORY / SEARCH HEADER --- */
.archive-header, .page-header {
  margin-bottom: 3rem; text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 2rem;
}
.archive-kicker {
  font-size: 0.85rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.page-title { font-size: 2.2rem; font-weight: 800; }
.archive-description { max-width: 600px; margin: 0.75rem auto 0 auto; color: var(--text-muted); font-size: 1rem; line-height: 1.5; }

.no-results { text-align: center; color: var(--text-muted); grid-column: 1/-1; padding: 2rem 0; }

.pagination { margin-top: 3rem; text-align: center; display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 0.375rem; font-size: 0.9rem;
}
.pagination .current { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* --- SEARCH FORM --- */
.search-form { display: flex; gap: 0.5rem; max-width: 500px; margin: 0 auto; }
.search-form input[type="search"] {
  flex: 1; padding: 0.65rem 1rem; border: 1px solid var(--border-color); border-radius: 0.375rem; font-size: 1rem;
}
.search-form button {
  background: var(--primary-color); color: #fff; border: none; padding: 0.65rem 1.25rem; border-radius: 0.375rem;
  font-weight: 600; cursor: pointer;
}
.search-form button:hover { background: var(--primary-dark); }

/* --- COMMENTS --- */
.comments-area { max-width: 700px; margin: 3rem auto 0 auto; }
.comments-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.comment-list { margin-bottom: 2rem; }
.comment-body { border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 1.25rem; margin-bottom: 1rem; background: var(--bg-card); }
.comment-author { font-weight: 700; font-size: 0.95rem; }
.comment-metadata { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.comment-reply-link {
  display: inline-block; margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--primary-color); padding: 0.2rem 0.7rem; border-radius: 9999px;
}
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border-color); border-radius: 0.375rem; margin-bottom: 1rem; font-family: inherit;
}
.comment-respond .form-submit input { background: var(--primary-color); color: #fff; border: none; padding: 0.65rem 1.5rem; border-radius: 0.375rem; font-weight: 600; cursor: pointer; }
.comment-respond .form-submit input:hover { background: var(--primary-dark); }

/* --- CALCULADORAS --- */
.cc-calc {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 1rem;
  padding: 1.75rem; max-width: 700px; margin: 2rem auto; box-shadow: 0 8px 24px -10px rgba(var(--shadow-color),0.18);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.cc-calc h3 { font-size: 1.3rem; margin-bottom: 0.35rem; color: var(--primary-color); }
.cc-calc .cc-calc-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.cc-field { margin-bottom: 1.1rem; }
.cc-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.cc-field select, .cc-field input[type="number"], .cc-field input[type="text"] {
  width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--border-color); border-radius: 0.5rem; font-size: 1rem; font-family: inherit;
  background-color: var(--bg-light); color: var(--text-dark); transition: background-color 0.35s ease, color 0.35s ease, border-color 0.2s;
}
.cc-field select:focus, .cc-field input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(0,201,183,0.18); }
.cc-field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.cc-checkbox { display: flex; align-items: center; gap: 0.5rem; }
.cc-checkbox input { width: auto; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cc-btn {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark)); color: #fff; border: none; padding: 0.85rem 1.5rem; border-radius: 0.5rem;
  font-weight: 700; font-size: 1rem; cursor: pointer; width: 100%; transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 18px -6px rgba(0,201,183,0.45);
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn:hover { filter: brightness(1.08); }
.cc-result {
  margin-top: 1.5rem; padding: 1.25rem; border-radius: 0.5rem; background: linear-gradient(135deg, rgba(10,75,120,0.08), rgba(0,201,183,0.10));
  border-left: 4px solid var(--accent-color); display: none;
}
.cc-result.is-visible { display: block; }
.cc-result-value { font-size: 1.7rem; font-weight: 800; color: var(--primary-color); }
.cc-result-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.cc-result-detail { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.cc-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; }

/* --- FOOTER --- */
.site-footer { background: linear-gradient(160deg, #0B1A26, #16202B); color: #fff; padding: 3rem 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-widget h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--accent-color); }
.footer-widget p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-widget ul li { margin-bottom: 0.5rem; }
.footer-widget ul li a { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.footer-widget ul li a:hover { color: var(--accent-color); }
.site-info {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between;
  color: rgba(255,255,255,0.5); font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 860px) {
  .site-header { padding: 0.75rem 0; }
  .header-container { align-items: center; }
  .header-actions { flex: 0 0 auto; gap: 0.5rem; }
  .main-navigation { flex: 0 0 auto; }
  .main-navigation { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 85vw);
    background: var(--bg-card); flex-direction: column; align-items: flex-start; padding: 5.5rem 1.5rem 2rem;
    transition: right 0.3s ease, background-color 0.35s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.08); z-index: 200; }
  .main-navigation.is-open { right: 0; }
  .main-navigation ul { flex-direction: column; gap: 0; width: 100%; }
  .main-navigation ul li { width: 100%; border-bottom: 1px solid var(--border-color); }
  .main-navigation ul a { display: block; padding: 0.85rem 0; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .cc-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.85rem; }
  .single-title { font-size: 1.85rem; }
  .site-info { flex-direction: column; text-align: center; }
}

/* ============================================================
   EFEITOS INTERATIVOS — TEMA CLIMATIZAÇÃO (neve, gelo, vento)
   ============================================================ */

/* --- HERO: spotlight que segue o mouse --- */
.hero-section {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,0.16), transparent 60%);
}
.hero-section .container { position: relative; z-index: 2; }
.hero-title, .hero-subtitle, .hero-cta { transition: transform 0.15s ease-out; }

/* ------------------------------------------------------------
   TEMPESTADE DE NEVE — canvas único cobrindo a tela inteira,
   renderizado em JS (assets/js/main.js » initSnowStorm).
   Fica fixo, atrás do conteúdo, e nunca bloqueia cliques.
   ------------------------------------------------------------ */
.cc-atmosphere-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.86;
  mix-blend-mode: normal;
}
.cc-atmosphere-canvas.is-fallback { opacity: 0.7; }
#page { position: relative; z-index: 2; }
.cc-snowstorm-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.48;
  mix-blend-mode: normal;
}
[data-theme="dark"] .cc-snowstorm-canvas { opacity: 0.72; }

/* ------------------------------------------------------------
   RASTRO DE CURSOR REFINADO — um halo de "geada" segue o mouse
   com leve atraso (lag), e pequenas fagulhas de gelo se soltam
   dele. A seta do sistema continua normal — isto é só um efeito
   visual extra que reage ao cenário do tema.
   ------------------------------------------------------------ */
.cc-cursor-aura {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  border: 1.5px solid rgba(var(--shadow-color), 0);
  background: radial-gradient(circle, rgba(0,201,183,0.22), rgba(10,75,120,0.05) 60%, transparent 75%);
  box-shadow: 0 0 18px 2px rgba(0,201,183,0.18);
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, opacity 0.3s ease, background 0.25s ease;
  will-change: transform;
  opacity: 0;
}
.cc-cursor-aura.is-active { opacity: 1; }
.cc-cursor-aura.is-hovering {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  background: radial-gradient(circle, rgba(255,107,74,0.28), rgba(0,201,183,0.08) 60%, transparent 75%);
  box-shadow: 0 0 26px 4px rgba(255,107,74,0.22);
}
.cc-cursor-spark {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9997;
  color: var(--accent-color);
  opacity: 0.85;
  will-change: transform, opacity;
  animation: cc-cursor-drift 1s cubic-bezier(0.25, 0.8, 0.4, 1) forwards;
}
@keyframes cc-cursor-drift {
  0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) translateY(-30px) scale(0.35) rotate(80deg); opacity: 0; }
}

/* ------------------------------------------------------------
   VENTO DE AR-CONDICIONADO AO ROLAR A PÁGINA — faixas sutis e
   translúcidas cruzam a tela horizontalmente quando o usuário
   rola, simulando uma rajada de ar frio (acionado em JS).
   ------------------------------------------------------------ */
.cc-wind-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cc-wind-layer.is-blowing { opacity: 1; }
.cc-wind-streak {
  position: absolute;
  left: -20%;
  width: 46%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(210,240,245,0.55), rgba(255,255,255,0.85), rgba(210,240,245,0.55), transparent);
  border-radius: 999px;
  filter: blur(0.3px);
  animation: cc-wind-blow linear forwards;
}
[data-theme="dark"] .cc-wind-streak { background: linear-gradient(90deg, transparent, rgba(47,169,224,0.5), rgba(125,242,228,0.85), rgba(47,169,224,0.5), transparent); }
@keyframes cc-wind-blow {
  from { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 0.7; }
  to   { transform: translateX(145vw); opacity: 0; }
}

/* ------------------------------------------------------------
   MINI VENTILADOR LATERAL — ícone fixo na lateral da tela,
   girando continuamente; acelera e solta rajadas de vento
   quando a página é rolada (classes alternadas via JS).
   ------------------------------------------------------------ */
.cc-mini-fan {
  position: fixed;
  right: 18px;
  bottom: 96px;
  width: 58px;
  height: 58px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--bg-card), var(--bg-light));
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 24px -8px rgba(var(--shadow-color), 0.35);
  pointer-events: none;
  opacity: 0.92;
}
.cc-mini-fan::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--shadow-color), 0.12);
}
.cc-mini-fan-blades {
  width: 68%;
  height: 68%;
  color: var(--primary-color);
  animation: cc-fan-spin 2.6s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}
.cc-mini-fan.is-fast .cc-mini-fan-blades { animation-duration: 0.5s; }
.cc-mini-fan-hub { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight-color); box-shadow: 0 0 0 3px var(--bg-card); }
@keyframes cc-fan-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .cc-mini-fan { width: 46px; height: 46px; right: 12px; bottom: 84px; }
}

/* --- TILT 3D + BRILHO DE GELO NOS CARDS --- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  will-change: transform;
}
.tilt-card.is-tilting { transition: none; }
.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--gx, 50%) var(--gy, 50%), rgba(12,68,124,0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.tilt-card:hover::after { opacity: 1; }
.tilt-card:hover { box-shadow: 0 16px 28px -8px rgba(12,68,124,0.18); }

/* Ícone do silo "ganha vida" no hover */
.silo-card .silo-icon { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.silo-card:hover .silo-icon { transform: rotate(-12deg) scale(1.18); }

/* --- SHINE SWEEP nos botões (efeito "reflexo de vidro/gelo") --- */
.hero-cta, .cc-btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.hero-cta::before, .cc-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.hero-cta:hover::before, .cc-btn:hover::before { left: 130%; }

/* Ripple de clique */
.cc-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: cc-ripple-anim 0.6s ease-out;
  pointer-events: none;
}
@keyframes cc-ripple-anim {
  to { transform: scale(3.2); opacity: 0; }
}

/* --- HEADER: vidro fosco ao rolar a página --- */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background-color: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 4px 16px rgba(12,68,124,0.08);
}
[data-theme="dark"] .site-header.is-scrolled {
  background-color: rgba(11,20,28,0.84);
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}

/* --- SCROLL REVEAL (entrada suave dos blocos) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESULTADO DA CALCULADORA: pulso de "confirmação gelada" --- */
.cc-result.is-visible { animation: cc-frost-pop 0.5s ease; }
@keyframes cc-frost-pop {
  0%   { box-shadow: 0 0 0 0 rgba(12,68,124,0.35); }
  70%  { box-shadow: 0 0 0 14px rgba(12,68,124,0); }
  100% { box-shadow: 0 0 0 0 rgba(12,68,124,0); }
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  .cc-cursor-spark, .hero-cta::before, .cc-btn::before { animation: none !important; display: none !important; }
  .cc-atmosphere-canvas, .cc-snowstorm-canvas, .cc-wind-layer, .cc-cursor-aura, .cc-mini-fan-blades { display: none !important; }
  .tilt-card { transition: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   MODO ESCURO — BOTÃO DE ALTERNÂNCIA
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-light);
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1.05rem;
  margin-left: 0;
  flex-shrink: 0;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.08); border-color: var(--accent-color); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

/* ============================================================
   TOQUES FINAIS DE POLIMENTO VISUAL
   ============================================================ */
.section-title { color: var(--text-dark); }
.section-title::after { background: linear-gradient(90deg, var(--accent-color), var(--highlight-color)); width: 64px; }

.single-category-badge {
  background: linear-gradient(135deg, rgba(10,75,120,0.10), rgba(0,201,183,0.14));
}

.archive-kicker { color: var(--highlight-dark); }
[data-theme="dark"] .archive-kicker { color: var(--highlight-color); }

.read-more-link { position: relative; }
.read-more-link::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--highlight-color); transition: width 0.25s ease;
}
.read-more-link:hover::after { width: 100%; }

.article-content > p:first-of-type {
  background: linear-gradient(135deg, rgba(0,201,183,0.06), transparent);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
}

::selection { background: var(--accent-color); color: #ffffff; }

/* Scrollbar temática (navegadores baseados em WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

/* ============================================================
   LOGO DO SITE (editável em Personalizar > Identidade do Site)
   ============================================================ */
.site-branding { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.site-logo,
.custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  height: 56px !important;
  max-height: 56px !important;
  overflow: hidden !important;
  line-height: 0 !important;
}
.site-logo img,
.custom-logo-link img,
.site-branding img.custom-logo,
img.custom-logo {
  max-height: 56px !important;
  height: 56px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.site-logo img:hover,
img.custom-logo:hover { transform: scale(1.06) rotate(-2deg); filter: brightness(1.05); }

/* ============================================================
   BANNER TICKER (notícias em destaque no topo)
   ============================================================ */
.cc-ticker {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
  color: #ffffff;
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  z-index: 150;
}
.cc-ticker-label {
  flex-shrink: 0;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
  background: rgba(0,0,0,0.08);
}
.cc-ticker-viewport { flex: 1; overflow: hidden; }
.cc-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 0.55rem 0;
  animation: cc-ticker-scroll 32s linear infinite;
  will-change: transform;
}
.cc-ticker-viewport:hover .cc-ticker-track,
.cc-ticker-track:focus-within { animation-play-state: paused; }
.cc-ticker-item {
  color: #ffffff;
  opacity: 0.92;
  margin-right: 0.75rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.cc-ticker-item:hover { opacity: 1; text-decoration: underline; }
.cc-ticker-sep { margin-right: 2.5rem; opacity: 0.45; }

@keyframes cc-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cc-ticker-track { animation: none; overflow-x: auto; }
}

@media (max-width: 768px) {
  .cc-ticker-label { display: none; }
}

/* ============================================================
   CURSOR — seta padrão do sistema em todo o site.
   (O tema NÃO substitui o ícone do cursor; o efeito de "geada" que
   acompanha o mouse é feito por um rastro discreto renderizado em
   canvas, sem esconder ou trocar a seta nativa — veja cc-cursor-aura
   e o efeito de neve em main.js)
   ============================================================ */
a, button, .cc-btn, .hero-cta, .menu-toggle, .theme-toggle,
.silo-card-anchor, .read-more-link, .cc-ticker-item, .comment-reply-link, [role="button"] {
  cursor: pointer;
}
input, select, textarea {
  cursor: auto;
}

/* ============================================================
   HOME — HERO EM DESTAQUE + LISTA LATERAL
   ============================================================ */
.hero-featured-section { padding: 2rem 0 3rem; }
.hero-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}
.hero-featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px -10px rgba(var(--shadow-color), 0.18);
}
.hero-featured-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, var(--primary-dark), #101820);
  overflow: hidden;
}
.hero-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-featured-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--highlight-color); color: #fff;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 0.35rem 0.9rem; border-radius: 9999px;
  box-shadow: 0 4px 10px -2px rgba(232,83,47,0.5);
}
.hero-featured-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.hero-featured-title { font-size: 1.6rem; font-weight: 800; line-height: 1.25; }

.hero-sidebar-list { display: flex; flex-direction: column; gap: 1rem; }
.mini-card {
  display: flex; gap: 0.9rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.75rem;
  padding: 0.75rem; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mini-card:hover { transform: translateX(-2px); box-shadow: 0 8px 16px -6px rgba(var(--shadow-color),0.15); border-color: var(--accent-color); }
.mini-card-thumb { flex-shrink: 0; width: 74px; height: 74px; border-radius: 0.6rem; overflow: hidden; }
.mini-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-card-thumb .article-thumbnail-placeholder { font-size: 0.65rem; }
.mini-card-cat { font-size: 0.68rem; font-weight: 700; color: var(--accent-dark); letter-spacing: 0.04em; margin-bottom: 0.2rem; }
[data-theme="dark"] .mini-card-cat { color: var(--accent-color); }
.mini-card-title { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.mini-card-title a { color: var(--text-dark); }
.mini-card-title a:hover { color: var(--primary-color); }

/* ============================================================
   HOME — CENTRAL DE FERRAMENTAS
   ============================================================ */
.home-tools-section {
  position: relative;
  isolation: isolate;
  padding: 3.25rem 0 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 15%, rgba(0,201,183,0.12), transparent 28rem),
    radial-gradient(circle at 92% 85%, rgba(255,107,74,0.10), transparent 25rem);
}
.home-tools-section::before {
  content: "";
  position: absolute;
  inset: 1.25rem 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.55;
}
.home-tools-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.home-tools-kicker {
  display: inline-block;
  color: var(--highlight-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.home-tools-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 0.55rem;
}
.home-tools-heading p { color: var(--text-muted); max-width: 620px; }
.home-tools-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding: 0.72rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  background: var(--bg-card);
  box-shadow: 0 8px 18px -12px rgba(var(--shadow-color), 0.45);
}
.home-tools-all-link span { transition: transform 0.2s ease; }
.home-tools-all-link:hover span { transform: translateX(4px); }
.home-tools-quick-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.home-tools-quick-nav a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 0.75rem;
  color: var(--text-dark);
  background: color-mix(in srgb, var(--bg-card) 92%, var(--accent-color));
  border: 1px solid var(--border-color);
  border-radius: 0.9rem;
  box-shadow: 0 8px 18px -14px rgba(var(--shadow-color), 0.65);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.home-tools-quick-nav a:hover,
.home-tools-quick-nav a:focus-visible {
  color: var(--text-dark);
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 14px 22px -14px rgba(var(--shadow-color), 0.8);
  background: var(--bg-card);
}
.home-tool-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(10,75,120,0.12), rgba(0,201,183,0.2));
  border-radius: 0.7rem;
}
.home-tool-icon .cc-icon { width: 1.2rem; height: 1.2rem; }
.home-tools-quick-nav strong,
.home-tools-quick-nav small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-tools-quick-nav strong { font-size: 0.78rem; }
.home-tools-quick-nav small { color: var(--text-muted); font-size: 0.68rem; margin-top: 0.1rem; }
.home-tools-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.home-tool-item {
  min-width: 0;
  scroll-margin-top: 6rem;
}
.home-tool-item .cc-calc {
  max-width: none;
  height: 100%;
  margin: 0;
}
.home-tool-item:nth-child(3),
.home-tool-item:nth-child(4),
.home-tool-item:nth-child(5),
.home-tool-item:nth-child(6) { grid-column: span 1; }
.home-tool-item .cc-comparador-cols { grid-template-columns: 1fr; }
.home-tool-item .cc-comparador-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.home-tool-item .cc-comparador-col .cc-comparador-nome { grid-column: 1 / -1; }
.home-tool-item .cc-comparador-col label { min-width: 0; }

@media (max-width: 1080px) {
  .home-tools-quick-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .hero-featured-section { padding-top: 1.25rem; }
  .hero-featured-grid { gap: 1rem; }
  .hero-featured-title { font-size: 1.35rem; }
  .home-tools-section { padding: 2.4rem 0 2.6rem; }
  .home-tools-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .home-tools-heading h2 { font-size: 1.7rem; }
  .home-tools-all-link { align-self: flex-start; }
  .home-tools-quick-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .home-tools-quick-nav a { padding: 0.75rem 0.6rem; }
  .home-tools-list { grid-template-columns: 1fr; }
  .home-tool-item .cc-comparador-col { grid-template-columns: 1fr; }
  .home-tool-item .cc-comparador-col .cc-comparador-nome { grid-column: auto; }
  .cc-calc { padding: 1.2rem; border-radius: 0.85rem; }
  .cc-calc h3 { font-size: 1.15rem; }
  .cc-btn { width: 100%; }
  .cc-diag-opcoes .cc-btn { width: auto; }
}

@media (max-width: 420px) {
  .home-tools-quick-nav a { align-items: flex-start; }
  .home-tool-icon { flex-basis: 1.9rem; width: 1.9rem; height: 1.9rem; }
  .home-tools-quick-nav strong { font-size: 0.72rem; }
  .home-tools-quick-nav small { font-size: 0.62rem; }
  .mini-card-thumb { width: 62px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-tools-quick-nav a,
  .home-tools-all-link span { transition: none !important; }
  .home-tools-quick-nav a:hover,
  .home-tools-quick-nav a:focus-visible { transform: none; }
}

/* ============================================================
   HOME — BLOCOS DE CATEGORIA
   ============================================================ */
.category-block-section { padding: 1.75rem 0; }
.category-block-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.category-block-title { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 0.6rem; }
.category-block-vertudo { font-weight: 700; font-size: 0.9rem; color: var(--primary-color); }
.category-block-vertudo:hover { color: var(--accent-color); }
.category-block-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ============================================================
   HOME — BANNER DE NEWSLETTER
   ============================================================ */
.newsletter-cta-section { padding: 2rem 0 4rem; }
.newsletter-cta-grid {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color) 60%, var(--primary-light));
  border-radius: 1.25rem;
  color: #fff;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 16px 32px -12px rgba(var(--shadow-color), 0.35);
}
.newsletter-cta-copy h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.6rem; }
.newsletter-cta-copy p { opacity: 0.9; margin-bottom: 1.25rem; max-width: 480px; }
.newsletter-cta-form { display: flex; gap: 0.6rem; max-width: 420px; flex-wrap: wrap; }
.newsletter-cta-form input {
  flex: 1; min-width: 200px; padding: 0.75rem 1rem; border-radius: 0.5rem; border: none; font-size: 0.95rem;
}
.newsletter-cta-stats { display: flex; justify-content: space-around; gap: 1rem; text-align: center; }
.newsletter-stat-num { font-size: 1.7rem; font-weight: 800; }
.newsletter-stat-label { font-size: 0.72rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }

@media (max-width: 900px) {
  .hero-featured-grid { grid-template-columns: 1fr; }
  .newsletter-cta-grid { grid-template-columns: 1fr; text-align: center; }
  .newsletter-cta-form { justify-content: center; }
  .newsletter-cta-stats { justify-content: center; }
}

/* ============================================================
   ARTIGO — LAYOUT COM SIDEBAR
   ============================================================ */
.single-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.single-main-column .article-header,
.single-main-column .single-featured-image,
.single-main-column .article-content,
.single-main-column .post-tags,
.single-main-column .entry-footer-note,
.single-main-column .comments-area { max-width: none; }
.single-main-column .cc-toc { max-width: none; }

@media (max-width: 960px) {
  .single-with-sidebar { grid-template-columns: 1fr; }
  .single-sidebar-column { order: 2; }
}

/* ============================================================
   SUMÁRIO AUTOMÁTICO ("Neste artigo")
   ============================================================ */
.cc-toc {
  background: linear-gradient(135deg, rgba(10,75,120,0.07), rgba(0,201,183,0.09));
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 0 auto 2rem auto;
}
.cc-toc-title { font-weight: 800; font-size: 1rem; margin-bottom: 0.75rem; color: var(--primary-color); display: flex; align-items: center; gap: 0.4rem; }
.cc-toc-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cc-toc-list a { font-size: 0.92rem; color: var(--text-dark); font-weight: 500; }
.cc-toc-list a:hover { color: var(--accent-color); }
.cc-toc-nivel-3 { margin-left: 1.25rem; }
.cc-toc-nivel-3 a { font-size: 0.87rem; color: var(--text-muted); }

/* ============================================================
   CARDS DE BENEFÍCIO ([beneficios])
   ============================================================ */
.cc-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.cc-beneficio-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.75rem;
  padding: 1.5rem; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cc-beneficio-card:hover { transform: translateY(-3px); box-shadow: 0 12px 20px -8px rgba(var(--shadow-color),0.16); }
.cc-beneficio-icone { font-size: 1.8rem; margin-bottom: 0.6rem; }
.cc-beneficio-titulo { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--primary-color); }
.cc-beneficio-texto { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   CARD DE PRODUTO/REVIEW ([produto_review])
   ============================================================ */
.cc-produto-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 20px -10px rgba(var(--shadow-color), 0.18);
}
.cc-produto-imagem { border-radius: 0.6rem; overflow: hidden; aspect-ratio: 1/1; background: var(--bg-light); }
.cc-produto-imagem img { width: 100%; height: 100%; object-fit: contain; }
.cc-produto-nome { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.cc-produto-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.cc-produto-avaliacao { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.cc-estrelas { color: #F5A623; letter-spacing: 1px; font-size: 1.05rem; }
.cc-produto-nota { font-weight: 700; font-size: 0.9rem; }
.cc-produto-avaliacoes { font-size: 0.8rem; color: var(--text-muted); }
.cc-produto-rodape { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.cc-produto-preco { font-size: 1.3rem; font-weight: 800; color: var(--primary-color); }
.cc-produto-botao {
  background: linear-gradient(135deg, var(--highlight-color), var(--highlight-dark)) !important;
  color: #fff !important; padding: 0.7rem 1.5rem !important; border-radius: 0.5rem;
  font-weight: 700; width: auto !important; display: inline-block;
  box-shadow: 0 8px 18px -6px rgba(232,83,47,0.5);
}

@media (max-width: 560px) {
  .cc-produto-card { grid-template-columns: 1fr; }
}

/* ============================================================
   SIDEBAR DE ARTIGO (busca, newsletter, populares, ofertas)
   ============================================================ */
.cc-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 90px; }
.cc-sidebar-widget {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.75rem;
  padding: 1.25rem; transition: background-color 0.35s ease, border-color 0.35s ease;
}
.cc-sidebar-widget h4 { font-size: 1rem; font-weight: 800; margin-bottom: 0.6rem; }
.cc-sidebar-search .search-form { max-width: none; }

.cc-sidebar-newsletter {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff; border: none;
}
.cc-sidebar-newsletter p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 1rem; }
.cc-sidebar-newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.cc-sidebar-newsletter-form input { padding: 0.6rem 0.8rem; border-radius: 0.4rem; border: none; font-size: 0.9rem; }

.cc-populares-list { display: flex; flex-direction: column; gap: 0.9rem; }
.cc-populares-list li { display: flex; gap: 0.75rem; align-items: center; }
.cc-populares-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: 0.5rem; overflow: hidden; }
.cc-populares-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-populares-title { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.cc-populares-title:hover { color: var(--primary-color); }

.cc-sidebar-ofertas {
  background: linear-gradient(160deg, #0B1A26, #16202B); color: #fff; border: none; text-align: center;
}
.cc-sidebar-ofertas p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 1rem; }
.cc-btn-ofertas {
  display: block; text-align: center; background: linear-gradient(135deg, var(--highlight-color), var(--highlight-dark)) !important;
}

/* ============================================================
   RESULTADOS EM GRID (usado em várias calculadoras)
   ============================================================ */
.cc-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.cc-result-item {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.6rem;
  padding: 0.9rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.cc-result-item-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.cc-result-item-value { font-size: 1.05rem; font-weight: 800; color: var(--primary-color); }

/* Comparativo Inverter x Convencional */
.cc-comparativo { margin-top: 1.5rem; border-top: 1px dashed var(--border-color); padding-top: 1.25rem; }
.cc-comparativo-titulo { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.75rem; }
.cc-comparativo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cc-comparativo-item {
  text-align: center; padding: 1rem; border-radius: 0.6rem; background: var(--bg-card); border: 1px solid var(--border-color);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.cc-comparativo-item-destaque { border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(0,201,183,0.15); }
.cc-comparativo-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.03em; }
.cc-comparativo-item-destaque .cc-comparativo-tag { color: var(--accent-dark); }
.cc-comparativo-valor { font-size: 1.25rem; font-weight: 800; }
.cc-comparativo-sub { font-size: 0.72rem; color: var(--text-muted); }
.cc-comparativo-economia { text-align: center; margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--accent-dark); }
[data-theme="dark"] .cc-comparativo-economia { color: var(--accent-color); }

/* ============================================================
   COMPARADOR DE APARELHOS
   ============================================================ */
.cc-comparador-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.cc-comparador-col {
  background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 0.6rem;
  padding: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.cc-comparador-col label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.2rem; }
.cc-comparador-col input { padding: 0.45rem 0.6rem; border: 1px solid var(--border-color); border-radius: 0.375rem; font-size: 0.85rem; background: var(--bg-card); color: var(--text-dark); }
.cc-comparador-nome { font-weight: 700 !important; font-size: 0.9rem !important; }

.cc-comparador-tabela-wrap { overflow-x: auto; }
.cc-comparador-tabela { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cc-comparador-tabela th, .cc-comparador-tabela td { padding: 0.6rem 0.9rem; border: 1px solid var(--border-color); text-align: center; }
.cc-comparador-tabela th { background: var(--bg-light); font-weight: 700; }
.cc-comparador-tabela td:first-child, .cc-comparador-tabela th:first-child { text-align: left; font-weight: 600; }
.cc-comparador-tabela td.cc-melhor { background: rgba(0,201,183,0.14); color: var(--accent-dark); font-weight: 800; }
[data-theme="dark"] .cc-comparador-tabela td.cc-melhor { color: var(--accent-color); }

@media (max-width: 720px) {
  .cc-comparador-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   DIAGNÓSTICO DE DEFEITOS
   ============================================================ */
.cc-diagnostico-passo { min-height: 60px; }
.cc-diag-pergunta { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.cc-diag-opcoes { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cc-diag-opcoes .cc-btn { width: auto; padding: 0.65rem 1.75rem; }
.cc-diag-resultado { background: linear-gradient(135deg, rgba(10,75,120,0.08), rgba(0,201,183,0.10)); border-left: 4px solid var(--accent-color); border-radius: 0.5rem; padding: 1.25rem; }
.cc-diag-causas-lista { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.cc-diag-causas-lista li { padding-left: 1.5rem; position: relative; font-size: 0.92rem; }
.cc-diag-causas-lista li::before { content: '❄'; position: absolute; left: 0; color: var(--accent-color); }
.cc-diagnostico-reiniciar { margin-top: 1.25rem; }

/* ============================================================
   BLOCO DE FERRAMENTAS AO FIM DO ARTIGO
   ============================================================ */
.cc-ferramentas-final-artigo {
  margin-top: 3rem; padding-top: 2.5rem; border-top: 2px dashed var(--border-color);
}
.cc-ferramentas-final-titulo { font-size: 1.4rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; }

/* ============================================================
   PÁGINA DE FERRAMENTAS (page-ferramentas.php)
   ============================================================ */
.cc-ferramentas-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 2.5rem;
}
.cc-ferramentas-nav a {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 9999px;
  padding: 0.55rem 1.25rem; font-weight: 600; font-size: 0.88rem; transition: all 0.2s ease;
}
.cc-ferramentas-nav a:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.cc-ferramenta-secao { scroll-margin-top: 90px; padding: 1.5rem 0; }
.cc-ferramenta-secao:not(:last-child) { border-bottom: 1px dashed var(--border-color); }

/* ============================================================
   HOME — SEÇÃO DE CTAs DAS FERRAMENTAS
   ============================================================ */
.ferramentas-cta-section { padding: 1rem 0 1rem; }
.ferramentas-cta-subtitulo { text-align: center; color: var(--text-muted); max-width: 600px; margin: -1rem auto 2rem auto; }
.ferramentas-cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.ferramenta-cta-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.85rem;
  padding: 1.5rem; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ferramenta-cta-card:hover { transform: translateY(-4px); box-shadow: 0 14px 24px -8px rgba(var(--shadow-color),0.16); border-color: var(--accent-color); }
.ferramenta-cta-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-dark); }
.ferramenta-cta-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.9rem; }
.ferramenta-cta-link { font-weight: 700; font-size: 0.85rem; color: var(--accent-dark); }
[data-theme="dark"] .ferramenta-cta-link { color: var(--accent-color); }
