/*
Theme Name: Vyntr8 Deluxe
Theme URI: https://vyntr8.pt
Description: Child theme personalizado baseado no Astra, com design e funções Vyntr8.
Author: Pedro
Author URI: https://vyntr8.pt
Template: astra
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vyntr8-deluxe
*/


/* =========================================================
   1) ROOT VARIABLES / DESIGN TOKENS
   --------------------------------------------------------- */

:root {
  /* Cores principais do tema */
  --v8-bg: #020617;
  --v8-surface: #0f172a;
  --v8-primary: #38bdf8;
  --v8-accent: #a855f7;
  --v8-gold: #facc15;

  /* Texto */
  --v8-text-main: #e5e7eb;
  --v8-text-soft: #cbd5f5;
  --v8-text-muted: #64748b;

  /* Raio de borda */
  --v8-radius-lg: 1.6rem;
  --v8-radius-md: 1.3rem;
  --v8-radius-pill: 999px;

  /* Sombra padrão */
  --v8-shadow-soft: 0 18px 36px rgba(15,23,42,0.9);

  /* Largura máxima global (inclui Astra + Vyntr8) */
  --v8-container-max: 1280px;

  /* Fonte base */
  --v8-font-sans: system-ui,-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",sans-serif;
}

/* =========================================================
   2) BODY / BACKGROUND
   --------------------------------------------------------- */

body.vyntr8-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--v8-font-sans);
  color: var(--v8-text-main);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;

  /* Fundo escuro com radiais suaves */
  background:
    radial-gradient(circle at 18% 22%, rgba(56,189,248,0.065), transparent 52%),
    radial-gradient(circle at 82% 78%, rgba(168,85,247,0.06), transparent 52%),
    radial-gradient(circle at 40% 85%, rgba(14,165,233,0.058), transparent 50%),
    var(--v8-bg) !important;
}

/* Remove fundos que o Astra possa injetar por pseudo-elementos */
body.vyntr8-body::before,
body.vyntr8-body::after {
  display: none !important;
}

/* =========================================================
   3) LARGURA GLOBAL (ASTRA CONTAINER)
   --------------------------------------------------------- */
/* ATENÇÃO: tudo o site usa .ast-container como "container" principal */

.ast-container,
.site-content .ast-container,
.ast-header-break-point .site-header .ast-container {
  max-width: var(--v8-container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.v8-container {
  max-width: var(--v8-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Corrige a largura do header para alinhar com o resto do site */
.v8-header-inner {
  max-width: var(--v8-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}


/* Mantemos fundo transparente nas secções Vyntr8,
   sem interferir com estrutura global do Astra. */
.v8-section,
.v8-section-alt {
  background: transparent !important;
}

/* =========================================================
   4) HEADER VYNTR8
   --------------------------------------------------------- */

.v8-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(2,6,23,0.72) !important;
  border-bottom: 1px solid rgba(148,163,184,0.22) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35) !important;
}

.v8-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0 !important;
}

/* Logo principal */

.v8-logo-link {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.v8-logo-gradient {
  background: linear-gradient(
    90deg,
    #06b6d4 0%,
    #0ea5e9 15%,
    #22c55e 32%,
    #fde047 52%,
    #fb923c 70%,
    #a855f7 100%
  );
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.06));
}

.v8-logo-dot {
  color: #ffffff;
  opacity: 0.9;
}

/* =========================================================
   5) NAVEGAÇÃO PRINCIPAL
   --------------------------------------------------------- */

/* Lista de navegação principal */
.v8-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links de navegação + botão "Temas" (dropdown) uniformizados */
.v8-nav-list li a,
.v8-nav-link-dropdown {
  color: #c7cfdb !important;
  opacity: 0.95;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  margin: 0 !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  font-size: 0.95rem !important;
  transition: color .16s ease, opacity .16s ease;
}

/* Sublinha gradiente no hover */
.v8-nav-list li a::after,
.v8-nav-link-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  border-radius: 8px;
  background: linear-gradient(to right, var(--v8-primary), var(--v8-accent));
  transition: width .18s ease;
}

