/**
 * Tennis Match Analysis - Landing Page Styles
 * 
 * Custom styles for the landing page
 */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Base Landing Page Styles */
.landing-page {
    scroll-behavior: smooth;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-accent {
    background-color: #ff8c00;
    color: white;
    border: none;
}

.btn-accent:hover {
    background-color: #e67e00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Landing Header */
.landing-header {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: none;
    padding: 1.5rem 0;
}

.landing-header .logo-text {
    color: white;
    font-size: 1.8rem;
}

.landing-nav .nav-links {
    display: flex;
    align-items: center;
}

.landing-nav .nav-links li {
    margin-left: 2rem;
}

.landing-nav .nav-links li a {
    color: white;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.landing-nav .nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: var(--transition);
}

.landing-nav .nav-links li a:hover::after {
    width: 100%;
}

.landing-nav .nav-links li .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.landing-nav .nav-links li .btn::after {
    display: none;
}

.landing-nav .nav-links li .btn-outline {
    border-color: white;
    color: white;
}

.landing-nav .nav-links li .btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #6a11cb 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 40px;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
}

.mockup-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background-color: #f9f9fe;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    max-width: 600px;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.feature-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-content {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-content p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: #444;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Demo Video Section */
.demo-section {
    max-width: 800px;
    margin: 4rem auto 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-tag, .invitation-tag {
    position: absolute;
    background-color: var(--accent);
    padding: 0.5rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    width: 150px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.featured-tag {
    top: 20px;
    right: -30px;
    color: var(--text);
    transform: rotate(45deg);
}

.invitation-tag {
    top: 15px;
    left: -35px;
    transform: rotate(-45deg);
    background-color: var(--primary);
    color: white;
}

.pricing-header {
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.pricing-cost {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.period {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul {
    list-style-type: none;
    padding: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--primary);
    margin-right: 0.75rem;
}

.pricing-cta {
    padding: 0 2rem 2.5rem;
}

.pricing-faq {
    margin-top: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-faq h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.95rem;
    color: var(--text);
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 2rem;
    background-color: #f9f9fe;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    margin-bottom: 1.5rem;
    color: #ffc107;
}

.testimonial-text {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.author-info p {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #6a11cb 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.cta-section .btn-outline {
    border-color: white;
    color: white;
}

.cta-section .btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

/* Contact Form */
.contact-section {
    padding: 4rem 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
    font-size: 1.5rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

#invite-form .btn {
    padding: 0.75rem 2rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
    background-color: rgba(52, 199, 89, 0.1);
    border-radius: 8px;
    color: #28a745;
}

.success-message h4 {
    margin-bottom: 1rem;
    color: #28a745;
}

/* Landing Footer */
.landing-footer {
    background-color: #121212;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-legal {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-legal a {
    color: var(--primary);
    transition: var(--transition);
}

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


/* Stili per la sezione FAQ con accordion */
.faq-section {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-group {
    margin-bottom: 2rem;
}

.faq-group-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--secondary);
}

.accordion {
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    background-color: var(--light-gray);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.accordion-header {
    width: 100%;
}

.accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-button:hover {
    color: var(--primary);
}

.accordion-button i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-button i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px; /* Valore arbitrario, ma abbastanza grande da contenere il testo */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 1.5rem;
    }
    
    .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        order: 2;
        text-align: center;
        padding-right: 0;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .landing-nav {
        display: none;
    }
    
    .benefit-card, 
    .pricing-card,
    .testimonial-card {
        min-width: 100%;
    }
    
    .feature-item, 
    .feature-item.reverse {
        flex-direction: column;
    }
    
    .feature-content, 
    .feature-image {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .btn-large {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons, 
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content, 
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-branding {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-legal {
        margin-top: 1rem;
        justify-content: center;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 1.5rem auto 0;
}

.copyright {
    font-size: 0.85rem;
}