/*
Theme Name: VDP Tema
Author: Gemini
Description: Tema épico e de alta performance para a Vale dos Pireneus.
Version: 2.1 (Consolidado)
*/

/* --- RESET BÁSICO E CONFIGURAÇÕES GLOBAIS --- */
:root {
    --primary-blue: #0A2558;
    --secondary-blue: #3B82F6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --bg-dark: #050816;
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* --- HERO SECTION --- */
.hero-section { position: relative; height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transform: scale(1.1); transition: opacity 1.5s ease-in-out, transform 10s ease-out; opacity: 0; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%); }
.hero-glow { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, var(--accent-glow) 0%, rgba(59, 130, 246, 0) 60%); filter: blur(100px); pointer-events: none; animation: pulse-glow 8s infinite ease-in-out; }
.hero-text-slide { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; visibility: hidden; }
.hero-text-slide.active { opacity: 1; visibility: visible; }
@keyframes pulse-glow { 0%, 100% { transform: scale(0.9); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }
.hero-text-slide.active .hero-title { animation: fadeInDown 1s ease-out forwards; }
.hero-text-slide.active .hero-cta { animation: fadeInUp 1s 0.3s ease-out forwards; opacity: 0; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- HEADER E LÓGICA DO LOGO --- */
#main-header.scrolled { background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-light); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05); transition: all 0.4s ease-in-out; }
#main-header .nav-link { color: white; }
#main-header.scrolled .nav-link { color: var(--text-dark); }
.logo-container .logo-original { display: none; }
.logo-container .logo-white { display: block; }
#main-header.scrolled .logo-container .logo-original { display: block; }
#main-header.scrolled .logo-container .logo-white { display: none; }
.logo-text-span { color: white; }
#main-header.scrolled .logo-text-span { color: var(--text-dark); }

/* --- ESTILO DOS TÍTULOS DE SEÇÃO --- */
.section-title { background: -webkit-linear-gradient(45deg, var(--primary-blue), var(--secondary-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title.light { background: -webkit-linear-gradient(45deg, #e2e8f0, #ffffff); -webkit-background-clip: text; }
.title-underline { position: relative; padding-bottom: 1rem; }
.title-underline::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-image: linear-gradient(to right, var(--secondary-blue), var(--primary-blue)); border-radius: 2px; }

/* --- SEÇÃO DE PRODUTOS V2 (COM IMAGENS) --- */
.product-card-v2 { display: flex; flex-direction: column; transition: all 0.3s ease-in-out; }
.product-card-v2:hover { transform: translateY(-10px); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15); }
.product-card-image-wrapper { height: 200px; overflow: hidden; }
.product-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-in-out; }
.product-card-v2:hover .product-card-image { transform: scale(1.1); }
.product-card-button { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; background-color: var(--secondary-blue); color: white; font-weight: 600; border-radius: 9999px; transition: all 0.3s ease; text-align: center; }
.product-card-button:hover { background-color: var(--primary-blue); box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4); transform: translateY(-2px); }

/* --- SEÇÃO DE PARCEIROS (SLIDER) --- */
.partner-slider-container { position: relative; }
.partner-slider-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.partner-slider-wrapper::-webkit-scrollbar { display: none; }
.partner-slider-track { display: flex; gap: 1.5rem; padding-bottom: 1rem; }
.partner-card { flex: 0 0 calc(100% / 5 - 1.5rem * 4 / 5); display: flex; flex-direction: column; scroll-snap-align: start; transition: transform 0.3s ease; }
.partner-card:hover { transform: translateY(-10px); }
.partner-card-image-wrapper { flex-grow: 1; padding: 1.5rem; display: flex; align-items: center; justify-content: center; background-color: white; border: 1px solid var(--border-light); border-bottom: none; border-radius: 0.5rem 0.5rem 0 0; }
.partner-card-image { width: 100%; height: 100%; object-fit: contain; transition: all 0.3s ease; }
.partner-card:hover .partner-card-image { transform: scale(1.05); }
.partner-card-caption { padding: 1rem; text-align: center; background-color: #f8fafc; border: 1px solid var(--border-light); border-top: none; border-radius: 0 0 0.5rem 0.5rem; }
.slider-arrow { position: absolute; top: 40%; transform: translateY(-50%); background-color: white; color: var(--primary-blue); border: 1px solid var(--border-light); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.2s ease-in-out; z-index: 10; }
.slider-arrow:hover { background-color: var(--secondary-blue); color: white; border-color: var(--secondary-blue); transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { left: -22px; }
.slider-arrow.next { right: -22px; }
@media (max-width: 1024px) { .partner-card { flex-basis: calc(100% / 3 - 1.5rem * 2 / 3); } }
@media (max-width: 768px) { .partner-card { flex-basis: calc(100% / 2 - 1.5rem * 1 / 2); } .slider-arrow.prev { left: 0; } .slider-arrow.next { right: 0; } }

/* --- FAQ SECTION --- */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::-moz-list-bullet { list-style-type: none; }

/* --- BLOG E PÁGINAS DE ARQUIVO --- */
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.5rem; line-height: 1.7; }
.entry-content h2, .entry-content h3 { font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; }
.entry-content a { color: var(--secondary-blue); text-decoration: underline; }
.entry-content ul { list-style-type: disc; padding-left: 1.5rem; }
.pagination .nav-links { display: flex; justify-content: center; gap: 0.5rem; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-light); padding: 0.5rem 1rem; border-radius: 0.5rem; transition: all 0.2s ease-in-out; font-weight: 600; }
.pagination .page-numbers:hover { background-color: var(--secondary-blue); color: white; border-color: var(--secondary-blue); }
.pagination .page-numbers.current { background-color: var(--secondary-blue); color: white; border-color: var(--secondary-blue); }
.pagination .dots { padding: 0.5rem; }

/* --- BLOG HEADER --- */
.blog-header { position: relative; overflow: hidden; background-color: var(--bg-dark); }
.blog-header-overlay { position: absolute; inset: 0; background-image: linear-gradient(to right, var(--primary-blue), #1e3a8a); opacity: 0.9; }

/* --- SINGLE POST HEADER --- */
.single-post-header { position: relative; height: 60vh; min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.single-post-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.single-post-header-overlay { position: absolute; inset: 0; background-color: rgba(10, 37, 88, 0.7); }

/* --- ANIMAÇÕES GERAIS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- MOBILE MENU --- */
#mobile-menu { transform: translateX(100%); transition: transform 0.3s ease-in-out; }
#mobile-menu.open { transform: translateX(0); }

