/* RESET E VARIABILI */
:root {
    --primary-color: #003d7a;
    --secondary-color: #0066cc;
    --accent-color: #00a86b;
    --light-bg: #f5f7fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

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

/* HEADER */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.btn-header {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.3s, transform 0.2s;
}

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

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.95) 0%, rgba(0, 102, 204, 0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="80" fill="rgba(255,255,255,0.03)"/><circle cx="1100" cy="500" r="120" fill="rgba(255,255,255,0.03)"/></svg>');
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #009959;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.hero-visual {
    position: relative;
    height: 300px;
}

.hero-graphic {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape-1, .shape-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 30px;
    right: 50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 50px;
    right: 20px;
    animation: float 8s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* PROBLEMA SECTION */
.problem {
    padding: 80px 0;
    background: white;
}

.problem h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.problem > p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-item {
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s;
}

.problem-item:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.problem-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* SOLUZIONE SECTION */
.solution {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
}

.solution h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.solution .subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.how-it-works {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 50px;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step p {
    color: var(--text-light);
}

.arrow {
    font-size: 30px;
    color: var(--secondary-color);
}

.solution-highlight {
    background: var(--accent-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

/* BENEFICI SECTION */
.benefits {
    padding: 80px 0;
    background: white;
}

.benefits h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border-top: 4px solid var(--secondary-color);
}

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

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-light);
}

/* OFFERTA SPECIALE SECTION */
.special-offer {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
}

.offer-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.deadline {
    font-size: 24px;
    font-weight: bold;
    color: #d84315;
    text-align: center;
}

.offer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.offer-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.offer-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.offer-item ul {
    list-style: none;
    padding: 0;
}

.offer-item li {
    padding: 10px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.offer-item li:last-child {
    border-bottom: none;
}

.offer-item.highlight {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.offer-item.highlight h3 {
    color: white;
}

.offer-item.highlight p {
    color: white;
}

.offer-item.highlight .small {
    font-size: 14px;
    opacity: 0.9;
}

/* GETTING STARTED SECTION */
.getting-started {
    padding: 80px 0;
    background: white;
}

.getting-started h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
}

.start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.start-step {
    text-align: center;
    padding: 30px;
}

.start-step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    line-height: 60px;
    margin-bottom: 15px;
}

.start-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.start-step p {
    color: var(--text-light);
}

.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ SECTION */
.faq {
    padding: 80px 0;
    background: var(--light-bg);
}

.faq h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
}

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

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

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-toggle {
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
}

/* CONTATTI SECTION */
.contacts {
    padding: 80px 0;
    background: white;
}

.contacts h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.contacts .subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    border-top: 4px solid var(--secondary-color);
}

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

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-light);
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .btn-header {
        width: 100%;
        text-align: center;
    }

    .how-it-works {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .offer-details {
        grid-template-columns: 1fr;
    }

    .cta-container {
        flex-direction: column;
    }

    .cta-container .btn {
        width: 100%;
        text-align: center;
    }
}
