/* ============================================================
   NAVALSKI REPRESENTAÇÕES — Folha de Estilos Principal
   Estrutura:
   1. Reset & Base
   2. Fontes
   3. Top Bar
   4. Header & Navegação
   5. Dropdown Menu
   6. Barra Social Fixa
   7. Seção Hero (Home)
   8. Seção Representamos
   9. Seção Soluções
   10. Seção Renova / JEA (páginas internas)
   11. Footer
   12. Responsividade (Media Queries)
============================================================ */


/* ============================================================
   1. RESET & BASE
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nexa', sans-serif;
    line-height: 1.5;
    background: #fff;
}

/* Container central com largura máxima */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; /* padding lateral para evitar conteúdo colado nas bordas */
}


/* ============================================================
   2. FONTES
============================================================ */

/* Nexa Regular */
@font-face {
    font-family: 'Nexa';
    src: url('../fontes/nexa-regular.ttf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* Nexa Bold */
@font-face {
    font-family: 'Nexa';
    src: url('../fontes/nexa-bold.ttf') format('opentype');
    font-weight: 700;
    font-style: normal;
}


/* ============================================================
   3. TOP BAR
============================================================ */

/* Faixa escura no topo */
.topbar {
    background: #17304F;
    color: #fff;
    font-size: 0.82rem; /* levemente maior que 0.8rem para mais presença */
}

/* Layout interno: 3 zonas — esquerda | centro | direita */
.topbar-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 7px 0; /* era 5px — +2px para aumentar altura ~2% */
}

/* Slider de mensagens rotativas — zona central */
.topbar-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.slides {
    text-align: center;
}

/* Animação de entrada dos slides */
@keyframes subirTexto {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slides da top bar — escopo restrito ao slider */
.topbar-slider .slide {
    display: none;
    line-height: 1;
}

.topbar-slider .slide.active {
    display: block;
    animation: subirTexto 0.8s ease;
}

/* Slides do carrossel hero (imagens da coluna direita) */
.right-content .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    transition: opacity 0.9s ease, transform 1.2s ease;
    transform: scale(1.06);
}

.right-content .slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Botões de navegação do slider */
.topbar-slider button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    height: 100%;
    line-height: 1;
}

/* Bloco genérico de topbar (localização e sessão restrita) */
.topbar-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-text img {
    max-width: 9px;
    height: auto;
}

.topbar-text a {
    text-decoration: none;
    color: inherit;
}

/* Localização — alinhada à esquerda */
.topbar-location {
    justify-content: flex-start;
}

.topbar-location a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    opacity: 0.88;
    transition: opacity 0.2s;
}

.topbar-location a:hover {
    opacity: 1;
}

/* Sessão Restrita — alinhada à direita */
.topbar-restrita {
    justify-content: flex-end;
}

/* Link Sessão Restrita */
.topbar-restrito {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    opacity: 0.9;
    transition: opacity 0.2s;
    white-space: nowrap; /* mantém cadeado + texto sempre na mesma linha */
}

.topbar-restrito:hover {
    opacity: 1;
    color: #fff;
}

.topbar-lock-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke: #fff;
    display: block;
}


/* ============================================================
   4. HEADER & NAVEGAÇÃO
============================================================ */

header {
    background-color: #fff;
    border-bottom: 1px solid #000;
    position: relative;
    z-index: 100;
    overflow: visible;
}

/* Grid de 3 colunas: logo | nav | botão */
.headerbar {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: center;
    position: relative;
    overflow: visible;
}

/* Logo / GIF animado */
.loader img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Links de navegação */
.nav {
    display: flex;
    justify-content: start;
    gap: 50px;
    align-items: center;
    padding: 0 40px;
}

.links-nav {
    color: #000;
    font-size: large;
    text-decoration: none;
}

.links-nav:hover {
    color: #e83434;
}

/* Botão CTA — "ENTRE EM CONTATO" */
.container-botao {
    display: flex;
    justify-content: flex-end;
}

