This commit is contained in:
Francesco Picone
2025-12-06 18:34:12 +01:00
parent 1f48a3a2a5
commit f59d24bdce
3 changed files with 32 additions and 2 deletions

View File

@@ -682,7 +682,7 @@ select.form-control {
.contact-section { .contact-section {
padding: var(--spacing-2xl) 0; padding: var(--spacing-2xl) 0;
background: var(--white); background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
} }
.contact-content { .contact-content {

View File

@@ -27,6 +27,23 @@ document.addEventListener('DOMContentLoaded', function() {
}); });
}); });
// Scroll smooth per link con anchor
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
const href = this.getAttribute('href');
if (href !== '#' && href.length > 1) {
e.preventDefault();
const target = document.querySelector(href);
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
}
});
});
}); });
/** /**

View File

@@ -58,7 +58,12 @@ $demo_lessons = get_demo_lessons();
<!-- Hero Section --> <!-- Hero Section -->
<section class="hero"> <section class="hero">
<div class="container"> <div class="container">
<?php echo display_flash_message(); ?> <?php
// Mostra flash message solo se NON è un messaggio di contatto
if (!isset($_GET['success']) && !isset($_GET['error'])) {
echo display_flash_message();
}
?>
<div class="hero-content"> <div class="hero-content">
<h2 class="hero-title">Trasforma il tuo corpo con il Pilates</h2> <h2 class="hero-title">Trasforma il tuo corpo con il Pilates</h2>
<p class="hero-subtitle">Videolezioni professionali e sessioni live per tutti i livelli</p> <p class="hero-subtitle">Videolezioni professionali e sessioni live per tutti i livelli</p>
@@ -168,6 +173,14 @@ $demo_lessons = get_demo_lessons();
<!-- Sezione Contatti per Lezioni Live --> <!-- Sezione Contatti per Lezioni Live -->
<section id="contact" class="contact-section"> <section id="contact" class="contact-section">
<div class="container"> <div class="container">
<div style="margin-bottom: var(--spacing-lg);">
<?php
// Mostra flash message se presente (dopo invio form contatti)
if (isset($_GET['success']) || isset($_GET['error'])) {
echo display_flash_message();
}
?>
</div>
<div class="contact-content"> <div class="contact-content">
<div class="contact-text"> <div class="contact-text">
<h2 class="section-title">Richiedi una Lezione Live</h2> <h2 class="section-title">Richiedi una Lezione Live</h2>