/*
Theme Name: TemaSofas
Theme URI: https://tapecariasofabelo.com.br/temasofas/
Author: Seu Nome
Author URI: https://tapecariasofabelo.com.br/
Description: Um tema WordPress personalizado com layout de banners.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: temasofas
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.entry-content img { /* Ou um seletor mais específico para a sua imagem */
    max-width: 100%;
    height: auto;
}

.entry-content table { /* Ou um seletor mais específico para a sua tabela */
    display: block; /* Faz a tabela se comportar como um bloco */
    overflow-x: auto; /* Adiciona uma barra de rolagem horizontal quando necessário */
    width: auto; /* Permite que a largura se ajuste ao conteúdo */
    max-width: 100%; /* Impede que a tabela seja maior que o contêiner */
}



/* Se você tiver um cabeçalho fixo, ajuste o padding-top do body */
body {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #b8b8b8; /* Defina a cor de fundo padrão aqui se desejar */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-family: "Poppins", sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos do Hero */



.button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #555;
}

.button.secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

.button.secondary:hover {
    background-color: #333;
    color: #fff;
}




.service-item {
    position: relative;
    cursor: pointer; /* Indica que o elemento é interativo */
}

.service-item::before {
    content: attr(data-tooltip); /* Pega o texto do atributo data-tooltip */
    position: absolute;
    bottom: calc(100% + 10px); /* Posiciona acima do item */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8); /* Preto semi-transparente */
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 10; /* Garante que o tooltip fique acima de outros elementos */
}

.service-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px); /* Pequeno deslocamento para o efeito */
}

/* Estilos da Seção de Reformas */
.reforms {
    padding: 60px 0;
    background-color: #eee;
    text-align: center;
}

.reforms h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.reforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.reform-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.reform-item img {
    width: 100%;
    display: block;
    height: auto;
}

.reform-item h3 {
    padding: 15px;
    margin-top: 0;
    font-size: 1.1em;
}

.reform-item p {
    padding: 0 15px 15px;
    color: #777;
    font-size: 0.9em;
}

.reforms-actions {
    text-align: center;
}

/* Estilos do Rodapé */


/* Responsividade (Opcional) */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2em;
    }

    .services-list {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 90%;
        margin-bottom: 20px;
    }

    .reforms-grid {
        grid-template-columns: 1fr;
    }
}


.navbar-nav .nav-item {
    margin-left: 19px; /* Espaçamento à esquerda de 8px */
    margin-right: 1px; /* Espaçamento à direita de 1px para totalizar 9px */
}

.hero .btn-light {
    background-color: #fff; /* Branco */
    color: #333; /* Texto escuro para contraste */
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid #fff; /* Borda branca sutil */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra suave */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative; /* Para o efeito de "onda" */
    overflow: hidden; /* Esconde a "onda" fora do botão */
}

.hero .btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Cor da "onda" */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero .btn-light:hover::before {
    opacity: 1; /* Mostra a "onda" no hover */
}

.hero .btn-light:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5); /* Foco branco */
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .btn-light.animate-in {
    animation: fadeInUp 0.8s ease-out 0.5s backwards; /* Animação fadeInUp, duração 0.8s, suave, delay de 0.5s, permanece no estado inicial */
}

.service-item h3 {
    color: #000; /* Define a cor do texto para preto */
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}



.cta-button {
    position: relative; /* Necessário para posicionar pseudo-elementos para efeitos futuros */
    overflow: hidden; /* Esconde efeitos que ultrapassam as bordas */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: #28a745; /* Tom de verde ligeiramente mais claro ou ajustado */
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.7); /* Sombra suave ao hover */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 180px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Transição suave para os efeitos */
}

.service-item:hover {
    transform: translateY(-5px); /* Move o card 5 pixels para cima */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2); /* Sombra mais pronunciada ao passar o mouse */
}

.service-icon {
    font-size: 2em;
    margin-bottom: 10px;
    transition: opacity 0.2s ease-in-out; /* Transição suave para opacidade (opcional) */
}

.service-item:hover .service-icon {
    opacity: 0.8; /* Levemente mais transparente ao hover (opcional) */
}

.service-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
    transition: color 0.2s ease-in-out; /* Transição suave para cor (opcional) */
}

.service-item:hover h3 {
    color: #007bff; /* Exemplo de mudança de cor do título ao hover (opcional) */
}

.service-item p {
    color: #777;
    font-size: 0.9em;
}