/* Hover nos links de navegação */
.v8-nav-list li a:hover,
.v8-nav-link-dropdown:hover {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}

.v8-nav-list li a:hover::after,
.v8-nav-link-dropdown:hover::after {
  width: 100%;
}

/* Botão/dropdown "Temas" */
.v8-nav-link-dropdown {
  background: none !important;
  border: none !important;
  cursor: pointer;
  gap: 0.25rem;
}

/* Ícone seta do dropdown */
.v8-nav-caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Wrapper do dropdown */
.v8-nav-dropdown {
  position: relative;
}

/* Painel do dropdown "Temas" */
.v8-nav-dropdown-panel {
  position: absolute;
  top: 150%;
  left: 0;
  min-width: 220px;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.45);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.25), transparent 65%),
    radial-gradient(circle at bottom right, rgba(168,85,247,0.25), transparent 65%),
    rgba(15,23,42,0.98);
  box-shadow: 0 26px 60px rgba(15,23,42,0.98);
  display: none;
  z-index: 50;
}

/* Mostra o dropdown quando tiver a classe .is-open (JS) */
.v8-nav-dropdown-panel.is-open {
  display: block;
}

/* Links dentro do dropdown "Temas" */
.v8-nav-dropdown-panel a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  font-size: 0.86rem;
  color: var(--v8-text-soft);
  text-decoration: none;
}

.v8-nav-dropdown-panel a:hover {
  background: rgba(15,23,42,0.9);
  color: var(--v8-text-main);
}

/* =========================================================
   6) PESQUISA NO HEADER
   --------------------------------------------------------- */

.v8-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.v8-search {
  position: relative;
}

.v8-search-toggle {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.v8-search-label {
  font-size: 0.9rem;
  color: #9ca3af;
}

.v8-search-toggle:hover .v8-search-label {
  color: #e5e7eb;
}

.v8-search-icon {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Painel da pesquisa */
.v8-search-panel {
  position: absolute;
  right: 0;
  top: 155%;
  width: min(260px, 80vw);
  padding: 0.45rem;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.55);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(168,85,247,0.25), transparent 60%),
    rgba(15,23,42,0.98);
  box-shadow: 0 24px 60px rgba(15,23,42,0.98);
  display: none;
  z-index: 60;
}

.v8-search-panel.is-open {
  display: block;
}

/* Campo da pesquisa */
.v8-search-input {
  width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.96);
  color: var(--v8-text-main);
  font-size: 0.86rem;
}

.v8-search-input::placeholder {
  color: var(--v8-text-muted);
}

.v8-search-input:focus {
  outline: none;
  border-color: var(--v8-primary);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
}

/* =========================================================
   7) SEÇÕES / HERO
   --------------------------------------------------------- */

.v8-section {
  padding: 4.5rem 0 !important;
}

.v8-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1.1fr);
  gap: 4rem;
  padding-top: 1rem;
  align-items: center;
}

/* "Kicker" acima do título */
.v8-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--v8-primary);
  margin-bottom: 0.95rem;
}

/* Títulos principais (Hero / Secções / Single) */
.v8-hero-title,
.v8-section-headline h1,
.v8-section-headline h2,
.v8-single-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 3.5vw, 3.3rem);
  background: linear-gradient(120deg,#e5f4ff,#fef9c3);
  -webkit-background-clip: text;
  color: transparent;
}

/* Ajuste de espaço abaixo do H1 hero */
.v8-hero-title {
  margin-bottom: 1.5rem !important;
}

/* Destaque da palavra REAL no hero (span dentro do título) */
.v8-hero-title span,
.v8-single-title span {
  background: linear-gradient(to right,#38bdf8,#facc15);
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(250,204,21,0.45));
}

