﻿/* ==========================================================================
   SUNERGIA - MOBILE POLISH (camada compartilhada)
   --------------------------------------------------------------------------
   Escopo: SOMENTE viewport < 768px. O desktop aprovado nao e alterado.
   Carregado por ultimo (BaseLayout + paginas standalone) com seletores
   de especificidade controlada. !important apenas onde ha utilitario
   Bootstrap com !important (ex.: .my-5).
   Principios: centralizar titulos/elementos de composicao, manter textos
   longos a esquerda, areas de toque >= 36-44px, tokens de ritmo vertical.
   ========================================================================== */

:root {
  --m-space-section: clamp(2rem, 8vw, 3rem);
  --m-space-block: clamp(1rem, 4vw, 1.5rem);
  --m-tap: 44px;
  --m-tap-flag: 36px;
}

@media (max-width: 767.98px) {

  /* ---------- 1. Cabecalho: seletor de idiomas e logo com area de toque confortavel ---------- */
  #header #navbar-idiomas a.lang-flag-link {
    min-width: var(--m-tap-flag);
    min-height: var(--m-tap-flag);
    padding: 0;
    justify-content: center;
    border-radius: 6px;
  }
  #header .header-logo > a {
    display: inline-flex;
    align-items: center;
    min-height: var(--m-tap);
  }

  /* ---------- 2. Rodape global: alvos de toque e legibilidade ---------- */
  #footer .footer-col-list a,
  #footer .footer-legal a,
  #footer .footer-contact-pill a {
    display: inline-flex;
    align-items: center;
    min-height: var(--m-tap);
  }
  /* Redes sociais: o componente fixa 34px com !important; no mobile usamos 44px e quebramos linha se preciso */
  #footer .footer-social-items {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }
  #footer .footer-social-items .social-btn {
    width: var(--m-tap) !important;
    height: var(--m-tap) !important;
  }

  /* ---------- 3. Home: alinhamento e ritmo vertical (o desktop alinha a direita) ---------- */
  body.home #home .servicos-secao-conteudo,
  body.home #home #institucional .servicos-secao-conteudo {
    text-align: left;
    align-items: stretch;
  }
  body.home #home #institucional .servicos-secao-conteudo {
    padding: 1.75rem 1.25rem;
  }
  body.home #home .servicos-secao-conteudo h2 { text-align: center; }
  body.home #home .servicos-secao-conteudo .btn { align-self: center; }

  body.home #sobre-sunergia .section-main-title { display: block; width: 100%; text-align: center; }
  /* .my-5 (Bootstrap) usa !important: unico caso em que precisamos igualar */
  body.home #sobre-sunergia .row > .my-5 {
    margin-top: var(--m-space-block) !important;
    margin-bottom: var(--m-space-block) !important;
  }

  /* Home - "Da Alemanha para o Brasil": o conteudo vem com style="text-align:right" inline (desktop);
     !important e o unico meio de sobrepor estilo inline sem alterar o HTML aprovado. */
  body.home #mapa-aesolar .interno-mapa-aesolar :is(h2, h3) { text-align: center; }
  body.home #mapa-aesolar .interno-mapa-aesolar p { text-align: left !important; }
  body.home #mapa-aesolar .interno-mapa-aesolar .btn {
    display: block;
    width: fit-content;
    margin-inline: auto;
  }
  /* Home - "Para quem ja fizemos a diferenca": titulo centralizado, paragrafo longo (inline center) a esquerda */
  body.home #parceiros .text-center > p { text-align: left !important; }

  /* ---------- 4. Tipografia: piso de legibilidade para rotulos < 12px e textos corridos pequenos ---------- */
  body .pf-com-card-segment, body .timeline-tag-float, body .gz-chip-item, body .hib-app-tag,
  body .resource-tag-pill, body .pillar-chip, body .pf-com-section-eyebrow, body .om-cluster-img-badge,
  body .pf-res-badge-pill, body .se-compliance-footer-tag, body .file-name-sutil,
  body .wpcf7-list-item-label, body .bess-iso-hint-text, body .mt-service-img-badge,
  body .fp-detail-badge, body .fp-detail-card-label, body .gz-dual-col-badge,
  body .resource-img-badge, body .solution-badge {
    font-size: 0.75rem; /* 12px */
  }
  body .card-body p.text-muted.small,
  body .card-body .card-text.text-muted { font-size: 0.875rem; }
  body .privacy-note-sutil, body .privacy-notice, body .trust-box-text,
  body .ind-form-privacy { font-size: 0.8125rem; line-height: 1.5; }

  /* textos corridos longos nunca centralizados nem justificados no mobile */
  body main p.section-lead-desc,
  body main p.se-section-intro,
  body main .kit-header-center > p,
  body main .leasing-banner > p { text-align: left; }

  /* ---------- 4b. Botao "voltar ao topo": removido no mobile (sobrepunha o icone flutuante do WhatsApp) ----------
     O botao tem display:inline-flex inline no Header.astro e e exibido por JS (.show); !important e necessario. */
  #header .btn-up,
  #header .btn-up.show {
    display: none !important;
  }
  /* ---------- 5. Alvos de toque: CTAs em texto e controles de formulario (WCAG 2.5.8 / meta 44px) ---------- */
  body .ap-demand-cta, body .mt-demand-cta, body .er-demand-cta, body .fp-demand-link,
  body .om-demand-cta, body .ind-service-link, body .timeline-card-link,
  body .btn-read-more, body .bess-dor-toggle {
    display: inline-flex;
    align-items: center;
    min-height: var(--m-tap);
  }
  body input[type="checkbox"], body input[type="radio"] {
    min-width: 24px;
    min-height: 24px;
  }
}

