.aa-foto,.aa-foto *{box-sizing:border-box}.aa-foto{max-width:520px;margin:20px auto;padding:30px 20px;background:#f8f4ee;border-radius:22px;color:#29382f;font:17px/1.5 system-ui,sans-serif}.aa-foto header,.aa-foto footer{text-align:center}.aa-foto .aa-date{letter-spacing:3px;font-size:12px}.aa-foto h2{font:42px/1.14 Georgia,serif;color:#29382f;margin:18px 0}.aa-foto h2 span{color:#a87c46}.aa-foto h3{font:27px Georgia,serif;color:#29382f;margin:0 0 18px}.aa-foto p{color:#526055}.aa-foto .aa-card{background:#fff;border:1px solid #e5ded2;border-radius:20px;padding:22px;margin-top:26px}.aa-foto label{font-size:15px;display:block;margin:18px 0 6px}.aa-foto input[type=text]{width:100%;border:1px solid #aab2ac;border-radius:8px;padding:12px;background:#fff;color:#29382f;font:16px system-ui}.aa-foto button{display:block;width:100%;padding:17px;border-radius:12px;border:1px solid #334f40;font:600 17px system-ui;cursor:pointer;background:#334f40;color:white;margin:12px 0;line-height:1.3}.aa-foto button.aa-secondary{background:#fff;color:#334f40}.aa-foto button:disabled{opacity:.55;cursor:default}.aa-foto [hidden]{display:none!important}.aa-foto ul{padding:0;list-style:none;margin:16px 0}.aa-foto li{font-size:14px;padding:8px 0;overflow-wrap:anywhere;border-bottom:1px solid #eee}.aa-foto button.aa-remove{display:inline;width:auto;padding:5px 9px;font-size:13px;margin:0 0 0 8px;background:white;color:#334f40}.aa-foto .aa-note,.aa-foto footer{font-size:13px}.aa-foto footer{margin-top:22px;color:#69746c}.aa-foto [data-status]{white-space:pre-line;font-weight:600;overflow-wrap:anywhere}.aa-foto progress{width:100%;accent-color:#334f40}.aa-foto :focus-visible{outline:3px solid #a87c46;outline-offset:3px}
.aa-foto button.aa-remove{min-height:44px;padding:10px 12px}.aa-foto .aa-album-link{margin:24px 0;text-align:center}.aa-foto .aa-album-link a,.aa-foto .aa-back{display:inline-block;min-height:44px;padding:10px 0;color:#334f40;text-decoration:underline;text-underline-offset:4px;font-weight:600}.aa-foto .aa-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.aa-foto .aa-tile{display:flex;flex-direction:column;justify-content:center;min-height:100px;background:#f8f4ee;border-radius:10px;overflow:hidden;text-align:center;text-decoration:none;color:#334f40}.aa-foto .aa-tile img{width:100%;aspect-ratio:1;object-fit:cover}.aa-foto .aa-tile span{font:14px/1.4 system-ui;padding:10px}.aa-foto p[data-recovery]:empty{display:none}.aa-photo-page .ast-article-single{padding:20px!important}.aa-photo-page .entry-title{text-align:center}.aa-photo-page .entry-content{margin:0!important}.aa-photo-page .site-content .ast-container{padding:0 8px}.aa-photo-page .aa-foto h2{font-size:clamp(30px,8vw,42px)}@media(max-width:600px){.aa-photo-page .ast-article-single{padding:8px!important}.aa-foto{margin:8px auto;padding:24px 12px}.aa-foto .aa-card{padding:18px 14px}.aa-foto .aa-date{margin:0}.aa-foto .aa-card>p{font-size:16px}.aa-foto .aa-card .aa-note{font-size:13px}}

/* La pagina del QR comincia subito dal modulo, senza intestazioni vuote del tema. */
.aa-photo-page #masthead,.aa-photo-page .entry-header{display:none}.aa-photo-page #primary,.aa-photo-page .ast-article-single{margin-top:0;margin-bottom:0}

/* Album unico: l'origine del file non cambia l'esperienza degli invitati. */
.aa-foto.aa-album{max-width:900px}.aa-album .aa-card{padding:18px}.aa-album .aa-grid{gap:14px}
.aa-album button.aa-tile{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;width:100%;min-height:0;margin:0;padding:0;border:1px solid #e5ded2;background:#f8f4ee;color:#334f40;border-radius:14px;overflow:hidden;line-height:1.4}
.aa-album .aa-tile .aa-preview{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;padding:0;background:#f2ede4;overflow:hidden}
.aa-album .aa-tile .aa-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.aa-album .aa-preview-fallback{font-size:36px;padding:0}.aa-album .aa-tile .aa-tile-label{font-size:15px;padding:12px;min-height:44px}
.aa-album [data-gallery-status]{font-size:15px;line-height:1.5;margin-bottom:0}
.aa-foto .aa-viewer{width:calc(100vw - 20px);max-width:920px;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);margin:auto;padding:16px;background:#f8f4ee;color:#29382f;border:0;border-radius:16px;box-shadow:0 12px 60px #0007;overflow:auto;overscroll-behavior:contain}
.aa-foto .aa-viewer::backdrop{background:#14241de6}.aa-foto .aa-viewer[open]{display:flex;flex-direction:column;gap:12px}
.aa-foto .aa-view-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.aa-foto .aa-view-top h3{font:600 18px/1.3 system-ui;margin:0}
.aa-foto .aa-viewer button{font-size:16px;min-height:44px;padding:10px 12px;margin:0}.aa-foto .aa-viewer .aa-close{width:auto;flex-shrink:0}
.aa-foto .aa-view-stage{min-height:180px;display:grid;place-items:center;background:#eee8dd;border-radius:10px;overflow:hidden}
.aa-foto .aa-view-stage img{display:block;width:auto;max-width:100%;height:auto;max-height:65vh;max-height:65dvh;object-fit:contain;margin:0}
.aa-foto .aa-view-stage p{padding:22px;text-align:center;margin:0}.aa-foto .aa-view-stage p:empty{display:none}
.aa-foto .aa-view-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px}.aa-foto .aa-view-save{display:block;min-height:44px;padding:10px;text-align:center;border-radius:10px;background:#334f40;color:#fff;text-decoration:none;font-weight:600}
@media(min-width:700px){.aa-album .aa-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:380px){.aa-album .aa-card{padding:12px}.aa-album .aa-grid{gap:10px}.aa-album .aa-tile .aa-tile-label{font-size:14px}.aa-foto .aa-viewer{padding:12px}}
