/* Avviso condiviso e collegamento tra corsi, prova gratuita e contatti. */
html:has(.gym-notice[open]) { overflow: hidden; }
.gym-notice { margin: auto; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border: 0; border-radius: 8px; color: var(--ink); background: var(--paper); overflow-y: auto; }
.gym-notice::backdrop { background: rgb(0 16 36 / 65%); }
.gym-notice h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 16px 0; color: var(--blue-deep); }
.gym-notice p { line-height: 1.65; }
.gym-notice-close { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--blue-deep); font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
.gym-notice-close:hover { background: var(--cream); }
.gym-notice-location { margin: 20px 0; padding: 16px; background: var(--cream); }
.gym-notice-location h3 { font-size: 1.05rem; line-height: 1.4; margin-bottom: 6px; }
.gym-notice-actions { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.gym-notice-actions > a:not(.btn), .trial-phone a, .sedi-details a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: .2em; }
.gym-notice-actions > a { min-height: 44px; display: inline-flex; align-items: center; }
.gym-notice :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
#sedi, #prova-gratuita, #contactForm { scroll-margin-top: 100px; }
.trial-section { background: var(--cream); }
.trial-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.trial-layout h2 { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; margin-bottom: 20px; }
.trial-layout h3 { font-size: 1.3rem; margin-bottom: 16px; }
.trial-layout p { margin-bottom: 20px; }
.trial-phone { margin-top: 20px; }
.sedi-attuali { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sedi-attuali h3 { font-family: var(--f-display); font-size: 1.4rem; margin-bottom: 12px; }
.sedi-details { margin-top: 24px; }
@media (max-width: 900px) { .trial-layout, .sedi-attuali { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 500px) { .gym-notice { padding: 20px; } .gym-notice-actions { align-items: stretch; flex-direction: column; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Quote, pagamenti e orientamento nelle palestre. */
.payment-summary { padding: 28px 32px; margin-block: 36px; background: var(--cream); font-size: 1.05rem; }
.payment-summary > strong { display: block; font-size: 1.2rem; margin-bottom: 8px; }
.payment-summary a, .isee-reminder a, .map-link { color: var(--blue-deep); text-decoration: underline; text-underline-offset: .2em; }
.payment-notice { padding: 28px 32px; margin-bottom: 28px; background: var(--blue-deep); color: #fff; border-radius: 8px; }
.payment-notice h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; margin-bottom: 12px; }
.payment-notice p { margin-top: 16px; max-width: 80ch; }
.payment-notice a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.payment-email { font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 700; overflow-wrap: anywhere; }
.iban .who { text-align: left; min-width: 0; }
.iban .bank-beneficiary { display: block; margin: 6px 0; font-family: var(--f-body); color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.fesik-notice { padding: 24px 28px; margin: 28px 0; background: var(--cream); }
.fesik-notice h3 { color: var(--blue-deep); font-size: 1.3rem; margin-bottom: 12px; }
.fesik-notice p + p { margin-top: 8px; }
.fesik-notice strong { font-size: 1.1rem; }
.isee-reminder { margin-bottom: 24px; color: var(--ink); }
.map-link { display: inline-flex; align-items: center; min-height: 44px; margin: 12px 0; font-weight: 600; }
.gym-map { display: block; width: 100%; height: 190px; border: 0; border-radius: 4px; }
#prima-di-pagare, #quota-fesik { scroll-margin-top: 100px; }
@media (max-width: 600px) { .payment-summary, .payment-notice, .fesik-notice { padding: 24px 20px; } .payment-email { font-size: 1.1rem; } }
/* Dati bancari e testo del riquadro pagamenti. */
.iban .bank-beneficiary { font-family: var(--f-display); font-weight: 600; }
.iban .num { font-size: 1.45rem; }
.payment-notice p { max-width: none; }
@media (max-width: 600px) { .iban .num { font-size: 1.14rem; } }

/* Titolo e chiusura compatti, sulla stessa riga. */
.gym-notice-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.gym-notice-heading h2 { flex: 1; margin: 0; min-width: 0; }
.gym-notice-heading .gym-notice-close { order: 2; flex: 0 0 36px; width: 36px; height: 44px; margin: 0; color: #7c858d; font-size: 1.7rem; }
.gym-notice-heading .gym-notice-close:hover { color: #4b535b; }
