<!-- ══ NEWSLETTER ═══════════════════════════════════════════════════════ -->
<div class="container-fluid position-relative pt-5 wow fadeInUp" data-wow-delay="0.1s" style="z-index: 1;">
    <div class="container">
        <div class="bg-primary p-5 rounded-3">
            <div class="row align-items-center justify-content-center text-center">
                <div class="col-lg-6 mb-3 mb-lg-0">
                    <h4 class="text-white fw-bold mb-1"><i class="bi bi-envelope-heart-fill me-2"></i>Receba nossas novidades</h4>
                    <p class="text-white-50 mb-0">Promoções exclusivas e lançamentos direto no seu e-mail.</p>
                </div>
                <div class="col-lg-6">
                    <?php if (isset($_GET['newsletter']) && $_GET['newsletter'] === 'ok'): ?>
                        <div class="alert alert-light py-3 mb-0">
                            <i class="bi bi-check-circle-fill text-success me-2"></i>
                            <strong>Inscrito com sucesso!</strong> Obrigado por se cadastrar.
                        </div>
                    <?php else: ?>
                        <form action="exe_newsletter.php" method="POST" class="mx-auto" style="max-width: 500px;">
                            <input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
                            <div class="input-group">
                                <input type="email" name="email" class="form-control border-white p-3"
                                       placeholder="Seu melhor e-mail..." required
                                       style="font-size: 1rem;">
                                <button type="submit" class="btn btn-dark px-4">
                                    <i class="bi bi-send-fill me-1"></i> Inscrever
                                </button>
                            </div>
                        </form>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- ══ FIM NEWSLETTER ═══════════════════════════════════════════════════════ -->