.btn-contato {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #e83434;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #e83434;
    cursor: pointer;

    /* Efeito de preenchimento deslizante ao hover */
    background-image: linear-gradient(to right, #e83434 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: all 0.5s ease-out;
}

.btn-contato:hover {
    color: #ffffff;
    background-position: left bottom;
}

/* ─── Menu Hamburguer (mobile) ─── */
.menu-toggle {
    display: none; /* oculto no desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #17304F;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animação do X ao abrir */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   5. DROPDOWN MENU
============================================================ */

.dropdown {
    position: relative;
}

/* Overlay escurecido ao abrir o dropdown */
.dropdown-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 98;
}

.dropdown-overlay.open {
    display: block;
}

/* Mega menu desktop — expande para cobrir largura do header */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background-color: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    z-index: 99;
    padding: 8px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    text-align: left;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #24364b;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.dropdown-item:hover {
    color: #e83434;
}


/* ============================================================
   6. BARRA SOCIAL FIXA
============================================================ */

.social-bar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.social-bar a {
    background-color: #17304F;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.6s ease, background-color 0.3s ease;
}

.social-bar a img {
    width: 25px;
    display: block;
}

.social-bar a:hover {
    background-color: #e83434;
}

/* Efeito de rotação 360° no hover */
.social-bar a.float-360:hover {
    transform: translateX(-5px) scale(1.1) rotate(360deg);
}


/* ============================================================
   7. SEÇÃO HERO (Home — layout principal)
============================================================ */

/* Grid de 2 colunas: conteúdo | carrossel */
.wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    margin-top: 2%;
}

/* Coluna esquerda */
.left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Título principal */
.hero-title h1 {
    font-weight: 800;
    color: #24364b;
    font-size: 34px;
    line-height: 1.35;
}

.highlight {
    margin-top: 10px;
    font-size: 30px;
    font-weight: 700;
    color: #24364b;
}

/* Subtexto */
.h1-subtexto {
    font-size: 16px;
    color: #6b6f74;
    max-width: 600px;
    line-height: 1.6;
}

/* Linha vermelha decorativa */
.line {
    width: 200px;
    height: 3px;
    background: #e83434;
}

/* Título da tabela de inspirações */
.table-header h3 {
    color: #e83434;
    margin-bottom: 5%;
}

/* Grid de 3 colunas de inspirações */
.table-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.table-cols div {
    position: relative;
}

.table-cols p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Linha vertical entre colunas */
.table-cols div:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 5px;
    width: 2px;
    height: 80%;
}

/* Imagem decorativa com efeito 3D tilt */
.imagem-home-left {
  border-radius: 24px;
  overflow: hidden;
}

.imagem-home-left img,
.imagem-home-left video {
  width: 90%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.tilt {
    transition: transform 0.1s ease;
    will-change: transform;
    transform-style: preserve-3d;
    display: block;
}

/* Carrossel da coluna direita */
.right-content {
    width: 100%;
    position: relative;
    aspect-ratio: 3/4; /* ajuste conforme proporção das suas fotos */
    overflow: hidden;
}

/* Paginação do carrossel */
.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.page-item {
    font-size: 15px;
    font-weight: 500;
    color: #e83434;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
    cursor: pointer;
}

.page-item:hover {
    color: #e83434;
}

.page-item.active {
    color: #e83434;
    border-bottom: 2px solid #e83434;
}


/* ============================================================
   8. SEÇÃO REPRESENTAMOS
============================================================ */

.representamos {
    padding: 40px 0;
    background: #f8f9fa;
    margin-top: 4%;
}

.representamos h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #6b6f74;
    font-weight: 900;
}

/* Grid de 4 colunas no desktop */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid #cfcfcf;
    position: relative;
    overflow: visible;
}



