/* -----------------------------------------------------------------------------
   1) BASE GLOBAL
   Define cores, fontes e resets gerais. As variáveis de cor devem permanecer
   intactas para preservar a identidade visual atual.  
----------------------------------------------------------------------------- */

:root {
  /* Cores de fundo e destaques */
  --lp-bg: #0f0f0f;
  --lp-bg-soft: #0b0b0b;
  --lp-wine: #a04040;
  --lp-gold: #c5a059;
  --lp-text: #e0e0e0;
  --lp-text-soft: #bebebe;
  --lp-text-muted: #8a8a8a;
  /* Bordas e sombras suaves em tom ouro */
  --lp-border-gold: rgba(197, 160, 89, 0.18);
  --lp-border-gold-soft: rgba(197, 160, 89, 0.14);
  --lp-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

html,
body {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
}

body {
  overflow-x: hidden;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease, opacity .3s ease, border-color .3s ease,
    background-color .3s ease;
}

a:hover {
  opacity: 0.8;
}

/* -----------------------------------------------------------------------------
   2) HEADER (CABEÇALHO)
   Estrutura esperada:
     .lp-header-logo  → logomarca
     .lp-header-menu  → navegação principal
     .lp-header-search → formulário de busca
   Elementos internos do Elementor são usados para alinhar colunas e aplicar
   fundo translúcido com efeito de desfoque.  
----------------------------------------------------------------------------- */

/* Contêiner geral do cabeçalho */
.elementor-location-header {
  position: relative;
  z-index: 999;
}

/* Seção superior com fundo translúcido e borda inferior */
.elementor-location-header .elementor-top-section {
  background: rgba(15, 15, 15, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lp-border-gold);
  box-shadow: var(--lp-shadow);
  transition: background .3s ease, box-shadow .3s ease,
    border-color .3s ease;
}

/* Contêiner interno com largura máxima */
.elementor-location-header .elementor-container {
  max-width: 1200px !important;
  display: flex;
  align-items: center;
}

/* Colunas do cabeçalho ocupam mesma altura e alinham conteúdo */
.elementor-location-header .elementor-column,
.elementor-location-header .elementor-widget-wrap {
  display: flex;
  align-items: center;
}

/* Logo, menu e busca alinhados nas respectivas posições */
.lp-header-logo,
.lp-header-menu,
.lp-header-search {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
}

.lp-header-logo {
  justify-content: flex-start;
}

.lp-header-menu {
  justify-content: center;
}

.lp-header-search {
  justify-content: flex-end;
}

/* Logomarca */
.lp-header-logo img {
  max-height: 58px !important;
  width: auto !important;
  display: block;
}

/* Navegação principal: estrutura e reset de links */
.lp-header-menu nav,
.lp-header-menu .elementor-nav-menu-wrapper,
.lp-header-menu .elementor-nav-menu--main,
.lp-header-menu .elementor-nav-menu {
  width: 100%;
}

.lp-header-menu .elementor-nav-menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 22px;
}

/* Reseta o estilo padrão do link para retirar cor azul de temas */
.lp-header-menu a,
.lp-header-menu a:link,
.lp-header-menu a:visited,
.lp-header-menu a:hover,
.lp-header-menu a:focus,
.lp-header-menu a:active,
.lp-header-menu .elementor-item,
.lp-header-menu .elementor-item:link,
.lp-header-menu .elementor-item:visited,
.lp-header-menu .elementor-item:hover,
.lp-header-menu .elementor-item:focus,
.lp-header-menu .elementor-item:active {
  font-family: "Montserrat", "Lora", sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 8px !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--lp-text) !important;
  -webkit-text-fill-color: var(--lp-text) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Item ativo ou corrente: destaca em dourado */
.lp-header-menu .current-menu-item > a,
.lp-header-menu .current-page-item > a,
.lp-header-menu .elementor-item.elementor-item-active,
.lp-header-menu .elementor-item.elementor-item--active,
.lp-header-menu .menu-item.current-menu-item > a,
.lp-header-menu .menu-item.current-page-item > a {
  color: var(--lp-gold) !important;
  -webkit-text-fill-color: var(--lp-gold) !important;
}

/* Hover: muda cor do link para dourado */
.lp-header-menu a:hover,
.lp-header-menu a:focus,
.lp-header-menu .elementor-item:hover,
.lp-header-menu .elementor-item:focus {
  color: var(--lp-gold) !important;
  -webkit-text-fill-color: var(--lp-gold) !important;
}

/* Remove traços ou ponteiros de pseudo-elementos da nav do Elementor */
.lp-header-menu .elementor-item:before,
.lp-header-menu .elementor-item:after {
  display: none !important;
}

/* Formulário de busca no cabeçalho (desktop) */
.lp-header-search form,
.lp-header-search .search-form {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px;
  margin: 0 !important;
  width: 100%;
}

