/**
 * Come Funziona Page Styles
 */

/* ===== HERO ===== */
.hero-come-funziona {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero-come-funziona h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 16px;
}

.hero-come-funziona .hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===== 3 STEP ===== */
.section-steps {
    padding: 80px 0;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 48px;
}

.steps-timeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.step-card {
    flex: 1 1 280px;
    max-width: 350px;
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    border: 1px solid #e2e8f0;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #ef476f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-icon {
    color: #4c51bf;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.step-card h3 {
    font-size: 1.4rem;
    color: #ef476f;
    margin-bottom: 12px;
}

.step-card > p {
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.6;
}

.step-card a {
    color: #4c51bf;
    text-decoration: underline;
}

.step-details {
    text-align: left;
    background: #f7fafc;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    list-style: none;
}

.step-details li {
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 0.9rem;
    padding-left: 18px;
    position: relative;
}

.step-details li::before {
    content: '\2713';
    color: #06d6a0;
    font-weight: 700;
    position: absolute;
    left: 0;
}

.step-details li:last-child {
    margin-bottom: 0;
}

.step-arrow {
    font-size: 2rem;
    color: #ef476f;
    font-weight: 700;
    align-self: center;
}

.cta-center {
    text-align: center;
    margin-top: 32px;
}

/* ===== COSA ASPETTARSI ===== */
.section-cosa-aspettarsi {
    padding: 80px 0;
    background: #f7fafc;
}

.section-cosa-aspettarsi h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 48px;
}

.expectation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.expectation-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.expectation-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.expectation-card.positive .card-header svg {
    color: #06d6a0;
}

.expectation-card.negative .card-header svg {
    color: #ef476f;
}

.expectation-card h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #1a202c;
}

.expectation-card ul {
    list-style: none;
    padding: 0;
}

.expectation-card li {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
    line-height: 1.6;
}

.expectation-card li:last-child {
    border-bottom: none;
}

.expectation-card strong {
    color: #1a202c;
}

/* ===== PRIVACY ===== */
.section-privacy {
    padding: 80px 0;
    background: #ffffff;
}

.privacy-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.privacy-icon {
    color: #4c51bf;
    flex-shrink: 0;
}

.privacy-text h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #1a202c;
}

.privacy-text .lead {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 32px;
}

.privacy-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.feature h4 {
    color: #4c51bf;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.feature p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

.privacy-note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #1a202c;
    line-height: 1.6;
}

.link-subtle {
    color: #4c51bf;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.link-subtle:hover {
    text-decoration: underline;
}

/* ===== QUANDO USARE ===== */
.section-quando {
    padding: 80px 0;
    background: #f7fafc;
}

.section-quando h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 48px;
}

.quando-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.quando-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.quando-card.green {
    border-top: 4px solid #06d6a0;
}

.quando-card.red {
    border-top: 4px solid #ef476f;
}

.quando-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #1a202c;
}

.quando-card ul {
    list-style: none;
    padding: 0;
    color: #4a5568;
}

.quando-card li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.quando-card.green li::before {
    content: '\2713';
    color: #06d6a0;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

.quando-card.red li::before {
    content: '\26A0';
    color: #ef476f;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

.emergency-box {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff5f5;
    border: 2px solid #f56565;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
}

.emergency-box h3 {
    color: #c53030;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.emergency-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.emergency-item {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.emergency-item strong {
    display: block;
    font-size: 2rem;
    color: #c53030;
    margin-bottom: 4px;
}

.emergency-item span {
    color: #2d3748;
    font-size: 0.9rem;
}

/* ===== CTA FINAL ===== */
.section-cta-final {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8a5b3, #ef476f);
}

.section-cta-final .cta-box {
    text-align: center;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto;
}

.section-cta-final h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-cta-final p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-cta-final .btn-primary {
    background: #ffffff;
    color: #ef476f;
}

.section-cta-final .btn-primary:hover {
    transform: scale(1.05);
}

.section-cta-final .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.section-cta-final .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-come-funziona {
        padding: 60px 0;
    }

    .hero-come-funziona h1 {
        font-size: 2rem;
    }

    .hero-come-funziona .hero-subtitle {
        font-size: 1rem;
    }

    .steps-timeline {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .expectation-grid,
    .quando-grid {
        grid-template-columns: 1fr;
    }

    .privacy-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .privacy-features {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .section-cta-final h2 {
        font-size: 1.6rem;
    }
}
