/* ===============================
   AI – STRUMENTI INTELLIGENTI
   (versione pulita)
=============================== */

.ai-container {
    padding: 40px;
    max-width: 1100px;
    margin: auto;
}

.ai-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a2f;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.ai-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #0A1A2F;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.ai-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.ai-card h2 {
    margin-top: 0;
    font-size: 22px;
}

.ai-card p {
    margin-top: 8px;
    color: #6B7A8C;
}

/* ===============================
   MOBILE FIX — centratura perfetta
=============================== */

@media (max-width: 600px) {

    .ai-container {
        padding: 0 12px;
    }

    .ai-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        padding: 0 12px;
        justify-items: center;
    }

    .ai-card {
        max-width: 340px;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

/* ===============================
   Pulsanti dentro le card
=============================== */

.ai-card a,
.ai-card button {
    display: block;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* ===============================
   ACTIS Web 2026 — Report AI
=============================== */

.ai-report-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a2f;
    white-space: pre-wrap;
}

.ai-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.ai-section h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #1a1a2f;
}

.ai-value {
    font-size: 18px;
    font-weight: 600;
    color: #0A1A2F;
}

.ai-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.ai-table th,
.ai-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.ai-note {
    margin: 5px 0;
    padding-left: 15px;
    position: relative;
}

.ai-note::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1a1a2f;
}