/* Caso uses uma classe específica para REAL (mais controlo) */
.v8-gradient-text {
  background: linear-gradient(90deg,#00d0ff,#ffe36e);
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

/* Subtítulo no hero */
.v8-hero-subtitle {
  font-size: 1.05rem !important;
  color: #a3acc5 !important;
  max-width: 36rem;
}

/* Texto geral nas secções */
.v8-section-headline p,
.v8-single-content p,
.v8-card p,
.v8-post-excerpt {
  color: #9ea9c0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Ações no Hero (botões) */
.v8-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.75rem 0 1.2rem;
}

/* Etiquetas/pills */
.v8-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.v8-pill {
  border-radius: var(--v8-radius-pill);
  border: 1px solid rgba(148,163,184,0.35);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  color: var(--v8-text-muted);
  background: rgba(15,23,42,0.97);
}

/* =========================================================
   8) MAPA DO DIGITAL – CARTÃO PREMIUM
   --------------------------------------------------------- */

.v8-panel-premium {
  border-radius: 1.4rem !important;
  border: 1px solid rgba(148,163,184,0.35) !important;
  background: var(--v8-surface) !important;
  box-shadow: 0 22px 40px rgba(15,23,42,0.75) !important;
  padding: 1.9rem 2.1rem !important;
  max-width: 430px !important;
  position: relative;
  z-index: 5;
}

/* Título "Mapa do Digital" com gradiente forte */
.v8-panel-premium .v8-panel-title {
  font-size: 1.56rem !important;
  font-weight: 800 !important;
  background: linear-gradient(
    90deg,
    rgba(56,189,248,0.85) 0%,
    rgba(250,204,21,0.85) 100%
  ) !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  text-shadow:
    0 0 6px rgba(56,189,248,0.45),
    0 0 10px rgba(250,204,21,0.35) !important;
}

/* Texto dentro do painel */
.v8-panel-text {
  font-size: 0.96rem !important;
  color: #d6def0 !important;
  line-height: 1.68 !important;
}

/* =========================================================
   9) BOTÕES VYNTR8
   --------------------------------------------------------- */

.v8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.8rem 1.3rem;
  border-radius: var(--v8-radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.v8-btn-primary {
  background: radial-gradient(circle at top left, var(--v8-primary), var(--v8-accent));
  color: #020617;
  box-shadow: var(--v8-shadow-soft);
  padding: 0.85rem 1.45rem !important;
  font-weight: 600;
}

.v8-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 30px 70px rgba(15,23,42,0.98);
}

.v8-btn-outline {
  border-color: rgba(148,163,184,0.55);
  background: rgba(15,23,42,0.96);
  color: var(--v8-text-main);
  padding: 0.82rem 1.35rem !important;
}

.v8-btn-outline:hover {
  border-color: var(--v8-primary);
}

/* Botão central de CTA em secções específicas */
.v8-center-cta .v8-btn-primary {
  padding: 0.9rem 1.6rem !important;
  font-size: 0.94rem !important;
  border-radius: 999px !important;
}

/* =========================================================
   10) SECTION HEADLINES / CARDS
   --------------------------------------------------------- */

.v8-section-headline {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.v8-section-headline h2 {
  margin: 0 0 0.7rem;
  font-size: 1.9rem !important;
  font-weight: 700;
}

/* Títulos de secções com gradiente suave */
.v8-section h2,
.v8-section-headline h2 {
  background: linear-gradient(
    90deg,
    #38bdf8 0%,
    #4ade80 30%,
    #facc15 60%
  );
  -webkit-background-clip: text;
  color: transparent !important;
}

/* Cards de temas em destaque */
.v8-card-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.3rem;
}

.v8-card {
  border-radius: 1.3rem !important;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 1.55rem 1.35rem !important;
  background: var(--v8-surface) !important;
  box-shadow: 0 18px 36px rgba(15,23,42,0.55) !important;
  font-size: 0.93rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

.v8-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(15,23,42,0.85) !important;
}

.v8-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* Ícone dos cards */
.v8-card-icon {
  width: 2.2rem !important;
  height: 2.2rem !important;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.55) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem !important;
  margin-bottom: 0.5rem;
  color: var(--v8-text-soft);
}

/* =========================================================
   11) POSTS GRID (Últimos Artigos)
   --------------------------------------------------------- */

.v8-post-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.4rem;
}

