.vdf-devotions{color:#352719}.vdf-devotions .vdf-content-panel{padding:clamp(20px,4vw,52px)}.vdf-devotions h1{font-size:clamp(2rem,5vw,3.5rem)}.vdf-devotions h2{margin-top:1.8rem}.vdf-devotions p,.vdf-devotions li{line-height:1.75}.vdf-devotions li{margin-bottom:.75rem}.vdf-dev-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}.vdf-dev-card{padding:20px;border:1px solid #d8c5a1;border-radius:14px;background:#fffaf1}.vdf-dev-card h3{margin:.5rem 0;font-size:1.15rem}.vdf-dev-pending{font-size:.9rem;color:#6b5d4b}.vdf-dev-feature{background:#f6edda;border:1px solid #d5bb85;border-radius:18px;padding:clamp(18px,3vw,32px);margin:24px 0}.vdf-dev-button,.vdf-rosary-actions button{display:inline-block;background:#694917;color:white!important;padding:12px 20px;border-radius:9px;border:2px solid #694917;text-decoration:none;font:inherit;cursor:pointer;margin:4px}.vdf-dev-button.secondary,.vdf-rosary-actions button:not(#vdf-rosary-next){background:#fffaf1;color:#4c3511!important}.vdf-devotions select{font:inherit;padding:12px;max-width:100%;display:block;margin:10px 0;background:white;color:#352719;border:1px solid #9e7c45;border-radius:8px}.vdf-devotions details{background:#fffaf1;border:1px solid #d8c5a1;border-radius:10px;padding:16px;margin:12px 0}.vdf-devotions summary{cursor:pointer;font-weight:700;line-height:1.6}.vdf-prayer-text,#vdf-rosary-text{white-space:pre-line;font-size:1.15rem;line-height:1.9}.vdf-devotions :focus-visible{outline:3px solid #2b6385;outline-offset:4px}.vdf-devotions [hidden]{display:none!important}#vdf-rosary-current{background:#fffdf8;border-radius:12px;padding:22px;margin:20px 0}#vdf-rosary-position{color:#715a38;font-size:.9rem}#vdf-rosary-reference{font-weight:600}#vdf-rosary-progress{width:100%;height:16px;accent-color:#956814}.vdf-rosary-actions{display:flex;flex-wrap:wrap;gap:6px}.vdf-rosary-actions button:disabled{opacity:.5;cursor:default}#vdf-rosary-beads{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:20px}.vdf-rosary-decade{display:flex;flex-direction:column;align-items:center;gap:6px}.vdf-rosary-bead{width:44px;height:44px;min-height:44px;border-radius:50%;border:2px solid #a48148;background:#fffdf8;color:#48331a;cursor:pointer;font-size:1rem}.vdf-rosary-bead.done{background:#e6d3a8}.vdf-rosary-bead[aria-current="step"]{background:#694917;color:white;outline:3px solid #cba857;outline-offset:2px}#vdf-rosary-storage{font-size:.85rem}@media(max-width:480px){#vdf-rosary-beads{gap:3px}.vdf-devotions .vdf-content-panel{padding:16px}#vdf-rosary-current{padding:16px}.vdf-rosary-actions button{flex:1 1 100px;padding:12px 8px}}

.vdf-devotions .vdf-content-panel{background:#fffaf2;color:#352719}.vdf-devotions .vdf-label{color:#76561d}.vdf-devotions a:not(.vdf-dev-button){text-decoration:underline;text-underline-offset:3px}.vdf-dev-image img{max-width:100%;height:auto;border-radius:12px}.vdf-dev-extra iframe{max-width:100%}
/* Vista condivisa: Rosario e Coroncina. Corona e comandi non si spostano. */
.vdf-prayer-guide{margin:32px 0;border:1px solid #d7bc88;border-radius:20px;overflow:hidden;background:#faf4e8;color:#352719}
.vdf-prayer-heading{padding:24px 28px 8px}.vdf-prayer-heading h2{margin:4px 0;font-size:clamp(1.65rem,3vw,2.2rem)}
.vdf-prayer-toolbar{padding:0 28px 20px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}.vdf-prayer-toolbar>p{flex-basis:100%;margin:0 0 8px}.vdf-prayer-toolbar select{margin:0;flex:1 1 240px}
.vdf-prayer-size{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.vdf-prayer-size button{min-width:44px;min-height:44px;background:#fffdf9;border:1px solid #9d7742;border-radius:8px;color:#3e2c19;font-size:18px;cursor:pointer}.vdf-prayer-size button:disabled{opacity:.5}
.vdf-prayer-always{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}.vdf-prayer-always input{width:22px;height:22px;accent-color:#694917}
.vdf-prayer-music{flex-basis:100%;margin:0!important;padding:10px 14px!important}.vdf-prayer-music label{display:block;margin-top:12px}.vdf-prayer-music input{display:block;max-width:100%;margin-top:8px}.vdf-prayer-music audio{display:block;width:min(100%,440px)}.vdf-prayer-music p{font-size:14px}
.vdf-prayer-scene{position:relative;isolation:isolate;height:820px;height:clamp(740px,90svh,960px);overflow:hidden;background:#eddbb6 url('maria-preghiera.webp') right top/auto 100% no-repeat;border-top:1px solid #ddc9a1}
.vdf-prayer-scene:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#36261099,transparent 27%,transparent 80%,#36261033);pointer-events:none}
.vdf-prayer-open{position:absolute;left:24px;right:24px;width:calc(100% - 48px);top:18px;z-index:4;min-height:76px;padding:12px 20px;border:1px solid #e5c184;border-radius:10px;background:#4c3922ed;color:#fff8e8;font:600 clamp(20px,3vw,30px)/1.3 Georgia,serif;cursor:pointer;box-shadow:0 4px 16px #26170633}
.vdf-prayer-open span,.vdf-prayer-open small{display:block}.vdf-prayer-open small{font:14px/1.4 Arial,sans-serif;margin-top:5px;color:#ffe5ad}.vdf-prayer-open:hover{background:#68491eed}
.vdf-prayer-crown{position:absolute;right:30px;top:115px;bottom:170px;width:46%;z-index:1;display:flex;align-items:center;justify-content:center;pointer-events:none}
.vdf-prayer-guide #vdf-rosary-beads{display:block;margin:0;width:100%;height:100%}.vdf-crown-svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 4px 7px #3b260b88)}.vdf-crown-bead{cursor:pointer;outline:none;pointer-events:auto}.vdf-crown-detail{pointer-events:none}.vdf-crown-pearl{transition:fill .2s,filter .2s,stroke .2s}
.vdf-crown-bead.is-done .vdf-crown-pearl{fill:#ffdf73;stroke:#b78016;stroke-width:3;filter:drop-shadow(0 0 7px #ffdf58) drop-shadow(0 0 13px #ffe89b)}
.vdf-crown-bead.is-active .vdf-crown-pearl{fill:#fffce3;stroke:#fff8ad;stroke-width:5;filter:drop-shadow(0 0 9px #fff9b1) drop-shadow(0 0 21px #ffdf39) drop-shadow(0 0 30px #fff3a3)}
.vdf-crown-bead:focus-visible .vdf-crown-pearl{stroke:#1b5f8d;stroke-width:6}
.vdf-prayer-reading{position:absolute;left:24px;bottom:170px;width:48%;max-height:calc(100% - 280px);z-index:3;display:flex;flex-direction:column;padding:18px 22px;background:#fffdf6f5;border:1px solid #d5b478;border-radius:14px;box-shadow:0 10px 30px #32200b44}
.vdf-prayer-close{flex:none;align-self:flex-end;min-height:44px;padding:6px 12px;margin:0 0 4px;border:1px solid #ac8954;border-radius:7px;color:#4c3511;background:#fffaf0;font:inherit;cursor:pointer}
.vdf-prayer-guide #vdf-rosary-current{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;background:none;padding:0 6px 0 0;margin:0;scrollbar-color:#a4834c #f4ecdc;scrollbar-width:thin}
.vdf-prayer-guide #vdf-rosary-title{font:600 clamp(23px,3vw,30px)/1.25 Georgia,serif;margin:8px 0 16px}.vdf-prayer-guide #vdf-rosary-position{font-size:14px;font-weight:700;color:#795721;margin-top:0}.vdf-prayer-guide #vdf-rosary-reference:empty{display:none}.vdf-prayer-guide #vdf-rosary-reference{font-weight:600}
.vdf-prayer-instruction{font-size:16px;line-height:1.7;color:#665745;margin:12px 0 18px}.vdf-prayer-guide .vdf-prayer-words{color:#251c14;font:22px/1.7 Georgia,serif;white-space:pre-line;margin:12px 0 20px;overflow-wrap:anywhere}
.vdf-prayer-caption{position:absolute;bottom:130px;left:24px;right:24px;text-align:center;background:#fffaf0ed;border-radius:8px;padding:8px;margin:0!important;font-size:14px;z-index:2;color:#503613}
.vdf-prayer-dock{position:absolute;bottom:18px;left:24px;right:24px;z-index:4;padding:10px 12px;background:#fffaf0f2;border:1px solid #d8bc89;border-radius:12px}
.vdf-prayer-guide #vdf-rosary-progress{display:block;width:100%;height:8px;margin:0 0 10px;accent-color:#956814}
.vdf-prayer-guide .vdf-rosary-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0}
.vdf-prayer-guide .vdf-rosary-actions button{min-height:52px;margin:0;padding:8px;border:1px solid #a77c36;border-radius:8px;font:600 14px/1.3 Arial,sans-serif;background:#624419;color:#fff8e8!important;cursor:pointer;box-shadow:0 3px 8px #3f2b1722}
.vdf-prayer-guide #vdf-rosary-prev{order:1;flex:0 0 60px}.vdf-prayer-guide #vdf-rosary-next{order:3;flex:0 0 60px}.vdf-prayer-guide #vdf-rosary-reset{order:2;flex:0 1 auto;padding:10px 18px;background:#fffaf0;color:#4c3511!important}
.vdf-prayer-guide .vdf-rosary-actions button:hover:not(:disabled){background:#825d25;color:#fffdf5!important;border-color:#ffe4a5;box-shadow:0 0 15px #e8ba6870}.vdf-prayer-guide .vdf-rosary-actions button:disabled{opacity:.45;cursor:default}
.vdf-prayer-guide #vdf-rosary-storage{margin:0;padding:12px 28px;font-size:14px;color:#64523d}.vdf-prayer-guide #vdf-rosary-fallback{padding:20px 28px}
@media(max-width:700px){
 .vdf-prayer-heading{padding:20px 16px 8px}.vdf-prayer-toolbar{padding:0 16px 16px}
 .vdf-prayer-scene{height:720px;height:clamp(620px,85svh,840px);background-position:82% top}
 .vdf-prayer-open{left:12px;right:12px;width:calc(100% - 24px);top:12px;min-height:76px;padding:10px 12px;font-size:23px}
 .vdf-prayer-crown{left:10%;right:10%;top:112px;bottom:170px;width:auto}
 .vdf-prayer-reading{left:12px;right:12px;bottom:170px;width:auto;max-height:calc(100% - 270px);padding:12px 16px}
 .vdf-prayer-caption{left:12px;right:12px;bottom:130px;font-size:13px}
 .vdf-prayer-dock{left:12px;right:12px;bottom:14px}
 .vdf-prayer-guide .vdf-rosary-actions{gap:8px}
 .vdf-prayer-guide #vdf-rosary-storage{padding:12px 16px}
}
@media(prefers-reduced-motion:reduce){.vdf-crown-pearl{transition:none}}

.vdf-prayer-guide #vdf-rosary-prev,.vdf-prayer-guide #vdf-rosary-next{height:60px;min-height:60px;font-size:30px;line-height:1}

/* Sfondo proprio della Coroncina, nello stile caldo del Santo Rosario. */
.vdf-prayer-scene-chaplet{background-image:url('gesu-misericordioso.webp')}
.vdf-music-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}
.vdf-prayer-music .vdf-music-controls label{margin:0;display:inline-flex;gap:8px;align-items:center;font-weight:600}
.vdf-prayer-music .vdf-music-controls input[type=range]{flex:1 1 200px;min-width:140px;min-height:44px;margin:0;accent-color:#956814;cursor:pointer}
.vdf-music-options{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.vdf-prayer-music button,.vdf-prayer-music .vdf-music-download{min-height:44px;padding:10px 14px;border:1px solid #a77c36;border-radius:8px;background:#624419;color:#fff8e8!important;font:600 14px/1.4 Arial,sans-serif;text-decoration:none!important;cursor:pointer}
.vdf-prayer-music button:hover:not(:disabled),.vdf-prayer-music .vdf-music-download:hover{background:#825d25;box-shadow:0 0 12px #e8ba6860}
.vdf-prayer-music button:disabled{opacity:.5;cursor:default}.vdf-prayer-music #vdf-rosary-music-level{min-width:44px;text-align:right}
@media(max-width:700px){.vdf-music-options button,.vdf-prayer-music .vdf-music-download{flex:1 1 100%;text-align:center}.vdf-prayer-music #vdf-rosary-music-play{flex:1 1 100%}}

/* Elenco essenziale: ciascun nome è l’intero pulsante cliccabile. */
.vdf-devotions a.vdf-devotion-choice{display:flex;align-items:center;justify-content:center;min-height:88px;padding:20px 18px;border:1px solid #d6b678;border-radius:12px;background:#624419;color:#fff8e8;text-align:center;text-decoration:none;font:600 19px/1.4 Georgia,serif;box-shadow:0 4px 12px #67452422;transition:background .2s,box-shadow .2s}
.vdf-devotions a.vdf-devotion-choice:hover,.vdf-devotions a.vdf-devotion-choice:focus-visible{background:#825d25;color:#fffdf5;border-color:#ffe4a5;box-shadow:0 0 16px #d6ac6270}
/* Il volto di Gesù scende sotto il pulsante del nome della preghiera.
   Riducendo l’altezza dello sfondo, l’intera figura rimane nell’area visibile. */
.vdf-prayer-scene-chaplet{background-position:right 150px;background-size:auto calc(100% - 150px)}
@media(max-width:700px){.vdf-prayer-scene-chaplet{background-position:82% 140px;background-size:auto calc(100% - 140px)}.vdf-devotions a.vdf-devotion-choice{min-height:76px;font-size:18px}}
@media(prefers-reduced-motion:reduce){.vdf-devotions a.vdf-devotion-choice{transition:none}}

/* Raccolta video: formato orizzontale e Shorts verticali. */
.vdf-mercy-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:20px 0 36px}
.vdf-mercy-video{overflow:hidden;border:1px solid #d8c5a1;border-radius:14px;background:#fffdf8;box-shadow:0 4px 12px #67452415;min-width:0}
.vdf-mercy-video .vdf-video-target{aspect-ratio:16/9}
.vdf-mercy-shorts{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.vdf-mercy-shorts .vdf-video-target{aspect-ratio:9/16}
.vdf-mercy-video-caption{padding:18px}
.vdf-mercy-video-caption h4{margin:0 0 14px;font:600 19px/1.4 Georgia,serif;color:#352719}
.vdf-mercy-video-caption a{display:inline-block;padding:6px 0;min-height:36px;color:#624419;font-weight:700}
@media(max-width:900px){.vdf-mercy-shorts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.vdf-mercy-video-grid{grid-template-columns:1fr}.vdf-mercy-shorts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.vdf-mercy-shorts .vdf-mercy-video-caption{padding:12px}.vdf-mercy-shorts h4{font-size:16px}}
@media(max-width:360px){.vdf-mercy-shorts{grid-template-columns:1fr}}

/* Sacro Cuore: scelte leggibili e finestre di contemplazione. */
.vdf-heart-nav{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 32px}
.vdf-heart-nav .vdf-dev-button{margin:0}
.vdf-heart-path>li{margin-bottom:36px!important}
.vdf-heart-path>li>h3{font-size:1.4rem;margin-bottom:12px}
.vdf-heart-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.vdf-devotions details.vdf-heart-choice{margin:0;padding:0;align-self:start;background:#fffdf8;overflow:hidden;border-radius:12px}
.vdf-heart-choice>summary{padding:18px;background:#624419;color:#fff8e8;min-height:76px;font:600 18px/1.5 Georgia,serif;overflow-wrap:anywhere}
.vdf-heart-choice>summary:hover{background:#825d25}
.vdf-heart-choice-body{padding:22px}
.vdf-heart-choice-body h3{margin:24px 0 12px;font-size:1.2rem}
.vdf-heart-choice-body h3:first-child{margin-top:0}
.vdf-heart-gospel{padding:18px 22px;background:#fffdf8;border-left:3px solid #b58940;border-radius:8px;font:1.15rem/1.85 Georgia,serif}
.vdf-heart-gospel p{margin:0 0 14px}.vdf-heart-gospel p:last-child{margin-bottom:0}
.vdf-heart-gospel sup{color:#76561d;font:700 .75rem Arial,sans-serif}
.vdf-heart-question{padding:16px 18px;background:#f3e5c9;border-radius:10px}
.vdf-heart-fruits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.vdf-heart-fruits>div{padding:20px;background:#fffdf8;border:1px solid #d8c5a1;border-radius:12px}
.vdf-heart-fruits h4{font-size:1.15rem;margin:0 0 12px}.vdf-heart-fruits p{margin:0}
.vdf-heart-promises{margin:24px 0!important}
.vdf-heart-dialog{width:min(800px,calc(100% - 32px));max-height:90vh;max-height:90dvh;padding:0;border:1px solid #b58940;border-radius:18px;background:#fffaf2;color:#352719;box-shadow:0 16px 70px #0006;overflow:hidden}
.vdf-heart-dialog::backdrop{background:#121a17b8}
.vdf-heart-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid #d8c5a1;background:#f3e5c9}
.vdf-heart-dialog-top h2{margin:0;font:600 1.4rem/1.4 Georgia,serif}
.vdf-heart-dialog-top button{flex-shrink:0;min-height:44px;padding:10px 14px;border:1px solid #624419;border-radius:8px;background:#624419;color:#fff8e8;cursor:pointer}
.vdf-heart-dialog-body{overflow-y:auto;max-height:calc(90vh - 145px);max-height:calc(90dvh - 145px);overscroll-behavior:contain}
.vdf-heart-dialog-body .vdf-heart-choice-body{padding:24px}
@media(max-width:640px){.vdf-heart-choices,.vdf-heart-fruits{grid-template-columns:1fr}.vdf-heart-nav .vdf-dev-button{flex:1 1 100%;text-align:center}.vdf-heart-dialog-top{padding:16px;gap:12px}.vdf-heart-dialog-top h2{font-size:1.15rem}.vdf-heart-dialog-body .vdf-heart-choice-body{padding:18px}.vdf-heart-gospel{padding:16px}.vdf-heart-path>li>h3{font-size:1.2rem}}
@media print{.vdf-heart-choice>summary{background:white;color:black}.vdf-heart-choice-body{display:block}.vdf-heart-dialog{display:none}}

/* Percorso comune e fonti discrete. */
.vdf-guidance-nav{margin:24px 0}.vdf-guidance-nav a.vdf-devotion-choice{min-height:64px;font-size:1rem;padding:16px}
.vdf-guidance-panel{scroll-margin-top:100px}.vdf-guidance-panel:target{border-color:#9d752d;box-shadow:0 0 0 2px #dfc18a}
.vdf-guidance-fruits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0;list-style:none}
.vdf-guidance-fruits li{padding:18px;background:#fffdf8;border:1px solid #d8c5a1;border-radius:10px;margin:0}
.vdf-scripture-ref{font-size:.95rem;color:#5d4b35}
@media(max-width:640px){.vdf-guidance-fruits{grid-template-columns:1fr}}

/* Sfondo dedicato alla preghiera facoltativa a san Giuseppe. */
.vdf-prayer-scene-joseph{background-image:url('san-giuseppe-preghiera.webp');background-position:right 115px;background-size:auto calc(100% - 115px)}
@media(max-width:700px){.vdf-prayer-scene-joseph{background-position:82% 110px;background-size:auto calc(100% - 110px)}}
