/**
Theme Name: y2studio
Author: Eduardo
Author URI: https://www.y2studio.com.br
Description: Astra is the fastest...
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: y2studio
Template: astra
*/

/* ==========================================================================
   1. VARIÁVEIS GLOBAIS DE COR (IDENTIDADE VISUAL)
   ========================================================================== */
:root {
    --agv-red: #B3452C !important;
    --agv-red-hover: #8f3622 !important;
    --agv-paper: #F4EBDC !important;
    --roteiro-cor-tema: var(--agv-red) !important;
}

/* ==========================================================================
   2. REGRAS GERAIS E LAYOUT
   ========================================================================== */
/* Força o fundo da página de Roteiros a ser 100% branco */
body.post-type-archive-roteiro,
body.post-type-archive-roteiro #page,
body.post-type-archive-roteiro #content,
body.post-type-archive-roteiro .site-content,
body.post-type-archive-roteiro .ast-container {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* ==========================================================================
   3. RODAPÉ (FOOTER)
   ========================================================================== */
#agviaggi-footer.agv-footer {
    --agv-text: #555;
    --agv-text-light: #888;
    --agv-bg: #faf9f7;
    --agv-border: #e8e4df;
    font-family: 'Arimo', Arial, sans-serif;
    color: var(--agv-text);
    background: var(--agv-bg);
    border-top: 4px solid var(--agv-red);
}
.agv-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px 32px;
    align-items: start;
}
.agv-footer-title {
    font-family: 'Belleza', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--agv-red);
    margin: 0 0 20px;
}
.agv-footer-title-spaced { margin-top: 28px; }
.agv-footer-logo { max-width: 200px; height: auto; display: block; }
.agv-footer-logo-text {
    font-family: 'Belleza', Georgia, serif;
    font-size: 1.8rem;
    color: var(--agv-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.agv-footer-tagline {
    margin: 14px 0 0;
    font-size: 0.95rem;
    color: var(--agv-text-light);
    line-height: 1.6;
    max-width: 240px;
}
.agv-footer-list { list-style: none; margin: 0; padding: 0; }
.agv-footer-list li { margin-bottom: 12px; }
.agv-footer-list a,
.agv-footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--agv-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.agv-footer-list a:hover,
.agv-footer-contact a:hover { color: var(--agv-red); }
.agv-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--agv-red); }
.agv-footer-contact p { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.6; }
.agv-footer-contact strong { color: #333; font-weight: 600; }
.agv-footer-apoio-logo { max-width: 160px; height: auto; display: block; }
.agv-footer-social { display: flex; gap: 14px; flex-wrap: wrap; }
.agv-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid #ccc;
    border-radius: 50%;
    color: #444;
    transition: all 0.25s ease;
}
.agv-footer-social a:hover {
    border-color: var(--agv-red);
    color: var(--agv-red);
    transform: translateY(-2px);
}
.agv-footer-social svg { width: 20px; height: 20px; }
.agv-footer-bottom {
    border-top: 1px solid var(--agv-border);
    padding: 18px 24px;
    text-align: center;
    background: #fff;
}
.agv-footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--agv-text-light); }
.agv-footer-bottom a { color: var(--agv-red); text-decoration: none; }
.agv-footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 992px) {
    .agv-footer-inner { grid-template-columns: 1fr 1fr; }
    .agv-footer-brand { grid-column: 1 / -1; text-align: center; }
    .agv-footer-tagline { max-width: none; }
    .agv-footer-logo { margin: 0 auto; }
}
@media (max-width: 576px) {
    .agv-footer-inner { grid-template-columns: 1fr; padding: 40px 20px 32px; text-align: center; }
    .agv-footer-list a { justify-content: center; }
    .agv-footer-apoio-logo { margin: 0 auto; }
    .agv-footer-social { justify-content: center; }
}

/* ==========================================================================
   4. MENUS
   ========================================================================== */
.main-header-menu .sub-menu {
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--agv-red);
}