.v8-post-card {
  border-radius: 1.3rem !important;
  background: var(--v8-surface) !important;
  border: 1px solid rgba(148,163,184,0.35) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}

.v8-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 55px rgba(15,23,42,0.85) !important;
}

.v8-post-link {
  display: block;
  padding: 1.1rem 1.2rem 1.3rem;
  text-decoration: none;
}

.v8-post-title {
  font-size: 1.08rem !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e7e9f0 !important;
}

.v8-post-excerpt {
  margin: 0 0 0.8rem;
  color: #9ea9c5;
}

.v8-post-meta {
  font-size: 0.8rem;
  color: var(--v8-text-muted);
}

/* =========================================================
   12) SINGLE / PÁGINAS / ABOUT
   --------------------------------------------------------- */

.v8-single-wrap {
  max-width: 900px !important;
  margin: 0 auto;
}

.v8-single-title {
  margin: 0 0 0.9rem;
}

/* Conteúdo single */
.v8-single-content {
  color: #cbd5f5;
}

.v8-single-content p {
  line-height: 1.75;
  margin-bottom: 1rem;
  color: #cfd9e8 !important;
  font-size: 1.02rem !important;
}

/* Título principal (H1) em páginas tipo "Sobre" */
.v8-single-wrap h1,
.v8-about-title {
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  margin-bottom: 1.4rem !important;
  background: linear-gradient(
    90deg,
    #38bdf8 0%,
    #4ade80 33%,
    #facc15 66%,
    #fb923c 100%
  );
  -webkit-background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.06));
  letter-spacing: -0.02em;
}

/* H2 dentro de artigos/páginas */
.v8-single-wrap h2 {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  margin-top: 3rem !important;
  margin-bottom: 1.2rem !important;
  background: linear-gradient(
    90deg,
    rgba(56,189,248,0.85) 0%,
    rgba(250,204,21,0.85) 100%
  );
  -webkit-background-clip: text;
  color: transparent !important;
  letter-spacing: -0.015em;
}

/* H3 internos */
.v8-single-wrap h3 {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.6rem !important;
  color: #cbd5f5 !important;
  text-shadow: none !important;
}

/* Subtítulo logo abaixo do H1 */
.v8-about-subtitle,
.v8-single-wrap > p:first-of-type {
  color: #b9c7da !important;
  font-size: 1.18rem !important;
  margin-bottom: 1.7rem !important;
}

/* Listas */
.v8-single-content ul li {
  color: #c7d2e5 !important;
  margin-bottom: 0.45rem !important;
}

/* Espaçamento entre blocos */
.v8-single-wrap > * + * {
  margin-top: 0.5rem;
}

/* =========================================================
   13) RESPONSIVO (BREAKPOINTS)
   --------------------------------------------------------- */

@media (max-width: 960px) {
  .v8-hero-grid {
    grid-template-columns: minmax(0,1fr);
  }

   .v8-card-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .v8-post-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .v8-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .v8-nav-list {
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
  }

  .v8-hero-title {
    font-size: 2.2rem !important;
  }

  .v8-card-grid,
  .v8-post-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   14) FOOTER VYNTR8 – MODERNO & CLEAN
   --------------------------------------------------------- */

.v8-footer {
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.10), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(168,85,247,0.10), transparent 55%),
    #020617;
  padding: 3.8rem 0 2.8rem;
  border-top: 1px solid rgba(148,163,184,0.12);
}