/* Card individual */
.card {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 30px;
    border-right: 2px solid #cfcfcf;
    min-height: 220px;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.card-border-svg {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    pointer-events: none;
    overflow: visible;
    z-index: 20;
}

/* Card como link — remove decoração */
.card-link {
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.card-link:hover {
    background: #f0f2f5;
}

.card-link:hover .seta {
    transform: translateX(5px);
}

.card:last-child {
    border-right: none;
}

/* Logo do representado */
.logo {
    width: 90px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Maxfio: logo "deitada" (proporcao ~2.9:1) — largura maior p/ equilibrar a
   altura visual com as vizinhas (Renova/JEA), sem distorcer (proporcao mantida). */
/* Maxfio/Cedisa: logos largas e baixas. Largura maior p/ presença +
   "caixa" de altura igual as vizinhas (58px) com object-fit:contain, que
   CENTRALIZA a logo verticalmente nessa faixa (alinha o centro com Renova/JEA). */
.logo-maxfio {
    width: 155px;
    height: 58px;
    object-fit: contain;
}

.logo-cedisa {
    width: 145px;
    height: 58px;
    object-fit: contain;
}

/* Cards de logo larga (Maxfio/Cedisa): reduz a margem esquerda e o gap
   p/ liberar largura e a logo "deitada" ocupar mais sem espremer o texto. */
.card.logo-larga {
    padding-left: 14px;
    gap: 14px;
}

/* Bloco de texto do card */
.info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Subtítulo do card (ex: "Condutores Elétricos") */
.card-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #e83434;
    margin-bottom: 8px;
    margin-top: 0;
}

.info p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Seta animada */
.seta {
    color: red;
    font-size: 18px;
    transition: 0.3s;
    display: inline-block;
}

.card:hover .seta {
    transform: translateX(5px);
}

/* ─── Carrossel mobile Representamos ─── */

.cards-carousel-wrapper {
  display: none; /* desktop: oculto */
}

/* Área de exibição (foto + texto) */
.rep-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 10px;
  gap: 20px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Imagem da empresa */
.rep-img-wrap {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  border-radius: 12px;
  padding: 16px;
}

.rep-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Texto */
.rep-body {
  text-align: center;
}

.rep-name {
  font-size: 17px;
  font-weight: 700;
  color: #24364b;
  margin-bottom: 4px;
}

/* Subtítulo mobile */
.rep-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #e83434;
  margin-bottom: 10px;
}

.rep-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
}

.rep-body .seta {
  font-size: 20px;
  cursor: pointer;
}

/* Barra de navegação: prev | bolinhas | next */
.rep-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px 24px;
}

.carousel-btn {
  background: #17304F;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #e83434;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfcfcf;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #e83434;
}


/* ============================================================
   9. SEÇÃO SOLUÇÕES (Somos)
============================================================ */

.section-solucoes {
    padding: 70px 0;
}

/*
  Grid "Somos":
  Linha 1 → texto   | mapa (mapa ocupa as 2 linhas)
  Linha 2 → imagem2 | mapa
  O mapa fica centralizado verticalmente na coluna direita.
*/
.solucoes-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "texto   mapa"
        "imagem2 mapa";
    column-gap: 60px;
    row-gap: 40px;
}

.solucoes-texto {
    grid-area: texto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
}

.solucoes-mapa {
    grid-area: mapa;
    align-self: center;
}

.solucoes-texto h2 {
    font-size: 28px;
    color: #24364b;
    font-weight: 800;
    line-height: 1.35;
}

.solucoes-texto h2 em {
    font-style: italic;
    font-weight: 400;
    color: #24364b;
}

.solucoes-texto h2 strong {
    font-weight: 800;
    color: #24364b;
}

.solucoes-texto p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.solucoes-imagem2 {
    grid-area: imagem2;
    width: 100%;
    align-self: start;
    perspective: 800px;        /* cria o espaço 3D */
}

.solucoes-imagem2 img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center center;
    transition: transform 0.05s linear;
    will-change: transform;
}

/* Mapa com efeito de brilho ao hover */
.solucoes-mapa {
    grid-area: mapa;
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    align-self: center;
}

.solucoes-mapa img {
    width: 100%;
    height: auto;
    display: block;
}

/* Camada de brilho deslizante */
.solucoes-mapa::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
}