/* ==========================================================================
   Landing pages React standalone (#root): o Bootstrap injetado depois do CSS da
   aplicacao redefine `.nav { display:flex }` e anula o `@media (width<=900px){.nav{display:none}}`
   do proprio app, empilhando o menu e inflando o cabecalho (209px) no mobile.
   Restauramos a intencao original do app com seletor mais especifico.
   ========================================================================== */
@media (max-width: 900px) {
  #root .header-content > nav.nav { display: none; }
}
/* Movimento reduzido: respeita a preferencia do sistema */
@media (prefers-reduced-motion: reduce) {
  .slick-slider, .slick-track, .whatsapp-float-btn, .homeslide * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Acordeao do rodape (<992px): o indicador usa `font-family: "Font Awesome 6 Free"` em ::after, mas o reset global
   `*, ::before, ::after { font-family: Montserrat !important }` anula a fonte de icones e aparece um quadrado
   vazio (glifo ausente). Substituimos por um chevron desenhado em CSS, sem dependencia de fonte.
   ========================================================================== */
@media (max-width: 991.98px) {
  #footer .footer-coluna h3::after {
    content: "" !important;
    flex: 0 0 auto;
    align-self: center;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.15rem;
    border-right: 2px solid #002244;
    border-bottom: 2px solid #002244;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 300ms;
  }
  #footer .footer-coluna h3.ul_open::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }
}

