/* Import Google Fonts - Lato e Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

/* Reset e stili di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colori principali - Ispirato all'Italia */
    --primary: #1C7ED6;      /* Blu italiano */
    --primary-dark: #1971c2;
    --primary-light: #339af0;
    --accent: #D63384;       /* Rosa accento */
    --accent-dark: #c2255c;
    --accent-light: #f763a0;
    --dark: #212529;
    --dark-soft: #343a40;
    --gray: #868e96;
    --gray-light: #dee2e6;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* Gradienti */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    
    /* Ombre */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Transizioni */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Font & Typography */
    --font-sans: 'Lato', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-soft);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sfondo curvato */
.curved-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, rgba(28, 126, 214, 0.03) 0%, rgba(214, 51, 132, 0.03) 100%);
    clip-path: ellipse(90% 60% at 50% 0%);
    z-index: -1;
}

/* Header e Navigazione */
.site-header {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo span em {
    color: var(--primary);
    font-style: normal;
    font-weight: 900;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav ul li a {
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}

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

.main-nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--dark);
    transition: var(--transition);
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 180px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-section h1 span {
    color: var(--accent);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.feature-badge svg {
    color: var(--primary);
}

.feature-badge span {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 400px;
    z-index: 1;
}

.demo-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-arrow {
    color: var(--accent);
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    transform: rotateY(180deg);
}

.shape-divider .shape-fill {
    fill: var(--light);
}

.shape-divider-bottom {
    top: auto;
    bottom: 0;
    transform: rotate(180deg);
}

/* Bottoni */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-icon {
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(28, 126, 214, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(28, 126, 214, 0.4);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--light);
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background-color: var(--gray-light);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
}

.btn-accent:hover {
    box-shadow: 0 6px 16px rgba(214, 51, 132, 0.4);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Section Styling */
.how-section, 
.features-section, 
.faq-section {
    padding: 100px 0;
    position: relative;
}

.how-section {
    background-color: var(--light);
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    background: var(--gradient-main);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--gray);
}

/* Come Funziona Section */
.steps-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.step-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    width: calc(33.333% - 20px);
    max-width: 320px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 10px auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(28, 126, 214, 0.1) 0%, rgba(214, 51, 132, 0.1) 100%);
    border-radius: 50%;
}

.step-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-box {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(28, 126, 214, 0.1) 0%, rgba(214, 51, 132, 0.1) 100%);
    border-radius: 15px;
}

.feature-box h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-box p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

.faq-toggle {
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
    font-weight: 300;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    padding: 0 25px;
}

.faq-item.active {
    box-shadow: var(--shadow);
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding: 0 25px 25px;
}

.faq-content p {
    color: var(--gray);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-main);
    color: var(--white);
    text-align: center;
}

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

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section h2 span {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0 10px;
    border-radius: 4px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

.cta-section .btn-primary:hover {
    background: var(--light);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 300px;
}

.footer-logo {
    width: 50px;
    height: 50px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.brand-name em {
    color: var(--accent-light);
    font-style: normal;
}

.brand-tagline {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-links-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

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

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    color: var(--gray-light);
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Media Queries */
@media (max-width: 1200px) {
    .hero-visual {
        width: 350px;
        right: 2%;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero-section {
        padding: 80px 0 150px;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .section-heading h2 {
        font-size: 2.2rem;
    }
    
    .hero-visual {
        position: static;
        transform: none;
        margin: 40px auto 0;
        width: 100%;
        max-width: 400px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons, 
    .hero-features {
        justify-content: center;
    }
    
    .steps-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .step-card {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .main-nav ul.active {
        right: 0;
    }
    
    .hero-section h1 {
        font-size: 2.3rem;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-box {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        width: 100%;
        gap: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 120px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-heading {
        margin-bottom: 40px;
    }
    
    .section-heading h2 {
        font-size: 1.6rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-badge {
        width: 80%;
    }
    
    .footer-links {
        flex-direction: column;
    }
}