.solucoes-mapa:hover::after {
    animation: shine 1s ease;
}

@keyframes shine {
    100% { left: 125%; }
}


/* ============================================================
   10. SEÇÃO RENOVA / JEA (páginas internas)
   Nota: o mesmo CSS é usado para ambas as páginas.
============================================================ */

.renova {
    background: #fff;
    padding: 100px 0;
}

/* Grid: imagem | texto | catálogos | imagem de cabos */
.renova-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
        "img    texto"
        "catalogo cabos";
    gap: 80px;
    align-items: center;
}

/* Imagem principal com hover */
.renova-img {
    grid-area: img;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.renova-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.renova-img:hover img {
    transform: scale(1.03);
}

/* Overlay sutil na imagem */
.renova-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.25)
    );
}

/* Texto descritivo */
.renova-text {
    grid-area: texto;
    max-width: 520px;
}

/* Título grande da empresa */
.logo-renova {
    font-size: 52px;
    font-weight: 700;
    color: #24364b;
    margin-bottom: 15px;
    line-height: 1;
}

.logo-renova span {
    font-size: 20px;
    color: #e83434;
    font-weight: 500;
}

.renova-text p {
    font-size: 15px;
    color: #5a5f66;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* ─── Cards de catálogos ─── */

.catalogos {
    grid-area: catalogo;
}

.catalogos h3 {
    font-size: 1.2rem;
    color: #24364b;
    margin-bottom: 20px;
    font-weight: 700;
}

.catalogos-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Card de catálogo */
.catalogo {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    width: 220px;
    border: 1px solid #e6e8eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Linha de destaque no topo do card */
.catalogo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #17304F, #e83434);
}

.catalogo:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.catalogo p {
    font-size: 14px;
    font-weight: 600;
    color: #24364b;
    margin-bottom: 15px;
}

.catalogo img {
    width: 100%;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.catalogo:hover img {
    transform: scale(1.04);
}

/* Botão de download do catálogo */
.catalogo a {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    text-decoration: none;
    color: #17304F;
    border: 1.5px solid #17304F;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.catalogo a:hover {
    background: #17304F;
    color: #fff;
}

/* Área clicável estendida para o card todo */
.catalogo a::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* Imagem de produto (cabos, etc.) */
.cabos-img {
    grid-area: cabos;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.cabos-img img {
    width: 100%;
    max-width: 520px;          /* espelha .renova-text para alinhar o centro com o texto */
    transition: 0.4s;
}

.cabos-img img:hover {
    transform: scale(1.05);
}


/* ============================================================
   11. FOOTER
============================================================ */

.nv-footer {
    background: #17304F;
    color: #e0e6f0;
    padding: 46px 0 0;
    border-top: #555 solid 4px;
}

/* Grid de 5 colunas: logo | conecte-se | seguir | conheça | mapa */
.nv-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr 1.1fr;
    gap: 40px;
    padding-bottom: 38px;
    align-items: start;
}

/* ─── Minimapa ─── */
.nv-map-col {
    display: flex;
    flex-direction: column;
}

.nv-map-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #2e4266;
}

.nv-map-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(30%) brightness(0.88) contrast(1.05);
}

.nv-map-label {
    font-size: 12px;
    color: #8fa3be;
    margin-top: 7px;
    letter-spacing: 0.3px;
}

/* Link "Abrir no Google Maps" */
.nv-map-link {
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s;
}

.nv-map-link:hover {
    color: #e83434;
}

/* Logo do footer */
.nv-logo {
    margin-bottom: 60px;
}

.nv-logo img {
    width: 300px;
    display: block;
}

/* Títulos das colunas */
.nv-col-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.nv-col a,
.nv-col span {
    display: block;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.15s;
}

.nv-col a:hover {
    color: #e83434;
}

/* Linha de redes sociais */
.nv-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.nv-social img {
    width: 20px;
}

.nv-social a {
    margin-bottom: 0;
    display: inline;
}