/* Usamos o mesmo container global (Astra) para alinhamento perfeito */
.v8-footer .ast-container,
.v8-footer .v8-container {
  max-width: var(--v8-container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Grid principal do footer: 3 colunas */
.v8-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.2rem;
  align-items: flex-start;
}

/* Colunas do footer */
.v8-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Logo no footer */
.v8-footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
}

.v8-footer-logo .v8-logo-gradient {
  background: linear-gradient(90deg,#38bdf8,#facc15,#a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.v8-footer-logo .v8-logo-dot {
  color: #38bdf8;
  opacity: 0.85;
}

/* Texto de descrição da marca no footer */
.v8-footer-desc {
  font-size: 0.92rem;
  color: #cbd5f5;
  max-width: 320px;
  line-height: 1.6;
}

/* Títulos das colunas do footer */
.v8-footer-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9aa6b8;
  margin-bottom: 0.25rem;
  opacity: 0.85;
}

/* Lista genérica de links no footer */
.v8-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.v8-footer-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-size: 0.92rem;
  transition: color .18s ease, text-shadow .18s ease;
}

.v8-footer-links a:hover {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56,189,248,0.45);
}

.v8-footer-small {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* COPYRIGHT – sempre em baixo, a toda a largura */
.v8-footer-bottom {
  border-top: 1px solid rgba(148,163,184,0.16);
  margin-top: 2.6rem;
  padding-top: 1.1rem;
  text-align: center;
  width: 100%;
  display: block;
}

.v8-footer-copy {
  color: #7f889b;
  font-size: 0.82rem;
  margin: 0;
}

/* Footer responsivo */
@media (max-width: 900px) {
  .v8-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.8rem;
  }

  .v8-footer-col {
    align-items: center;
  }

  .v8-footer-desc {
    max-width: none;
  }
}

/* =========================================================
   15) FOOTER – CONTACTO & NEWSLETTER (VERSÃO FINAL)
   --------------------------------------------------------- */

/* Texto curto de contacto */
.v8-footer-contact-desc {
  color: #cbd5f5;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 260px;
  margin-bottom: 0.8rem;
}

/* Email premium (ícone + texto) */
.v8-email-premium,
.v8-contact-email {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.93rem;
  color: #e4e9f2 !important;
  text-decoration: none;
  transition: 0.2s ease;
}

.v8-email-premium svg,
.v8-contact-email svg {
  color: #9aa7be !important;
  transition: 0.2s ease;
}

.v8-email-premium:hover,
.v8-contact-email:hover {
  color: #38bdf8 !important;
}

.v8-email-premium:hover svg,
.v8-contact-email:hover svg {
  color: #38bdf8 !important;
  transform: translateX(3px);
}

/* Redes sociais no footer */
.v8-footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* Base: cor neutra */
.v8-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #cbd5e1;
}

/* Ícones assumem currentColor */
.v8-footer-social a svg {
  width: 20px;
  height: 20px;
  transition: 0.25s ease;
}

/* Cores oficiais brand (Instagram, LinkedIn, YouTube) */
.v8-footer-social a[aria-label="Instagram"] {
  color: #E1306C; /* Instagram oficial */
}

.v8-footer-social a[aria-label="LinkedIn"] {
  color: #0A66C2; /* LinkedIn oficial */
}

.v8-footer-social a[aria-label="YouTube"] {
  color: #FF0000; /* YouTube oficial */
}

/* Hover premium nas redes */
.v8-footer-social a:hover svg {
  transform: translateY(-2px);
  opacity: 1;
}

/* NEWSLETTER – versão compacta e clean */
.v8-footer-newsletter {
  text-align: left;
}

