/* Apertura, album e catalogo condividono le proporzioni di una stampa. */
html:not(.contrast) header.testata{background:#fffaf5;color:#5d2336;border-bottom:1px solid #d9c3bc}
.hero.apertura-album{padding-block:clamp(2.2rem,6vw,5.7rem)}
.apertura-album .cinema-testo p+p{max-width:41ch}
.album-dediche{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1.2rem,3vw,2.7rem);padding:clamp(2rem,4vw,4rem) max(5vw,calc((100vw - 1120px)/2))}
html:not(.contrast) .album-dediche{background:linear-gradient(120deg,#ead7d4,#fff5eb 50%,#d7e7ef)}
.album-dediche :is(#esempio-audio,#dedica-alla-nonna){display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:1rem;margin:0;padding:clamp(1rem,2vw,1.6rem);width:100%;max-width:none;border-radius:14px}
html:not(.contrast) .album-dediche :is(#esempio-audio,#dedica-alla-nonna){background:#fffaf3;color:#382a32;border:1px solid #d6c4bc}
.album-dediche h2{font-size:clamp(1.75rem,3vw,2.65rem);margin:0}
.album-dediche figure{max-width:100%;margin:0}
.album-dediche #dedica-alla-nonna figure{box-shadow:none}
.album-dediche #dedica-alla-nonna>div{display:contents}
.album-dediche #titolo-nonna{order:-1}
.album-dediche audio{width:100%}
html:not(.contrast) #scegli{background:#fffaf4;color:#412e38}
#scegli ol{padding-inline-start:1.5em;line-height:1.7}
#pacchetti.collezione .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.85rem,2vw,1.7rem)}
html:not(.contrast) main.legal{background:linear-gradient(145deg,#fffaf4 45%,#f2f6f8);color:#342c36}
.legal h1{font-size:clamp(2.25rem,5vw,4rem)}
.legal audio{max-width:100%}
@media(max-width:850px){#pacchetti.collezione .grid{grid-template-columns:1fr}.album-dediche{grid-template-columns:1fr}}

.album-dediche :is(#esempio-audio,#dedica-alla-nonna) .stampa-dedica{display:block;margin:0;padding:.7rem;background:#fffdf7;color:#352535;border:1px solid #d5c8bc;border-radius:8px}
.album-dediche .stampa-dedica .scatto{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.album-dediche :is(#esempio-audio,#dedica-alla-nonna) .stampa-dedica figcaption{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.85rem 0 0;text-align:left;font:inherit}
.stampa-dedica figcaption>div{display:grid;justify-items:start;gap:.65rem}
.stampa-dedica em{font:italic clamp(1.1rem,2vw,1.6rem)/1.25 Georgia,serif}
.stampa-dedica .codice{display:grid;justify-items:center;font-size:.82rem}
.album-dediche{--lato-qr:147px}
.album-dediche .stampa-dedica .codice{flex:0 0 var(--lato-qr);width:var(--lato-qr)}
.album-dediche :is(#esempio-audio,#dedica-alla-nonna) .codice img{display:block;width:var(--lato-qr);height:var(--lato-qr);max-width:none;object-fit:contain}
@media(max-width:500px){.album-dediche{--lato-qr:98px}}
.album-dediche :is(#esempio-audio,#dedica-alla-nonna) audio{width:100%;max-width:none;margin-top:auto}

#ordine fieldset{min-inline-size:0;margin:1.5rem 0;padding:clamp(1rem,3vw,2rem)}
#ordine legend{padding:0 .5rem;font:600 clamp(1.3rem,2vw,1.65rem)/1.25 Georgia,serif}
.campi-ordine{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem 1.5rem}
#ordine .campi-ordine p{margin:0;min-width:0}
#ordine label:has(> :is(input:not([type=checkbox]),select,textarea)):not([hidden]){display:block;font-weight:600;line-height:1.45}
#ordine :is(input:not([type=checkbox]),select,textarea){display:block;width:100%;min-width:0;max-width:100%;min-height:48px;margin-top:.4rem;padding:.66rem .85rem;border:1px solid #99888e;border-radius:.65rem;background:white;color:#352731;font:normal 1rem/1.45 system-ui}
#ordine label>br:has(+ :is(input,select,textarea)){display:none}
#ordine textarea{resize:vertical}
#ordine input[type=file]::file-selector-button{margin-right:.65rem;border:1px solid #c2abb1;border-radius:.4rem;padding:.3rem .6rem;background:#faf0ed;color:#672741}
#ordine :is(input,select,textarea):focus-visible{outline:3px solid #39708a;outline-offset:2px}
#ordine input[type=checkbox]{accent-color:#76283f}
#nota-data{display:block;margin-top:.35rem;font-size:.85rem}
@media(max-width:680px){.campi-ordine{grid-template-columns:minmax(0,1fr)}}
.alternative-dedica{border-inline-start:2px solid #ad7582;padding-inline-start:1rem;margin:1rem 0}
.alternative-dedica p{margin:.25rem 0}
.alternative-dedica span,.scelta-formato>span{display:block;font:italic 1rem Georgia,serif;margin-block:.35rem}
#ordine .scelta-formato label{display:flex;align-items:center;gap:.65rem;font-weight:600;cursor:pointer}
#ordine .scelta-formato input[type=radio]{display:inline-block;width:1.2rem;height:1.2rem;min-height:0;flex:none;margin:0;padding:0;accent-color:#76283f}

.firma-album .firma-animata{display:grid;justify-items:center;gap:.35rem}
.firma-album img{display:block;height:auto}
@media(prefers-reduced-motion:no-preference){
  html:not(.reduce) .firma-album .firma-entra{animation:firma-scivola 1.2s ease-out both}
  @keyframes firma-scivola{from{opacity:.2;transform:translateX(-2rem)}to{opacity:1;transform:translateX(0)}}
}
@media(min-width:851px){
  #pacchetti.collezione .grid{align-items:stretch}
  #pacchetti.collezione .offerta{display:grid;grid-template-rows:subgrid;grid-row:span 8;row-gap:.95rem;align-self:stretch;align-items:start}
  #pacchetti.collezione .offerta>:is(.stampa-ricordo,h3,p,details){margin-block:0}
}

#pacchetti .prezzo small{font:500 1rem/1.4 system-ui}
