/* Variabili principali */
:root {
    --primary: #00BFFF;
    --secondary: #8A2BE2;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --accent: #F06292;
    --dark: #1A1A2E;
    --text: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-bg: #F8F9FA;
    --gray: #E9ECEF;
    --card-bg: #FFFFFF;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(138, 43, 226, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --font-main: 'Poppins', 'Helvetica', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset di base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

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

h1 {
    font-size: 4.2rem;
    line-height: 1.2;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

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

ul {
    list-style: none;
}

p {
    margin-bottom: 2rem;
}

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

.wrapper {
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 0;
    z-index: 1000;
}

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

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

.logo-svg {
    display: block;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    padding: 0.8rem;
}

.menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.menu a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 0.5rem 0;
}

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

.menu a:hover {
    color: var(--secondary);
}

.menu a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-nav::after {
    display: none;
}

/* Hero Section */
.hero {
    padding: 16rem 0 10rem;
    position: relative;
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
}

.accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 1.8rem;
    color: var(--light-text);
    margin-bottom: 3rem;
}

.action-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 30px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-large {
    padding: 1.8rem 3.6rem;
    font-size: 1.8rem;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.benefits span {
    background-color: rgba(138, 43, 226, 0.1);
    color: var(--secondary);
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 500;
}

.hero-preview {
    flex: 1;
    position: relative;
}

/* Preview Card */
.preview-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--gray);
    position: relative;
    z-index: 2;
}

.preview-header {
    background: var(--dark);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
}

.preview-title {
    font-size: 1.6rem;
    font-weight: 600;
}

.preview-controls {
    display: flex;
    gap: 0.6rem;
}

.preview-controls span {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    display: block;
}

.preview-controls span:nth-child(1) {
    background-color: #FF5F57;
}

.preview-controls span:nth-child(2) {
    background-color: #FEBC2E;
}

.preview-controls span:nth-child(3) {
    background-color: #28C840;
}

.preview-body {
    display: flex;
    height: 500px;
}

.sidebar {
    width: 200px;
    background: #f5f7fa;
    padding: 2rem 1rem;
    border-right: 1px solid var(--gray);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: var(--border-radius);
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item.active {
    background: rgba(138, 43, 226, 0.1);
    color: var(--secondary);
    font-weight: 500;
}

.sidebar-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.workspace {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.controls {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    outline: none;
}

.generate {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--secondary);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.generate:hover {
    transform: scale(1.05);
}

.style-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.style-options .option {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
    background: var(--light-bg);
    border-radius: 20px;
    cursor: pointer;
}

.style-options .option.active {
    background: var(--gradient);
    color: var(--white);
}

.result {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 4rem;
    text-align: center;
    color: var(--light-text);
}

.placeholder p {
    margin: 0;
    font-size: 1.6rem;
}

/* Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -150px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: -100px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(240, 98, 146, 0.1) 100%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px) rotate(8deg);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Features Section */
.features {
    padding: 10rem 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.feature {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    margin-bottom: 2rem;
}

.feature h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

/* How it works section */
.how-it-works {
    padding: 10rem 0;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

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

.step {
    display: flex;
    gap: 3rem;
    margin-bottom: 5rem;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 2.4rem;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.step-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
}

.step::after {
    content: '';
    position: absolute;
    top: 75px;
    left: 30px;
    width: 2px;
    height: calc(100% - 60px);
    background: linear-gradient(to bottom, var(--secondary), rgba(138, 43, 226, 0.1));
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

/* Call to Action Section */
.call-to-action {
    padding: 10rem 0;
    background-color: var(--light-bg);
}

.cta-card {
    background: var(--gradient);
    border-radius: var(--border-radius-lg);
    padding: 6rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-card::before,
.cta-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-card::before {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.cta-card::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
}

.cta-card h2 {
    color: var(--white);
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

.cta-card p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.disclaimer {
    font-size: 1.4rem;
    opacity: 0.8;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 8rem 0 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand {
    flex: 1;
    max-width: 350px;
}

.footer-brand p {
    margin-top: 2rem;
    font-size: 1.4rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 8rem;
}

.link-column h4 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.link-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
}

.link-column ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.link-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: var(--transition);
}

.link-column a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    font-size: 1.4rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero-split {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .action-area {
        align-items: center;
    }
    
    .features-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .cta-card {
        padding: 5rem 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        padding: 2rem;
    }
    
    .menu.active {
        right: 0;
    }
    
    .sidebar {
        width: 100px;
    }
    
    .sidebar-item span {
        display: none;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 2rem;
    }
    
    .step::after {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        margin: 0 auto;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-around;
    }
    
    .link-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 3.2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 4rem;
        align-items: center;
    }
    
    .preview-body {
        flex-direction: column;
        height: 480px;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid var(--gray);
        padding: 1rem;
    }
    
    .sidebar-item {
        margin: 0;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar-item span {
        display: block;
        font-size: 1.2rem;
    }
    
    .workspace {
        padding: 1.5rem;
    }
}
