*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --blue-primary: #2563eb;
    --blue-hover: #1d4ed8;
    --blue-light: #eff6ff;
    --blue-border: #bfdbfe;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 10px;
    --radius-md: 20px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo .dot {
    color: var(--blue-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 6px 12px;
    border-radius: 100px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.lang-switch {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.lang-active {
    color: var(--text-primary);
    font-weight: 700;
}

.lang-divider {
    margin: 0 4px;
    color: var(--border-color);
}

.nav-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--card-bg);
    transition: var(--transition);
}

.nav-btn:hover {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

/* HERO */
.hero {
    padding: 70px 0 60px;
    text-align: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 16px;
    background-color: var(--blue-light);
    color: var(--blue-primary);
    border: 1px solid var(--blue-border);
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

.highlight {
    color: var(--blue-primary);
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.02) 100%);
    padding: 2px 10px;
    border-radius: 8px;
}

.subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--blue-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--blue-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 15px;
    padding: 16px 30px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.full-width {
    display: flex;
    width: 100%;
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: left;
    transition: var(--transition);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--blue-light);
    color: var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

.section-block {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--blue-primary);
    background-color: var(--blue-light);
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: inline-block;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* PORTFOLIO STYLES (DESKTOP) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.work-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.work-card:hover {
    border-color: var(--blue-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.1);
}

.work-img-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.work-info {
    padding: 20px 24px;
}

.work-info h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.work-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* PRICING (DESKTOP) */
.pricing-grid {
    display: flex;
    justify-content: center;
    max-width: 1060px !important;
    margin: 0 auto !important;
    gap: 20px !important;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 22px !important;
    width: 100%;
    max-width: 520px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-tag {
    position: absolute;
    top: -14px;
    right: 24px;
    background-color: var(--blue-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 20px !important;
    font-weight: 800;
    margin-bottom: 8px;
}

.plan-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.3rem !important;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
}

.plan-price span {
    font-size: 0.9rem !important;
    margin-left: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.plan-desc {
    font-size: 13px !important;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.45;
}

.plan-features li {
    font-size: 13px !important;
    font-weight: 600;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.plan-features .check {
    color: var(--blue-primary);
    font-weight: 800;
}

/* FOOTER */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* =========================================================
   MEDIA QUERY UNIFICATA PER SMARTPHONE / TABLET (<= 768px)
   ========================================================= */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    header {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 34px !important;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 16px !important;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .features, 
    .steps-grid, 
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        flex-direction: column !important;
        padding: 0 10px !important;
    }

    .pricing-card {
        max-width: 100% !important;
        padding: 24px 20px !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- FAQ ACCORDION --- */
.faq-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-grid {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.4rem;
    color: #000000;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 24px;
    color: #000000;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 24px;
    color: #000000;
    transition: max-height 0.4s ease-in-out;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #000000;
}