/* Campo de texto de busca: largura moderada para desktop */
.lp-header-search input[type="search"],
.lp-header-search input[type="text"] {
  width: 180px !important;
  max-width: 100% !important;
  padding: 10px 20px;
  border: 1px solid rgba(197, 160, 89, 0.24) !important;
  border-radius: 999px !important;
  font-size: 0.87rem !important;
  font-weight: 400;
  font-family: "Montserrat", sans-serif !important;
  color: var(--lp-text) !important;
  background: #111;
  outline: none !important;
  box-shadow: none !important;
}

/* Cor do placeholder */
.lp-header-search input[type="search"]::placeholder,
.lp-header-search input[type="text"]::placeholder {
  color: rgba(224, 224, 224, 0.55);
}

/* Botão de busca (submit) */
.lp-header-search button,
.lp-header-search input[type="submit"] {
  background: var(--lp-bg) !important;
  color: var(--lp-bg) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 0.87rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  position: relative;
}

/* Ícone de lupa estilizado: usa o ::before do botão, se presente no tema */
.lp-header-search button::before,
.lp-header-search input[type="submit"]::before {
  /* Caso haja ícone no tema, centraliza verticalmente */
  vertical-align: middle;
}

/* Hover do botão de busca: preenche e ajusta cor do texto */
.lp-header-search button:hover,
.lp-header-search input[type="submit"]:hover {
  background: var(--lp-text) !important;
  color: var(--lp-bg) !important;
}

/* Cabeçalho fixo ao rolar (sticky) */
.elementor-sticky--active {
  background: rgba(10, 10, 10, 0.94) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25) !important;
  border-bottom: 1px solid rgba(197, 160, 89, 0.22) !important;
}

/* -----------------------------------------------------------------------------
   3) FOOTER (RODAPÉ)
   Estrutura esperada:
     .lp-footer-logo      → logotipo
     .lp-footer-text      → texto institucional
     .lp-footer-title     → títulos de seção
     .lp-footer-links     → links de navegação
     .lp-footer-newsletter→ newsletter/cadastro
     .lp-footer-bottom    → linha inferior com direitos e links
----------------------------------------------------------------------------- */

.elementor-location-footer {
  background: var(--lp-bg-soft) !important;
  color: var(--lp-text) !important;
  border-top: 1px solid var(--lp-border-gold) !important;
}