@media (max-width: 767.98px) {
  /* Icones das redes sociais: 15px a 65% de opacidade davam ~2.6:1 de contraste (abaixo de 3:1, WCAG 1.4.11) */
  #footer .footer-social-items .social-btn img {
    width: 20px !important;
    height: 20px !important;
    opacity: 1 !important;
  }

  /* Landing page de Usina Industrial: cards de 2 colunas quebravam "Implementa-cao" no meio da palavra */
  /* responsive-sunergia.css define `html body main h3:not(.h5):not(.h6)` (0,2,4): precisamos de especificidade maior */
  html body main .timeline-steps .timeline-step h3.step-title,
  html body main .service-card h3.service-title[class] {
    font-size: clamp(0.875rem, 4.3vw, 1.125rem);
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* ==========================================================================
   Grid blowout (<768px): `grid-template-columns: 1fr` equivale a minmax(auto, 1fr): a coluna cresce ate o
   min-content dos filhos (um <input> tem ~470px) e o conteudo estoura a largura da tela, ficando CORTADO
   pelo `overflow-x:hidden` do <main> (campos de formulario e paineis ilegiveis). Forcamos minmax(0, 1fr)
   e permitimos que os filhos encolham.
   ========================================================================== */
@media (max-width: 767.98px) {
  html body main [class*="form-grid"],
  html body main .rf-step-content.active {
    grid-template-columns: minmax(0, 1fr);
  }
  html body main [class*="form-grid"] > *,
  html body main .rf-step-content.active > * {
    min-width: 0;
  }
  html body main [class*="form-group"] :is(input, select, textarea) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   Itens de grid/flex encolhiveis (<768px): sem `min-width:0`, filhos de grid `1fr` e de linhas flex nao encolhem
   abaixo do conteudo e estouram a tela, ficando cortados pelo overflow-x:hidden (auditoria de conteudo cortado).
   ========================================================================== */
@media (max-width: 767.98px) {
  html body main :is(.grid, [class*="-grid"], [class*="grid-"], .form-row, .case-stats-row) > * {
    min-width: 0;
  }
  html body main .timeline-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body main :is(.contact-form-container, .calc-form-container, .calc-results-container, .benefit-card) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  html body main .form-row { flex-wrap: wrap; }
  html body main .form-row > * { flex: 1 1 100%; }
}

/* Landing pages React: CTA do cabecalho cortado em 320px (logo + botao nao cabem na mesma linha) */
@media (max-width: 380px) {
  html body #root .header-content { gap: 8px; }
  html body #root .header .btn-nav {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding: 8px 12px;
    font-size: 0.78rem;
    max-width: 150px;
  }
}
/* =====================================================================
   Legibilidade mobile (contraste WCAG AA) e cabecalhos das landing pages
   Somente <768px; desktop inalterado.
   Laranja da marca (#EC9220/#F39200) sobre fundo claro = ~2,3:1 -> usar #B05500 (>=4,7:1)
   Texto branco sobre botao laranja = 2,4:1 -> texto azul-marinho (#0B1F3A, ~7:1)
   ===================================================================== */
@media (max-width: 767.98px) {
  /* texto laranja sobre fundo claro */
  main .page-titulo span,
  main .highlight-orange,
  main .highlight-orange strong,
  main .service-card-action,
  main .channel-action,
  html body .ind-service-link,
  html body .ind-process-step-badge,
  main .rf-step-num {
    color: #B05500 !important;
  }
  /* botoes laranja: texto escuro */
  main .btn-banner,
  main .rf-btn-primary,
  main .rf-btn-primary span {
    color: #0B1F3A !important;
  }

  /* LP residencial (Tailwind): nav desktop reaparecia (bootstrap/tema vencia .hidden) e empilhava sobre o cabecalho */
  html body #root .header-content > nav.hidden { display: none !important; }
  /* LP calculadora: nav do cabecalho nao cabe no mobile */
  html body .header .header-inner > nav.nav { display: none !important; }

  /* cards de beneficio sobre foto (LP residencial): texto claro e destaque legivel */
  html body #root .benefit-card:has(> .absolute) h3,
  html body #root .benefit-card:has(> .absolute) p { color: #FFFFFF !important; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
  html body #root .benefit-card:has(> .absolute) p .text-primary,
  html body #root .benefit-card:has(> .absolute) p strong { color: #FFD08A !important; }

  /* calculadora: valores da barra de confianca estavam azul-escuro sobre azul-escuro */
  html body .trust-value { color: #FFFFFF !important; }
  html body .trust-label { color: #CBD5E1 !important; }
}
@media (max-width: 767.98px) {
  /* LPs standalone (industrias): acentos laranja sobre fundo claro e botao amarelo */
  html body .ind-section-title .sun,
  html body section:not([class*="hero"]) h2 .sun { color: #B05500 !important; }
  html body a.btn[style*="239, 195, 26"], html body a.btn.btn-gold, html body a.btn-yellow { color: #0B1F3A !important; }
}

@media (max-width: 767.98px) {
  /* cards sobre foto: painel escuro atras do texto garante contraste >= 4,5:1 independente da foto */
  html body #root .benefit-card:has(> .absolute) > div.relative {
    background: rgba(11, 18, 32, .66) !important;
    border-radius: 14px; padding: 14px 12px !important; margin: 0 10px;
  }
}


/* =====================================================================
   Cards "icone + titulo + texto": alinhados ao centro no mobile (<768px)
   Lista derivada de varredura (tests/tools/icon-card-audit.cjs); exclui galerias com foto,
   listagens de vagas, FAQ e sidebars. Listas (ul/ol) continuam alinhadas a esquerda.
   ===================================================================== */
@media (max-width: 767.98px) {
  html body :is(.app-pillar-card, .ap-demand-card, .ap-auth-card, .bess-dor-card, .mt-demand-card, .er-service-box,
    .feature-box, .fp-demand-card, .om-trust-card, .evidence-card, .pillar-card, .rep-diff-card, .rf-problem-card,
    .se-pillar-card, .se-compliance-item, .suporte-asset-card, .vaga-pillar-card, .resource-card, .pf-res-card,
    .gz-benefit-card, .resultado-card, .hib-diff-card) {
    text-align: center !important;
    align-items: center !important;
  }
  html body :is(.app-pillar-card, .ap-demand-card, .ap-auth-card, .bess-dor-card, .mt-demand-card, .er-service-box,
    .feature-box, .fp-demand-card, .om-trust-card, .evidence-card, .pillar-card, .rep-diff-card, .rf-problem-card,
    .se-pillar-card, .se-compliance-item, .suporte-asset-card, .vaga-pillar-card, .resource-card, .pf-res-card,
    .gz-benefit-card, .resultado-card, .hib-diff-card) :is(h2, h3, h4, h5, h6, p, .value-sub, .evidence-source) {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body :is(.app-pillar-card, .ap-demand-card, .ap-auth-card, .bess-dor-card, .mt-demand-card, .er-service-box,
    .feature-box, .fp-demand-card, .om-trust-card, .evidence-card, .pillar-card, .rep-diff-card, .rf-problem-card,
    .se-pillar-card, .se-compliance-item, .suporte-asset-card, .vaga-pillar-card, .resource-card, .pf-res-card,
    .gz-benefit-card, .resultado-card, .hib-diff-card) :is(ul, ol) { text-align: left !important; }
  /* caixa do icone centralizada */
  html body :is(.app-pillar-icon-box, .ap-demand-icon, .ap-auth-icon, .bess-dor-icon, .mt-demand-icon, .er-service-icon-box,
    .feature-box-icon, .fp-demand-icon-wrap, .om-trust-icon, .pillar-icon-box, .rep-diff-icon, .rf-problem-icon,
    .se-pillar-icon-box, .se-compliance-icon-wrap, .vaga-pillar-icon, .gz-benefit-icon-wrap, .card-icon, .hib-diff-icon) {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  /* icones svg soltos no topo do card */
  html body :is(.evidence-card, .suporte-asset-card, .resource-card, .pf-res-card, .gz-video-card) > svg {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 767.98px) {
  /* linhas "icone + etiqueta/titulo" dentro dos cards: empilhar e centralizar */
  html body .mt-demand-icon-wrap { flex-direction: column !important; justify-content: center !important; align-items: center !important; gap: 10px !important; }
  html body .resource-card-top { flex-direction: column !important; justify-content: center !important; align-items: center !important; text-align: center !important; gap: 10px !important; }
  html body .resource-card .resource-tag-pill { align-self: center !important; }
}

@media (max-width: 767.98px) {
  html body .app-pillar-card .pillar-card-top { flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 10px !important; }
}

/* =====================================================================
   /laudos-tecnicos — mobile (<768px): caixas e elementos dimensionados para leitura e toque
   - grade de problemas em 1 coluna (2 colunas de ~120px quebravam palavras no meio)
   - abas em grade 2x2 (a faixa rolavel cortava "Resistencia de Isol...")
   - espacamentos de secao menores; alvos de toque >= 44px
   ===================================================================== */
@media (max-width: 767.98px) {
  html body .lt-section { padding: 44px 16px; }
  html body .lt-section-header { margin-bottom: 26px; }
  html body .lt-section-header h2 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 12px; }
  html body .lt-section-header p { font-size: 1rem; line-height: 1.55; }

  html body .lt-problems-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 26px; }
  html body .lt-problem-card { padding: 22px 20px; text-align: center; }
  html body .lt-problem-card > div:first-child { display: flex; flex-direction: column; align-items: center; }
  html body .lt-problem-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 14px 0 8px; text-align: center; }
  html body .lt-problem-card .lt-p-desc { text-align: center; font-size: .95rem; line-height: 1.55; margin: 0 0 16px; }
  html body .lt-problem-card .lt-problem-icon { margin-left: auto; margin-right: auto; }
  html body .lt-problem-card .lt-problem-solution { align-self: stretch; text-align: left; overflow-wrap: break-word; word-break: normal; }
  html body .lt-problem-card button { width: 100%; min-height: 48px; }

  html body .lt-tabs-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  html body .lt-tab-btn { min-width: 0; min-height: 56px; padding: 10px 8px; font-size: .85rem; line-height: 1.25;
    flex-direction: column; gap: 4px; white-space: normal; text-align: center; border-bottom-width: 3px; }

  html body .lt-service-card .lt-service-img-wrapper { max-height: 200px; }
  html body .lt-faq-question { padding: 16px 16px; font-size: .98rem; min-height: 48px; }
  html body .lt-form-container { padding: 22px 16px; }
  html body .lt-form-container input, html body .lt-form-container select, html body .lt-form-container textarea { font-size: 16px; min-height: 46px; }
  html body .lt-hero-tags { gap: 8px; margin-bottom: 20px; }
}

@media (max-width: 767.98px) {
  /* a secao ja tem 16px de margem lateral; o container interno somava +24px (cards com ~40px de margem por lado) */
  html body .lt-section > .lt-container, html body .lt-section .lt-container { padding-left: 0; padding-right: 0; }
}
@media (max-width: 360px) {
  html body .lt-tab-btn { font-size: .76rem; padding: 10px 4px; hyphens: none; overflow-wrap: normal; word-break: normal; }
}

/* /aplicativo — banner mobile: altura fixa (260px) + overflow hidden cortava o botao "Acessar Plataformas" (ate -44px a 320px).
   A altura agora acompanha o conteudo, com respiro igual acima e abaixo do botao. */
@media (max-width: 767.98px) {
  html body .app-hero { height: auto !important; min-height: 260px !important; max-height: none !important; padding-top: 28px !important; padding-bottom: 32px !important; overflow: hidden; }
  html body .app-hero .btn { margin-bottom: 0; }
}


/* LP residencial — titulo do hero em 4 linhas em TODAS as larguras: "Energia Solar / Residencial: / Sua usina de energia / particular de alto padrao" */
html body #root h1.hero-title .hero-br-m { display: inline; }
/* destaque "Residencial" em linha (era bloco) para que o ":" fique colado na palavra */
html body #root h1.hero-title .highlight { display: inline !important; }
html body #root h1.hero-title .highlight { padding-right: 0 !important; }
/* wrapper do "Residencial:" nao gera caixa propria (o tema forca span do h1 a display:block !important) */
html body #root h1.hero-title span.hero-nobr { display: contents !important; }

/* LP residencial — cards de beneficio sobre foto: o icone (imagem branca) so ficava visivel no hover (caixa laranja);
   em repouso a caixa era creme e o icone sumia. A caixa fica sempre no estado laranja, em qualquer largura. */
html body #root .benefit-card:has(> .absolute) .benefit-icon {
  background: #F97316 !important;
  border-color: #F97316 !important;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .32) !important;
}
html body #root .benefit-card:has(> .absolute) .benefit-icon img { opacity: 1 !important; visibility: visible !important; }

/* =====================================================================
   LP residencial — banner: titulo maior e proporcional + caixa "Economia Garantida" discreta
   - O titulo (4 linhas) dimensiona pela largura REAL da coluna via container query (cqw):
     a linha mais longa ("particular de alto padrao") mede 12,69em; 7,25cqw (empilhado) e 4cqw (2 colunas) a mantem
     dentro da coluna em qualquer largura. Escopo: .hero-content h1.hero-title.font-criteria (nao afeta as outras LPs).
   ===================================================================== */
html body #root .hero-content { container-type: inline-size; }
html body #root .hero-content h1.hero-title.font-criteria {
  font-size: clamp(1rem, 7.25cqw, 2.75rem) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.015em;
  font-weight: 800 !important;
}
@media (min-width: 1025px) {
  html body #root .hero-content h1.hero-title.font-criteria { font-size: clamp(1.9rem, 4cqw, 3.25rem) !important; }
}
/* caixa flutuante minimalista */
html body #root .hero-badge {
  padding: 9px 14px !important;
  border-radius: 14px !important;
  background-color: rgba(255, 255, 255, .82) !important;
  border: 1px solid rgba(15, 23, 42, .06) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .10) !important;
  gap: 0 !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html body #root .hero-badge span { font-size: .56rem !important; letter-spacing: .14em !important; line-height: 1.2 !important; }
html body #root .hero-badge strong { font-size: 1.3rem !important; line-height: 1.15 !important; }
@media (min-width: 1025px) {
  html body #root .hero-badge { left: -24px !important; bottom: 28px !important; }
}


/* /energia-solar-empresas (e alias para-empresas) — sem o titulo "Calcule a Economia da sua Empresa" o subtitulo ficou colado no banner:
   respiro acima (o abaixo ja era 50px do proprio componente) */
html body #root .calculator-header { padding-top: 36px; }
@media (max-width: 767.98px) {
  html body #root .calculator-header { padding-top: 24px; }
}

/* =====================================================================
   Home — slider (mobile <768px): setas voltar/avancar no rodape do frame (ficavam no meio, sobre textos e CTA).
   Par de setas no canto inferior ESQUERDO: o rodape direito das artes oficiais tem o selo de texto ("Pensando no hoje...").
   ===================================================================== */
@media (max-width: 767.98px) {
  html body .homeslider .slick-prev,
  html body .homeslider .slick-next {
    top: auto !important;
    bottom: 10px !important;
    transform: none !important;
    margin-top: 0 !important;
    right: auto !important;
    z-index: 5;
  }
  /* faixa inferior reservada para as setas: o conteudo (centrado) sobe ~26px e o CTA nunca encosta nelas */
  html body .homeslider .homeslide-content { padding-bottom: 52px !important; box-sizing: border-box; }
  html body .homeslider .slick-prev { left: 10px !important; }
  html body .homeslider .slick-next { left: 54px !important; }
}

/* =====================================================================
   /energia-solar-empresas — "Projetos em Acao": EFEITO DE PLAY nos videos para estimular o clique
   Aneis de pulso (estilo "ondas") irradiam do botao de play do YouTube (centro do video), sem bloquear o clique (pointer-events:none).
   Hover: video amplia levemente e os aneis aceleram. Ao clicar (foco no iframe) os aneis somem para nao atrapalhar o video.
   ===================================================================== */
html body #root:has(.calculator-header) .video-item {
  position: relative;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
html body #root:has(.calculator-header) .video-item iframe { border-radius: inherit; display: block; }
html body #root:has(.calculator-header) .video-item::before,
html body #root:has(.calculator-header) .video-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(255, 0, 0, .35), 0 0 14px rgba(255, 255, 255, .35);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  animation: sunergia-play-ripple 2.4s ease-out infinite;
}
html body #root:has(.calculator-header) .video-item::after { animation-delay: 1.2s; }
html body #root:has(.calculator-header) .video-item:hover { transform: scale(1.03); box-shadow: 0 16px 34px rgba(15, 23, 42, .28); z-index: 2; }
html body #root:has(.calculator-header) .video-item:hover::before,
html body #root:has(.calculator-header) .video-item:hover::after { animation-duration: 1.3s; }
html body #root:has(.calculator-header) .video-item:hover::after { animation-delay: .65s; }
html body #root:has(.calculator-header) .video-item:focus-within::before,
html body #root:has(.calculator-header) .video-item:focus-within::after { animation: none; opacity: 0; display: none; }
html body #root:has(.calculator-header) .video-item.is-playing::before,
html body #root:has(.calculator-header) .video-item.is-playing::after { animation: none; opacity: 0; display: none; }
@keyframes sunergia-play-ripple {
  0% { transform: scale(1); opacity: .85; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html body #root:has(.calculator-header) .video-item { transition: none; }
  html body #root:has(.calculator-header) .video-item:hover { transform: none; }
  html body #root:has(.calculator-header) .video-item::before,
  html body #root:has(.calculator-header) .video-item::after { animation: none; opacity: .6; transform: scale(1.35); }
}

/* slider da Home entre 481 e 767px: o titulo ficava com ~38% da largura (171px) e quebrava em ate 5 linhas */
@media (min-width: 481px) and (max-width: 767.98px) {
  html body .homeslider .homeslide-content-div h2 { width: 62% !important; max-width: none !important; }
}

/* /calculadora-solar-gratuita — hero: o conteudo comecava sob o cabecalho fixo (74px desktop / 90px mobile) com so 48/36px de padding;
   a caixa "Simulador Solar Gratuito" removida era justamente o que aparecia cortada ali. O padding agora = altura do cabecalho + respiro. */
html body #root section.hero:has(.hero-grid-container) { padding-top: 104px !important; }
@media (max-width: 767.98px) {
  html body #root section.hero:has(.hero-grid-container) { padding-top: 116px !important; }
}

/* /calculadora-solar-gratuita — faixa de confianca: valores em azul-escuro sobre fundo escuro (so corrigido no mobile antes); agora em todas as larguras */
html body #root:has(.hero-grid-container) .trust-value { color: #FFFFFF !important; }
html body #root:has(.hero-grid-container) .trust-label { color: #CBD5E1 !important; }


/* calc-form-buttons: botões do formulário da calculadora (LP residencial) proporcionais e responsivos */
html body #calculadora form .btn {
  height: auto !important;
  min-height: 52px !important;
  padding: 14px 24px !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  text-align: center;
  hyphens: none !important;
  word-break: normal !important;
}
html body #calculadora form .btn.w-full { width: 100% !important; }
html body #calculadora form .flex.gap-4:has(> .btn) {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  gap: 12px !important;
}
html body #calculadora form .flex.gap-4 > .btn-secondary {
  flex: 0 0 auto !important;
  min-width: 108px;
  background: #fff !important;
  color: #0f2547 !important;
  border: 2px solid #cbd5e1 !important;
  box-shadow: none !important;
}
html body #calculadora form .flex.gap-4 > .btn-accent {
  flex: 1 1 230px !important;
  min-width: 0;
}
html body #calculadora form .flex.gap-4:has(> .btn) { flex-wrap: wrap-reverse; }
@media (max-width: 479px) {
  html body #calculadora form .flex.gap-4:has(> .btn) { flex-direction: column-reverse; }
  html body #calculadora form .flex.gap-4 > .btn { width: 100% !important; flex: 0 0 auto !important; }
}


