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

:root {
    --primary: #1a3a5c;
    --secondary: #e67e22;
    --accent: #2c5282;
    --light: #f7f9fc;
    --dark: #1a202c;
    --gray: #718096;
    --white: #ffffff;
    --success: #38a169;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
}

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

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

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

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

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.logo span {
    color: var(--secondary);
}

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

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 40px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.hero-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image svg {
    width: 70%;
    height: auto;
    opacity: 0.9;
}

/* Section Styles */
.section {
    padding: 90px 0;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.8);
}

/* Features */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), #f39c12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--white);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Services */
.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.service-item {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 0 0 40%;
    height: 280px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image svg {
    width: 100px;
    height: 100px;
    fill: rgba(255,255,255,0.9);
}

.service-content {
    flex: 1;
    padding: 40px;
}

.service-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.service-price .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.service-price .unit {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Pricing Cards */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: var(--white);
    border-radius: 20px;
    padding: 45px 35px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

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

.pricing-card.featured {
    background: var(--primary);
    color: var(--white);
}

.pricing-card.featured::before {
    content: 'Più richiesto';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.pricing-card .description {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.pricing-card.featured .description {
    color: rgba(255,255,255,0.8);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.pricing-card.featured .price {
    color: var(--white);
}

.pricing-card .price-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.pricing-card.featured .price-note {
    color: rgba(255,255,255,0.7);
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-card.featured .pricing-features li {
    border-color: rgba(255,255,255,0.1);
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.pricing-card.featured .pricing-features li::before {
    color: var(--secondary);
}

/* Stats */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 30px 50px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-dark .stat-number {
    color: var(--white);
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
}

.section-dark .stat-label {
    color: rgba(255,255,255,0.8);
}

/* Testimonials */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--secondary);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 25px;
    font-style: italic;
    line-height: 1.8;
}

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

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 3px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray);
}

/* About Split */
.about-split {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.about-image svg {
    width: 60%;
    height: auto;
    fill: rgba(255,255,255,0.9);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-list {
    margin: 30px 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: var(--dark);
}

.about-list li::before {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Form */
.contact-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 55px;
    height: 55px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary);
}

.info-text h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.info-text p {
    color: var(--gray);
}

.contact-form-wrapper {
    flex: 1;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #d35400 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    counter-reset: step;
}

.process-step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    position: relative;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 25px;
}

.process-step h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.process-step p {
    color: var(--gray);
}

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

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col:first-child {
    flex: 2;
    min-width: 280px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-col > p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 25px;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    color: rgba(255,255,255,0.9);
}

.cookie-content p a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--secondary);
    color: var(--white);
}

.cookie-reject {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sticky-cta.show {
    opacity: 1;
    visibility: visible;
}

.sticky-cta .btn {
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
}

/* Thanks Page */
.thanks-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.thanks-content {
    max-width: 600px;
}

.thanks-icon {
    width: 120px;
    height: 120px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
}

.thanks-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--white);
}

.thanks-content h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.thanks-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Legal Pages */
.legal-hero {
    padding: 160px 0 60px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.legal-hero p {
    opacity: 0.8;
}

.legal-content {
    padding: 80px 0;
}

.legal-content h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 40px 0 20px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.9;
}

.legal-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.legal-content ul li {
    color: var(--gray);
    margin-bottom: 10px;
    list-style: disc;
}

/* Page Header */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile Styles */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 100%;
        height: 300px;
    }

    .about-split {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        height: 350px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .service-item,
    .service-item:nth-child(even) {
        flex-direction: column;
    }

    .service-image {
        flex: none;
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        padding: 15px 0;
        border-bottom: 1px solid var(--light);
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 140px 0 70px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .sticky-cta {
        bottom: 20px;
        right: 20px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .pricing-card {
        padding: 35px 25px;
    }
}
