/* ============================================================
   DOCUMENTI — STILE UNIFICATO NWR&V
============================================================ */

.page-documents {
    background: #f5f7f9;
}

/* HERO UNIFICATO */
.page-hero {
    padding: 35px 0 25px 0;
    background: #e6eef1;
    text-align: center;
    border-bottom: 3px solid #4d798b20;
    border-top: 2px solid #d3dde2;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #355866;
}

.page-subtitle {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: #23333a;
}

/* CONTAINER */
.page-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* GRID */
.reg-section {
    padding: 0 0 30px 0;
}

.reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
    /* centra il contenuto della cella */
}

.reg-grid>.reg-card {
    margin-left: auto;
    margin-right: auto;
}

/* CARD */
.reg-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    text-align: center;

    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10);
}

/* Bordo blu animato */
.reg-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #4d798b, #355866, #4d798b);
    opacity: 0;
    transition: opacity 0.35s ease;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.reg-card:hover::before {
    opacity: 1;
}

/* ICONA */
.reg-icon i {
    font-size: 4rem;
    color: #b83232;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.reg-card:hover .reg-icon i {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px #b8323280);
}

/* BADGE PDF */
.reg-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    color: #fff;
    background: #b83232;
}

/* TESTI */
.reg-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #355866;
    margin-top: 20px;
}

.reg-desc {
    font-size: 1rem;
    color: #23333a;
    margin: 15px 0 25px 0;
}

/* BUTTON */
.reg-btn {
    display: inline-block;
    background: #4d798b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease;
}

.reg-btn:hover {
    background: #355866;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .reg-grid {
        grid-template-columns: 1fr;
    }
}