* { box-sizing: border-box; }
:root { --night: #020b1d; --night-soft: #061328; --pink: #f0529b; --white: #f7f7f8; --muted: #b9c3d2; --line: rgba(177, 196, 222, .18); --site-max-width: 1200px; --site-gutter: clamp(40px, 8vw, 96px); --site-pad: clamp(20px, 4vw, 48px); }
body.flamingo-public-shell.page-home { margin: 0; background: var(--night); color: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; }
body.flamingo-public-shell.page-home main { color: var(--white); }
body.flamingo-public-shell.page-home main h1, body.flamingo-public-shell.page-home main h2, body.flamingo-public-shell.page-home main h3, body.flamingo-public-shell.page-home main h4 { color: var(--white) !important; }
body.flamingo-public-shell.page-home main p, body.flamingo-public-shell.page-home main li, body.flamingo-public-shell.page-home main address { color: var(--muted) !important; }
body.flamingo-public-shell.page-home main a { color: inherit; }
.reference-container { width: min(var(--site-max-width), calc(100% - var(--site-gutter))); margin-inline: auto; }
.reference-hero { position: relative; min-height: 570px; overflow: hidden; border-bottom: 1px solid var(--line); }
.reference-hero-picture, .reference-hero-picture img, .reference-hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.reference-hero-picture { display: block; margin: 0; }
.reference-hero-picture img { object-fit: cover; object-position: center; }
.reference-hero-overlay { background: linear-gradient(90deg, rgba(2, 11, 29, .98) 0%, rgba(2, 11, 29, .86) 33%, rgba(2, 11, 29, .18) 72%, rgba(2, 11, 29, .1) 100%); }
.reference-hero-content { position: relative; z-index: 1; display: flex; min-height: 570px; flex-direction: column; justify-content: center; padding-block: 48px; }
.reference-eyebrow { margin: 0; color: var(--pink); font-size: 10px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; }
.reference-hero h1 { max-width: 570px; margin: 25px 0 20px; color: var(--white); font-size: clamp(42px, 5.2vw, 64px); font-weight: 800; letter-spacing: -2px; line-height: .99; }
.reference-hero-body, .reference-press-body { max-width: 470px; color: var(--white); font-size: 16px; line-height: 1.65; }
.reference-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reference-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; min-height: 44px; margin-top: 25px; padding: 11px 27px; border-radius: 24px; font-size: 12px; font-weight: 800; text-decoration: none; }
.reference-button-primary { background: var(--pink); color: var(--night); }
.reference-button-outline { border: 1px solid var(--pink); color: var(--pink); }
.reference-hero-signature { display: flex; align-items: center; gap: 18px; margin: 46px 0 0; color: #d7dce7; font-size: 9px; font-weight: 700; letter-spacing: 3px; }
.reference-hero-signature span { display: block; width: 40px; height: 2px; background: var(--pink); }
.reference-triad { display: grid; grid-template-columns: 1fr; padding-block: 38px 42px; }
.reference-column { min-width: 0; padding: 0 0 34px; border-bottom: 1px solid var(--line); }
.reference-column + .reference-column { padding-top: 34px; }
.reference-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 15px; border: 2px solid var(--pink); border-radius: 50%; color: var(--pink); font-size: 31px; line-height: 1; }
.reference-column h2 { margin: 0; color: var(--white); font-size: 23px; font-weight: 800; line-height: 1.15; }
.reference-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.reference-cms-copy { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.reference-cms-copy h3 { margin: 0 0 8px; color: var(--white); font-size: 16px; }
.reference-link { display: inline-flex; gap: 10px; margin-top: 22px; color: var(--pink); font-size: 12px; font-weight: 800; text-decoration: none; }
.reference-stat { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 12px; }
.reference-stat strong { color: var(--pink); font-size: 48px; line-height: 1; }
.reference-stat span, .reference-column address { color: var(--muted); font-size: 13px; }
.reference-mini-heading { padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: 2px; }
.reference-disciplines { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; color: var(--muted); font-size: 13px; list-style: none; }
.reference-disciplines li { display: flex; align-items: center; gap: 14px; }
.reference-discipline-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.reference-discipline-name { flex: 1 1 auto; min-width: 0; }
.reference-discipline-count { flex: none; color: var(--pink); font-size: 13px; font-variant-numeric: tabular-nums; }
.reference-base-users { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.reference-base-users strong { color: var(--white); }
.reference-column address { margin-top: 12px; font-style: normal; line-height: 1.6; }
.reference-venue-decoration { display: block; width: 100%; max-width: 300px; margin: 22px 0 0 auto; opacity: .65; }
.reference-scoreboard { padding-block: 56px; border-top: 1px solid rgba(240, 82, 155, .34); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #071733 0%, #051226 100%); }
.reference-scoreboard-inner { display: grid; gap: 24px; }
.reference-scoreboard-top { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.reference-scoreboard-heading h2 { margin: 12px 0 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.08; }
.reference-scoreboard-desc { margin: 14px 0 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.reference-scoreboard-content { display: flex; flex-direction: column; gap: 18px; }
.reference-scoreboard-state { margin: 0; color: var(--muted); font-size: 13px; }
.reference-scoreboard-live { display: grid; gap: 12px; }
.reference-scoreboard-card { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--white); transition: border-color .15s ease; }
.reference-scoreboard-card:hover { border-color: var(--pink); }
.reference-scoreboard-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.reference-scoreboard-card-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #f43f5e; }
.reference-scoreboard-card-live { color: #f43f5e; }
.reference-scoreboard-card-mode { min-width: 0; color: #cbd5e1; }
.reference-scoreboard-card-match { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.reference-scoreboard-card-match span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); font-weight: 700; font-size: 13px; }
.reference-scoreboard-card-match strong { flex: none; font-size: 20px; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reference-scoreboard-card-follow { display: block; margin-top: 6px; text-align: right; color: var(--pink); font-size: 11px; font-weight: 800; }
.reference-scoreboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reference-scoreboard-actions .reference-button { margin-top: 0; }
.reference-scoreboard .reference-button { margin: 0; white-space: nowrap; }
.reference-press { border-bottom: 1px solid var(--line); background: var(--night-soft); }
.reference-press-inner { display: grid; min-height: 285px; grid-template-columns: 1fr; }
.reference-press-copy { display: flex; flex-direction: column; justify-content: center; padding-block: 42px; }
.reference-press h2 { max-width: 370px; margin: 18px 0 10px; font-size: 30px; font-weight: 800; line-height: 1.08; }
.reference-press-body { color: var(--muted); font-size: 13px; }
.reference-press-image { min-height: 220px; overflow: hidden; }
.reference-press-image img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; }

/* Contrasto CTA Home: la shell editoriale forza `main > section` a testo scuro,
   che sul fondo blu notte rende illegibili pulsanti e link. Ripristina la
   palette rosa/notte approvata con stati leggibili. */
body.flamingo-public-shell.page-home main > section,
body.flamingo-public-shell.page-home main > article,
body.flamingo-public-shell.page-home main > p { color: var(--white); }
body.flamingo-public-shell.page-home main .reference-button-primary { color: var(--night); }
body.flamingo-public-shell.page-home main .reference-button-outline { color: var(--pink); }
body.flamingo-public-shell.page-home main .reference-link { color: var(--pink); }
body.flamingo-public-shell.page-home main .reference-button-primary:hover,
body.flamingo-public-shell.page-home main .reference-button-primary:focus-visible { background: #ff8fce; }
body.flamingo-public-shell.page-home main .reference-button-primary:active { background: #d63f82; }
body.flamingo-public-shell.page-home main .reference-button-outline:hover,
body.flamingo-public-shell.page-home main .reference-button-outline:focus-visible { color: #ff8fce; border-color: #ff8fce; }
body.flamingo-public-shell.page-home main .reference-button-outline:active { color: #d63f82; border-color: #d63f82; }
body.flamingo-public-shell.page-home main .reference-link:hover,
body.flamingo-public-shell.page-home main .reference-link:focus-visible { color: #ff8fce; }
body.flamingo-public-shell.page-home main .reference-link:active { color: #d63f82; }
body.flamingo-public-shell.page-home main .reference-button:focus-visible,
body.flamingo-public-shell.page-home main .reference-link:focus-visible { outline: 2px solid #ff8fce; outline-offset: 3px; }

@media (min-width: 700px) {
    .reference-nav { display: flex; }
    .reference-mobile-menu { display: none; }
    .reference-hero { min-height: 570px; }
    .reference-hero-picture img { object-position: 72% center; }
    .reference-triad { grid-template-columns: repeat(3, 1fr); padding-block: 38px; }
    .reference-column { min-height: 330px; padding: 0 34px 0 0; border-right: 1px solid var(--line); border-bottom: 0; }
    .reference-column + .reference-column { padding: 0 34px; border-bottom: 0; }
    .reference-column:last-child { padding-right: 0; border-right: 0; }
    .reference-scoreboard-top { flex-direction: row; align-items: center; justify-content: space-between; }
    .reference-scoreboard-actions { justify-content: flex-end; }
    .reference-press-inner { grid-template-columns: 1fr 1.22fr; }
    .reference-press-image { min-height: 285px; }

}
@media (max-width: 699px) { .reference-scoreboard-content { align-items: flex-start; flex-direction: column; } .reference-hero-actions .reference-button { flex: 1 1 auto; } .reference-scoreboard-actions { width: 100%; } .reference-scoreboard-actions .reference-button { flex: 1 1 100%; } }