.v8-footer-news-desc {
  color: #cbd5f5;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

/* Formulário da newsletter */
.v8-news-form {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.v8-news-form input {
  width: 180px !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff !important;
  font-size: 0.85rem;
}

.v8-news-form input::placeholder {
  color: #d1d7e0;
}

.v8-news-form button {
  padding: 0.55rem 1.1rem !important;
  font-size: 0.83rem;
  border-radius: 10px;
  background: linear-gradient(90deg,#0077ff,#00c6ff);
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* Newsletter e contacto no mobile */
@media (max-width: 900px) {
  .v8-footer-contact {
    text-align: center;
    align-items: center;
  }

  .v8-footer-contact-desc {
    max-width: none;
  }

  .v8-footer-social {
    justify-content: center;
  }

  .v8-footer-newsletter {
    text-align: center;
  }

  .v8-news-form {
    flex-direction: column;
  }

  .v8-news-form input,
  .v8-news-form button {
    width: 100% !important;
  }
}

/* =========================================================
   CORREÇÃO FINAL — ALINHAR HEADER COM O RESTO DO SITE
   ========================================================= */

/* 1) O container do header deve usar exatamente o mesmo
      padding que o Astra usa: 20px */
.v8-header-inner {
  max-width: var(--v8-container-max);
  margin-left: auto;
  margin-right: auto;

  /* Corrige o padding lateral para 20px */
  padding-left: 20px !important;
  padding-right: 20px !important;

  /* Mantém o padding vertical */
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

/* 2) A classe .v8-container NÃO deve forçar padding diferente */
.v8-container {
  max-width: var(--v8-container-max);
  margin-left: auto;
  margin-right: auto;

  /* Remove o padding lateral do .v8-container
     para evitar conflito com o header e o Astra */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 3) Para o resto do site continuar perfeito: */
.ast-container,
.site-content .ast-container {
  padding-left: 20px !important;
  padding-right: 20px !important;
}


/* =========================================================
   FIX ABSOLUTO — REMOVER QUALQUER VARIAÇÃO DA LINHA AZUL
   (underline, focus-ring, highlight, fallback do Astra)
========================================================= */

/* Remove sublinhados que o Astra injeta */
a, a:visited, a:focus, a:active, a:hover {
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    -webkit-text-decoration-color: transparent !important;
}

/* Remove o foco azul do Chrome / Astra */
a:focus,
a:active,
*:focus,
*:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove sublinhados herdados dentro de cards */
.v8-card a,
.v8-card a:focus,
.v8-card a:hover,
.v8-card * {
    text-decoration: none !important;
}

/* Remove underline invisível do logo */
.v8-footer-logo,
.v8-footer-logo *,
.v8-footer-logo:focus {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* HERO – integração perfeita no fundo do site */
.v8-hero-visual {
    position: relative;
    width: 100%;
    border-radius: 1.6rem;
    overflow: hidden;
    min-height: 440px;
    background: transparent !important;
}

/* Imagem principal */
.v8-hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://vyntr8.pt/wp-content/uploads/2025/11/DigitalAI.png")
        center right / cover no-repeat;
    opacity: 0.78; /* suaviza, fica mais integrado */
    filter: brightness(1.05) saturate(1.15);
    z-index: 1;
}


/* Fade suave para integrar a imagem no fundo do site */
.v8-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.85) 10%, rgba(2, 6, 23, 0.4) 30%, rgba(2, 6, 23, 0) 60%);
    z-index: 2;
}


/* Painel */
.v8-panel-premium {
    position: relative;
    z-index: 3;
    margin-top: 1.8rem;
    margin-right: 1.8rem;
    margin-left: auto;
    background: rgba(2,6,23,0.72) !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(148,163,184,0.28) !important;
}

.v8-panel-premium {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    max-width: 420px;
}

.v8-panel-premium .v8-panel-title {
    font-size: 1.9rem !important;
    font-weight: 800 !important;
    color: #e3f3ff !important;
    text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}

.v8-panel-premium .v8-panel-text {
    margin-top: 1rem;
    font-size: 1.05rem !important;
    color: #dce7f5 !important;
    text-shadow: 0 2px 14px rgba(0,0,0,0.50);
}
