/* Autori De Nigris Safe Widget Styles */

.dn-authors-wrapper-safe {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
    padding: 20px 0;
}

.dn-authors-header-safe {
    margin-bottom: 40px;
}

.dn-authors-subtitle-safe {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.dn-authors-header-safe h2 {
    font-size: 2.2rem;
    margin: 0 0 15px 0;
    font-weight: 800;
    line-height: 1.2;
}

.dn-authors-line-safe {
    width: 60px;
    height: 4px;
    margin: 15px auto;
    display: inline-block;
}

.dn-authors-intro-safe {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 15px auto;
    opacity: 0.85;
}

/* TOP GRID PHOTOGRAPHIC */
.dn-authors-top-section {
    margin-bottom: 60px;
}

.dn-authors-top-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #111111;
}

.dn-authors-grid-safe {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
}

@media (max-width: 1024px) {
    .dn-authors-grid-safe {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .dn-authors-grid-safe {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .dn-authors-grid-safe {
        grid-template-columns: 1fr;
    }
}

.dn-author-card-safe {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dn-author-card-safe:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.dn-card-link-wrapper-safe {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dn-card-image-box-safe {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 Aspect Ratio */
    background: #f7f7f7;
    overflow: hidden;
}

.dn-card-img-safe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.dn-card-img-placeholder-safe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e9e9e9;
}

.dn-card-tag-safe {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dn-card-content-safe {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dn-card-name-safe {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #111111;
}

.dn-card-bio-safe {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 15px 0;
}

.dn-card-action-link-safe {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: auto;
    display: inline-block;
}

/* Format Layout Styles */
.dn-author-card-safe.format-grande {
    grid-column: span 2;
}

.dn-author-card-safe.format-orizzontale {
    grid-column: span 2;
}

.dn-author-card-safe.format-orizzontale .dn-card-link-wrapper-safe {
    flex-direction: row;
}

.dn-author-card-safe.format-orizzontale .dn-card-image-box-safe {
    width: 40%;
    padding-top: 0;
    min-height: 200px;
}

/* ARCHIVIO BASIC TEXTUAL LIST */
.dn-authors-basic {
    border-top: 1px solid #eeeeee;
    padding-top: 50px;
    margin-top: 30px;
}

.dn-authors-basic-header {
    margin-bottom: 30px;
}

.dn-authors-basic-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111111;
}

.dn-authors-basic-intro {
    font-size: 1rem;
    color: #666666;
    line-height: 1.5;
}

.dn-authors-basic-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 40px;
}

.dn-authors-basic-alphabet button {
    background: #f7f7f7;
    border: 1px solid #e2e2e2;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dn-authors-basic-alphabet button:hover:not(:disabled) {
    background: #eeeeee;
}

.dn-authors-basic-alphabet button.active {
    background: #A30000;
    border-color: #A30000;
    color: #ffffff;
}

.dn-authors-basic-alphabet button:disabled,
.dn-authors-basic-alphabet button.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #fcfcfc;
}

.dn-authors-basic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px 30px;
}

@media (max-width: 1024px) {
    .dn-authors-basic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .dn-authors-basic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .dn-authors-basic-grid {
        grid-template-columns: 1fr;
    }
}

.dn-authors-basic-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.dn-authors-basic-name:hover,
.dn-authors-basic-name:focus {
    color: #A30000;
    text-decoration: underline;
}

.dn-authors-basic-empty {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    text-align: center;
    color: #666666;
    border-radius: 4px;
    margin-top: 20px;
}

.dn-safe-placeholder {
    padding: 30px;
    background: #f9f9f9;
    border: 1px dashed #cccccc;
    text-align: center;
    color: #666666;
}
