:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #b45309;
    --accent-hover: #92400e;
    --bg-light: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

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

a:hover {
    color: var(--accent-hover);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-link img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #cbd5e1;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: none;
}

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

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

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

.hero-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    height: 400px;
}

/* Stats Section */
.stats {
    padding: 50px 0;
    background-color: var(--white);
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-light);
    font-weight: 500;
}

/* Section Common styling */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* Steps (Come Funziona) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    text-align: center;
    position: relative;
    border: 1px solid #f1f5f9;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

.step-card h4 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* Trust Section */
.trust-block {
    background-color: var(--secondary);
    color: var(--white);
}

.trust-block h2, .trust-block h3 {
    color: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.trust-item {
    margin-bottom: 25px;
}

.trust-item h4 {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 10px;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Features Block */
.features-block {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.features-grid img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: 450px;
}

.features-list {
    list-style: none;
    margin-top: 25px;
}

.features-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
}

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

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.popular {
    border: 3px solid var(--accent);
    transform: scale(1.03);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.price {
    font-size: 40px;
    font-family: var(--font-heading);
    color: var(--primary);
    margin: 20px 0;
    font-weight: 700;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Forms */
.form-section {
    background-color: var(--bg-light);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-body);
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 5px;
}

/* Q&A Accordion Teaser */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 18px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

details[open] summary::after {
    content: "\f077";
}

details p {
    margin-top: 15px;
    color: var(--text-light);
}

/* Trust Layer */
.trust-layer {
    background-color: #f1f5f9;
    padding: 40px 0;
    border-top: 1px solid #cbd5e1;
    font-size: 14px;
    color: var(--text-light);
}

.trust-layer h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.trust-layer p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 50px 0;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-info {
    font-size: 14px;
    color: #64748b;
    max-width: 800px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 20px;
    z-index: 9999;
    display: none;
    border: 1px solid #e2e8f0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding: 20px;
        gap: 15px;
    }
    .nav-links.active {
        display: flex;
    }
    .hero-grid, .stats-grid, .steps-grid, .services-grid, .trust-grid, .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: none;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-img, .features-grid img {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}