/* 
* Main CSS File for Nupata Wovulo
* Colors:
* - Background: #D7C4E1 (lavender-purple)
* - Accents: #00B8A9 (turquoise), #F9D342 (yellow), #9BC53D (green)
* - Text: #2E2E2E (graphite)
* - Block Background: #FFF4E0 (cream)
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #D7C4E1;
    color: #2E2E2E;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #00B8A9;
    transition: color 0.3s ease;
}

a:hover {
    color: #F9D342;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 5rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: #00B8A9;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #00B8A9;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #F9D342;
    color: #2E2E2E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: #9BC53D;
}

.cta-button {
    background-color: #F9D342;
    color: #2E2E2E;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
}

/* Header & Navigation */
header {
    background-color: #FFF4E0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #2E2E2E;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #00B8A9;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #2E2E2E;
    height: 3px;
    width: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(46, 46, 46, 0.95);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cookie-banner p {
    margin-bottom: 10px;
    max-width: 800px;
}

#cookie-banner button {
    background-color: #00B8A9;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#cookie-banner button:hover {
    background-color: #F9D342;
    color: #2E2E2E;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 70px;
    background: linear-gradient(rgba(215, 196, 225, 0.7), rgba(215, 196, 225, 0.7)), url('../img/TBaZkv.jpg') center/cover no-repeat;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: #2E2E2E;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #2E2E2E;
}

/* About Section */
.about {
    background-color: #FFF4E0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-card i {
    font-size: 3rem;
    color: #00B8A9;
    margin-bottom: 1.5rem;
}

/* Training Types Section */
.allenamenti {
    background-color: #D7C4E1;
}

.allenamenti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.allenamento-card {
    background-color: #FFF4E0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.allenamento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.allenamento-img {
    height: 200px;
    overflow: hidden;
}

.allenamento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.allenamento-card:hover .allenamento-img img {
    transform: scale(1.1);
}

.allenamento-content {
    padding: 1.5rem;
}

.allenamento-content h3 {
    margin-bottom: 0.5rem;
}

.allenamento-price {
    font-size: 1.5rem;
    color: #00B8A9;
    font-weight: bold;
    margin: 1rem 0;
}

/* Testimonials Section */
.testimonials {
    background-color: #FFF4E0;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card:before {
    content: """;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 5rem;
    color: #00B8A9;
    opacity: 0.2;
}

.testimonial-name {
    font-weight: bold;
    color: #00B8A9;
    margin-top: 1rem;
}

/* Schedule Section */
.orario {
    background-color: #D7C4E1;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #d1d1d1;
}

.schedule-table th {
    background-color: #00B8A9;
    color: white;
    font-weight: 600;
}

.schedule-table tr:nth-child(even) {
    background-color: #FFF4E0;
}

.schedule-table tr:nth-child(odd) {
    background-color: white;
}

/* Benefits Section */
.benefits {
    background-color: #FFF4E0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: #F9D342;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq {
    background-color: #D7C4E1;
}

.faq-item {
    margin-bottom: 1.5rem;
    background-color: #FFF4E0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: "+";
    font-size: 1.5rem;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-question:after {
    content: "-";
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Booking Form Section */
.prenotazione {
    background-color: #FFF4E0;
    padding: 5rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-check {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
}

.form-check input {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-errors {
    color: red;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #2E2E2E;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h3 {
    color: #F9D342;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #00B8A9;
}

footer a {
    color: #9BC53D;
}

footer a:hover {
    color: #F9D342;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
}

/* Thank You Page */
.thank-you {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.thank-you h1 {
    color: #00B8A9;
    margin-bottom: 1.5rem;
}

.thank-you .btn {
    margin-top: 2rem;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Mobile Navigation */
    .nav-toggle-label {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #FFF4E0;
        width: 100%;
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 0;
    }
    
    .nav-toggle:checked ~ nav {
        transform: scale(1, 1);
    }
    
    /* Hero adjust for mobile */
    .hero {
        height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    /* Grid adjustments */
    .allenamenti-grid,
    .testimonial-grid,
    .benefits-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Table adjustments */
    .schedule-table {
        display: block;
        overflow-x: auto;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
} 