/* CF GAUSS — Slideshow Drive — versione 1.3.0 */
.gauss-drive{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#113351;margin:0 auto;max-width:1160px;box-sizing:border-box}
.gauss-drive *{box-sizing:border-box}
.gauss-drive-card{margin:18px 0 44px;padding:clamp(22px,4vw,48px);display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.48fr);gap:24px;align-items:center;background:linear-gradient(124deg,#f3faff 0%,#e8f4ff 55%,#d9eff9 100%);border-radius:20px;border:1px solid #ccdfeb;overflow:hidden}
.gauss-drive-eyebrow{font-size:12px;color:#06759a;letter-spacing:.1em;font-weight:850;display:block;margin-bottom:10px}
.gauss-drive-card h2{font-size:clamp(26px,3.3vw,39px);color:#06355b;line-height:1.15;margin:0 0 12px;font-weight:850}
.gauss-drive-card p{font-size:16px;line-height:1.55;color:#3b6078;margin:0 0 20px}
.gauss-drive-launch{appearance:none;background:#083d6e!important;color:white!important;border:0!important;border-radius:12px!important;min-height:51px;font-weight:800!important;font-size:16px!important;cursor:pointer;padding:13px 23px!important;box-shadow:0 10px 24px #07335d33;transition:background .15s}
.gauss-drive-launch:hover{background:#025991!important}
.gauss-drive-launch span{margin-right:8px;color:#ffd064}
.gauss-drive-small{display:block;margin-top:12px;color:#607e91;font-size:13px}
.gauss-drive-brand{min-height:190px;background:linear-gradient(145deg,#0a4878,#071e3d);border-radius:18px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;color:white;text-align:center;box-shadow:0 14px 28px #072d5133;transform:rotate(2deg)}
.gauss-drive-brand>span:first-child{font-size:clamp(20px,2.2vw,31px);font-weight:900;letter-spacing:.04em}
.gauss-drive-brand strong{font-size:clamp(28px,3vw,44px);color:#ffca4c}
.gauss-drive-circles{display:flex;gap:8px;margin-top:14px}.gauss-drive-circles i{width:15px;height:15px;border-radius:50%;background:#12bfd6}.gauss-drive-circles i:nth-child(2){background:#79d8f4}.gauss-drive-circles i:nth-child(3){background:#f9c654}
.gauss-drive button:focus-visible,.gauss-drive a:focus-visible{outline:3px solid #ffbf3a;outline-offset:3px}
.gauss-drive-overlay[hidden],.gauss-drive-loader[hidden],.gauss-drive-error[hidden],.gauss-drive-paper img[hidden],.gauss-drive-frame[hidden]{display:none!important}
.gauss-drive-overlay{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:0;background:#03101edb;color:#fff}
.gauss-drive-shell{width:100%;height:100%;height:100dvh;display:flex;flex-direction:column;min-height:0;background:#061c33}
.gauss-drive-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:11px clamp(12px,3vw,30px);border-bottom:1px solid #244765;background:#062745}
.gauss-drive-heading{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:#fff}
.gauss-drive-heading strong{font-size:clamp(14px,1.7vw,21px)}
.gauss-drive-heading span{color:#b7e8ff;font-size:14px;font-variant-numeric:tabular-nums}
.gauss-drive-actions{display:flex;gap:6px;flex-wrap:wrap}
.gauss-drive-actions button,.gauss-drive-actions a{border:1px solid #52738e!important;background:#0d3c65!important;color:white!important;border-radius:9px!important;font-size:14px!important;text-decoration:none!important;font-weight:750!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:8px 13px!important;cursor:pointer}
.gauss-drive-actions button:hover,.gauss-drive-actions a:hover{background:#176293!important}
.gauss-drive-actions button:disabled{opacity:.36;cursor:not-allowed}
.gauss-drive-actions .gauss-drive-close{background:#8a2438!important;border-color:#af4558!important}
.gauss-drive-stage{min-height:0;flex:1;position:relative;display:flex;align-items:center;justify-content:center;padding:12px;overflow:hidden}
.gauss-drive-paper{display:flex;align-items:center;justify-content:center;max-width:100%;max-height:100%;width:100%;height:100%;min-height:0}
.gauss-drive-paper img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 3px 20px #0008;background:#fff}
.gauss-drive-frame{width:100%;height:100%;border:0;background:#fff}
.gauss-drive-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:14px 22px;border:1px solid #45698c;border-radius:12px;color:#e0f5ff;background:#153a5f;font-weight:650}
.gauss-drive-error{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);width:min(92%,460px);padding:11px 14px;text-align:center;border:1px solid #476682;border-radius:11px;background:#133655ee;line-height:1.4;box-shadow:0 2px 10px #0019;font-size:12px}
.gauss-drive-error strong,.gauss-drive-error span,.gauss-drive-error a{display:block;margin-bottom:10px}.gauss-drive-error a{color:#ffcc65}
.gauss-drive-foot{display:flex;justify-content:space-between;gap:18px;align-items:center;font-size:12px;color:#a5bfd2;padding:9px clamp(12px,3vw,30px);background:#082742}
.gauss-drive-foot span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:55%}
@media(max-width:760px){.gauss-drive-card{grid-template-columns:1fr;padding:23px}.gauss-drive-brand{min-height:120px;transform:none}.gauss-drive-toolbar{display:block}.gauss-drive-heading{justify-content:space-between;margin-bottom:9px}.gauss-drive-actions{justify-content:space-between;gap:4px}.gauss-drive-actions button,.gauss-drive-actions a{padding:7px 9px!important;min-height:39px;font-size:13px!important}.gauss-drive-actions button span,.gauss-drive-actions a span{display:none}.gauss-drive-foot span:last-child{display:none}.gauss-drive-foot span:first-child{max-width:100%}}
@media print{
  @page{margin:10mm;size:auto}
  body.gauss-drive-is-open *{visibility:hidden!important}
  body.gauss-drive-is-open .gauss-drive-paper,
  body.gauss-drive-is-open .gauss-drive-paper *,
  body.gauss-drive-is-open .gauss-drive-overlay,
  body.gauss-drive-is-open .gauss-drive-stage,
  body.gauss-drive-is-open .gauss-drive-shell{visibility:visible!important}
  body.gauss-drive-is-open .gauss-drive-overlay{position:fixed!important;inset:0!important;display:block!important;background:white!important;z-index:2147483000!important;padding:0!important}
  body.gauss-drive-is-open .gauss-drive-shell{width:100%!important;height:100%!important;background:white!important}
  body.gauss-drive-is-open .gauss-drive-toolbar,body.gauss-drive-is-open .gauss-drive-foot,body.gauss-drive-is-open .gauss-drive-loader,body.gauss-drive-is-open .gauss-drive-error,body.gauss-drive-is-open .gauss-drive-frame{display:none!important}
  body.gauss-drive-is-open .gauss-drive-stage{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;display:flex!important;background:white!important}
  body.gauss-drive-is-open .gauss-drive-paper{width:100%!important;height:100%!important}
  body.gauss-drive-is-open .gauss-drive-paper img{max-width:100%!important;max-height:100%!important;box-shadow:none!important;object-fit:contain!important}
}

.gauss-drive-error button[data-gd-retry]{color:#063155!important;background:#ffdd6d!important;border:0!important;border-radius:6px!important;padding:8px 15px!important;font-weight:800!important;cursor:pointer}

.gauss-drive-build{font-size:11px;background:#13547a;color:#fff;padding:4px 7px;border-radius:6px;white-space:nowrap}
.gauss-drive-error [data-gd-check]{color:#ffe589}

/* v1.5 – visualizzazione diretta file tramite iframe */
.gauss-drive-paper iframe[data-gd-frame]{display:block;width:100%;height:100%;min-height:0;border:0;background:#edf4f7;object-fit:contain}
.gauss-drive-paper iframe[data-gd-frame][hidden]{display:none!important}
@media print{body.gauss-drive-is-open .gauss-drive-paper iframe[data-gd-frame]{display:block!important;width:100%!important;height:100%!important}}

/* v1.5.1: il visore ha sempre le stesse proporzioni della diapositiva e rimane centrato. */
.gauss-drive-stage{display:flex!important;align-items:center!important;justify-content:center!important;}
.gauss-drive-paper{display:flex!important;align-items:center!important;justify-content:center!important;}
.gauss-drive-paper iframe[data-gd-frame]{display:block!important;flex:0 0 auto!important;margin:auto!important;max-width:100%!important;max-height:100%!important;aspect-ratio:1538 / 644;border:0!important;}
.gauss-drive-paper iframe[data-gd-frame][hidden]{display:none!important;}