/* Linha de contato (email / fone) */
.nv-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.nv-contact-row img {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.nv-contact-row span {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
}

/* Linha divisória */
.nv-divider {
    border: none;
    border-top: 0.5px solid #2e4266;
    margin: 0;
}

/* ─── Dropdown catálogos técnicos (footer) ─── */
.nv-catalog-wrap {
    position: relative;
}

.nv-catalog-toggle {
    cursor: pointer;
    user-select: none;
}

.nv-catalog-dropdown {
    display: none;
    flex-direction: column;
    background: #1a2e48;
    border: 1px solid #2e4266;
    border-radius: 4px;
    margin-top: 4px;
    padding: 6px 0;
    min-width: 160px;
}

.nv-catalog-dropdown.open {
    display: flex;
}

.nv-catalog-dropdown a {
    padding: 8px 16px;
    font-size: 13px;
    color: #e0e6f0;
    text-decoration: none;
    margin-bottom: 0;
    transition: background 0.15s, color 0.15s;
}

.nv-catalog-dropdown a:hover {
    background: #243f60;
    color: #e83434;
}

/* Copyright */
.nv-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 17px 32px;
}

.nv-copy {
    font-size: 12px;
    color: #fff;
}


/* ============================================================
   12. RESPONSIVIDADE — MEDIA QUERIES
   Breakpoints:
   - 1200px: tablets grandes / notebooks menores
   - 1024px: tablets
   - 768px:  tablets pequenos / celulares grandes
   - 480px:  celulares
============================================================ */


/* ── 1200px ────────────────────────────────────────────── */
@media (max-width: 1200px) {

    /* Hero: reduz tamanho dos títulos */
    .hero-title h1 {
        font-size: 28px;
    }

    .highlight {
        font-size: 24px;
    }

    /* Colunas do footer mais compactas — 3 colunas + logo full width */
    .nv-top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }

    /* Logo ocupa largura total na linha acima */
    .nv-logo-area {
        grid-column: 1 / -1;
    }

    /* Mapa ocupa as 3 colunas da segunda linha */
    .nv-map-col {
        grid-column: 1 / -1;
    }

    .nv-map-wrap {
        aspect-ratio: 16 / 4;
    }

    .nv-logo img {
        width: 220px;
    }

    /* Catálogos: cards menores */
    .catalogo {
        width: 180px;
    }
}


/* ── 1024px ────────────────────────────────────────────── */
@media (max-width: 1024px) {

    /* Hero: empilha em coluna única */
    .wrapper {
        grid-template-columns: 1fr;
    }

    /* Seção Representamos: oculta grid e exibe carrossel */
    .grid {
        display: none;
    }

    .cards-carousel-wrapper {
        display: block;
        border: 2px solid #cfcfcf;
    }

    /* Seção Soluções: empilha em coluna única */
    .solucoes-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "texto"
            "mapa"
            "imagem2";
        gap: 30px;
    }

    /* Nav ocupa mais espaço */
    .nav {
        gap: 30px;
        padding: 0 20px;
    }

    /* Header: logo ocupa menos colunas */
    .headerbar {
        grid-template-columns: auto 1fr auto;
    }

    /* Renova / JEA: empilha em coluna única */
    .renova-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "img"
            "texto"
            "catalogo"
            "cabos";
        gap: 40px;
    }

    .renova-text {
        max-width: 100%;
    }

    /* Imagem de produto acompanha o texto: largura total quando empilha */
    .cabos-img img {
        max-width: 100%;
    }

    .logo-renova {
        font-size: 40px;
    }
}