/* empresas-results-redesign: refinamento visual da página de resultados empresariais (somente apresentação) */
html body .results-replica-page .hero-replica { padding: 32px 0 20px; }
html body .results-replica-page .hero-replica h1 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; hyphens: none; }
html body .results-replica-page .hero-replica p { font-size: 1rem; font-weight: 400; color: #475569; line-height: 1.6; }
html body .results-replica-page .highlight-replica { padding: 28px 20px; box-shadow: none; border-bottom: 4px solid #D4AF37; background: #0F1F3F; margin-bottom: 20px; }
html body .results-replica-page .highlight-replica::before { display: none; }
html body .results-replica-page .highlight-label-replica { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.88); letter-spacing: 0.12em; }
html body .results-replica-page .highlight-value-replica { font-size: clamp(2rem, 7vw, 3rem); white-space: nowrap; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
html body .results-replica-page .highlight-sub-replica { font-size: 1rem; color: rgba(255, 255, 255, 0.92); flex-wrap: wrap; }
html body .results-replica-page .metrics-grid-replica { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (min-width: 1024px) { html body .results-replica-page .metrics-grid-replica { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html body .results-replica-page .metric-card-replica { padding: 16px 10px; box-shadow: none; min-width: 0; border-radius: 14px; transform: none; text-align: center; }
html body .results-replica-page .metric-card-replica:hover { transform: none; box-shadow: none; }
html body .results-replica-page .metric-card-replica.highlighted-replica { transform: none; box-shadow: none; background: #166b4f; border-color: #166b4f; }
html body .results-replica-page .metric-card-replica.highlighted-replica:hover { transform: none; box-shadow: none; }
html body .results-replica-page .metric-card-value-replica { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: clamp(1.1rem, 3.6vw, 1.5rem); }
html body .results-replica-page .metric-card-replica.highlighted-replica .metric-card-value-replica { font-size: clamp(1.25rem, 4vw, 1.75rem); }
html body .results-replica-page .metric-card-value-replica[class*="text-[1.1rem]"] { font-size: 1.05rem !important; }
html body .results-replica-page .metric-card-value-replica [class*="text-[9px]"] { font-size: 0.75rem !important; opacity: 0.85 !important; letter-spacing: 0.08em; }
html body .results-replica-page .metric-card-label-replica { font-size: 0.75rem; color: #475569; letter-spacing: 0.06em; }
html body .results-replica-page .metric-card-replica.highlighted-replica .metric-card-label-replica { color: rgba(255, 255, 255, 0.92); }
html body .results-replica-page .chart-section-replica { padding: clamp(16px, 3vw, 28px); box-shadow: none; margin: 20px 0; border-radius: 14px; }
html body .results-replica-page .chart-header-replica h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
html body .results-replica-page .chart-subtitle-replica { font-size: 1rem; color: #475569; }
html body .results-replica-page .chart-legend-box-replica { padding: 16px; }
html body .results-replica-page .legend-item-replica .legend-text, html body .results-replica-page .legend-item-replica .legend-text * { font-size: 0.9375rem; color: #2C3E50; }
html body .results-replica-page .advantage-highlight-replica { font-size: 1rem; }
html body .results-replica-page .advantage-highlight-replica .text-sm { font-size: 0.9375rem; }
html body .results-replica-page .chart-footer-replica { color: #475569 !important; font-size: 0.875rem !important; opacity: 1 !important; }
html body .results-replica-page .payment-grid-replica { gap: 16px; }
html body .results-replica-page .payment-card-replica { padding: 20px; box-shadow: none; border-radius: 14px; }
html body .results-replica-page .payment-title-replica { font-size: 0.9375rem; }
html body .results-replica-page .installment-row-replica .text-sm { font-size: 1rem; color: #2C3E50; }
html body .results-replica-page .price-tag-replica { white-space: nowrap; font-variant-numeric: tabular-nums; }
html body .results-replica-page .bank-details-replica { font-size: 0.875rem; color: #475569; }
html body .results-replica-page .esg-banner-replica { box-shadow: none; }
html body .results-replica-page .esg-lab-replica { font-size: 0.75rem; color: rgba(255, 255, 255, 0.92); }
html body .results-replica-page .btn-replica { min-height: 52px; font-size: 1rem; }
html body .results-replica-page .btn-replica:focus-visible, html body .results-replica-page a:focus-visible { outline: 3px solid #D4AF37; outline-offset: 3px; }
@media (max-width: 480px) { html body .results-replica-page .container-replica { padding-left: 16px; padding-right: 16px; } }
@media (min-width: 992px) { html body .results-replica-page .payment-grid-replica { align-items: start; } }

/* BEGIN calc-results-light-theme */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) { background: #fff !important; color: #0f2547; font-family: 'Montserrat', 'Inter', sans-serif; }
/* Cabeçalho interno + logomarca (proporcional, sem filtros, altura automática) */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > header { background: rgba(255,255,255,0.96) !important; border-bottom: 1px solid #e2e8f0 !important; backdrop-filter: none; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > header > div { height: 64px !important; min-height: 0; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > header img { width: auto !important; height: auto !important; max-width: clamp(130px, 38vw, 170px) !important; max-height: 48px !important; filter: none !important; transform: none !important; object-fit: contain; display: block; }
@media (min-width: 641px) { html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > header img { max-width: 190px !important; } }
@media (min-width: 1024px) { html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > header img { max-width: 200px !important; max-height: 52px !important; } }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > header button { min-height: 44px; }
/* Conteúdo */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main { padding-top: 24px !important; padding-bottom: 32px !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main > .max-w-5xl > div:first-child { margin-bottom: 24px !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main > .max-w-5xl > div:first-child h1 { font-size: clamp(1.5rem, 4.5vw, 2.5rem) !important; color: #0f2547 !important; letter-spacing: -0.01em; line-height: 1.15; hyphens: none; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main > .max-w-5xl > div:first-child p { color: #475569 !important; font-size: 1rem !important; font-weight: 400 !important; line-height: 1.5; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main > .max-w-5xl > div:first-child > div { background: #f1f5f9 !important; color: #475569 !important; font-size: 0.75rem !important; }
/* Cards (escuro -> claro) */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="bg-[#000821]"]:not(header) { background: #fff !important; border: 1px solid #e2e8f0 !important; box-shadow: none !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main > .max-w-5xl > [class*="bg-[#000821]"] { padding: clamp(14px, 3vw, 28px) !important; border-radius: 20px !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="bg-white/5"] { background: #f8fafc !important; border-color: #e2e8f0 !important; box-shadow: none !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="bg-white/10"] { background: #eef2f7 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="border-white/"] { border-color: #e2e8f0 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="blur-["] { display: none !important; }
/* Texto */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .text-white:not([class*="bg-[#EC7000]"]), html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="text-white/"] { color: #0f2547 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .text-slate-400, html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .text-slate-500 { color: #475569 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="text-[8px]"], html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="text-[9px]"], html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="text-[10px]"], html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="text-[11px]"] { font-size: 0.75rem !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="opacity-70"] { opacity: 1 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .italic { font-style: normal; }
/* Indicadores principais: cards compactos e alinhados */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main > .max-w-5xl > div > div > div.grid.grid-cols-2 { gap: 12px !important; margin-bottom: 24px !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main > .max-w-5xl > div > div > div.grid.grid-cols-2 > div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 8px; min-width: 0; justify-content: center; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main > .max-w-5xl > div > div > div.grid.grid-cols-2 > div > div:last-child { font-variant-numeric: tabular-nums; white-space: nowrap !important; text-wrap-mode: nowrap !important; font-weight: 700; color: #0f2547 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .whitespace-nowrap, html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .tracking-tighter { font-variant-numeric: tabular-nums; }
/* Destaque da economia mensal: único bloco em azul-marinho (resultado principal) */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main > .max-w-5xl > div > div > div:first-child { padding: clamp(18px, 4vw, 32px) !important; margin-bottom: 20px !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .text-4xl, html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .md\:text-6xl { color: #0f2547 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="text-[#EC7000]"] { color: #c25a00 !important; }
/* Gráficos */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-cartesian-grid line { stroke: #e2e8f0 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-cartesian-axis-tick-value, html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-cartesian-axis-tick text { fill: #475569 !important; font-size: 11px; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-legend-item-text { color: #0f2547 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-text { fill: #475569; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="h-[250px]"], html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="h-[300px]"], html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="h-[350px]"] { max-width: 100%; }
/* Tooltips dos gráficos (Solar vs Renda Fixa + Geração Mensal): alto contraste WCAG AAA em desktop e mobile */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-tooltip-wrapper [class*="bg-[#1e293b]"] { background: #0f172a !important; border: 1px solid #334155 !important; box-shadow: 0 16px 36px rgba(15, 23, 42, 0.32) !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-tooltip-wrapper .text-white { color: #ffffff !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-tooltip-wrapper .text-slate-400,
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-tooltip-wrapper .text-slate-500 { color: #cbd5e1 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-tooltip-wrapper [class*="bg-green-500/10"] { background: rgba(34, 197, 94, 0.16) !important; border-color: rgba(74, 222, 128, 0.45) !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-tooltip-wrapper [class*="text-green-500"] { color: #4ade80 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-tooltip-wrapper [class*="bg-red-500/10"] { background: rgba(239, 68, 68, 0.16) !important; border-color: rgba(248, 113, 113, 0.45) !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-tooltip-wrapper [class*="text-red-500"] { color: #fca5a5 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-default-tooltip { background: #0f172a !important; border: 1px solid #334155 !important; border-radius: 12px !important; color: #ffffff !important; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28) !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-default-tooltip .recharts-tooltip-label { color: #cbd5e1 !important; font-weight: 700 !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-default-tooltip .recharts-tooltip-item { color: #ffffff !important; }
@media (max-width: 640px) {
  html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .recharts-tooltip-wrapper [class*="min-w-[300px]"] { min-width: 0 !important; width: min(260px, calc(100vw - 32px)) !important; padding: 14px !important; }
}
/* Pagamento / próximo passo */
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .grid.grid-cols-1.md\:grid-cols-2 { gap: 16px !important; align-items: start !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="col-span-2"].flex.justify-between { gap: 12px; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .flex-col.items-center.flex-1 > :last-child { white-space: nowrap !important; text-wrap-mode: nowrap !important; font-variant-numeric: tabular-nums; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) button[class*="bg-[#EC7000]"] { min-height: 48px; color: #fff !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) button:focus-visible, html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) a:focus-visible { outline: 3px solid #0f2547; outline-offset: 3px; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="bg-[#25D366]/10"] { background: #ecfdf3 !important; border-color: #86efac !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="bg-[#25D366]/10"] * { color: #14532d !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="bg-[#25D366]/10"] svg { color: #15803d !important; }
/* Mobile */
@media (max-width: 1100px) {
  html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .flex-col.items-center.flex-1 { min-width: 0; }
  html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .flex-col.items-center.flex-1 > :last-child { font-size: clamp(0.8rem, 2.6vw, 1rem) !important; }
}
@media (min-width: 481px) and (max-width: 1100px) {
  html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .text-2xl.whitespace-nowrap { font-size: clamp(1.1rem, 3vw, 1.5rem) !important; }
}
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .whitespace-nowrap:not(p):not([class*="uppercase"]), html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) p > span[class*="text-[#EC7000]"] { white-space: nowrap !important; text-wrap-mode: nowrap !important; }
html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) p.whitespace-nowrap, html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .whitespace-nowrap[class*="uppercase"] { white-space: normal !important; text-wrap-mode: wrap !important; overflow: visible !important; text-overflow: clip !important; }
@media (max-width: 480px) {
  html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) > main { padding-left: 14px !important; padding-right: 14px !important; }
  html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) h2, html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) h3 { white-space: normal !important; }
  html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) .text-2xl.whitespace-nowrap { font-size: clamp(1rem, 5.2vw, 1.5rem) !important; }
  html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) span.whitespace-nowrap.text-sm, html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) span.whitespace-nowrap.text-xs, html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) span.whitespace-nowrap.text-base { font-size: clamp(0.75rem, 3.6vw, 0.9rem) !important; }
  html body #root div[class*="bg-[#000414]"]:has(> main > .max-w-5xl) [class*="rounded-xl"][class*="p-3"] { padding-left: 6px !important; padding-right: 6px !important; }
}
/* END calc-results-light-theme */

/* === /contato — mobile: caixas, upload e botões proporcionais === */
@media (max-width: 640px) {
  .contato-premium-wrapper .custom-file-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .contato-premium-wrapper .custom-upload-button {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }
  .contato-premium-wrapper .custom-file-row .file-name {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 0.82rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .contato-premium-wrapper .contato-submit-btn {
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
  }
  .contato-premium-wrapper .lgpd-consent-notice {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    overflow-wrap: normal !important;
  }
}

/* === /calculadora-solar-gratuita — mobile: cabeçalho, selo do hero e barra de confiança proporcionais === */
@media (max-width: 640px) {
  .header .header-inner { gap: 8px !important; }
  .header .header-inner img { flex-shrink: 0 !important; width: auto !important; max-width: 150px !important; height: 34px !important; object-fit: contain !important; }
  #root .header .btn-header.btn-attract {
    text-wrap: nowrap !important; white-space: nowrap !important; font-size: 0.78rem !important; line-height: 1.2 !important;
    padding: 9px 14px !important; min-height: 40px !important; flex-shrink: 1 !important; text-align: center !important;
  }
  .hero-img .glass-card.absolute { left: 8px !important; top: -14px !important; max-width: calc(100% - 16px) !important; padding: 8px 12px !important; }
  #root .trust-bar .trust-value { text-wrap: nowrap !important; font-size: clamp(0.95rem, 4.4vw, 1.2rem) !important; white-space: nowrap !important; line-height: 1.15 !important; }
  .trust-bar .trust-item { min-width: 0 !important; }
}
@media (max-width: 380px) {
  .header .header-inner img { max-width: 120px !important; height: 30px !important; }
  .header .btn-header.btn-attract { font-size: 0.72rem !important; padding: 8px 10px !important; }
}

/* === /calculadora-solar-gratuita — mobile: remove o ícone de menu (hambúrguer) do cabeçalho === */
@media (max-width: 767px) {
  #root .header .header-inner button.md\:hidden { display: none !important; }
}

/* === /contato — caixa de upload não pode ter altura fixa (evita sobreposição do aviso/botão) === */
.contato-premium-wrapper .form-group.custom-file { height: auto !important; min-height: 0 !important; overflow: visible !important; }

/* === /esg — mobile: textos, ícones, cards e botões centralizados === */
@media (max-width: 767px) {
  .esg-premium-wrapper, .esg-premium-wrapper .container { text-align: center !important; }
  .esg-premium-wrapper :is(h1, h2, h3, h4, h5, h6, p, li, span, div, strong, em, small, blockquote):not(.pilar-card-letter) { text-align: center !important; }
  .esg-premium-wrapper .esg-hero-content, .esg-premium-wrapper .esg-cta-box,
  .esg-premium-wrapper .pilar-card, .esg-premium-wrapper .pilar-card > div {
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important;
  }
  .esg-premium-wrapper .pilar-card-letter { margin-left: auto !important; margin-right: auto !important; display: flex !important; align-items: center !important; justify-content: center !important; }
  .esg-premium-wrapper :is(a.btn, .btn, .pilar-card-link, [class*="btn-"], [class*="link"]) { margin-left: auto !important; margin-right: auto !important; justify-content: center !important; text-align: center !important; }
  .esg-premium-wrapper ul, .esg-premium-wrapper ol { padding-left: 0 !important; list-style-position: inside !important; }
  .esg-premium-wrapper .pilar-card > .pilar-card-link { flex-direction: row !important; gap: 8px !important; margin-top: 12px !important; }
  .esg-premium-wrapper .pilar-card > .pilar-card-link svg { flex-shrink: 0 !important; margin: 0 !important; }
  .esg-premium-wrapper :is(img, svg, i, .icon, [class*="icon"]):not(.esg-hero) { margin-left: auto !important; margin-right: auto !important; }
}

/* === Blog: embeds de vídeo (.kg-embed-card) proporcionais 16:9 e responsivos em todas as telas === */
.post-content figure.kg-embed-card:has(iframe),
.single-post-page figure.kg-embed-card:has(iframe) {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.75rem auto !important;
}
.post-content figure.kg-embed-card iframe,
.single-post-page figure.kg-embed-card iframe {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border: 0 !important;
  border-radius: 12px;
}
