/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--white);
}

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

/* Header */
.header {
    background: var(--white);
    border-bottom: 2px solid var(--primary-color);
    padding: 20px 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 2px;
}

.tagline {
    color: var(--text-light);
    font-size: 14px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Situazioni Grid */
.situazioni {
    padding: 60px 0;
    background: var(--bg-light);
}

.situazioni h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-color);
}

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

.situazioni-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .situazioni-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .situazioni-grid {
        grid-template-columns: 1fr;
    }
}

.situazione-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.situazione-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.situazione-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.situazione-card:hover::before {
    transform: scaleX(1);
}

.situazione-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.situazione-card.coming-soon:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.situazione-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.situazione-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.situazione-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.situazione-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.badge {
    display: inline-block;
    background: var(--warning-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

/* Come Funziona */
.come-funziona {
    padding: 60px 0;
    background: var(--white);
}

.come-funziona h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    text-align: center;
}

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

.step h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.step p {
    color: var(--text-light);
    font-size: 15px;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid var(--warning-color);
}

.disclaimer-box p {
    margin-bottom: 12px;
    opacity: 0.95;
    font-size: 14px;
    line-height: 1.6;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.disclaimer-box strong {
    color: var(--warning-color);
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer .small {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .situazioni h3,
    .come-funziona h3 {
        font-size: 26px;
    }
    
    .situazioni-grid {
        grid-template-columns: 1fr;
    }
}

/* Disclaimer section grid */
.disclaimer-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.disclaimer-section .disclaimer-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
}

.disclaimer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.disclaimer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.disclaimer-section li {
    padding: 0.75rem 0;
    line-height: 1.6;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .disclaimer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Trust signals */
.trust-signals {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-text {
    color: white;
    font-size: 0.95rem;
}

.rating-text strong {
    font-size: 1.1rem;
}

.badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge-item {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .trust-signals {
        margin-top: 1.5rem;
    }
    
    .rating {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .badges {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    
    .badge-item {
        text-align: center;
    }
}

/* Testimonial section */
.testimonial-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
}

.testimonial-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: white;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card .stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-card .author {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .testimonials {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: 3rem 0;
    }
    
    .testimonial-section h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Card colorate */
.card-blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.card-blue:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

.card-blue::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.card-blue .icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.card-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
}

.card-orange:hover {
    border-color: #f59e0b;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.15);
}

.card-orange::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.card-orange .icon {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.card-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.card-green:hover {
    border-color: #10b981;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.card-green::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.card-green .icon {
    background: linear-gradient(135deg, #bbf7d0, #86efac);
}

.card-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #e9d5ff;
}

.card-purple:hover {
    border-color: #8b5cf6;
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.15);
}

.card-purple::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.card-purple .icon {
    background: linear-gradient(135deg, #e9d5ff, #d8b4fe);
}

/* Sezione Perché BuroChiaro */
.why-burochiaro {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 5rem 0;
}

.why-burochiaro h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.why-burochiaro .subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
}

.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.vantaggio-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vantaggio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.vantaggio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vantaggio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.vantaggio-card p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.vantaggio-card p strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.vantaggio-card .vs {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}

.cta-box {
    background: white;
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cta-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-box p {
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

@media (max-width: 1024px) {
    .vantaggi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-burochiaro {
        padding: 3rem 0;
    }
    
    .why-burochiaro h2 {
        font-size: 2rem;
    }
    
    .vantaggi-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vantaggio-card {
        padding: 1.5rem;
    }
    
    .cta-box {
        padding: 1.5rem;
    }
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-category {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-date {
    color: #94a3b8;
    font-size: 0.9rem;
}

.blog-card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.blog-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: #64748b;
    line-height: 1.7;
    margin: 1rem 0;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.blog-meta span {
    color: #94a3b8;
    font-size: 0.9rem;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-block;
}

.blog-link:hover {
    transform: translateX(4px);
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    /* Hero migliorate */
    .hero {
        padding: 3rem 0 !important;
    }
    
    .hero h2 {
        font-size: 1.9rem !important;
        line-height: 1.35 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Card situazioni - più spaziose */
    .situazioni {
        padding: 3rem 0 !important;
    }
    
    .situazioni-grid {
        gap: 1.5rem !important;
    }
    
    .situazione-card {
        padding: 2rem 1.5rem !important;
    }
    
    .situazione-card .icon {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .situazione-card h4 {
        font-size: 1.35rem !important;
        margin: 0.75rem 0 !important;
        line-height: 1.3 !important;
    }
    
    .situazione-card p {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }
    
    /* Testimonial grid migliorata */
    .testimonials {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .testimonial-card {
        padding: 1.75rem !important;
    }
    
    .testimonial-card p {
        font-size: 1rem !important;
        line-height: 1.65 !important;
        margin: 1rem 0 !important;
    }
    
    /* Container più largo */
    .container {
        padding: 0 1.25rem !important;
    }
}

/* Card Assegno Unico - aggiunta Marzo 2026 */
.card-teal {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}
.card-teal:hover {
    border-color: #10b981;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}
.card-teal::before {
    background: linear-gradient(90deg, #10b981, #059669);
}
.card-teal .icon {
    background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
}

/* Tabelle responsive mobile */
.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}
@media (max-width: 600px) {
    .article-content table {
        font-size: 0.85rem;
    }
    .article-content table th,
    .article-content table td {
        padding: 0.5rem 0.6rem;
        min-width: 80px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.82rem;
    }
}
