From f59d24bdce73d668db6b576cf20976e5ab73b75c Mon Sep 17 00:00:00 2001 From: Francesco Picone Date: Sat, 6 Dec 2025 18:34:12 +0100 Subject: [PATCH] fix --- assets/css/style.css | 2 +- assets/js/main.js | 17 +++++++++++++++++ index.php | 15 ++++++++++++++- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index fb982d3..43c8bdc 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -682,7 +682,7 @@ select.form-control { .contact-section { padding: var(--spacing-2xl) 0; - background: var(--white); + background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%); } .contact-content { diff --git a/assets/js/main.js b/assets/js/main.js index dad3e5e..ca01d98 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -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' + }); + } + } + }); + }); + }); /** diff --git a/index.php b/index.php index 159c4d9..2b4d474 100644 --- a/index.php +++ b/index.php @@ -58,7 +58,12 @@ $demo_lessons = get_demo_lessons();
- +

Trasforma il tuo corpo con il Pilates

Videolezioni professionali e sessioni live per tutti i livelli

@@ -168,6 +173,14 @@ $demo_lessons = get_demo_lessons();
+
+ +

Richiedi una Lezione Live