<!DOCTYPE html>
<html class="dark" lang="pt-BR">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>3 a Fio | A trilha sonora da sua vida</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;900&family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
<script>
tailwind.config = {
darkMode: "class",
theme: {
extend: {
colors: {
"background": "#0e0e0e",
"surface": "#131313",
"surface-container": "#1a1919",
"surface-container-low": "#131313",
"surface-container-high": "#201f1f",
"surface-container-highest": "#262626",
"surface-variant": "#262626",
"on-surface": "#ffffff",
"on-surface-variant": "#adaaaa",
"primary": "#e08dff",
"primary-fixed": "#d978ff",
"primary-container": "#d978ff",
"on-primary": "#4f006c",
"on-primary-container": "#3d0055",
"secondary": "#2ff801",
"secondary-fixed": "#2ff801",
"secondary-container": "#106e00",
"on-secondary": "#0b5800",
"on-secondary-container": "#e7ffd9",
"tertiary": "#a1faff",
"outline": "#767575",
"outline-variant": "#484847"
},
fontFamily: {
"headline": ["Space Grotesk"],
"body": ["Be Vietnam Pro"],
"label": ["Plus Jakarta Sans"]
}
}
}
};
</script>
<style>
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
html { scroll-behavior: smooth; }
body {
font-family: 'Be Vietnam Pro', sans-serif;
background: #0e0e0e;
color: #fff;
}
.text-gradient {
background: linear-gradient(135deg, #edb5ff 0%, #e08dff 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.glass-card {
background: rgba(26, 25, 25, 0.55);
backdrop-filter: blur(18px);
}
.section-anchor { scroll-margin-top: 110px; }
.member-slice {
transition: all .35s ease;
cursor: pointer;
}
.member-slice:hover { filter: brightness(1.08); }
</style>
</head>
<body class="bg-background text-on-surface overflow-x-hidden">
<header class="fixed top-0 left-0 right-0 z-50 bg-black/45 backdrop-blur-xl border-b border-white/5">
<div class="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between gap-4">
<div class="flex items-center gap-3">
<span class="material-symbols-outlined text-primary">graphic_eq</span>
<span class="font-headline text-2xl font-black tracking-tight uppercase">3 a Fio</span>
</div>
<nav class="hidden md:flex items-center gap-8">
<a href="#o-que-e" class="text-[11px] uppercase tracking-[0.18em] text-on-surface-variant hover:text-white transition">O que é</a>
<a href="#integrantes" class="text-[11px] uppercase tracking-[0.18em] text-on-surface-variant hover:text-white transition">Integrantes</a>
<a href="#videos" class="text-[11px] uppercase tracking-[0.18em] text-on-surface-variant hover:text-white transition">Vídeos</a>
<a href="#parceiros" class="text-[11px] uppercase tracking-[0.18em] text-on-surface-variant hover:text-white transition">Parceiros</a>
<a id="link-presskit-top" href="#" class="text-[11px] uppercase tracking-[0.18em] text-on-surface-variant hover:text-white transition">Presskit</a>
</nav>
<div class="flex items-center gap-3">
<a id="header-live-link" href="#" class="hidden bg-secondary text-on-secondary px-5 py-3 rounded-full font-label font-bold text-[11px] uppercase tracking-[0.14em] shadow-[0px_10px_30px_rgba(47,248,1,0.18)]">
Ao vivo agora
</a>
<a href="#contato" class="bg-primary/20 border border-primary/30 text-white px-5 py-3 rounded-full font-label font-bold text-[11px] uppercase tracking-[0.14em]">
Contato
</a>
</div>
</div>
</header>
<div id="live-alert-bar" class="hidden fixed top-[76px] left-0 right-0 z-40 px-4">
<div class="max-w-7xl mx-auto bg-secondary text-on-secondary rounded-2xl shadow-[0px_16px_40px_rgba(47,248,1,0.18)] px-5 py-4 flex flex-col md:flex-row md:items-center md:justify-between gap-3">
<div class="flex items-center gap-3">
<span class="w-3 h-3 rounded-full bg-black animate-pulse"></span>
<div>
<p class="font-label text-[10px] uppercase tracking-[0.18em] font-bold">Ao vivo agora</p>
<p id="live-alert-text" class="font-headline text-lg font-bold">Participe do show da 3 a Fio</p>
</div>
</div>
<a id="live-alert-link" href="#" class="bg-black/20 hover:bg-black/30 text-black px-6 py-3 rounded-full font-label font-bold text-[11px] uppercase tracking-[0.14em] text-center transition">
Entrar no 3 a Fio Live
</a>
</div>
</div>
<main id="landing-main">
<section class="min-h-screen relative flex items-center overflow-hidden">
<div class="absolute inset-0">
<img src="https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w2000" alt="3 a Fio" class="w-full h-full object-cover opacity-45"/>
<div class="absolute inset-0 bg-gradient-to-t from-background via-background/50 to-background/20"></div>
</div>
<div class="relative z-10 max-w-7xl mx-auto px-6 w-full">
<div id="live-highlight-banner" class="hidden mb-8">
<div class="inline-flex items-center gap-3 bg-secondary-container text-on-secondary-container px-5 py-3 rounded-full border border-secondary/20">
<span class="w-2.5 h-2.5 rounded-full bg-secondary animate-pulse"></span>
<span class="font-label text-[11px] uppercase tracking-[0.18em] font-bold">Ao vivo agora</span>
<a id="hero-live-link" href="#" class="underline underline-offset-4 font-bold">Entrar no 3 a Fio Live</a>
</div>
</div>
<div class="max-w-4xl">
<p class="font-label text-primary text-[11px] uppercase tracking-[0.25em] mb-5">3 a Fio</p>
<h1 class="font-headline text-5xl md:text-7xl font-black tracking-tight leading-none mb-6">
A trilha sonora da sua vida. <span class="text-gradient">Ao vivo.</span>
</h1>
<p class="text-on-surface-variant text-lg md:text-xl max-w-2xl leading-relaxed mb-10">
A 3 a Fio entrega shows com repertório marcante, fidelidade musical e energia de palco para pubs, eventos corporativos, festas e experiências inesquecíveis.
</p>
<div class="flex flex-col sm:flex-row gap-4">
<a href="#contato" class="bg-primary text-on-primary-container px-8 py-4 rounded-full font-label font-bold uppercase tracking-[0.14em] text-[11px] shadow-[0px_12px_30px_rgba(224,141,255,0.16)]">
Solicitar orçamento
</a>
<a id="hero-live-button" href="#" class="bg-secondary text-on-secondary px-8 py-4 rounded-full font-label font-bold uppercase tracking-[0.14em] text-[11px] shadow-[0px_12px_30px_rgba(47,248,1,0.18)]">
Conheça o 3 a Fio Live
</a>
</div>
</div>
</div>
</section>
<section id="o-que-e" class="section-anchor py-24 px-6 bg-surface-container-lowest">
<div class="max-w-7xl mx-auto grid lg:grid-cols-2 gap-14 items-center">
<div class="relative">
<div class="overflow-hidden rounded-2xl bg-surface-container">
<img src="https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w1600" alt="3 a Fio no palco" class="w-full h-full object-cover"/>
</div>
</div>
<div>
<p class="font-label text-primary text-[11px] uppercase tracking-[0.25em] mb-4">O que é a 3 a Fio</p>
<h2 class="font-headline text-4xl md:text-5xl font-bold tracking-tight mb-8">
Música, memória e presença de palco.
</h2>
<div class="space-y-5 text-on-surface-variant text-lg leading-relaxed">
<p>A 3 a Fio é uma banda especializada em criar experiências ao vivo com forte identidade musical, repertório marcante e conexão real com o público.</p>
<p>Com foco especial nos clássicos dos anos 80, o show combina nostalgia, energia, elegância e performance profissional para eventos corporativos, pubs, festas e celebrações.</p>
</div>
<div class="mt-8">
<button onclick="toggleHistoria()" class="inline-flex items-center gap-3 text-primary font-label font-bold text-[11px] uppercase tracking-[0.18em]">
<span id="historia-btn-text">Ler mais</span>
<span class="material-symbols-outlined">arrow_forward</span>
</button>
</div>
<div id="historia-expandida" class="hidden mt-8 p-6 rounded-2xl bg-surface-container border border-white/5 text-on-surface-variant leading-relaxed space-y-4">
<p>Fundada em 2016, a 3 a Fio reúne músicos experientes, com mais de 15 anos de estrada, em um projeto que valoriza a fidelidade sonora, o repertório de impacto e o relacionamento com o público e contratantes.</p>
<p>A proposta da banda é transformar cada apresentação em uma experiência emocional e vibrante, despertando boas lembranças e criando momentos memoráveis com profissionalismo e identidade.</p>
</div>
</div>
</div>
</section>
<section id="integrantes" class="section-anchor py-24 bg-background">
<div class="max-w-7xl mx-auto px-6">
<div class="mb-12">
<p class="font-label text-tertiary text-[11px] uppercase tracking-[0.25em] mb-4">Integrantes</p>
<h2 class="font-headline text-4xl md:text-6xl font-bold tracking-tight">Quem faz a 3 a Fio acontecer</h2>
</div>
<div class="grid lg:grid-cols-[340px_1fr] gap-8 items-start">
<div id="members-list" class="space-y-3">
<button onclick="selectMember('tiago')" class="member-trigger w-full text-left bg-surface-container-low rounded-2xl p-5 border border-white/5 hover:border-primary/30 transition">
<p class="font-headline text-xl font-bold">Tiago</p>
<p class="text-on-surface-variant text-sm">Voz e Baixo</p>
</button>
<button onclick="selectMember('jota')" class="member-trigger w-full text-left bg-surface-container-low rounded-2xl p-5 border border-white/5 hover:border-primary/30 transition">
<p class="font-headline text-xl font-bold">Jota</p>
<p class="text-on-surface-variant text-sm">Voz e Guitarra</p>
</button>
<button onclick="selectMember('gere')" class="member-trigger w-full text-left bg-surface-container-low rounded-2xl p-5 border border-white/5 hover:border-primary/30 transition">
<p class="font-headline text-xl font-bold">Gerê</p>
<p class="text-on-surface-variant text-sm">Voz e Bateria</p>
</button>
<button onclick="selectMember('mauricio')" class="member-trigger w-full text-left bg-surface-container-low rounded-2xl p-5 border border-white/5 hover:border-primary/30 transition">
<p class="font-headline text-xl font-bold">Mauricio</p>
<p class="text-on-surface-variant text-sm">Teclados</p>
</button>
</div>
<div class="space-y-6">
<div id="members-slices" class="grid grid-cols-2 md:grid-cols-4 gap-2 h-[420px]">
<div onclick="selectMember('tiago')" class="member-slice overflow-hidden rounded-2xl">
<img src="https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w1200" alt="Tiago" class="w-full h-full object-cover"/>
</div>
<div onclick="selectMember('jota')" class="member-slice overflow-hidden rounded-2xl">
<img src="https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w1200" alt="Jota" class="w-full h-full object-cover object-left"/>
</div>
<div onclick="selectMember('gere')" class="member-slice overflow-hidden rounded-2xl">
<img src="https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w1200" alt="Gerê" class="w-full h-full object-cover object-center"/>
</div>
<div onclick="selectMember('mauricio')" class="member-slice overflow-hidden rounded-2xl">
<img src="https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w1200" alt="Mauricio" class="w-full h-full object-cover object-right"/>
</div>
</div>
<div id="member-detail" class="hidden bg-surface-container rounded-2xl p-6 border border-primary/20">
<div class="flex flex-col lg:flex-row gap-6">
<div class="w-full lg:w-72 h-80 rounded-2xl overflow-hidden bg-surface-container-high">
<img id="member-detail-image" src="" alt="" class="w-full h-full object-cover"/>
</div>
<div class="flex-1">
<p id="member-detail-role" class="font-label text-[11px] uppercase tracking-[0.22em] text-primary mb-3"></p>
<h3 id="member-detail-name" class="font-headline text-4xl font-bold tracking-tight mb-4"></h3>
<p id="member-detail-bio" class="text-on-surface-variant leading-relaxed mb-6"></p>
<button onclick="closeMemberDetail()" class="bg-primary/20 border border-primary/20 text-white px-5 py-3 rounded-full font-label font-bold text-[11px] uppercase tracking-[0.14em]">
Voltar para a banda
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="videos" class="section-anchor py-24 px-6 bg-surface-container-low">
<div class="max-w-7xl mx-auto">
<div class="flex items-end justify-between gap-6 mb-12">
<div>
<p class="font-label text-secondary text-[11px] uppercase tracking-[0.25em] mb-4">Vídeos</p>
<h2 class="font-headline text-4xl md:text-5xl font-bold tracking-tight">Veja a banda em ação</h2>
</div>
</div>
<div class="grid lg:grid-cols-2 gap-8">
<div class="aspect-video rounded-2xl overflow-hidden bg-surface-container-high">
<iframe class="w-full h-full" src="https://www.youtube.com/embed/rgeZoLR01AA" frameborder="0" allowfullscreen></iframe>
</div>
<div class="aspect-video rounded-2xl overflow-hidden bg-surface-container-high">
<iframe class="w-full h-full" src="https://www.youtube.com/embed/gh02j4B0zbQ" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div class="mt-8">
<button onclick="toggleMoreVideos()" class="inline-flex items-center gap-3 text-primary font-label font-bold text-[11px] uppercase tracking-[0.18em]">
<span id="videos-btn-text">Ver mais vídeos</span>
<span class="material-symbols-outlined">arrow_forward</span>
</button>
</div>
<div id="more-videos" class="hidden mt-8 grid lg:grid-cols-2 gap-8">
<div class="aspect-video rounded-2xl overflow-hidden bg-surface-container-high">
<iframe class="w-full h-full" src="https://www.youtube.com/embed/_UNzQIFbD7s" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
</section>
<section class="py-24 px-6 relative overflow-hidden">
<div class="absolute inset-0">
<img src="https://lh3.googleusercontent.com/d/1NMypItoFgg47A9i01Eb1x9LCE-vN_Uih=w2000" class="w-full h-full object-cover opacity-30" alt="3 a Fio Live"/>
<div class="absolute inset-0 bg-gradient-to-t from-background via-background/70 to-background/20"></div>
</div>
<div class="relative z-10 max-w-7xl mx-auto grid lg:grid-cols-2 gap-16 items-center">
<div class="order-2 lg:order-1">
<div class="glass-card rounded-3xl border border-primary/10 p-8 md:p-10">
<p class="font-label text-primary text-[11px] uppercase tracking-[0.25em] mb-4">3 a Fio Live</p>
<h2 class="font-headline text-4xl md:text-5xl font-bold tracking-tight mb-6">
O público participa do show em tempo real.
</h2>
<p class="text-on-surface-variant text-lg leading-relaxed mb-8">
Com o 3 a Fio Live, o público pode pedir músicas, enviar mensagens e compartilhar fotos durante a apresentação, criando uma experiência interativa e memorável.
</p>
<div class="flex flex-col sm:flex-row gap-4">
<a id="live-section-button" href="#" class="bg-secondary text-on-secondary px-8 py-4 rounded-full font-label font-bold uppercase tracking-[0.14em] text-[11px]">
Entrar no live
</a>
<a id="link-presskit-contact" href="#" class="bg-primary/20 border border-primary/20 text-white px-8 py-4 rounded-full font-label font-bold uppercase tracking-[0.14em] text-[11px]">
Ver presskit
</a>
</div>
</div>
</div>
<div class="order-1 lg:order-2 grid grid-cols-1 sm:grid-cols-2 gap-4">
<div class="bg-surface-container-low rounded-2xl p-6 border border-white/5">
<span class="material-symbols-outlined text-primary mb-4">queue_music</span>
<h3 class="font-headline text-2xl font-bold mb-3">Pedidos de música</h3>
<p class="text-on-surface-variant">O público interage diretamente com o repertório durante o evento.</p>
</div>
<div class="bg-surface-container-low rounded-2xl p-6 border border-white/5">
<span class="material-symbols-outlined text-tertiary mb-4">chat_bubble</span>
<h3 class="font-headline text-2xl font-bold mb-3">Mensagens ao vivo</h3>
<p class="text-on-surface-variant">Mais conexão, mais participação e mais envolvimento com o show.</p>
</div>
<div class="bg-surface-container-low rounded-2xl p-6 border border-white/5">
<span class="material-symbols-outlined text-secondary mb-4">photo_camera</span>
<h3 class="font-headline text-2xl font-bold mb-3">Fotos da noite</h3>
<p class="text-on-surface-variant">O público envia imagens e a experiência continua depois do palco.</p>
</div>
<div class="bg-surface-container-low rounded-2xl p-6 border border-white/5">
<span class="material-symbols-outlined text-primary mb-4">dashboard</span>
<h3 class="font-headline text-2xl font-bold mb-3">Painel da banda</h3>
<p class="text-on-surface-variant">Controle e moderação ao vivo para uma experiência profissional de ponta a ponta.</p>
</div>
</div>
</div>
</section>
<section id="parceiros" class="section-anchor py-24 px-6 bg-surface-container-lowest">
<div class="max-w-7xl mx-auto">
<div class="mb-10">
<p class="font-label text-tertiary text-[11px] uppercase tracking-[0.25em] mb-4">Parceiros e clientes</p>
<h2 class="font-headline text-4xl md:text-5xl font-bold tracking-tight">Quem já viveu essa experiência</h2>
</div>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4">
<a href="#" class="bg-surface-container-low rounded-2xl p-6 border border-white/5 text-center hover:border-primary/25 transition"><span class="font-headline text-xl font-bold">Hard Rock</span></a>
<a href="#" class="bg-surface-container-low rounded-2xl p-6 border border-white/5 text-center hover:border-primary/25 transition"><span class="font-headline text-xl font-bold">Top Car</span></a>
<a href="#" class="bg-surface-container-low rounded-2xl p-6 border border-white/5 text-center hover:border-primary/25 transition"><span class="font-headline text-xl font-bold">Alltech</span></a>
<a href="#" class="bg-surface-container-low rounded-2xl p-6 border border-white/5 text-center hover:border-primary/25 transition"><span class="font-headline text-xl font-bold">Franz</span></a>
<a href="#" class="bg-surface-container-low rounded-2xl p-6 border border-white/5 text-center hover:border-primary/25 transition"><span class="font-headline text-xl font-bold">Bovary</span></a>
</div>
</div>
</section>
<section id="contato" class="section-anchor py-24 px-6 bg-background relative overflow-hidden">
<div class="absolute inset-0 bg-gradient-to-t from-primary/10 to-transparent pointer-events-none"></div>
<div class="max-w-5xl mx-auto text-center relative z-10">
<p class="font-label text-primary text-[11px] uppercase tracking-[0.25em] mb-6">Contato</p>
<h2 class="font-headline text-5xl md:text-7xl font-bold tracking-tight mb-8">
Leve a <span class="text-gradient">3 a Fio</span> para o seu evento
</h2>
<p class="text-on-surface-variant text-lg leading-relaxed max-w-2xl mx-auto mb-12">
Eventos corporativos, festas, pubs e experiências especiais com repertório marcante, profissionalismo e forte presença de palco.
</p>
<div class="flex flex-col sm:flex-row items-center justify-center gap-4 mb-12">
<a href="https://wa.me/5547999173996" target="_blank" rel="noopener noreferrer" class="bg-[#25D366]/12 text-[#25D366] border border-[#25D366]/25 px-8 py-4 rounded-full font-label font-bold uppercase tracking-[0.14em] text-[11px] w-full sm:w-auto text-center">
</a>
<a href="https://www.instagram.com/3afio" target="_blank" rel="noopener noreferrer" class="bg-primary/12 text-primary border border-primary/25 px-8 py-4 rounded-full font-label font-bold uppercase tracking-[0.14em] text-[11px] w-full sm:w-auto text-center">
</a>
<a id="link-presskit-footer-cta" href="#" class="bg-surface-container text-white border border-white/10 px-8 py-4 rounded-full font-label font-bold uppercase tracking-[0.14em] text-[11px] w-full sm:w-auto text-center">
Presskit
</a>
</div>
<div class="text-on-surface-variant">
<p class="font-label text-[11px] uppercase tracking-[0.18em] mb-2">Contato comercial</p>
<p class="font-headline text-2xl font-bold">contato@3afio.com.br</p>
</div>
</div>
</section>
</main>
<footer class="border-t border-white/5 py-10 bg-black">
<div class="max-w-7xl mx-auto px-6 flex flex-col md:flex-row items-center justify-between gap-4">
<p class="font-headline text-lg font-black uppercase tracking-tight">3 a Fio</p>
<div class="flex flex-wrap items-center gap-6 text-[11px] uppercase tracking-[0.18em] text-on-surface-variant">
<a id="link-presskit-footer" href="#" class="hover:text-white transition">Presskit</a>
<a id="footer-live-link" href="#" class="hover:text-white transition">3 a Fio Live</a>
<a href="https://www.instagram.com/3afio" target="_blank" rel="noopener noreferrer" class="hover:text-white transition">Instagram</a>
</div>
</div>
</footer>
<script>
let landingData = {
project: {},
evento_ativo: null,
agenda: [],
links: {}
};
const members = {
tiago: {
nome: 'Tiago',
funcao: 'Voz e Baixo',
bio: 'Groove, presença de palco e condução musical. Tiago é uma das vozes centrais da identidade sonora da 3 a Fio.',
imagem: 'https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w1200'
},
jota: {
nome: 'Jota',
funcao: 'Voz e Guitarra',
bio: 'Riffs, solos e energia. Jota entrega presença de palco e timbres marcantes para a assinatura da banda.',
imagem: 'https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w1200'
},
gere: {
nome: 'Gerê',
funcao: 'Voz e Bateria',
bio: 'Potência rítmica e vocal. Gerê sustenta o show com impacto, precisão e presença.',
imagem: 'https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w1200'
},
mauricio: {
nome: 'Mauricio',
funcao: 'Teclados',
bio: 'Texturas, climas e identidade oitocentista premium. Mauricio ajuda a construir a atmosfera sonora da banda.',
imagem: 'https://lh3.googleusercontent.com/d/1x-rSgEiBVS8dXYpOyunHDyAgjgCKTme1=w1200'
}
};
function toggleHistoria() {
const box = document.getElementById('historia-expandida');
const text = document.getElementById('historia-btn-text');
const isHidden = box.classList.contains('hidden');
box.classList.toggle('hidden', !isHidden);
text.textContent = isHidden ? 'Fechar história' : 'Ler mais';
}
function selectMember(key) {
const data = members[key];
if (!data) return;
document.getElementById('member-detail-name').textContent = data.nome;
document.getElementById('member-detail-role').textContent = data.funcao;
document.getElementById('member-detail-bio').textContent = data.bio;
document.getElementById('member-detail-image').src = data.imagem;
document.getElementById('member-detail-image').alt = data.nome;
document.getElementById('member-detail').classList.remove('hidden');
document.getElementById('member-detail').scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}
function closeMemberDetail() {
document.getElementById('member-detail').classList.add('hidden');
}
function toggleMoreVideos() {
const box = document.getElementById('more-videos');
const text = document.getElementById('videos-btn-text');
const isHidden = box.classList.contains('hidden');
box.classList.toggle('hidden', !isHidden);
text.textContent = isHidden ? 'Ver menos vídeos' : 'Ver mais vídeos';
}
function renderLiveLinks() {
const liveUrl = (landingData.links && landingData.links.live_public) || '#';
const presskitUrl = (landingData.links && landingData.links.presskit) || '#';
const eventoAtivo = !!landingData.evento_ativo;
const headerLive = document.getElementById('header-live-link');
const heroLive = document.getElementById('hero-live-link');
const heroButton = document.getElementById('hero-live-button');
const footerLive = document.getElementById('footer-live-link');
const liveSectionButton = document.getElementById('live-section-button');
const liveBanner = document.getElementById('live-highlight-banner');
const liveAlertBar = document.getElementById('live-alert-bar');
const liveAlertLink = document.getElementById('live-alert-link');
const liveAlertText = document.getElementById('live-alert-text');
const landingMain = document.getElementById('landing-main');
[headerLive, heroLive, heroButton, footerLive, liveSectionButton, liveAlertLink].forEach(el => {
if (el) {
el.href = liveUrl;
el.target = '_top';
}
});
[
document.getElementById('link-presskit-top'),
document.getElementById('link-presskit-contact'),
document.getElementById('link-presskit-footer'),
document.getElementById('link-presskit-footer-cta')
].forEach(el => {
if (el) {
el.href = presskitUrl;
el.target = '_top';
}
});
if (eventoAtivo) {
if (headerLive) {
headerLive.classList.remove('hidden');
headerLive.textContent = 'Ao vivo agora';
}
if (heroButton) heroButton.textContent = 'Entrar no 3 a Fio Live';
if (liveSectionButton) liveSectionButton.textContent = 'Participar agora';
if (liveBanner) liveBanner.classList.remove('hidden');
if (liveAlertBar) liveAlertBar.classList.remove('hidden');
const evt = landingData.evento_ativo || {};
const local = evt.local || '3 a Fio ao vivo';
const cidade = evt.cidade_uf || '';
if (liveAlertText) {
liveAlertText.textContent = cidade ? `${local} • ${cidade}` : 'Participe do show da 3 a Fio';
}
if (landingMain) landingMain.classList.add('pt-20');
} else {
if (headerLive) headerLive.classList.add('hidden');
if (heroButton) heroButton.textContent = 'Conheça o 3 a Fio Live';
if (liveSectionButton) liveSectionButton.textContent = 'Conhecer a experiência';
if (liveBanner) liveBanner.classList.add('hidden');
if (liveAlertBar) liveAlertBar.classList.add('hidden');
if (landingMain) landingMain.classList.remove('pt-20');
}
}
function loadLandingData() {
google.script.run
.withSuccessHandler(response => {
try {
landingData = response ? JSON.parse(response) : {};
} catch (e) {
landingData = {};
}
renderLiveLinks();
})
.withFailureHandler(() => {
renderLiveLinks();
})
.getLandingData();
}
document.addEventListener('DOMContentLoaded', () => {
loadLandingData();
});
</script>
</body>
</html>