/* ── 768px ─────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Top Bar ── */
    /* Em mobile: empilha slider no centro, localização e restrita discretos */
    .topbar-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 3px;
        padding: 6px 0;
    }

    /* Ordem visual: localização → slider → sessão restrita */
    .topbar-location { order: 1; }
    .topbar-slider   { order: 2; width: 100%; justify-content: center; }
    .topbar-restrita { order: 3; justify-content: center; }

    .topbar-location,
    .topbar-restrita {
        justify-content: center;
        font-size: 0.75rem;
    }

    .topbar-text {
        justify-content: center;
    }

    /* ── Header ── */
    /* Muda para layout de 3 células: logo | (vazio) | hamburguer */
    .headerbar {
        grid-template-columns: 1fr auto auto;
        padding: 8px 0;
    }

    /* Botão CTA oculto em mobile — o contato vai pelo WhatsApp da barra social */
    .container-botao {
        display: none;
    }

    /* Nav desktop oculta; hamburguer ativo */
    .nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 50%;
        height: 100%;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 150;
        padding: 80px 20px 20px;
        box-shadow: -4px 0 24px rgba(0,0,0,0.13);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .nav.open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .links-nav {
        font-size: 1.4rem;
    }

    /* Hamburguer visível */
    .menu-toggle {
        display: flex;
    }

    /* Dropdown mobile (dentro do menu aberto) — combobox inline centralizado */
    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        display: none;
        position: static;
        left: auto;
        transform: none;
        width: 260px;
        padding: 6px 0;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
        border: 1.5px solid #e0e4ea;
        background: #f4f6f9;
        border-radius: 12px;
        overflow: hidden;
        margin-top: 10px;
    }

    .dropdown-menu.open {
        display: block;
    }

    .dropdown-item {
        color: #17304F;
        font-size: 1rem;
        padding: 13px 24px;
        border-bottom: 1px solid #e0e4ea;
        display: block;
        text-align: center;
        width: 100%;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:active {
        color: #e83434;
        background: #eaedf2;
    }

    .dropdown-overlay {
        display: none !important; /* no mobile o overlay não é necessário */
    }

    /* Overlay para escurecer o lado esquerdo ao abrir o menu mobile */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        background: rgba(0, 0, 0, 0.35);
        z-index: 149;
    }

    .nav-overlay.open {
        display: block;
    }

    /* ── Hero ── */
    .hero-title h1 {
        font-size: 24px;
    }

    .highlight {
        font-size: 20px;
    }

    .h1-subtexto {
        font-size: 14px;
    }

    /* Colunas de inspiração: empilha em 1 coluna */
    .table-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .table-cols div::after {
        display: none;
    }

    /* ── Barra social ── */
    /* Move para baixo em mobile para não sobrepor conteúdo */
    .social-bar {
        right: 10px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Quando o menu drawer está aberto, empurra as bolinhas para baixo da tela */
    body.nav-open .social-bar {
        transform: translateY(200vh);
    }

    .social-bar a img {
        width: 20px;
    }

    /* Remove rotação em touch — evita estado travado após toque */
    /* Mantém a troca de cor via classe .over-footer (JS) */
    .social-bar a:hover {
        background-color: #17304F;
    }
    .social-bar a.float-360:hover {
        transform: none;
    }
    .social-bar a.over-footer {
        background-color: #e83434;
    }

    /* ── Seção Renova / JEA ── */
    .renova {
        padding: 60px 0;
    }

    .logo-renova {
        font-size: 32px;
    }

    /* Catálogos: 1 por linha */
    .catalogos-grid {
        flex-direction: column;
        align-items: center;
    }

    .catalogo {
        width: 100%;
        max-width: 320px;
    }

    /* ── Footer ── */
    .nv-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .nv-logo {
        grid-column: 1 / -1; /* logo ocupa linha inteira */
        margin-bottom: 0;
    }

    .nv-map-col {
        grid-column: 1 / -1; /* mapa ocupa linha inteira */
    }

    .nv-map-wrap {
        aspect-ratio: 16 / 5;
    }

    .nv-logo img {
        width: 180px;
    }
}


