.vdfp {
    --vdfp-ivory: #fff5d6;
    --vdfp-gold: #ead08a;
    --vdfp-green: #072218;
    color: var(--vdfp-ivory);
    background: radial-gradient(ellipse at 50% 22%, #123a27 0%, #08281b 42%, #03170f 100%);
    font: 18px/1.5 Georgia, "Times New Roman", serif;
    padding: clamp(14px, 2vw, 30px) 0 36px;
    min-height: 60vh;
    width: 100%;
    box-sizing: border-box;
}
.vdfp *, .vdfp *::before, .vdfp *::after { box-sizing: border-box; }
.vdfp-shell { width: min(1480px, calc(100% - 36px)); margin-inline: auto; }
.vdfp h1, .vdfp h2, .vdfp p { font-family: inherit; margin: 0; }
.vdfp a { color: var(--vdfp-ivory); }
.vdfp :focus-visible, .vdfp-entry-link:focus-visible { outline: 3px solid #ffdc7f; outline-offset: 3px; }
.vdfp-hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    min-height: clamp(180px, 18vw, 265px);
    overflow: hidden;
    border: 1px solid var(--vdfp-gold);
    border-radius: 17px;
    background: #1d2014;
    box-shadow: 0 8px 24px #0006;
    padding: 20px clamp(18px, 2vw, 32px);
}
.vdfp-hero > img, .vdfp-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.vdfp-hero > img { display: block; object-fit: cover; object-position: center 45%; }
.vdfp-hero::after {
    content: "";
    z-index: -1;
    background: linear-gradient(90deg, transparent 18%, #15170c55 35%, #130f0bb8 56%, #1911096b 78%, transparent 96%);
}
.vdfp-hero-text { width: min(68%, 760px); margin-left: 20%; text-align: center; text-shadow: 0 2px 5px #100a00; }
.vdfp .vdfp-hero h1 {
    margin: 0 0 10px;
    color: #ffe4a0;
    font-size: clamp(34px, 4.1vw, 70px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.vdfp .vdfp-hero p {
    color: #fff3d2;
    max-width: 25em;
    margin-inline: auto;
    font-size: clamp(17px, 1.8vw, 29px);
    line-height: 1.24;
    text-wrap: balance;
}
.vdfp-toolbar, .vdfp-detail-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-block: 20px;
}
.vdfp-modes { display: flex; align-items: center; gap: 8px; }
.vdfp .vdfp-button, .vdfp-entry-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 15px;
    text-decoration: none;
    color: #fff5d6;
    border: 1px solid #dbbf76;
    border-radius: 10px;
    background: linear-gradient(#326742, #0b301f);
    box-shadow: 0 2px 5px #0004;
    font: inherit;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}
.vdfp .vdfp-button:hover, .vdfp-entry-link:hover { background: #316343; color: #fff; }
.vdfp .vdfp-button[aria-current="page"], .vdfp .vdfp-button-gold {
    color: #241700;
    background: linear-gradient(#f0cf76, #c48a23);
    border-color: #ffe5a0;
}
.vdfp .vdfp-button-gold:hover, .vdfp .vdfp-button[aria-current="page"]:hover { background: #f5d586; color: #241700; }
.vdfp-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    width: min(100%, 510px);
    flex: 1 1 235px;
    max-width: 510px;
    background: #143526;
    border: 1px solid #a9a56f;
    border-radius: 11px;
    min-height: 46px;
}
.vdfp-search > input[type="search"] {
    width: 100%;
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--vdfp-ivory);
    font: inherit;
}
.vdfp-search > input::placeholder { color: #ecdcb8; opacity: 1; }
.vdfp-search > button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--vdfp-ivory);
    cursor: pointer;
}
.vdfp-search > button:hover { background: #2a563c; }
.vdfp-search svg { width: 23px; height: 23px; }
.vdfp-results { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 0 0 16px; }
.vdfp-results a { color: var(--vdfp-gold); text-decoration: underline; }
.vdfp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 20px); }
.vdfp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e4be64;
    border-radius: 16px;
    background: radial-gradient(ellipse at 55% 55%, #fff0c7 0%, #f8e1a5 57%, #d7a853 100%);
    color: #221909;
    box-shadow: 0 4px 12px #0007;
    scroll-margin-top: 110px;
}
.vdfp a.vdfp-card { text-decoration: none; }
.vdfp a.vdfp-card:hover h2, .vdfp a.vdfp-card:focus-visible h2 {
    text-decoration: underline;
    text-underline-offset: .15em;
}
.vdfp-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    display: block;
}
.vdfp-grid .vdfp-card > img { mask-image: linear-gradient(#000 84%, transparent 100%); }
.vdfp-card-text { padding: 3px 12px 9px; text-align: center; }
.vdfp .vdfp-card h2 { color: #221909; font-weight: 700; font-size: clamp(19px, 1.65vw, 28px); line-height: 1.08; text-wrap: balance; }
.vdfp .vdfp-card-text p { color: #352510; font-size: 17px; font-weight: 700; margin: 5px 0 0; }
.vdfp .vdfp-card-status { margin: auto 10px 11px; color: #5c3f14; text-align: center; font-size: 16px; }
.vdfp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vdfp-list .vdfp-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
.vdfp-list .vdfp-card > img { height: 100%; min-height: 90px; }
.vdfp-list article.vdfp-card > img { grid-row: span 2; }
.vdfp-list .vdfp-card-text { padding: 9px 10px; text-align: left; }
.vdfp-list .vdfp-card h2 { font-size: clamp(19px, 1.43vw, 25px); text-wrap: wrap; }
.vdfp-list .vdfp-card-status { grid-column: 2; margin: 0; padding: 0 10px 9px; text-align: left; }
.vdfp-detail-nav { justify-content: space-between; margin-top: 0; }
.vdfp-reader { max-width: 1120px; margin: auto; padding: clamp(16px, 3vw, 36px); border: 1px solid #b18d47; border-radius: 16px; background: #10281e; }
.vdfp-reader > header { text-align: center; }
.vdfp .vdfp-reader h1 { color: var(--vdfp-gold); font-size: clamp(28px, 4.5vw, 52px); line-height: 1.15; margin-bottom: 8px; }
.vdfp .vdfp-reader > header p, .vdfp .vdfp-message { color: var(--vdfp-ivory); font-size: 19px; }
.vdfp-reader .vdf-quaderno-frame, .vdfp-pdf-frame { display: block; width: 100%; height: 76vh; border: 0; }
.vdfp-entry-link { font-family: Georgia, "Times New Roman", serif; font-size: 17px; }

@media (max-width: 1040px) {
    .vdfp-list { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
    .vdfp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .vdfp-shell { width: calc(100% - 22px); }
    .vdfp-hero { min-height: 240px; align-items: end; padding: 14px 10px; }
    .vdfp-hero > img { height: 79%; object-position: 22% center; }
    .vdfp-hero::after { background: linear-gradient(0deg, #101b12 16%, #101b12c9 38%, transparent 76%); }
    .vdfp-hero-text { width: 100%; margin: 0; }
    .vdfp .vdfp-hero h1 { margin-bottom: 6px; }
    .vdfp-toolbar { gap: 9px; margin-block: 14px; }
    .vdfp-search { min-width: 100%; order: 2; }
    .vdfp .vdfp-button { padding-inline: 10px; font-size: 16px; }
    .vdfp-list .vdfp-card { grid-template-columns: 72px minmax(0, 1fr); }
}
@media (max-width: 375px) {
    .vdfp-grid { grid-template-columns: 1fr; }
}