.tooltip-container {
    position: relative; /* Necessário para posicionar o tooltip */
    cursor: pointer; /* Indica que há uma interação */
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px; /* Centraliza o tooltip */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Estilos adicionais para a "seta" do tooltip (opcional) */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.card-link {
    display: block; /* Faz o link ocupar todo o espaço do card */
    text-decoration: none; /* Remove o sublinhado padrão do link */
    color: inherit; /* Herda a cor do texto do pai */
    height: 100%; /* Garante que o link tenha a altura total do card */
    width: 100%; /* Garante que o link tenha a largura total do card */
}




footer table {
    display: block;
    overflow-x: auto;
    width: auto;
    max-width: 100%;
}

footer p, footer h5, footer a {
    word-break: break-word;
    overflow-wrap: break-word; /* Alternativa mais recente para word-wrap */
}


/* Estilos para o texto principal da seção */
#first-content > div:first-child p { /* Se o texto principal estiver dentro de um <p> */
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400; /* Normal ou levemente mais claro */
}

/* Estilos para o texto "225 modelos", "242 modelos", etc. */
#first-content .service-item p {
    font-size: 0.95rem;
    color: #777;
    margin-top: 0.3rem;
    font-style: italic; /* Leve inclinação para diferenciar */
}

/* Estilos para o tooltip (se você estiver usando) */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5em 1em;
    border-radius: 0.3em;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}










/* MOBILEE */


