/* Importazione Font da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto:wght@400;700&display=swap');

/* Variabili CSS per colori e stili comuni */
:root {
    --primary-color: #FF0077; /* Rosa acceso, colore principale */
    --secondary-color: #00CCFF; /* Azzurro, colore secondario per pulsanti */
    --text-dark: #333; /* Testo scuro */
    --text-light: #f9f9f9; /* Testo chiaro */
    --bg-light: #f0f2f5; /* Sfondo chiaro generale */
    --bg-dark: #1a1a2e; /* Sfondo scuro per sezioni */
    --card-bg: #ffffff; /* Sfondo delle card */
    --header-footer-bg: #0d0d1e; /* Sfondo header/footer */
    --border-radius: 10px;
    --box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s ease;
}

/* Reset e Stili Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Header */
header {
    background: var(--header-footer-bg);
    color: var(--text-light);
    padding: 1.2rem 0;
    border-bottom: 5px solid var(--primary-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permette al logo e nav di andare a capo su schermi piccoli */
}

header .logo {
    display: flex;
    align-items: center;
    margin-bottom: 0; /* Reset per mobile */
}

header .logo img {
    height: 60px; /* Dimensioni del logo */
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8em;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra i link su mobile */
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color var(--transition-speed), border-bottom var(--transition-speed);
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width var(--transition-speed);
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* Bottoni Generici */
.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background var(--transition-speed), transform 0.2s ease, box-shadow var(--transition-speed);
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #cc0066; /* Rosa leggermente più scuro */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #00aacc; /* Azzurro leggermente più scuro */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
}

/* Sezioni Generiche */
section {
    padding: 80px 0;
    text-align: center;
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

section:nth-child(odd) {
    background-color: var(--card-bg);
}

section h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.8em;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--text-light);
    padding: 120px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-content {
    max-width: 900px;
    margin: auto;
}

.hero-content h2 {
    color: var(--text-light);
    font-size: 4em;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 50px;
    line-height: 1.5;
}

/* Tavoli Section */
.tavoli-section {
    background-color: var(--bg-light);
}

.tavoli-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 20px;
}

.tavolo-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden; /* Per arrotondare gli angoli dell'immagine interna */
}

.tavolo-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.tavolo-card img {
    max-width: 100%;
    height: 200px; /* Altezza fissa per le immagini dei tavoli */
    object-fit: cover; /* Assicura che le immagini riempiano lo spazio senza distorsioni */
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.tavolo-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.9em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tavolo-card p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--card-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.step-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 35px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.step-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.step-card .step-icon {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--card-bg);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.step-card p {
    font-size: 1.05em;
    color: var(--text-dark);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section h2 {
    color: var(--text-light);
}

.testimonial-slider {
    display: flex;
    overflow: hidden; /* Nasconde gli elementi fuori vista */
    width: 100%;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px; /* Spazio tra le testimonianze */
}

.testimonial-item {
    flex: 0 0 80%; /* Occupa l'80% della larghezza del container */
    max-width: 700px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 35px;
    margin: 0 auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    display: none; /* Nascosto di default, mostrato dal JS */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.testimonial-item.active {
    display: flex; /* Mostra solo l'elemento attivo */
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.3em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.testimonial-item span {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--secondary-color); /* Colore per il nome della persona */
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active {
    background-color: var(--secondary-color);
    border: 2px solid #fff;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 100px 0;
}

.cta-section h2 {
    color: var(--text-light);
}

.cta-section p {
    font-size: 1.6em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--header-footer-bg);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

footer .footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

footer .footer-info,
footer .footer-links,
footer .social-media {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

footer .footer-info h3,
footer .footer-links h4,
footer .social-media h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

footer .footer-info p,
footer .footer-links ul li a {
    color: var(--text-light);
    font-size: 1em;
    line-height: 1.8;
    text-decoration: none;
}

footer .footer-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

footer .footer-info a:hover {
    color: var(--primary-color);
}

footer .footer-links ul {
    list-style: none;
}

footer .footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-media img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    transition: transform var(--transition-speed);
}

.social-media img:hover {
    transform: scale(1.15) rotate(5deg);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* Media Queries per la Responsività */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header .logo {
        margin-bottom: 20px;
    }
    header nav ul li {
        margin: 0 15px;
    }
    .hero-content h2 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    section h2 {
        font-size: 2.2em;
    }
    .tavoli-grid, .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    .testimonial-item {
        flex: 0 0 95%; /* Più largo su tablet */
    }
    footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    footer .footer-info,
    footer .footer-links,
    footer .social-media {
        text-align: center;
        margin-bottom: 25px;
    }
    .social-media img {
        margin: 0 8px; /* Spazio ridotto */
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }
    header nav ul {
        flex-direction: column;
    }
    header nav ul li {
        margin: 10px 0;
    }
    .hero-section {
        padding: 80px 0;
    }
    .hero-content h2 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    section {
        padding: 60px 0;
    }
    section h2 {
        font-size: 1.8em;
    }
    .tavolo-card {
        padding: 20px;
    }
    .tavolo-card h3 {
        font-size: 1.5em;
    }
    .btn {
        padding: 12px 24px;
        font-size: 1em;
    }
    .btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .step-card {
        padding: 25px;
    }
    .step-card h3 {
        font-size: 1.4em;
    }
    .testimonial-item p {
        font-size: 1.1em;
    }
    .cta-section p {
        font-size: 1.2em;
    }
}