.elementor-location-footer .elementor-container {
  max-width: 1200px !important;
  padding: 48px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

/* Colunas do rodapé ajustadas para linhas sem espalhar em excesso */
.lp-footer-logo,
.lp-footer-text,
.lp-footer-title,
.lp-footer-links,
.lp-footer-newsletter {
  width: 100%;
  max-width: 300px;
}

/* Logotipo do rodapé */
.lp-footer-logo img {
  max-height: 118px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

/* Texto institucional */
.lp-footer-text {
  font-family: "Lora", serif;
  color: var(--lp-text);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* Títulos */
.lp-footer-title .elementor-heading-title,
.lp-footer-title h2,
.lp-footer-title h3 {
  font-family: "Cinzel", "Playfair Display", serif !important;
  color: var(--lp-gold) !important;
  font-size: 1.2rem !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: 0.5px !important;
}

/* Links: remove bullets e define cor */
.lp-footer-links ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lp-footer-links li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lp-footer-links a,
.lp-footer-links .elementor-item,
.lp-footer-links .menu-item a {
  display: block !important;
  width: 100% !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 0.95rem !important;
  color: var(--lp-text) !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  -webkit-text-fill-color: var(--lp-text) !important;
}

.lp-footer-links a:hover,
.lp-footer-links .elementor-item:hover,
.lp-footer-links .menu-item a:hover {
  color: var(--lp-gold) !important;
  -webkit-text-fill-color: var(--lp-gold) !important;
}

/* Newsletter: contêiner */
.lp-footer-newsletter {
  max-width: 360px;
}

.lp-footer-newsletter p {
  color: var(--lp-text);
  line-height: 1.7;
  margin: 0 0 14px 0;
}

.lp-footer-newsletter form,
.lp-footer-newsletter .search-form,
.lp-footer-newsletter .newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-footer-newsletter input {
  flex: 1;
  min-width: 0;
  background: #111;
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--lp-text);
  padding: 10px 12px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  outline: none;
  box-shadow: none;
}

.lp-footer-newsletter input::placeholder {
  color: rgba(224, 224, 224, 0.55);
}

.lp-footer-newsletter button {
  background: var(--lp-gold);
  color: var(--lp-bg);
  border: none;
  padding: 10px 14px;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.lp-footer-newsletter button:hover {
  background: var(--lp-text);
  color: var(--lp-wine);
}

/* Linha inferior do rodapé */
.lp-footer-bottom {
  text-align: center;
  color: var(--lp-text-muted);
  font-size: 0.82rem;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  font-family: "Montserrat", sans-serif;
}

.lp-footer-bottom a {
  color: var(--lp-text-muted) !important;
  text-decoration: none !important;
  margin: 0 8px;
}

.lp-footer-bottom a:hover {
  color: var(--lp-gold) !important;
}

/* -----------------------------------------------------------------------------
   4) AJUSTES RESPONSIVOS – TABLET (≤1024px)
   Ajusta tamanhos e espaçamentos para tablets e telas de notebook pequenos.
----------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  /* Reduz logo no cabeçalho */
  .lp-header-logo img {
    max-height: 52px !important;
  }

  /* Ajusta espaçamento do menu */
  .lp-header-menu .elementor-nav-menu > nav ul > li > a {
    font-size: 0.84rem !important;
    letter-spacing: 0.8px;
    padding: 8px 8px;
  }

  /* Campo de busca menor */
  .lp-header-search input[type="search"],
  .lp-header-search input[type="text"] {
    width: 140px !important;
  }

  /* Newsletter no rodapé ocupa 100% da largura em tablets */
  .lp-footer-newsletter {
    width: 100%;
  }
}

/* -----------------------------------------------------------------------------
   5) AJUSTES RESPONSIVOS – MOBILE (≤767px)
   Consolida todas as regras para dispositivos móveis em um único bloco para
   evitar conflitos de aninhamento. Os elementos são reorganizados verticalmente
   e ganham larguras de 100% para melhorar a usabilidade em telas pequenas.
----------------------------------------------------------------------------- */

@media (max-width: 767px) {
  /* ================= CABEÇALHO ================= */
  /* Reorganiza o contêiner do cabeçalho em colunas verticais */
  .elementor-location-header .elementor-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Ajusta logo, menu e busca para largura total */
  .lp-header-logo,
  .lp-header-menu,
  .lp-header-search {
    justify-content: flex-start;
    width: 100%;
    min-height: auto;
  }

  /* Campo de busca aparece antes ou depois do menu conforme ordem das colunas */
  .lp-header-search form,
  .lp-header-search .search-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .lp-header-search input[type="search"],
  .lp-header-search input[type="text"] {
    width: 100% !important;
    display: block !important;
  }

  .lp-header-search button,
  .lp-header-search input[type="submit"] {
    width: 100% !important;
    margin-top: 6px !important;
    text-align: center !important;
  }

  /* Aumenta área clicável do ícone/menu hamburguer */
  .e-n-menu-toggle {
    padding: 12px;
  }
  .e-n-menu-toggle svg {
    width: 24px;
    height: 24px;
  }

  /* ================= HERO / CTA ================= */
  /* Títulos maiores e centralizados */
  .elementor-widget-heading .elementor-heading-title {
    font-size: 32px !important;
    line-height: 1.2;
    text-align: center;
  }

  .elementor-widget-text-editor {
    font-size: 16px !important;
    line-height: 1.5;
    text-align: center;
  }

  /* Botões (CTA) de largura completa e alinhados ao centro */
  .elementor-widget-button .elementor-button {
    display: block;
    width: 100% !important;
    margin: 12px 0;
    font-size: 16px !important;
    letter-spacing: 0.5px;
    text-align: center;
  }

  /* ================= SEÇÃO "Oi, eu sou a Tamis" ================= */
  /* Coloca a imagem acima do texto e centraliza conteúdo */
  .home .elementor-section .elementor-container {
    flex-direction: column !important;
    align-items: center !important;
  }

  .home .elementor-column {
    width: 100% !important;
    margin-bottom: 24px;
  }

  .home .elementor-image {
    text-align: center;
  }

  .home .elementor-image img {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 0 auto 16px auto;
  }

  .home .elementor-text-editor,
  .home .elementor-heading-title {
    text-align: center;
  }

  /* ================= COLUNAS DA HOME PAGE ================= */
  /* Faz cada coluna ocupar 100% e adiciona espaçamento entre elas */
  .elementor-container {
    flex-direction: column !important;
  }
  .elementor-column,
  .elementor-widget-wrap {
    width: 100% !important;
    margin-bottom: 24px;
  }

  /* ================= POSTS RECENTES / BLOG ================= */
  /* Ajusta cartão de post para layout vertical */
  .post-card,
  .lp-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
  }

  .post-card .post-thumbnail,
  .lp-card .post-thumbnail {
    width: 100% !important;
    height: auto !important;
  }
  .post-card img,
  .lp-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .post-card .post-title,
  .lp-card .post-title {
    font-size: 20px !important;
    line-height: 1.3;
    text-align: left;
  }

  .post-card .post-excerpt,
  .lp-card .post-excerpt {
    font-size: 14px !important;
    line-height: 1.6;
    color: var(--lp-text-soft);
  }

  /* Ajusta botão de "Leia Mais" dentro do card */
  .post-card .read-more,
  .lp-card .read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--lp-border-gold);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--lp-text);
  }
  .post-card .read-more:hover,
  .lp-card .read-more:hover {
    background: var(--lp-text);
    color: var(--lp-bg);
  }

  /* ================= GERAL ================= */
  /* Maior espaçamento inferior entre seções */
  section {
    margin-bottom: 48px;
  }
}