.main-header-menu .sub-menu .menu-link {
    color: #4a4a4a;
    font-family: 'Arimo', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding: 0.9em 1.2em;
    transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

.main-header-menu .sub-menu .menu-item:hover > .menu-link,
.main-header-menu .sub-menu .menu-link:hover,
.main-header-menu .sub-menu .menu-link:focus {
    color: var(--agv-red);
    background-color: #f7f1f1;
    padding-left: 1.5em;
}

.main-header-menu .sub-menu .menu-item + .menu-item {
    border-top: 1px solid #eee;
}

/* Força o texto da página ativa no submenu a ficar Vinho */
.main-header-menu .sub-menu .current-menu-item > a,
.main-header-menu .sub-menu .current_page_item > a,
.ast-builder-menu .sub-menu .current-menu-item > a,
.ast-builder-menu .sub-menu .current_page_item > a {
    color: var(--agv-red) !important; 
    background-color: transparent !important;
}

.main-header-menu .sub-menu li a:hover,
.ast-builder-menu .sub-menu li a:hover {
    color: #000000 !important;
    background-color: #f7f7f7 !important;
}

/* Título Acima do Menu */
.agv-titulo-sobre-menu {
    color: var(--agv-red);
    font-size: 22px !important;
    text-align: center;
    width: 100%;
    margin: 0;
}

.site-header-primary-section-right {
    flex-wrap: wrap !important;
    justify-content: center;
    row-gap: 6px;
}
.ast-header-html-1 { width: 100%; justify-content: center; }
.ast-builder-menu-1 { justify-content: center; }

@media (max-width: 921px) {
    .agv-titulo-sobre-menu { display: none; }
}

/* ==========================================================================
   5. MAPA E BALÕES (TOOLTIPS)
   ========================================================================== */
@media (min-width: 1024px) {
  .archive-roteiros-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "topo mapa" "grid grid" "whats whats";
    align-items: center;
    column-gap: 50px;
  }
  .archive-topo { grid-area: topo; text-align: center; }
  .mapa-regioes-agv { grid-area: mapa; display: flex; flex-direction: column; align-items: center; }
  .mapa-regioes-agv .mir-mapa { max-width: 420px !important; margin: 0 auto; }
  .mapa-regioes-agv p { margin-top: 10px; font-size: 14px; }
  .rt-grid-container { grid-area: grid; margin-top: 40px; }
  .btn-whatsapp-container { grid-area: whats; }
}

::-moz-selection { background: var(--agv-red) !important; color: #ffffff !important; }
::selection { background: var(--agv-red) !important; color: #ffffff !important; }

/* Tooltips e Setas */
.mapa-regioes-agv .tippy-box, 
.mapa-regioes-agv [id^="tippy-"],
.tippy-box, .tippy-content, [data-tippy-root] .tippy-box,
div[class*="tippy-box"], div[id*="tippy"],
.html5maps-tooltip, .fm-tooltip, .vmap-tooltip {
    background-color: var(--agv-red) !important;
    background: var(--agv-red) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

.mapa-regioes-agv .tippy-arrow,
.tippy-arrow, [data-tippy-root] .tippy-arrow, div[class*="tippy"] .tippy-arrow {
    color: var(--agv-red) !important;
}

/* ==========================================================================
   6. CARROSSEL HOME (Ocultar textos)
   ========================================================================== */
.agv-hero-overlay,
.agv-hero-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ==========================================================================
   7. SUBSTITUIÇÃO GERAL DA COR DA MARCA (Títulos, Botões e Cards)
   ========================================================================== */
.puglia-title,
.puglia-h3,
.puglia-sidebar h3,
.puglia-h2-inline,
.puglia-h3-imovel,
.archive-titulo,
.archive-subtitulo,
.roteiro-titulo-principal,
.roteiro-secao-titulo,
.dia-seta,
.roteiro-dia-titulo,
.info-titulo,
.rt-card-title,
.agv-footer-title,
.agv-footer-list a:hover {
    color: var(--agv-red) !important;
}

.puglia-btn,
.btn-whatsapp-rt,
.roteiro-btn-info,
.agv-hero-btn,
.puglia-obs {
    background-color: var(--agv-red) !important;
}

.puglia-sidebar h3,
.puglia-obs,
.roteiro-infos-box,
.roteiro-secao-titulo,
.rt-card-img {
    border-color: var(--agv-red) !important;
}

.puglia-btn:hover,
.btn-whatsapp-rt:hover,
.roteiro-btn-info:hover,
.agv-hero-btn:hover {
    background-color: var(--agv-red-hover) !important;
}

.rt-card {
    background-color: var(--agv-paper) !important;
}


/* Força o texto da observação na página Puglia para branco */
.puglia-obs {
    color: #ffffff !important;
}
.puglia-obs p, .puglia-obs span, .puglia-obs strong {
    color: #ffffff !important;
}