/* ==========================================================================
   Audit SEO Gratuito - Modern Stylesheet
   ========================================================================== */

/* --- Hero Section --- */
.hero-audit {
    background: linear-gradient(135deg, #091e3a 0%, #1e3a8a 50%, #0f172a 100%);
    color: #ffffff;
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-audit::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-audit::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(147, 197, 253, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-audit h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.1rem;
    background: linear-gradient(90deg, #ffffff 0%, #bfdbfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2.2rem;
    line-height: 1.6;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.audit-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.audit-feature-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
    transition: all 0.25s ease;
}

.audit-feature-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(147, 197, 253, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.audit-feature-badge i {
    font-size: 1.5rem;
    color: #60a5fa;
    flex-shrink: 0;
}

.audit-feature-badge h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 0 0.2rem;
}

.audit-feature-badge p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
}

/* Form Container */
.audit-form-box {
    background: rgba(255, 255, 255, 0.09);
    padding: 0.6rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    max-width: 780px;
    margin: 0 auto 1.5rem;
}

.audit-input-group {
    display: flex;
    gap: 0.5rem;
}

.audit-input-group input {
    flex: 1;
    padding: 1.1rem 1.35rem;
    font-size: 1.05rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}

.audit-input-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.audit-input-group .btn-primary {
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.audit-input-group .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.hero-guarantees {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 1rem;
}

.hero-guarantees span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-guarantees i {
    color: #34d399;
}

/* --- Section Global Styles --- */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.section-header .section-tag {
    display: inline-block;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- Sezione Benefici --- */
.section-benefits {
    background: #f8fafc;
}

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

.benefit-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon-box {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.08);
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    font-size: 0.98rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- Come Funziona (Timeline / Steps) --- */
.section-how {
    background: #ffffff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    border-color: #3b82f6;
}

.step-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- Comparativa: Automatico vs Professionale --- */
.section-pro {
    background: #f8fafc;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 980px;
    margin: 0 auto 2.5rem;
}

.pricing-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.8rem 2.2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border: 2px solid #3b82f6;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    right: 25px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.pricing-header {
    margin-bottom: 1.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.pricing-header .price-tag {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 0.4rem;
}

.pricing-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
}

.pricing-features li {
    font-size: 0.95rem;
    color: #334155;
    padding: 0.65rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.pricing-features li i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.pricing-card .btn-full {
    width: 100%;
    padding: 0.95rem;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pricing-card .btn-outline {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.pricing-card .btn-outline:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.pricing-card.featured .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.pricing-card.featured .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
}

.cta-secondary-box {
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-secondary-box p {
    font-size: 1.05rem;
    color: #475569;
    margin: 0;
}

.cta-secondary-box a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
}

/* --- Trust & Credibility Section --- */
.section-trust {
    background: #ffffff;
}

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

.trust-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2.2rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.trust-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.3rem;
}

.trust-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
}

.trust-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- FAQ Accordion --- */
.section-faq {
    background: #f8fafc;
}

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

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-question {
    padding: 1.3rem 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #ffffff;
    user-select: none;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.faq-question i {
    color: #2563eb;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.6rem 1.3rem;
    display: none;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-cta-box {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta-box p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
}

.faq-cta-box a {
    color: #2563eb;
    font-weight: 700;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #091e3a 0%, #1e3a8a 50%, #0f172a 100%);
    color: #ffffff;
    padding: 4.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-content .btn-primary {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.cta-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.6);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-audit h1 {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .audit-input-group {
        flex-direction: column;
    }
    .audit-input-group .btn-primary {
        justify-content: center;
    }
    .benefits-grid, .trust-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 1.75rem;
    }
}
