/* Stili specifici di intelligenza-artificiale.php.
   Estratto il 2026-08-25 dal blocco inline nella pagina. */

.hero-wrapper { background: url('/assets/img/hero-ai.webp') center center / cover no-repeat; position: relative; }

        /* tech-grid override: 6 columns instead of common.css 4 */
        .tech-grid { grid-template-columns: repeat(6, 1fr); }

        /* SEZIONE PERCHE SCEGLIERMI */
        .why-me-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
        .why-me-card { background: var(--white); border-radius: 20px; padding: 40px 32px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); transition: all 0.4s; position: relative; overflow: hidden; }
        .why-me-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); }
        .why-me-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
        .why-me-icon { width: 70px; height: 70px; margin-bottom: 24px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%); border-radius: 18px; display: flex; align-items: center; justify-content: center; }
        .why-me-card h3 { font-size: 1.25rem; color: var(--secondary); margin-bottom: 12px; }
        .why-me-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

        /* GUIDA SERVIZI AI */
        .ai-guide-section { padding: 100px 0; background: var(--white); }
        .ai-guide-intro { text-align: center; max-width: 800px; margin: 0 auto 60px; }
        .ai-guide-intro p { color: var(--text-light); font-size: 1.1rem; line-height: 1.8; }
        .ai-services-list { display: flex; flex-direction: column; gap: 40px; }
        .ai-detail { background: var(--white); border-radius: 24px; padding: 48px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100); display: grid; grid-template-columns: 100px 1fr; gap: 40px; position: relative; transition: all 0.4s; }
        .ai-detail:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
        .ai-detail:nth-child(odd) { border-left: 4px solid #8b5cf6; }
        .ai-detail:nth-child(even) { border-left: 4px solid var(--primary); }
        .ai-icon-large { width: 100px; height: 100px; border-radius: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .ai-detail:nth-child(odd) .ai-icon-large { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3); }
        .ai-detail:nth-child(even) .ai-icon-large { background: linear-gradient(135deg, var(--primary) 0%, #ffd166 100%); box-shadow: 0 10px 30px rgba(252, 179, 33, 0.3); }
        .ai-content { flex: 1; }
        .ai-content h3 { font-size: 1.5rem; color: var(--secondary); margin-bottom: 8px; }
        .ai-subtitle { color: #8b5cf6; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
        .ai-detail:nth-child(even) .ai-subtitle { color: var(--primary-dark); }
        .ai-description { color: var(--text-light); font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px; }
        .ai-includes { margin-bottom: 24px; }
        .ai-includes h4 { font-size: 1rem; color: var(--secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
        .ai-includes ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; list-style: none; }
        .ai-includes li { color: var(--text-light); font-size: 0.95rem; padding-left: 24px; position: relative; }
        .ai-includes li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); border-radius: 50%; }
        .ai-detail:nth-child(even) .ai-includes li::before { background: linear-gradient(135deg, var(--primary) 0%, #ffd166 100%); }
        .ai-ideal { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--gray-100); }
        .ai-ideal-for { flex: 1; min-width: 300px; }
        .ai-ideal-for h4 { font-size: 0.9rem; color: var(--secondary); margin-bottom: 8px; }
        .ai-ideal-for p { color: var(--text-light); font-size: 0.9rem; }
        .ai-price { background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%); padding: 16px 24px; border-radius: 12px; text-align: right; }
        .ai-detail:nth-child(even) .ai-price { background: linear-gradient(135deg, rgba(252, 179, 33, 0.15) 0%, rgba(252, 179, 33, 0.05) 100%); }
        .ai-price span { display: block; font-size: 0.8rem; color: var(--text-light); margin-bottom: 4px; }
        .ai-price strong { font-family: 'Poppins', sans-serif; font-size: 1.25rem; color: #8b5cf6; }
        .ai-detail:nth-child(even) .ai-price strong { color: var(--primary-dark); }

        /* TABELLA COMPARATIVA */
        .comparison-section { padding: 100px 0; background: var(--gray-50); }
        .comparison-table-wrapper { overflow-x: auto; border-radius: 20px; box-shadow: var(--shadow-lg); }
        .comparison-table { width: 100%; min-width: 900px; background: var(--white); border-collapse: collapse; border-radius: 20px; overflow: hidden; }
        .comparison-table thead { background: linear-gradient(135deg, var(--secondary) 0%, #1a1a3e 100%); }
        .comparison-table th { padding: 20px 16px; text-align: left; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--white); white-space: nowrap; }
        .comparison-table td { padding: 20px 16px; border-bottom: 1px solid var(--gray-100); font-size: 0.95rem; color: var(--text); }
        .comparison-table tbody tr:hover { background: rgba(139, 92, 246, 0.03); }
        .comparison-table tbody tr:last-child td { border-bottom: none; }
        .service-name { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--secondary); }
        .complexity-tag { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }
        .complexity-media { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
        .complexity-alta { background: rgba(234, 179, 8, 0.1); color: #ca8a04; }
        .complexity-molto-alta { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
        .price-cell { font-family: 'Poppins', sans-serif; font-weight: 600; color: #8b5cf6; }

        /* RISULTATI/STATISTICHE */
        .results-section { padding: 80px 0; background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); position: relative; overflow: hidden; }
        .results-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%); }
        .results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; z-index: 1; }
        .result-item { text-align: center; }
        .result-number { font-family: 'Poppins', sans-serif; font-size: 3.5rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 12px; }
        .result-label { color: rgba(255, 255, 255, 0.9); font-size: 1rem; font-weight: 500; }

        /* FAQ SECTION */
        .faq-section { padding: 100px 0; background: var(--white); }
        .faq-grid { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
        .faq-item { background: var(--gray-50); border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-100); transition: all 0.3s; }
        .faq-item:hover { border-color: rgba(139, 92, 246, 0.3); }
        .faq-question { padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--secondary); transition: all 0.3s; }
        .faq-question:hover { color: #8b5cf6; }
        .faq-question svg { flex-shrink: 0; width: 24px; height: 24px; stroke: #8b5cf6; transition: transform 0.3s; }
        .faq-item.active .faq-question svg { transform: rotate(180deg); }
        .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
        .faq-item.active .faq-answer { max-height: 500px; }
        .faq-answer-content { padding: 0 32px 24px; color: var(--text-light); line-height: 1.8; font-size: 1rem; }

        /* RESPONSIVE */
        @media (max-width: 1024px) {
            .why-me-grid { grid-template-columns: 1fr; gap: 24px; }
            .ai-detail { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
            .ai-icon-large { width: 80px; height: 80px; }
            .ai-includes ul { grid-template-columns: 1fr; }
            .results-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
            .tech-grid { grid-template-columns: repeat(3, 1fr); }
        }
        @media (max-width: 768px) {
            .ai-detail { padding: 24px; }
            .ai-ideal { flex-direction: column; align-items: flex-start; }
            .ai-ideal-for { min-width: 100%; }
            .ai-price { text-align: left; width: 100%; }
            .results-grid { grid-template-columns: 1fr 1fr; }
            .result-number { font-size: 2.5rem; }
            .faq-question { padding: 20px 24px; font-size: 0.95rem; }
            .faq-answer-content { padding: 0 24px 20px; }
            .tech-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 480px) {
            .results-grid { grid-template-columns: 1fr; gap: 24px; }
        }
