html {
    background: white;
    font-family: sans-serif;
}

.hero-right-img {
    width: 80%;
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

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

.one {
    margin: 100 0 !important;

}

.ask-page {
    --ask-bg: #f4f7fb;
    --panel-bg: #ffffff;
    --panel-border: #d9e2ef;
    --chat-user: #0d6efd;
    --chat-assistant: #eef3fb;
    --text-main: #132238;
    --text-soft: #5f7188;
}

.ask-layout {
    align-items: stretch;
}

.ask-panel,
.chat-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(11, 34, 66, 0.06);
}

.ask-panel h2,
.chat-panel h3 {
    color: var(--text-main);
}

.ask-panel .text-muted,
.chat-role {
    color: var(--text-soft) !important;
}

.ask-panel .form-control,
.ask-panel .form-select {
    border-color: #cdd8e8;
}

.ask-panel .form-control:focus,
.ask-panel .form-select:focus {
    border-color: #5b8bd8;
    box-shadow: 0 0 0 0.2rem rgba(91, 139, 216, 0.2);
}

.chat-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 620px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e2eaf5;
    padding-bottom: 0.75rem;
}

.chat-messages {
    background: linear-gradient(180deg, var(--ask-bg) 0%, #edf3fa 100%);
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    max-height: 68vh;
}

.chat-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text-soft);
    padding: 1rem;
}

.chat-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.chat-bubble {
    border-radius: 14px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    max-width: 90%;
    line-height: 1.45;
    border: 1px solid transparent;
}

.chat-bubble.user {
    margin-left: auto;
    background: var(--chat-user);
    color: #fff;
    border-color: #0a58ca;
}

.chat-bubble.assistant {
    margin-right: auto;
    background: var(--chat-assistant);
    color: var(--text-main);
    border-color: #cfdcf0;
}

.chat-bubble.user .chat-role {
    color: rgba(255, 255, 255, 0.85) !important;
}

.chat-role {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.chat-text {
    white-space: normal;
    word-wrap: break-word;
}

@media (max-width: 991.98px) {
    .chat-panel {
        min-height: 500px;
    }

    .chat-messages {
        max-height: 50vh;
    }
}

.archivio-page {
    --arch-bg: #f5f8fc;
    --arch-panel: #ffffff;
    --arch-border: #d9e3f0;
    --arch-title: #132238;
    --arch-soft: #5e7289;
}

.pdf-panel,
.table-panel {
    background: var(--arch-panel);
    border: 1px solid var(--arch-border);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 12px 28px rgba(12, 37, 69, 0.07);
}

.pdf-panel h2,
.table-panel h2 {
    color: var(--arch-title);
}

.selected-card {
    border: 1px dashed #b8c9de;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7faff 0%, #eef4fc 100%);
    min-height: 220px;
    padding: 1rem;
}

.selected-placeholder {
    min-height: 188px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--arch-soft);
}

.selected-placeholder i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.selected-content {
    display: grid;
    gap: 0.55rem;
}

.selected-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid #d9e3f0;
    padding-bottom: 0.45rem;
    color: var(--arch-soft);
}

.selected-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.selected-row strong {
    color: var(--arch-title);
}

.archivio-table-wrap {
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.archivio-table {
    margin: 0;
}

.archivio-table thead th {
    border: 0;
    background: #eaf1fb;
    color: #2a405e;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.archivio-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.archivio-table tbody tr:hover {
    background: #f6f9ff;
}

.archivio-table tbody tr.selected {
    background: #eaf2ff;
}

.archivio-table tbody td {
    border-color: #ebf0f7;
    color: #24384f;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.archivio-table tbody td i {
    color: #6f85a3;
}

.archivio-table tbody tr.selected td i {
    color: #0d6efd;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border: 1px solid transparent;
}

.status-pill.high {
    background: #ffe9e7;
    color: #a2382b;
    border-color: #f3b8b2;
}

.status-pill.medium {
    background: #fff7df;
    color: #8e6300;
    border-color: #f1d38f;
}

.status-pill.low {
    background: #e8f8ed;
    color: #1f6d35;
    border-color: #bde4c8;
}

@media (max-width: 991.98px) {
    .selected-card {
        min-height: 180px;
    }
}