/* --------------------------------------------------
   DOCUMENT INTELLIGENCE — ACTIS SMART 2026
-------------------------------------------------- */

/* WRAPPER CENTRALE */
.docint-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* --------------------------------------------------
   GRIGLIA PRINCIPALE — IDENTICA AD ACQUISIZIONE SMART
-------------------------------------------------- */
.docint-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    width: 100%;
}

/* --------------------------------------------------
   CARD PRINCIPALI
-------------------------------------------------- */
.docint-upload,
.docint-preview,
.docint-actions {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

/* TITOLI */
.docint-upload h2,
.docint-preview h2,
.docint-actions h2 {
    margin-bottom: 12px;
    color: #003366;
    font-weight: 600;
}

/* --------------------------------------------------
   INPUT FILE
-------------------------------------------------- */
.docint-input {
    width: 100%;
    padding: 16px;              /* 🔵 più grande */
    border-radius: 12px;        /* 🔵 più elegante */
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 1.05rem;         /* 🔵 testo più leggibile */
    margin-bottom: 18px;        /* 🔵 spazio sotto */
    box-sizing: border-box;
}

/* --------------------------------------------------
   ANTEPRIMA
-------------------------------------------------- */
.docint-preview-box {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --------------------------------------------------
   PULSANTE AI
-------------------------------------------------- */
.docint-actions {
    text-align: center;
}

.docint-button {
    background: #003366;
    color: white;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    transition: 0.2s;
}

.docint-button:hover {
    background: #00509e;
}

/* --------------------------------------------------
   RISULTATI
-------------------------------------------------- */
.docint-result {
    margin-top: 40px;
}

.docint-result-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    justify-items: center;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* CARD RISULTATI */
.docint-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
}

.docint-card h3 {
    margin-bottom: 12px;
    color: #003366;
    font-weight: 600;
}

/* --------------------------------------------------
   RESPONSIVE — MOBILE
-------------------------------------------------- */
@media (max-width: 600px) {

    .docint-wrapper {
        padding: 0 12px;
    }

    .docint-container {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 20px;
        max-width: 100%;
    }

    .docint-upload,
    .docint-preview,
    .docint-actions {
        max-width: 340px;
        margin: 0 auto;
    }

    .docint-result-grid {
        grid-template-columns: 1fr;
        padding: 0 12px;
        gap: 20px;
        max-width: 100%;
    }

    .docint-card {
        max-width: 340px;
        margin: 0 auto;
    }
}

/* --------------------------------------------------
   HARD FIX — elimina qualsiasi scroll orizzontale
-------------------------------------------------- */
.docint-wrapper,
.docint-wrapper * {
    box-sizing: border-box !important;
    max-width: 100%;
}

.docint-actions .docint-button + .docint-button {
    margin-top: 14px;
}

.breadcrumb {
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #666;
}

.breadcrumb a {
    color: #003366;
    text-decoration: none;
}

.docint-upload .docint-button {
    margin-top: 12px;           /* 🔵 spazio tra input e pulsante */
}