/* ── 480px ─────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Container com menos padding */
    .container {
        padding: 0 16px;
    }

    /* Hero ainda menor */
    .hero-title h1 {
        font-size: 22px;
    }

    .highlight {
        font-size: 18px;
    }

    /* Título da seção Renova */
    .logo-renova {
        font-size: 28px;
    }

    .logo-renova span {
        font-size: 16px;
    }

    /* Footer: 1 coluna */
    .nv-top {
        grid-template-columns: 1fr;
    }

    .nv-map-col {
        grid-column: 1;
    }

    .nv-map-wrap {
        aspect-ratio: 4 / 3;
    }

    .nv-bottom {
        padding: 14px 16px;
        text-align: center;
    }

    .nv-copy {
        font-size: 11px;
    }

    /* Carrossel Representamos: padding menor nos cards */
    .cards-track .card {
        padding: 20px 16px;
    }
}

/* =============================================
   SEÇÃO PARCEIROS — Nossos parceiros
============================================== */
.section-parceiros {
  padding: 72px 0 64px;
  background: #fff;
}

.parceiros-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cabeçalho */
.parceiros-header {
  text-align: center;
  margin-bottom: 48px;
}

.parceiros-titulo {
  font-size: 1.9rem;
  font-weight: 700;
  color: #17304F;
  margin-bottom: 10px;
}

.parceiros-subtitulo {
  font-size: 0.95rem;
  color: #6b6f74;
}

/*
  Grade de logos — grade invisível:
  centraliza, espaça bem, sem bordas aparentes nos itens.
  Flex com wrap para acomodar 1, 2, 3... logos automaticamente.
*/
.parceiros-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px 64px;
  width: 100%;
  max-width: 960px;
}

/* Item individual */
.parceiro-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.parceiro-item a {
  display: block;
  line-height: 0;
}

/*
  Logo: grayscale sutil no estado normal,
  cor original no hover — efeito elegante e discreto.
*/
.parceiro-item img {
  max-height: 78px;
  max-width: 248px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(60%) opacity(0.75);
  transition: filter 0.3s ease;
}

.parceiro-item a:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Responsivo */
@media (max-width: 768px) {
  .section-parceiros {
    padding: 52px 0 44px;
  }

  .parceiros-titulo {
    font-size: 1.45rem;
    padding: 0 16px;
  }

  .parceiros-subtitulo {
    font-size: 0.875rem;
    padding: 0 20px;
  }

  .parceiros-grid {
    gap: 36px 40px;
  }

  .parceiro-item img {
    max-height: 61px;
    max-width: 193px;
  }
}

@media (max-width: 480px) {
  .parceiros-grid {
    gap: 28px 32px;
  }

  .parceiro-item img {
    max-height: 53px;
    max-width: 166px;
  }
}

/* =============================================
   SEÇÃO AVALIAÇÕES — Google Reviews (Fase 1)
============================================== */
.gr-section {
  padding: 80px 0 64px;
  background: #f8f9fa;
  overflow: hidden;
}

/* ── Cabeçalho editorial ── */
.gr-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
  padding: 40px 48px;
  background: #fff;
  border: 1px solid #e0e4ea;
  overflow: hidden;
}

/* Decorações ao fundo */
.gr-deco {
  position: absolute;
  border: 1px solid #e0e4ea;
  background: #f8f9fa;
  pointer-events: none;
  z-index: 0;
}

.gr-deco-1 {
  width: 180px;
  height: 120px;
  right: 260px;
  top: -30px;
  opacity: 0.5;
  transform: rotate(-4deg);
}

.gr-deco-2 {
  width: 140px;
  height: 90px;
  right: 230px;
  bottom: -20px;
  opacity: 0.35;
  transform: rotate(3deg);
  background: #eef0f3;
}

.gr-deco-3 {
  width: 100px;
  height: 70px;
  right: 370px;
  top: 20px;
  opacity: 0.25;
  transform: rotate(-2deg);
  background: #e8eaed;
}

