/* ASX Galleria Club: tutte le regole sono isolate nello shortcode */
.asx-gallery{--asx-accent:#c5a678;--asx-line:rgba(197,166,120,.43);--asx-ink:#0a0d17;--asx-text:#f3eee4;--asx-gap:16px;position:relative;width:100%;max-width:1260px;margin:32px auto 42px;padding:0;color:var(--asx-text);font-family:inherit;box-sizing:border-box;left:auto;transform:none}
.asx-gallery *, .asx-gallery *:before,.asx-gallery *:after{box-sizing:border-box}
.asx-gallery__heading{text-align:center;margin:0 auto 20px;padding:0 10px}
.asx-gallery__eyebrow{font-size:11px;letter-spacing:.25em;text-transform:uppercase;color:var(--asx-accent);font-weight:600;line-height:1.5}
.asx-gallery__eyebrow span{font-size:9px;margin:0 8px;color:#a33c45}
.asx-gallery__heading h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(21px,2.6vw,32px);font-weight:500;line-height:1.25;letter-spacing:.08em;color:#f5f1e9;margin:8px auto 11px;text-transform:uppercase}
.asx-gallery__rule{width:120px;height:1px;background:linear-gradient(90deg,transparent,var(--asx-accent),transparent);margin:auto}
.asx-gallery__main{position:relative;min-width:0;width:100%;max-width:none;margin-left:auto;margin-right:auto}
.asx-gallery__track{display:flex;gap:var(--asx-gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;padding:9px 0 17px;max-width:100%;min-width:0;outline-offset:1px;justify-content:flex-start;margin-left:auto;margin-right:auto}
.asx-gallery__track::-webkit-scrollbar{display:none}
.asx-gallery__track:focus-visible{outline:2px solid var(--asx-accent)}
.asx-gallery__slide{flex:0 0 calc((100% - (3 * var(--asx-gap))) / 4);min-width:0;scroll-snap-align:start}
.asx-gallery__poster{appearance:none;-webkit-appearance:none;display:block;width:100%;aspect-ratio:4/5;padding:5px!important;margin:0!important;background:linear-gradient(145deg,#1b1c1d,#05070c)!important;border:1px solid var(--asx-line)!important;border-radius:9px!important;box-shadow:0 5px 18px rgba(0,0,0,.16);overflow:hidden;cursor:zoom-in;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;text-decoration:none!important;line-height:0}
.asx-gallery a.asx-gallery__poster{cursor:pointer}
.asx-gallery__poster:hover{border-color:#d2b583!important;transform:translateY(-3px);box-shadow:0 10px 30px rgba(0,0,0,.28)}
.asx-gallery__poster:focus-visible{outline:3px solid #e3c190;outline-offset:3px}
.asx-gallery__img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;max-width:none!important;border:0!important;border-radius:5px!important;background:#080809}
.asx-gallery__arrow{position:absolute;z-index:2;top:48%;transform:translateY(-50%);width:42px;height:42px;padding:0!important;border:1px solid rgba(220,194,151,.65)!important;border-radius:50%!important;background:rgba(8,11,18,.91)!important;color:#e2c69e!important;display:flex;align-items:center;justify-content:center;line-height:1;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.2);transition:background-color .2s,color .2s}
.asx-gallery__arrow--prev{left:-10px}.asx-gallery__arrow--next{right:-10px}
.asx-gallery__arrow:hover{background:#c2a575!important;color:#111!important}
.asx-gallery__arrow:disabled{opacity:.35;cursor:default}
.asx-gallery__arrow:focus-visible{outline:2px solid #efd5a9;outline-offset:3px}
.asx-gallery__foot{display:flex;justify-content:center;align-items:center;position:relative;gap:14px;min-height:23px;margin-top:4px}
.asx-gallery__dots{display:flex;align-items:center;gap:8px}
.asx-gallery__dot{appearance:none;display:block!important;width:7px;height:7px;min-height:7px;min-width:7px;max-width:7px;padding:0!important;margin:0!important;background:#6d6670!important;border:0!important;border-radius:50%!important;cursor:pointer;transition:width .2s,background-color .2s}
.asx-gallery__dot[aria-current="true"]{width:25px;max-width:25px;border-radius:7px!important;background:#c8ab7a!important}
.asx-gallery__hint{position:absolute;right:3px;color:#a6a1a1;letter-spacing:.04em;font-size:11px}
.asx-gallery__dialog{position:fixed;margin:auto;padding:18px 18px 12px;border:1px solid rgba(219,185,135,.6);border-radius:10px;background:#0a0a0b;box-shadow:0 25px 90px rgba(0,0,0,.7);width:fit-content;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);color:#f3eee4}
.asx-gallery__dialog::backdrop{background:rgba(0,0,0,.91)}
.asx-gallery__dialog-img{display:block!important;object-fit:contain;max-width:min(90vw,800px)!important;max-height:calc(100dvh - 115px)!important;width:auto!important;height:auto!important;margin:auto!important}
.asx-gallery__close{position:absolute;top:3px;right:3px;z-index:1;appearance:none;background:#18191a!important;border:1px solid #977951!important;border-radius:50%!important;width:34px;height:34px;min-height:34px;color:#fff!important;font-size:25px;line-height:1;cursor:pointer;padding:0!important}
.asx-gallery__dialog-actions{display:flex;justify-content:space-between;gap:22px;margin-top:8px}
.asx-gallery__dialog-actions button{appearance:none;border:1px solid #806c50!important;background:#171719!important;color:#e4c99c!important;border-radius:5px!important;min-width:58px;padding:3px 18px!important;cursor:pointer}
@media(max-width:1024px){.asx-gallery{width:100%;max-width:100%;left:auto;transform:none}.asx-gallery__slide{flex-basis:calc((100% - var(--asx-gap)) / 2)}}
@media(max-width:560px){.asx-gallery{margin:22px auto 28px;--asx-gap:11px;width:100%;max-width:100%;left:auto;transform:none}.asx-gallery__eyebrow{font-size:9px;letter-spacing:.18em}.asx-gallery__track{padding:7px 0 15px}.asx-gallery__slide{flex-basis:100%}.asx-gallery__poster{padding:4px!important;border-radius:7px!important}.asx-gallery__arrow{width:35px;height:35px;top:47%}.asx-gallery__arrow--prev{left:-3px}.asx-gallery__arrow--next{right:-3px}.asx-gallery__heading h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.asx-gallery__track{scroll-behavior:auto}.asx-gallery__poster,.asx-gallery__dot{transition:none}}
.asx-gallery__arrow[hidden],.asx-gallery__dialog-actions button[hidden]{display:none!important}

/* v1.2.2: l'allineamento alla galleria Telegram/articoli e' determinato in JS
   dai margini REALI del blocco di riferimento, non dal centro del widget Elementor.
   Non applicare left:50% al widget: puo' essere decentrato nel page builder. */
.asx-gallery {left:auto;transform:none;}
