/* Stili isolati all'interno della pagina FFMG. */
.ffmg-accesso { --ffmg-red:#c91c22; --ffmg-ink:#252426; --ffmg-muted:#605e60; color:var(--ffmg-ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; padding:clamp(14px,3vw,38px) 10px 56px; }
.ffmg-accesso *, .ffmg-accesso *::before, .ffmg-accesso *::after { box-sizing:border-box; }
.ffmg-accesso__card { max-width:740px; margin:0 auto; padding:clamp(22px,5vw,54px); background:#fff; border:1px solid #e9e4e1; border-radius:20px; box-shadow:0 15px 55px rgba(37,36,38,.055); }
.ffmg-accesso__header { text-align:center; }
.ffmg-accesso__logo { display:block; width:min(100%,420px); height:auto; object-fit:contain; margin:0 auto 30px; }
.ffmg-accesso__eyebrow { display:block; color:#796f6a; font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:650; }
.ffmg-accesso__title { font-size:clamp(27px,4vw,38px)!important; letter-spacing:-.025em; line-height:1.18!important; margin:14px auto 18px!important; color:var(--ffmg-ink)!important; font-weight:700; }
.ffmg-accesso__intro { color:#555054; font-size:16px; line-height:1.7; max-width:550px; margin:0 auto 33px!important; }
.ffmg-accesso__status { background:#faf8f6; border:1px solid #eee7e3; border-radius:15px; padding:26px 24px 22px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.ffmg-accesso__spinner { width:32px; height:32px; border-radius:50%; border:3px solid #eedede; border-top-color:var(--ffmg-red); animation:ffmg-rotate .9s linear infinite; margin-bottom:16px; }
.ffmg-accesso__status-text strong { display:block; color:var(--ffmg-ink); font-size:17px; line-height:1.35; }
.ffmg-accesso__status-text p { color:var(--ffmg-muted); font-size:14px; line-height:1.6; max-width:480px; margin:9px auto 0!important; }
.ffmg-accesso__progress { overflow:hidden; width:100%; max-width:350px; height:3px; border-radius:20px; background:#eee8e5; margin-top:22px; }
.ffmg-accesso__progress span { display:block; height:100%; width:35%; border-radius:20px; background:var(--ffmg-red); animation:ffmg-progress 2.2s ease-in-out infinite; }
.ffmg-accesso__actions { margin:22px 0 0; text-align:center; }
.ffmg-accesso__open { display:inline-block; background:var(--ffmg-red); border-radius:10px; color:#fff!important; padding:14px 24px; font-size:16px; font-weight:700; line-height:1.4; text-decoration:none!important; transition:background .15s ease; }
.ffmg-accesso__open:hover, .ffmg-accesso__open:focus { background:#a9161b; color:#fff!important; }
.ffmg-accesso__open[hidden] { display:none!important; }
.ffmg-accesso__retry { appearance:none; cursor:pointer; display:block; margin:0 auto 17px; border:0; border-radius:10px; background:var(--ffmg-red); color:#fff; padding:12px 20px; font-weight:650; font-size:15px; }
.ffmg-accesso__retry:hover { background:#ac151d; }
.ffmg-accesso__retry[hidden] { display:none!important; }
.ffmg-accesso__note { border-top:1px solid #eae4e0; border-bottom:1px solid #eae4e0; margin:29px 0 22px; padding:20px 5px; font-size:13px; line-height:1.65; color:#5e5757; }
.ffmg-accesso__note strong { display:block; color:#282526; font-size:14px; margin-bottom:5px; }
.ffmg-accesso__footer { text-align:center; font-size:13px; line-height:1.6; color:#776f6c; }
.ffmg-accesso__footer a { color:#9c191e!important; text-decoration:underline; text-underline-offset:3px; }
.ffmg-accesso[data-state="ready"] .ffmg-accesso__spinner { border-color:#dce9df; border-top-color:#2e7e49; }
.ffmg-accesso[data-state="error"] .ffmg-accesso__spinner { display:none; }
.ffmg-accesso[data-state="error"] .ffmg-accesso__progress { display:none; }
@keyframes ffmg-rotate { to { transform:rotate(360deg); } }
@keyframes ffmg-progress { 0% { transform:translateX(-130%); } 50% { transform:translateX(100%); } 100% { transform:translateX(280%); } }
@media (max-width:580px) { .ffmg-accesso { padding:4px 0 30px; } .ffmg-accesso__card { border-radius:12px; padding:23px 18px; } .ffmg-accesso__logo { margin-bottom:24px; } .ffmg-accesso__intro { font-size:15px; } .ffmg-accesso__status { padding:24px 15px; } }
@media (prefers-reduced-motion:reduce) { .ffmg-accesso__spinner,.ffmg-accesso__progress span { animation:none!important; } }

/* Dopo il caricamento il pulsante prende il posto dell’animazione. */
.ffmg-accesso[data-state="ready"] .ffmg-accesso__spinner, .ffmg-accesso[data-state="ready"] .ffmg-accesso__progress { display:none; }