/* Coluna esquerda: título + subtítulo */
.gr-header-left {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Título */
.gr-titulo {
  text-align: left;
  font-size: 2.35rem;
  font-weight: 800;
  color: #17304F;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

/* Subtítulo */
.gr-subtitulo {
  text-align: left;
  font-size: 0.95rem;
  color: #6b6f74;
  margin: 0;
  max-width: 420px;
}

/* ── Badge do Google ── */
.gr-badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  padding: 22px 32px;
  flex-shrink: 0;
  min-width: 230px;
}

/* Bordas coloridas nas 4 laterais */
.gr-badge-border-top,
.gr-badge-border-right,
.gr-badge-border-bottom,
.gr-badge-border-left {
  position: absolute;
  pointer-events: none;
}

.gr-badge-border-top {
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #4285F4;
}

.gr-badge-border-right {
  top: 0; right: 0; bottom: 0;
  width: 3px;
  background: #EA4335;
}

.gr-badge-border-bottom {
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #FBBC05;
}

.gr-badge-border-left {
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: #34A853;
}

/* Linha 1: G + estrelas */
.gr-badge-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gr-badge-glogo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.gr-badge-stars {
  display: flex;
  gap: 2px;
}

.gr-badge-star {
  font-size: 1.6rem;
  line-height: 1;
  color: #ccc;
}

.gr-badge-star.filled {
  color: #FBBC05;
}

.gr-badge-star.half {
  background: linear-gradient(to right, #FBBC05 50%, #ccc 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Linha 2: nota e contagem */
.gr-badge-row2 {
  font-size: 0.9rem;
  color: #333;
  text-align: center;
  line-height: 1.4;
}

.gr-badge-row2 strong {
  font-weight: 700;
  color: #17304F;
}

.gr-badge-sep,
.gr-badge-sep2 {
  color: #555;
  font-weight: 400;
}


/* Mural */
.gr-mural {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.gr-track-outer {
  overflow: hidden;
  width: 100%;
  /* Fade nas bordas */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.gr-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

/* Animações */
.gr-track-left {
  animation: grScrollLeft 90s linear infinite;
}

.gr-track-right {
  animation: grScrollRight 90s linear infinite;
}

.gr-track-outer:hover .gr-track {
  animation-play-state: paused;
}

@keyframes grScrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes grScrollRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Respeita prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .gr-track-left,
  .gr-track-right {
    animation: none;
  }
  .gr-track {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}

/* Card individual */
.gr-card {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 0;
  padding: 22px 24px;
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 8px rgba(23,48,79,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.gr-card:hover {
  box-shadow: 0 4px 20px rgba(23,48,79,0.13);
  transform: translateY(-2px);
}

.gr-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gr-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: #17304F;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  overflow: hidden;
  position: relative;
  padding: 0;
}

/* Foto real do Google */
.gr-avatar-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
}

/* Iniciais — fallback quando não há foto */
.gr-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.gr-card-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: #17304F;
  line-height: 1.2;
}

.gr-card-stars {
  font-size: 0.8rem;
  color: #e6a817;
  letter-spacing: 1px;
  margin-top: 2px;
}

.gr-card-text {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.gr-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #e0e4ea;
}

.gr-card-footer img {
  width: 14px;
  opacity: 0.45;
}

.gr-card-footer span {
  font-size: 0.72rem;
  color: #6b6f74;
  letter-spacing: 0.3px;
}

/* Botão CTA */
.gr-cta-wrap {
  display: flex;
  justify-content: center;
}

.gr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: #e83434;
  color: #fff;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.gr-btn:hover {
  background: #c62828;
}

/* Responsivo */
@media (max-width: 768px) {
  .gr-section {
    padding: 56px 0 48px;
  }

  .gr-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 24px;
  }

  .gr-badge {
    width: 100%;
    min-width: unset;
    justify-content: flex-start;
  }

  .gr-titulo {
    font-size: 1.7rem;
    text-align: left;
  }

  .gr-subtitulo {
    font-size: 0.875rem;
    text-align: left;
  }

  .gr-deco-1,
  .gr-deco-2,
  .gr-deco-3 {
    display: none;
  }

  .gr-card {
    width: 240px;
    padding: 18px 18px;
  }
  /* Mobile: só 1 faixa visível */
  .gr-mural .gr-track-outer:last-child {
    display: none;
  }
}
