    /* 1. Base e Variáveis (Comum) */
    :root { --bg-color: #f8fafc; --card-bg: #ffffff; --text-main: #0f172a; --text-muted: #64748b; --primary: #2563eb; --primary-light: #eff6ff; --accent: #f59e0b; --border: #e2e8f0; --hover-bg: #f1f5f9; }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: system-ui, -apple-system, sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

    /* 2. Header e Footer (Comum) */
    header { background-color: var(--card-bg); border-bottom: 1px solid var(--border); padding: 1rem; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
    .header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
    .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--text-main); text-decoration: none; letter-spacing: -0.5px; }
    .logo svg { width: 30px; height: 30px; fill: var(--primary); }
    footer { background-color: var(--card-bg); border-top: 1px solid var(--border); padding: 2rem 1rem; text-align: center; margin-top: auto; font-size: 0.9rem; color: var(--text-muted); }

    /* 3. Layout Principal e Ads (Comum) */
    .page-wrapper { max-width: 1200px; width: 100%; margin: 2rem auto; padding: 0 1rem; display: flex; gap: 2rem; flex: 1; }
    main { flex: 1; min-width: 0; }
    aside { width: 300px; flex-shrink: 0; }
    .sticky-sidebar { position: sticky; top: 6rem; }
    .ad-placeholder { background-color: #f1f5f9; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 1.5rem; }
    .ad-top-main { min-height: 90px; width: 100%; }
    .ad-sidebar-vertical { min-height: 600px; width: 300px; }

    /* 4. Tipografia Base */
    h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; color: #0f172a; line-height: 1.2; }
    .subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

    /* -------------------------------------- */
    /* MÓDULOS ESPECÍFICOS DA HOME            */
    /* -------------------------------------- */

    /* Fatos Rápidos */
    .quick-facts { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
    .fact-item { display: flex; flex-direction: column; border-left: 3px solid var(--primary); padding-left: 1rem; }
    .fact-item:first-child { border-left: none; padding-left: 0; }
    .fact-label { font-size: 0.8rem; text-transform: uppercase; font-weight: 700; color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 0.25rem; }
    .fact-value { font-size: 1.15rem; font-weight: 800; color: var(--text-main); }

    /* Seletor Central (Home) */
    .search-hero { background: linear-gradient(145deg, #1e293b, #0f172a); color: #fff; border-radius: 16px; padding: 3rem 2rem; margin-bottom: 2.5rem; box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3); text-align: center; }
    .search-hero h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; color: #f8fafc; }
    .search-hero p { color: #94a3b8; margin-bottom: 2rem; font-size: 1.05rem; }
    .search-hero .search-form { display: flex; gap: 1rem; justify-content: center; align-items: stretch; flex-wrap: wrap; max-width: 600px; margin: 0 auto; }
    .search-hero select { flex: 1; min-width: 130px; padding: 1rem 1.25rem; border: 2px solid #334155; border-radius: 8px; font-size: 1.1rem; background: #fff; color: #0f172a; cursor: pointer; outline: none; font-weight: 600; transition: border-color 0.2s; }
    .search-hero select:focus { border-color: var(--accent); }
    .search-hero .btn-search { background: var(--primary); color: #fff; border: none; padding: 1rem 2.5rem; border-radius: 8px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: transform 0.1s, background 0.2s; white-space: nowrap; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
    .search-hero .btn-search:hover { background: #1d4ed8; transform: translateY(-2px); }
    .search-hero .btn-search:active { transform: translateY(0); }

    /* Siloing / Tabela de Eventos */
    .events-silo { margin-bottom: 2.5rem; background: var(--card-bg); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
    .events-silo h3 { padding: 1.5rem; background: var(--bg-color); border-bottom: 1px solid var(--border); font-size: 1.25rem; font-weight: 800; color: var(--text-main); }
    .event-table { width: 100%; border-collapse: collapse; }
    .event-table th, .event-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border); }
    .event-table th { font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 0.05em; }
    .event-table tr:hover td { background-color: var(--hover-bg); }
    .event-table tr:last-child td { border-bottom: none; }
    .event-table td strong { color: var(--text-main); font-weight: 700; }
    .event-table a { color: var(--primary); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
    .event-table a:hover { text-decoration: underline; color: #1d4ed8; }

    /* Conteúdo SEO (Home) */
    .seo-article { background: var(--card-bg); padding: 2.5rem; border-radius: 16px; border: 1px solid var(--border); }
    .seo-article h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 1rem; color: var(--text-main); }
    .seo-article h2:first-child { margin-top: 0; }
    .seo-article p { font-size: 1.05rem; color: #475569; margin-bottom: 1.25rem; }

    /* -------------------------------------- */
    /* MÓDULOS ESPECÍFICOS DO DETALHE         */
    /* -------------------------------------- */

    /* Hero Card */
    .hero-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05); margin-bottom: 2rem; }
    .hero-visual { background: linear-gradient(135deg, var(--primary-light), #ffffff); padding: 3rem 1rem; text-align: center; border-bottom: 1px solid var(--border); }
    .days-number { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; letter-spacing: -2px; }
    .days-label { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 0.5rem; }

    /* Texto SEO do Hero */
    .hero-seo-text { padding: 2rem; background: #fff; }
    .hero-seo-text p { font-size: 1.05rem; color: #334155; margin-bottom: 1rem; }
    .hero-seo-text p:last-child { margin-bottom: 0; }
    .hero-seo-text strong { color: #0f172a; font-weight: 700; background: var(--primary-light); padding: 0 4px; border-radius: 4px; }

    /* Grid de Métricas */
    .sub-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
    .metric-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
    .metric-box:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
    .metric-val { font-size: 2.25rem; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 0.5rem; }
    .metric-lbl { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

    /* Módulo de Busca Escuro (Detalhe) */
    .search-module { background: #1e293b; color: #fff; border-radius: 16px; padding: 2rem; margin-bottom: 2.5rem; box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2); }
    .search-module h2 { margin-bottom: 1.25rem; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 10px; color: #f8fafc; }
    .search-module .search-form { display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; }
    .search-module select { flex: 1; min-width: 140px; padding: 0.875rem 1rem; border: 1px solid #475569; border-radius: 8px; font-size: 1rem; background: #334155; color: #fff; cursor: pointer; outline: none; appearance: none; }
    .search-module select:focus { border-color: var(--accent); }
    .search-module .btn-search { background: var(--primary); color: #fff; border: none; padding: 0.875rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
    .search-module .btn-search:hover { background: #1d4ed8; }

    /* Links SEO (Detalhe) */
    .seo-links-section { margin-bottom: 2.5rem; background: var(--card-bg); padding: 2rem; border-radius: 16px; border: 1px solid var(--border); }
    .seo-links-section h3 { font-size: 1.15rem; margin-bottom: 1.25rem; color: var(--text-main); font-weight: 700; }
    .link-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .link-pill { background: #f8fafc; border: 1px solid #cbd5e1; color: #475569; padding: 0.6rem 1.25rem; border-radius: 99px; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: all 0.2s; }
    .link-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
    .link-pill-highlight { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

    /* -------------------------------------- */
    /* RESPONSIVIDADE (MEDIA QUERIES)         */
    /* -------------------------------------- */
    @media (max-width: 968px) {
        /* Comum */
        .page-wrapper { flex-direction: column; margin-top: 1rem; }
        aside { width: 100%; }
        .ad-sidebar-vertical { min-height: 250px; }
        .sticky-sidebar { position: static; }

        /* Home Responsivo */
        .quick-facts { gap: 1rem; }
        .fact-item { border-left: none; padding-left: 0; border-bottom: 1px solid var(--border); padding-bottom: 1rem; width: 100%; }
        .fact-item:last-child { border-bottom: none; padding-bottom: 0; }
        .search-hero .search-form { flex-direction: column; }
        .search-hero select, .search-hero .btn-search { width: 100%; }

        /* Detalhe Responsivo */
        .sub-metrics-grid { grid-template-columns: 1fr; gap: 1rem; }
        .days-number { font-size: 4.5rem; }
        .search-module .search-form { flex-direction: column; }
        .search-module select, .search-module .btn-search { width: 100%; }
    }