/* Estilos Responsivos para Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Seção Principal com Título e Imagem */
    .py-5:first-of-type .container .row {
        flex-direction: column; /* Empilha título e imagem */
        text-align: center; /* Centraliza o texto */
    }

    .py-5:first-of-type .col-lg-6:first-child { /* Coluna do título */
        margin-bottom: 2rem;
        text-align: center;
    }

    .py-5:first-of-type .col-lg-6:last-child { /* Coluna da imagem */
        text-align: center;
    }

    .py-5:first-of-type .col-lg-6 .display-4 {
        font-size: 2rem;
    }

    .py-5:first-of-type .col-lg-6 .lead {
        font-size: 1rem;
    }

    .py-5:first-of-type .col-lg-6 .btn-primary {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }

    .py-5:first-of-type .col-lg-6 img {
        max-width: 100% !important; /* Garante que a imagem não ultrapasse a tela */
        height: auto !important;
    }

    /* Seção de Serviços (#first-content) */
    #first-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    #first-content .services-list {
        flex-direction: column !important; /* Empilha os itens */
        align-items: center !important; /* Centraliza os itens */
    }

    #first-content .service-item {
        width: 90% !important;
        margin: 1rem 0 !important;
        max-width: none !important; /* Remove largura máxima */
    }

    #first-content .service-item h3 {
        font-size: 1.3rem;
    }

    #first-content .service-item p {
        font-size: 0.9rem;
    }

    /* Seção "Seu Sofá Merece um Novo Capítulo!" */
    .py-5:nth-child(4) { /* Ajustado para a ordem correta */
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-5:nth-child(4) h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1rem !important;
    }

    .py-5:nth-child(4) .lead {
        font-size: 1rem !important;
    }

    .py-5:nth-child(4) ul li {
        font-size: 1rem !important;
    }

    .py-5:nth-child(4) .btn.cta-button {
        font-size: 1.3rem !important;
        padding: 0.8rem 1.8rem !important;
    }

    .py-5:nth-child(4) img {
        position: static !important; /* Remove o posicionamento absoluto para mobile */
        transform: none !important; /* Remove a transformação */
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        margin-bottom: 1rem; /* Adiciona espaço abaixo da imagem */
    }

    /* Seção "Nossa Expertise em Números" */
    .py-5:nth-child(5) { /* Ajustado para a ordem correta */
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-5:nth-child(5) h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem !important;
    }

    .py-5:nth-child(5) .row {
        flex-direction: column !important; /* Empilha as colunas */
        align-items: center !important; /* Centraliza os itens */
    }

    .py-5:nth-child(5) .col-md-3 {
        width: 80% !important;
        margin-bottom: 1.5rem !important;
    }

    .py-5:nth-child(5) .counter {
        font-size: 1.5em !important;
    }

    .py-5:nth-child(5) p {
        font-size: 0.95rem !important;
    }

    /* Seção "Nossos Projetos, Sua Inspiração!" (Galeria) */
    .py-5:nth-child(6) { /* Ajustado para a ordem correta */
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-5:nth-child(6) h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem !important;
    }

    .py-5:nth-child(6) .lead {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .py-5:nth-child(6) .d-flex {
        flex-direction: column !important; /* Empilha os cards */
        align-items: center !important; /* Centraliza os cards */
    }

    .py-5:nth-child(6) .project-card {
        width: 90% !important;
        max-width: none !important;
        margin-bottom: 1.5rem !important;
    }

    .py-5:nth-child(6) .card-title {
        font-size: 1.1rem !important;
    }

    .py-5:nth-child(6) .card-text {
        font-size: 0.9rem !important;
    }

    .py-5:nth-child(6) .tooltip-text {
        width: 80% !important; /* Ajusta a largura do tooltip */
        font-size: 0.85rem !important;
    }

    .py-5:nth-child(6) .text-center.mt-6 .btn {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    /* Seção "O Que Nossos Clientes Dizem" (Depoimentos) */
    .py-5:last-of-type { /* Ajustado para a última seção */
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-5:last-of-type h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem !important;
    }

    .py-5:last-of-type .lead {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .py-5:last-of-type .row-cols-md-2 {
        grid-template-columns: 1fr !important; /* Empilha os depoimentos */
    }

    .py-5:last-of-type .card-body {
        padding: 1rem !important;
    }

    .py-5:last-of-type .card-text {
        font-size: 0.95rem !important;
    }

    .py-5:last-of-type .text-center.mt-5 .btn {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
    }
}

/* Estilos para dispositivos móveis (largura máxima de 768px) */
@media (max-width: 768px) {
    .hero-title {
      font-size: 3.1rem !important; /* Reduza o tamanho da fonte para mobile */
      line-height: 1.2 !important; /* Ajuste a altura da linha se necessário */
    }
  }
  
  /* Estilos para telas um pouco maiores (tablets menores, largura máxima de 991px) - Opcional */
  @media (max-width: 991px) {
    .hero-title {
      font-size: 3rem !important; /* Tamanho um pouco maior que mobile */
    }
  }
  
  /* Estilos para telas maiores (desktop) - Se você precisar de um tamanho específico */
  @media (min-width: 992px) {
    .hero-title {
      font-size: 3rem !important; /* Seu tamanho original ou um tamanho maior para desktop */
    }
  }



  


  .hero-content .hero-title {
    margin-bottom: 1.9rem; /* Ajuste o valor conforme a distância desejada */
}



/* Estilos para a página de conteúdo moderna e colorida */
.page-content {
    background-color: #f4f8fa; /* Um tom de azul bem claro como fundo geral */
    padding-top: 40px;
    padding-bottom: 40px;
}

.modern-page {
    background-color: #fff; /* Fundo branco para o bloco de conteúdo principal */
    border-radius: 12px; /* Bordas mais arredondadas */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08); /* Sombra mais suave e moderna */
    padding: 40px;
}

.entry-header {
    border-bottom: 3px solid #e0f2f7; /* Linha divisória em um tom mais claro da cor primária */
    padding-bottom: 25px;
    margin-bottom: 35px;
    text-align: center; /* Centralizar o título */
}

.entry-title {
    color: #2979ff !important; /* Um azul mais vibrante para o título */
    font-size: 2.5rem; /* Tamanho maior para o título */
    font-weight: 700; /* Título em negrito */
    letter-spacing: -0.5px; /* Ligeiro ajuste no espaçamento entre letras */
}

.entry-content {
    line-height: 1.9; /* Melhor espaçamento entre linhas para leitura */
    font-size: 1.15rem; /* Tamanho da fonte um pouco maior */
    color: #555; /* Tom de cinza mais suave para o texto */
}

.entry-content p {
    margin-bottom: 1.5rem; /* Espaçamento entre parágrafos */
}

.entry-content a {
    color: #2979ff; /* Cor primária para links */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.entry-content a:hover {
    color: #0d47a1; /* Tom mais escuro no hover */
    text-decoration: underline;
}

.page-links {
    margin-top: 30px;
    padding: 20px;
    background-color: #e3f2fd; /* Fundo claro para a paginação */
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    border: 1px solid #bbdefb;
}

.entry-footer {
    margin-top: 40px;
    text-align: right; /* Alinhar o link de edição à direita */
}

.entry-footer .edit-link a {
    color: #7e57c2; /* Uma cor secundária para o link de edição */
    text-decoration: none;
    border: 1px solid #7e57c2;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
}

.entry-footer .edit-link a:hover {
    background-color: #7e57c2;
    color: #fff;
}

/* Efeitos Sutis */
.modern-page {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.modern-page:hover {
    transform: translateY(-3px); /* Leve elevar ao passar o mouse */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); /* Sombra mais pronunciada no hover */
}



/* Oculta o botão de WhatsApp em telas menores que 992px (tamanho padrão do breakpoint 'lg' do Bootstrap) */
@media (max-width: 991.98px) {
    .navbar .ml-auto {
        display: none !important;
    }
}

/* Exibe o botão de WhatsApp em telas maiores */
@media (min-width: 992px) {
    .navbar .ml-auto {
        display: block !important;
    }
}


/* Estilo para o link de WhatsApp no menu móvel */
@media (max-width: 991.98px) {
    #primary-menu li#menu-item-whatsapp a { /* Use o ID do item de menu, inspecione o elemento no navegador */
        background-color: #25D366; /* Cor de fundo do WhatsApp */
        color: #fff !important;
        padding: 10px 15px;
        border-radius: 5px;
        margin-top: 10px; /* Adiciona um pouco de espaço acima */
        display: inline-block; /* Faz com que o padding e border-radius funcionem corretamente */
    }

    #primary-menu li#menu-item-whatsapp a:hover {
        background-color: #128C7E; /* Cor de fundo mais escura no hover */
    }
}

