/* Sito pubblico Rugby Rende 2.0. Rosso del logo, blu notte, bianco caldo, oro. Titoli pesanti, superfici morbide. */
:root {
  --red: #d62832; --red-hi: #f03138; --red-2: #a8161e; --red-3: #7d1017;
  --navy: #1d2c3d; --navy-2: #2f4358; --ink: #1b2a3a; --ink-2: #566678;
  --bg: #f8f5f1; --paper: #fff; --line: #e7e1d9; --gold: #f5b800; --gold-ink: #2e2300;
  --shadow: 0 1px 2px rgba(27,42,58,.06), 0 14px 34px -14px rgba(27,42,58,.28);
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f151c; --paper: #19222c; --ink: #eef2f5; --ink-2: #a9b6c2; --line: #2a3643; --navy: #0a1018; --navy-2: #9fb3c6;
    --red: #d4313a; --red-hi: #e9333d; --red-2: #8e1a1f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -16px rgba(0,0,0,.7); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #1b5fd1; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; margin: 0; letter-spacing: -.035em; }
p { margin: 0 0 14px; max-width: 62ch; }
img { max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.logo, .mark { display: block; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.logo { aspect-ratio: 1153 / 251; -webkit-mask-image: url("../icons/logo.png"); mask-image: url("../icons/logo.png"); }
.mark { aspect-ratio: 274 / 247; -webkit-mask-image: url("../icons/mark.png"); mask-image: url("../icons/mark.png"); }
.note { color: var(--ink-2); }

/* ---------- Pulsanti ---------- */
.btn, .btn-nav {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 50px; padding: 0 24px;
  border-radius: 16px; font-weight: 800; text-decoration: none; background: var(--red); color: #fff !important; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--red) 80%, transparent);
  transition: transform .15s ease;
}
.btn:hover, .btn-nav:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: var(--gold-ink) !important; box-shadow: 0 10px 22px -10px rgba(245,184,0,.8); }
.btn.light { background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.75); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn.navy { background: var(--navy); color: #fff !important; box-shadow: none; }
.btn.small, .btn-nav { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn.small { margin-left: 6px; }

/* ---------- Barra superiore e menu ---------- */
.util { background: var(--navy); color: #d7dfe8; font-size: .88rem; }
.util-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.util-links { display: flex; gap: 22px; align-items: center; }
.util a { text-decoration: none; opacity: .92; } .util a:hover { opacity: 1; text-decoration: underline; }
.site-head {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { color: var(--red); display: block; }
.brand .logo { height: 44px; width: auto; }
.site-head nav { display: flex; align-items: center; gap: 28px; font-weight: 700; }
.site-head nav a:not(.btn-nav) { text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.site-head nav a:not(.btn-nav):hover, .site-head nav a[aria-current="page"] { border-bottom-color: var(--red); }
@media (max-width: 860px) {
  .util { display: none; }
  .site-head nav a:not(.btn-nav) { display: none; }
  .head-in { min-height: 64px; }
  .brand .logo { height: 36px; }
}

/* ---------- Barra in basso (solo telefono) ---------- */
.tabs { display: none; }
@media (max-width: 860px) {
  .tabs {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 6px; gap: 2px;
    background: color-mix(in srgb, var(--paper) 92%, transparent); border-radius: 24px; box-shadow: var(--shadow), 0 0 0 1px var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .tabs a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 18px; text-decoration: none; font-size: .72rem; font-weight: 700; color: var(--ink-2); }
  .tabs a[aria-current="page"], .tabs a.hot { color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); }
  .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body { padding-bottom: 92px; }
}

/* ---------- Eroe ---------- */
.hero { position: relative; isolation: isolate; color: #fff; display: flex; align-items: flex-end; min-height: min(86vh, 760px); background: var(--red-3); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: -3; background: var(--red-3); overflow: hidden; }
.hero-photo .slide { position: absolute; inset: 0; background: center 30% / cover no-repeat; opacity: 0; transition: opacity 1s ease; }
.hero-photo .slide.is-on { opacity: 1; }
.hero-photo .slide.default { background-image: url("../img/hero.jpg"); }
.hero-dots { position: absolute; z-index: 3; right: 20px; bottom: 22px; display: flex; gap: 8px; }
.hero-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; }
.hero .hero-cap { max-width: none; margin: 0 !important; animation: none; position: absolute; z-index: 3; left: 20px; top: 20px; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.45); font-size: .9rem !important; font-weight: 700; }
.hero-dots[hidden], .hero-cap[hidden] { display: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, rgba(110,14,20,.95) 0%, rgba(150,20,28,.62) 38%, rgba(150,20,28,.12) 72%), linear-gradient(90deg, rgba(110,14,20,.55), transparent 60%); }
.hero::after { content: ""; position: absolute; z-index: -1; right: -90px; top: 8%; width: min(560px, 72vw); aspect-ratio: 274 / 247; background: #fff; opacity: .08; -webkit-mask: url("../icons/mark.png") center / contain no-repeat; mask: url("../icons/mark.png") center / contain no-repeat; }
.hero-in { padding: 120px 0 112px; }
.hero h1 { font-size: clamp(2.9rem, 10.5vw, 7.2rem); line-height: .94; letter-spacing: -.05em; max-width: 11ch; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero p { margin: 22px 0 0; font-size: clamp(1.1rem, 2.6vw, 1.45rem); max-width: 30ch; font-weight: 600; animation: rise .9s .12s cubic-bezier(.2,.7,.2,1) both; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: rise .9s .24s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.04); } }

/* ---------- Numeri ---------- */
.numbers { position: relative; margin-top: -64px; z-index: 2; }
.numbers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.numbers li { padding: 26px 24px 24px; border-left: 1px solid var(--line); }
.numbers li:first-child { border-left: 0; }
.numbers b { display: block; font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -.05em; color: var(--ink); }
.numbers b::after { content: ""; display: block; width: 34px; height: 5px; border-radius: 3px; background: var(--gold); margin: 10px 0 8px; }
.numbers span { color: var(--ink-2); font-weight: 600; line-height: 1.3; display: block; }
@media (max-width: 700px) { .numbers ul { grid-template-columns: 1fr 1fr; } .numbers li:nth-child(3) { border-left: 0; } .numbers li:nth-child(n+3) { border-top: 1px solid var(--line); } .numbers li { padding: 20px 18px; } }

/* ---------- Fascia app ---------- */
.app-band { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px 32px; border-radius: 28px; background: var(--gold); color: var(--gold-ink); }
.app-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.app-band p { margin: 6px 0 0; font-weight: 600; max-width: 46ch; }

/* ---------- Sezioni ---------- */
.block { padding: 84px 0 8px; }
.block h2 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 26px; max-width: 16ch; }
.lead { font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.35; font-weight: 600; letter-spacing: -.015em; max-width: 26ch; }
.two { display: grid; gap: 22px 56px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rules li { background: var(--paper); border-radius: 24px; padding: 24px 24px 22px; box-shadow: var(--shadow); }
.rules li::before { content: ""; display: block; width: 34px; height: 5px; border-radius: 3px; background: var(--gold); margin-bottom: 16px; }
.rules h3 { font-size: 1.35rem; margin-bottom: 8px; }
.rules p { margin: 0; color: var(--ink-2); }
.rules.social li { background: var(--navy); color: #fff; }
.rules.social p { color: #c4d0dc; }
.sub { font: 800 1.25rem/1.2 var(--display); letter-spacing: -.02em; margin: 40px 0 16px; }

/* ---------- Allenamenti ---------- */
.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sessions li { display: grid; grid-template-columns: 1.4fr 1.2fr auto; gap: 14px 28px; align-items: center; background: var(--paper); border-radius: 24px; padding: 22px 26px; box-shadow: var(--shadow); }
.sessions h3 { font-size: 1.35rem; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.days span { padding: 5px 14px; border-radius: 999px; background: color-mix(in srgb, var(--red) 10%, transparent); font-weight: 700; font-size: .95rem; }
.at { font: 800 2.1rem/1 var(--display); letter-spacing: -.04em; color: var(--red); }
@media (prefers-color-scheme: dark) { .at { color: #ff8a90; } }
@media (max-width: 760px) { .sessions li { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- Contatti ---------- */
.contact { margin-top: 90px; background: var(--navy); color: #fff; border-radius: 36px 36px 0 0; padding: 72px 0 70px; position: relative; overflow: hidden; isolation: isolate; }
.contact::after { content: ""; position: absolute; z-index: -1; right: -80px; bottom: -80px; width: min(460px, 70vw); aspect-ratio: 274 / 247; background: #fff; opacity: .05; -webkit-mask: url("../icons/mark.png") center / contain no-repeat; mask: url("../icons/mark.png") center / contain no-repeat; }
.contact h2 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 28px; }
.contact address { font-style: normal; font-size: 1.15rem; }
.contact a { color: #fff; }
.big-link { display: block; font: 800 clamp(1.4rem, 4vw, 2rem)/1.25 var(--display); letter-spacing: -.03em; text-decoration: none; }
.big-link:hover { text-decoration: underline; }
.pills { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid rgba(255,255,255,.4); text-decoration: none; font-weight: 700; }
.pills a:hover { background: rgba(255,255,255,.12); }
.member { margin-top: 26px; color: #c4d0dc; }

/* ---------- Piè di pagina ---------- */
.site-foot { background: #121c28; color: #c4d0dc; padding: 56px 0 28px; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .site-foot { background: #070b10; } }
.foot-grid { display: grid; gap: 32px 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.foot-grid .logo { width: 220px; color: #fff; margin-bottom: 14px; }
.foot-grid h3 { font: 800 1rem/1.2 var(--display); color: #fff; margin-bottom: 12px; letter-spacing: -.01em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; } .foot-grid a:hover { text-decoration: underline; color: #fff; }
.foot-grid p { margin: 0 0 8px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .88rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Pagina "Installa l'app" ---------- */
.hero-mini { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 76px 0 82px; background: linear-gradient(150deg, var(--red-hi) 0%, #c9212b 58%, var(--red-2) 100%); }
.hero-mini::after { content: ""; position: absolute; z-index: -1; right: -70px; bottom: -90px; width: min(480px, 70vw); aspect-ratio: 274 / 247; background: #fff; opacity: .1; -webkit-mask: url("../icons/mark.png") center / contain no-repeat; mask: url("../icons/mark.png") center / contain no-repeat; }
.hero-mini h1 { font-size: clamp(2.4rem, 8vw, 5rem); max-width: 14ch; line-height: .98; letter-spacing: -.045em; }
.hero-mini p { margin: 18px 0 0; font-size: 1.2rem; font-weight: 600; max-width: 40ch; }
.install-top { display: grid; grid-template-columns: auto 1fr; gap: 28px 56px; align-items: center; padding: 56px 0 10px; }
.qr-card { background: #fff; border: 6px solid var(--red); border-radius: 30px; box-shadow: var(--shadow); padding: 16px 16px 12px; text-align: center; color: #1c2b3a; }
.qr-card svg { display: block; width: min(280px, 70vw); height: auto; }
.qr-cap { margin: 6px 0 0; font-weight: 800; max-width: none; }
.qr-text h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.url { word-break: break-all; font-weight: 700; }
.first-time { padding: 16px 18px; background: color-mix(in srgb, var(--gold) 22%, transparent); border-radius: 18px; margin-top: 20px; color: var(--ink); }
@media (max-width: 720px) { .install-top { grid-template-columns: 1fr; justify-items: center; } .qr-text { justify-self: stretch; } }
.os-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.os { background: var(--paper); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.os h3 { font-size: 1.7rem; margin-bottom: 8px; }
.steps { margin: 14px 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; min-height: 34px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font: 800 1.05rem/32px var(--display); text-align: center; }

/* Manifesto per la stampa: visibile solo quando si stampa */
.poster { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 15pt; padding: 0; }
  .util, .site-head, .site-foot, .tabs, .hero-mini, .install-top, .block, .print-hide { display: none !important; }
  .poster { display: block; text-align: center; }
  .poster h1 { font-size: 46pt; color: var(--red); margin-bottom: 14pt; }
  .poster svg { width: 120mm; height: 120mm; border: 4px solid var(--red); border-radius: 12px; }
  .poster-url { font-weight: 700; margin: 10pt auto 14pt; max-width: none; word-break: break-all; }
  .poster ol { text-align: left; max-width: 150mm; margin: 0 auto; padding-left: 20pt; line-height: 1.5; }
  .poster li { margin-bottom: 8pt; }
}

/* ---------- News e attività ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px 44px; align-items: center; background: var(--paper); border-radius: 32px; padding: 34px; box-shadow: var(--shadow); }
.feature .when { font-weight: 800; color: var(--red); margin: 0 0 10px; letter-spacing: -.01em; }
@media (prefers-color-scheme: dark) { .feature .when { color: #ff8a90; } }
.feature h3 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: 14px; letter-spacing: -.04em; }
.feature .btn.ghost { background: transparent; color: var(--ink) !important; border: 2px solid var(--line); box-shadow: none; }
.feature-posters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.feature-posters a { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.feature-posters a:nth-child(2) { margin-top: 28px; }
.feature-posters a:hover { transform: translateY(-4px) rotate(-.6deg); }
.feature-posters img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; padding: 22px; } }

.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.events li { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px 22px; align-items: center; background: var(--paper); border-radius: 24px; padding: 18px 24px 18px 18px; box-shadow: var(--shadow); }
.events .date { text-align: center; padding: 12px 0 10px; border-radius: 18px; background: color-mix(in srgb, var(--red) 10%, var(--paper)); box-shadow: inset 0 4px 0 var(--red); line-height: 1; }
.events .date b { display: block; font: 800 2.2rem/1 var(--display); letter-spacing: -.05em; }
.events .date span { display: block; margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.events h3 { font-size: 1.3rem; margin-bottom: 4px; }
.events p { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.ev-time { font: 800 2rem/1 var(--display); letter-spacing: -.04em; color: var(--red); }
@media (prefers-color-scheme: dark) { .ev-time { color: #ff8a90; } }
.events li.past { opacity: .55; }
.events li.past .ev-time::before { content: "concluso"; display: block; font: 700 .72rem/1 var(--body); letter-spacing: 0; color: var(--ink-2); margin-bottom: 6px; text-align: right; }
@media (max-width: 640px) { .events li { grid-template-columns: 72px 1fr; padding: 16px; } .ev-time { grid-column: 2; } }

/* ---------- Articolo ---------- */
.article { padding: 44px 0 20px; }
.kicker { font-weight: 800; margin: 0 0 18px; }
.kicker a { color: var(--red); text-decoration: none; } .kicker a::before { content: "← "; }
.info-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 40px; }
.info-box > div { background: var(--paper); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); }
.info-box b { display: block; font: 800 1.15rem/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.info-box b::before { content: ""; display: block; width: 30px; height: 5px; border-radius: 3px; background: var(--gold); margin-bottom: 12px; }
.info-box span { color: var(--ink-2); line-height: 1.5; display: block; }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { max-width: none; font-size: 1.12rem; line-height: 1.75; margin-bottom: 20px; }
.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0; align-items: start; }
.posters a { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.posters img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .posters { grid-template-columns: 1fr; } }
.thanks { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thanks li { padding: 8px 18px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-weight: 700; }
.prose .lead-out { font: 800 1.6rem/1.2 var(--display); letter-spacing: -.03em; margin: 34px 0 18px; }

/* progetti, partner, sponsor */
.proj { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.proj li, .partners li { background: var(--paper); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.proj h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.proj p, .partners p { color: var(--muted, #5b6b7b); margin: 0; }
.lg { background: #fff; border-radius: 16px; height: 110px; display: grid; place-items: center; padding: 12px; }
.lg img { max-width: 100%; max-height: 86px; object-fit: contain; }
.partners { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 16px; }
.partners li { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; }
.partners h3 { font-size: 1.3rem; margin-bottom: 6px; }
.sponsors { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.sponsors li { background: #fff; border-radius: 20px; height: 110px; display: grid; place-items: center; padding: 14px; box-shadow: var(--shadow); }
.sponsors img { max-width: 100%; max-height: 80px; object-fit: contain; }
@media (max-width: 620px) { .partners li { grid-template-columns: 1fr; } }

/* squadre e rassegna stampa */
#squadre[hidden], #nav-squadre[hidden] { display: none; }
.team { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); margin-bottom: 20px; }
.team:not(:has(.team-ph)) { grid-template-columns: 1fr; }
.team-ph img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.team-b { padding: 28px; }
.team-b h3 { font-size: 1.7rem; }
.team-n { color: var(--red); font-weight: 800; margin: 2px 0 10px; }
.team-b h4 { margin: 18px 0 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.staff { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-weight: 600; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; }
.roster li { display: flex; align-items: center; gap: 10px; }
.roster .jn { min-width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.roster .pn { display: block; font-weight: 700; line-height: 1.15; }
.roster small { color: var(--ink-2); }
.press { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.press a { display: grid; gap: 6px; height: 100%; background: var(--paper); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.press a:hover b { color: var(--red); }
.press b { font-size: 1.12rem; line-height: 1.25; }
.press span:not(.src) { color: var(--ink-2); font-size: .95rem; }
.press .src { color: var(--red); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } .team-ph img { min-height: 0; max-height: 320px; } }
.site-head nav a { white-space: nowrap; }
@media (max-width: 1240px) { .site-head nav { gap: 2px; } .site-head nav a { padding-left: 9px; padding-right: 9px; font-size: .92rem; } }
.teams-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.team.ph-only { grid-template-columns: 1fr; margin: 0; }
.team.ph-only .team-ph img { min-height: 0; max-height: 360px; }
.team.ph-only .team-b { padding: 18px 22px 22px; }
.team.ph-only .team-b h3 { font-size: 1.35rem; }
@media (max-width: 1240px) and (min-width: 901px) { .site-head nav a:not(.btn-nav) { padding: 10px 7px; } }

/* hero su telefono: foto ingrandita sui giocatori in alto, testo sotto su fondo rosso */
@media (max-width: 700px) {
  .hero { display: block; min-height: 0; background: linear-gradient(160deg, var(--red-hi), var(--red-2) 70%, var(--red-3)); }
  .hero-photo { position: relative; inset: auto; height: 300px; z-index: 0; }
  .hero-photo .slide.default { background-size: 220% auto; background-position: 50% 55%; }
  .hero-photo .slide { background-position: 50% 25%; }
  .hero-dots { right: 16px; top: 270px; bottom: auto; }
  .hero-cap { top: 14px; left: 14px; }
  .hero::before { inset: 0 0 auto 0; height: 300px; z-index: 1; background: linear-gradient(180deg, rgba(125,16,23,0) 70%, rgba(168,22,30,.9) 100%); }
  .hero::after { top: 150px; }
  .hero-in { padding: 6px 0 96px; position: relative; z-index: 2; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero p { margin-top: 14px; }
}

/* gioco */
.game-wrap { padding-top: 34px; padding-bottom: 40px; display: grid; gap: 22px; max-width: 760px; }
.game-card { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: 22px; }
.g-panel[hidden] { display: none; }
.g-panel h2 { font-size: 1.9rem; margin-bottom: 6px; }
#g-form { display: flex; gap: 10px; margin: 16px 0 6px; flex-wrap: wrap; }
#g-nick { flex: 1 1 200px; min-height: 54px; border: 2px solid var(--line); border-radius: 16px; padding: 0 18px; font: inherit; font-size: 1.15rem; font-weight: 700; background: var(--bg); color: var(--ink); }
#g-nick:focus { outline: 3px solid var(--gold); border-color: var(--red); }
.g-err { color: var(--red); font-weight: 700; min-height: 1.4em; margin: 6px 0 0; }
.g-how { margin: 14px 0 0; padding-left: 22px; color: var(--ink-2); display: grid; gap: 4px; }
.g-hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; margin-bottom: 10px; }
.g-hud #h-score { font-size: 1.8rem; color: var(--red); }
#g-cv { width: 100%; height: auto; display: block; border-radius: 20px; touch-action: manipulation; cursor: pointer; background: #8cc8ff; max-height: 74svh; object-fit: contain; }
.g-msg { text-align: center; font-weight: 800; margin: 10px 0 0; min-height: 1.5em; }
.g-big { font-size: 1.4rem; margin: 4px 0; } .g-big b { font-size: 3.4rem; color: var(--red); letter-spacing: -.04em; }
.g-tabs { display: inline-flex; gap: 4px; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.g-tabs button { border: 0; background: none; font: inherit; font-weight: 800; padding: 8px 18px; border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.g-tabs button[aria-pressed="true"] { background: var(--red); color: #fff; }
.g-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.g-top li { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--bg); }
.g-top li.me { outline: 3px solid var(--gold); }
.g-top li.empty { display: block; text-align: center; color: var(--ink-2); }
.g-top .pos { font-weight: 800; color: var(--red); } .g-top .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.g-top li:nth-child(-n+3) .pos { font-size: 1.2rem; }
.playing .hero-mini { display: none; }
.playing .game-wrap { padding-top: 14px; }
#g-cv { width: auto; max-width: 100%; max-height: max(360px, calc(100svh - 270px)); margin: 0 auto; }
.game-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(150deg, var(--navy-2, #2f4358), var(--navy)); color: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.game-teaser h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 8px; max-width: 18ch; color: #fff; }
.game-teaser p { margin: 0; max-width: 46ch; opacity: .9; }
@media (min-width: 901px) and (max-width: 1440px) { .site-head nav { gap: 18px; } .site-head nav a:not(.btn-nav) { font-size: .93rem; padding: 10px 0; } .head-in .brand .logo { max-width: 170px; } }
@media (min-width: 861px) and (max-width: 1180px) { .site-head nav a[href="#partner"], .site-head nav a[href="#stampa"], .site-head nav a[href="installa.html"], .site-head nav a[href="#contatti"] { display: none; } }

/* social */
.soc svg, .soc-i svg, .soc-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.util-links .soc { display: inline-flex; align-items: center; gap: 6px; }
.util-links .soc span { display: none; }
@media (min-width: 1000px) { .util-links .soc span { display: inline; } }
.foot-soc { display: flex; gap: 10px; }
.soc-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.soc-i span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.soc-i:hover { background: var(--red); }
.soc-pill { display: inline-flex; align-items: center; gap: 8px; }
.delfino-logo { display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 1.4rem; color: #1b5e8a; letter-spacing: -.02em; }
a.lg { text-decoration: none; }
.partners h3 a { text-decoration: none; color: inherit; border-bottom: 2px solid var(--red); }

/* partita a schermo intero */
body.playing { overflow: hidden; }
#g-play:not([hidden]) { position: fixed; inset: 0; z-index: 2000; background: #0d1722; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
#g-play .g-hud, #g-play .g-msg, #g-play .g-stage { width: min(100%, 560px); margin-left: auto; margin-right: auto; }
#g-play .g-hud { color: #fff; padding: 10px 14px 6px; margin-bottom: 0; }
#g-play .g-hud #h-score { color: #f5b800; }
.g-quit { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.g-stage { position: relative; flex: 1; min-height: 0; }
#g-play #g-cv { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; margin: 0; }
#g-play .g-msg { color: #fff; padding: 8px 14px 14px; margin: 0 auto; min-height: 2.2em; }

.lang-sel { appearance: none; -webkit-appearance: none; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 800; font-size: .85rem; border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; }

/* Contest e account del gioco */
.g-contest { background: linear-gradient(135deg, #fff7e0, #fff); color: #1b2a3a; border: 2px solid var(--gold, #f5b800); border-radius: 20px; padding: 16px 18px; margin-bottom: 14px; }
.g-contest .note { color: #566678; }
.g-contest h3 { margin: 0 0 6px; font-size: 1.15rem; }
.g-contest p { margin: 6px 0; }
.actions.tight { margin-top: 12px; }
.small { font-size: .88rem; }
.g-or { margin: 12px 0 8px; font-weight: 700; color: var(--ink-2); }
.g-flash { background: #e7f6ec; color: #17612d; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700; }
.g-flash.bad { background: #fde8e8; color: #9b1c1c; }
.g-form2 label { display: grid; gap: 4px; margin: 12px 0 0; font-weight: 700; }
.g-form2 input[type=text], .g-form2 input[type=email], .g-form2 input[type=password], .g-form2 input[type=date], #pp-pw { font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.g-form2 small { font-weight: 400; color: var(--ink-2); }
.g-form2 .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.g-form2 .chk input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.g-del { margin-top: 20px; } .g-del summary { cursor: pointer; font-weight: 700; color: #9b1c1c; } .g-del input { margin: 8px 0; }
.g-cta { font-weight: 800; } .linklike { background: none; border: 0; font: inherit; font-weight: 800; color: var(--red); text-decoration: underline; cursor: pointer; padding: 0; }
.legal h2 { font-size: 1.25rem; margin: 26px 0 6px; } .legal ul { padding-left: 22px; }
.g-tabs button { padding: 8px 14px; }

.g-warn { background: #fde8e8; color: #9b1c1c; border-left: 5px solid #d62832; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.g-warn a { color: #9b1c1c; font-weight: 800; }
.g-warn-t { color: #c0202b; font-weight: 800; }

.g-flash { color: #17612d; } .g-flash.bad { color: #9b1c1c; }
@media (prefers-color-scheme: dark) {
  .g-contest { background: linear-gradient(135deg, #2e2810, #1f2a1f 120%); color: #eef2f5; }
  .g-contest .note { color: #c9d3dc; }
  .g-contest a { color: #ffd24a; }
  .g-flash { background: #153524; color: #b6f0c8; }
  .g-flash.bad { background: #3d1519; color: #ffc4c8; }
  .g-warn { background: #3d1519; color: #ffc4c8; border-left-color: #ff6b73; }
  .g-warn a { color: #ffdadc; }
  .g-warn-t { color: #ff9aa1; }
  .g-del summary { color: #ff9aa1; }
  .linklike { color: #ff8a90; }
  .g-form2 a, .g-cta a { color: #ff8a90; }
}
.g-form2 [hidden], .g-panel [hidden] { display: none !important; }

/* Gioco dentro l'app: niente parti del sito */
body.in-app .util, body.in-app .site-head, body.in-app .hero-mini, body.in-app .site-foot, body.in-app nav.tabs:not(.app-tabs), body.in-app .skip { display: none !important; }
body.in-app #gc-out, body.in-app #gc-exit { display: none !important; }
body.in-app .game-wrap { padding-top: 12px; }
.game-wrap { grid-template-columns: minmax(0, 1fr); } .game-card { min-width: 0; max-width: 100%; }
#g-nick { min-width: 0; width: 100%; box-sizing: border-box; flex-basis: 100%; }

.app-tabs { display: none !important; }
body.in-app .app-tabs { display: flex !important; position: fixed; left: 12px; right: 12px; margin: 0 auto; max-width: 560px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 6px; gap: 2px; background: color-mix(in srgb, var(--paper) 92%, transparent); border-radius: 24px; box-shadow: var(--shadow), 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.in-app .app-tabs a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 18px; text-decoration: none; font-size: .72rem; font-weight: 700; color: var(--ink-2); }
body.in-app .app-tabs a[aria-current="page"] { color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); }
body.in-app .app-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.in-app { padding-bottom: 92px; }
body.in-app.playing .app-tabs { display: none !important; }
body.in-app.playing { padding-bottom: 0; }

/* Reparto giochi: scelta del gioco */
.g-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.g-pick button { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px 6px; border: 2px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.g-pick button b { font-size: .92rem; line-height: 1.15; }
.g-pick button small { color: var(--ink-2); font-size: .74rem; line-height: 1.2; }
.g-pick .gp-ic { font-size: 1.7rem; line-height: 1; }
.g-pick button[aria-pressed="true"] { border-color: var(--red); background: color-mix(in srgb, var(--red) 9%, var(--paper)); box-shadow: 0 6px 18px color-mix(in srgb, var(--red) 22%, transparent); }
.g-who { font-size: 1.15rem; margin: 6px 0 4px; }
.g-top-title { font-size: 1.3rem; margin: 0 0 10px; }
#g-gtitle { margin-top: 4px; }
.g-tabs [hidden] { display: none; }

/* Schiva e segna a schermo intero (come il calcio piazzato) */
#r-play:not([hidden]) { position: fixed; inset: 0; z-index: 2000; background: #0d1722; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
#r-play .g-hud, #r-play .g-msg, #r-play .g-stage { width: min(100%, 560px); margin-left: auto; margin-right: auto; }
#r-play .g-hud { color: #fff; padding: 10px 14px 6px; margin-bottom: 0; }
#r-play .g-hud #r-score { color: #f5b800; font-size: 1.8rem; }
#r-play #r-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
#r-play .g-msg { color: #fff; padding: 8px 14px 14px; margin: 0 auto; min-height: 2.2em; }
#k-play:not([hidden]) { position: fixed; inset: 0; z-index: 2000; background: #0d1722; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
#k-play .g-hud, #k-play .g-msg, #k-play .g-stage { width: min(100%, 560px); margin-left: auto; margin-right: auto; }
#k-play .g-hud { color: #fff; padding: 10px 14px 6px; margin-bottom: 0; position: relative; z-index: 2; }
#k-play .g-hud #k-score { color: #f5b800; font-size: 1.8rem; }
#k-play .g-hud #k-lives { color: #ef3f48; font-size: 1.4rem; letter-spacing: 2px; }
#k-play #k-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
#k-play .g-msg { color: #fff; padding: 8px 14px 14px; margin: auto auto 0; min-height: 2.2em; position: relative; z-index: 2; pointer-events: none; }
#s-play:not([hidden]) { position: fixed; inset: 0; z-index: 2000; background: #0d1722; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
#s-play .g-hud, #s-play .g-msg, #s-play .g-stage { width: min(100%, 560px); margin-left: auto; margin-right: auto; }
#s-play .g-hud { color: #fff; padding: 10px 14px 6px; margin-bottom: 0; position: relative; z-index: 2; }
#s-play .g-hud #s-score { color: #f5b800; font-size: 1.8rem; }
#s-play .g-hud #s-lives { color: #ef3f48; font-size: 1.4rem; letter-spacing: 2px; }
#s-play #s-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
#s-play .g-msg { color: #fff; padding: 8px 14px 14px; margin: auto auto 0; min-height: 2.2em; position: relative; z-index: 2; pointer-events: none; }
#g-cv { touch-action: none; }

/* Quiz del regolamento a scalata: grafica chiara con i colori del Rugby Rende */
.q-stage { --qe: #cfc6bb; --qf: #fff; --qt: var(--ink); --qm: var(--ink-2); --qs: #f1ece5; --qsoft: rgba(27,42,58,.06);
  border-radius: 22px; padding: 14px; color: var(--qt); display: grid; gap: 12px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fdeeee 0, var(--paper) 170px); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .q-stage { --qe: #3b4a5a; --qf: #202c39; --qs: #131c26; --qsoft: rgba(255,255,255,.07); background: linear-gradient(180deg, #2b1a20 0, var(--paper) 170px); } }
.q-stage[hidden] { display: none; }
.q-led { width: 100%; height: auto; border-radius: 12px; display: block; background: #0b1220; }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; }
.q-nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.q-pill { border: 2px solid var(--red); background: transparent; color: var(--red); font: inherit; font-weight: 800; font-size: .85rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.q-pill[aria-expanded="true"] { background: var(--red); color: #fff; }
.q-x { border: 0; background: var(--qsoft); color: var(--qt); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: .95rem; }
.q-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.q-col { display: grid; gap: 12px; min-width: 0; }
.q-lifes { display: flex; justify-content: center; gap: 12px; }
.q-life { width: 56px; height: 40px; border-radius: 999px; border: 2px solid var(--red); background: var(--qf); color: var(--red); display: grid; place-items: center; cursor: pointer; position: relative; font: inherit; padding: 0; }
.q-life b { font-size: .8rem; letter-spacing: -.02em; }
.q-life svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.q-life:not([disabled]):hover { background: var(--red); color: #fff; }
.q-life[disabled] { opacity: .35; cursor: default; }
.q-life[disabled]::after { content: ""; position: absolute; inset: 3px 10px; background: linear-gradient(to top right, transparent 46%, var(--red) 46%, var(--red) 54%, transparent 54%); }
.q-prize { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.q-prize span { color: var(--qm); font-weight: 700; }
.q-prize b { font-size: 1.6rem; color: var(--red); letter-spacing: -.02em; }
.q-time { position: relative; height: 16px; background: var(--qs); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.q-time i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #3fae5a; border-radius: 999px; transition: width .2s linear, background .3s; }
.q-time span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: .7rem; color: #1b2a3a; text-shadow: 0 0 3px rgba(255,255,255,.9); }
/* esagoni: bordo sottile, riempimento chiaro */
.q-qhex, .q-opt { --cut: 22px; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%); background: var(--qe); padding: 2px; }
.q-qhex .q-in, .q-opt .in { clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%); background: var(--qf); display: grid; align-items: center; }
.q-qhex { --cut: 26px; background: var(--red); }
.q-qhex .q-in { padding: 18px 38px; min-height: 92px; text-align: center; }
.q-q { font-size: clamp(1.02rem, 4vw, 1.35rem); line-height: 1.28; margin: 0; color: var(--qt); overflow-wrap: anywhere; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opt { border: 0; font: inherit; color: var(--qt); cursor: pointer; text-align: left; min-height: 62px; }
.q-opt .in { padding: 10px 24px 10px 30px; min-height: 58px; grid-template-columns: auto 1fr; gap: 8px; font-weight: 700; font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.q-opt .k { color: var(--red); font-weight: 800; }
.q-opt:not([disabled]):hover { background: var(--red); }
.q-opt.sel { background: var(--gold); } .q-opt.sel .in { background: #fff3c4; color: #2e2300; } .q-opt.sel .k { color: #7a5600; }
.q-opt.blink .in { animation: qblink .22s steps(2) 4; }
@keyframes qblink { 50% { background: var(--gold); color: #2e2300; } }
.q-opt.ok { background: #1f9d55; } .q-opt.ok .in { background: #d6f5e1; color: #0f4a28; } .q-opt.ok .k { color: #0f4a28; }
.q-opt.ko { background: var(--red); } .q-opt.ko .in { background: #fde0e2; color: #7d1017; } .q-opt.ko .k { color: #7d1017; }
@media (prefers-color-scheme: dark) { .q-opt.sel .in { background: #4a3c10; color: #fff0b3; } .q-opt.sel .k { color: var(--gold); } .q-opt.ok .in { background: #173d27; color: #bff0d1; } .q-opt.ok .k { color: #bff0d1; } .q-opt.ko .in { background: #45181d; color: #ffc9cd; } .q-opt.ko .k { color: #ffc9cd; } }
.q-opt.gone { visibility: hidden; }
.q-opt[disabled] { cursor: default; }
.q-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.q-link { background: none; border: 0; color: var(--qm); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 0; margin-left: auto; }
.q-ask, .q-fb, .q-help { border-radius: 16px; padding: 12px 16px; background: var(--qs); border: 1px solid var(--line); display: grid; gap: 8px; }
.q-ask p, .q-fb p, .q-help p { margin: 0; }
.q-fb-t { font-weight: 800; font-size: 1.12rem; } .q-fb-t.ok { color: #1a7f45; } .q-fb-t.ko { color: var(--red-2); }
@media (prefers-color-scheme: dark) { .q-fb-t.ok { color: #6ee59a; } .q-fb-t.ko { color: #ff8a90; } }
.q-fb-w { color: var(--qm); }
.q-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; height: 90px; text-align: center; font-weight: 800; font-size: .8rem; }
.q-bars div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; justify-items: center; gap: 2px; }
.q-bars i { display: block; width: 100%; background: linear-gradient(var(--red-hi), var(--red)); border-radius: 6px 6px 0 0; align-self: end; }
.q-spons { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--qm); font-size: .8rem; min-height: 40px; }
.q-spons img { max-height: 30px; max-width: 120px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
/* scala dei punti */
.q-ladder { list-style: none; margin: 0; padding: 0; display: none; gap: 3px; align-content: start; }
.q-stage.show-ladder .q-ladder { display: grid; }
.q-ladder li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 5px 12px; border-radius: 8px; font-weight: 800; font-size: .85rem; color: var(--qm); background: var(--qs); }
.q-ladder li b { text-align: right; color: inherit; }
.q-ladder li.safe { color: var(--red); background: #fdeaea; }
@media (prefers-color-scheme: dark) { .q-ladder li.safe { background: #34202a; color: #ff8a90; } }
.q-ladder li.done { color: #1a7f45; opacity: .8; }
.q-ladder li.now { background: var(--red); color: #fff; box-shadow: 0 6px 14px -6px rgba(214,40,50,.7); }
@media (min-width: 760px) {
  .q-main { grid-template-columns: minmax(0, 1fr) 190px; align-items: start; }
  .q-ladder { display: grid; } .q-pill { display: none; }
}
@media (max-width: 460px) { .q-opts { grid-template-columns: 1fr; } .q-qhex .q-in { padding: 14px 30px; } }
@media (max-width: 420px) { .g-pick button small { display: none; } }

/* ---- Sala giochi: elenco dei giochi, poi la scheda del gioco scelto ---- */
.hero-slim { padding: 34px 0 38px; }
.hero-slim h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.hero-slim p { margin-top: 8px; font-size: 1rem; }
.g-lobby-t { font-size: 1.15rem; margin: 0 0 12px; letter-spacing: -.01em; }
.g-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.g-pick button { padding: 18px 10px 16px; border-radius: 22px; gap: 4px; background: linear-gradient(160deg, #1b2438, #0f1626); color: #fff; border: 2px solid #2b3a58; box-shadow: 0 6px 0 #070b14, 0 10px 22px rgba(0,0,0,.25); transition: transform .12s, box-shadow .12s; }
.g-pick button:active { transform: translateY(4px); box-shadow: 0 2px 0 #070b14; }
.g-pick button:hover { border-color: var(--red); }
.g-pick button small { color: #aab8d0; }
.g-pick .gp-ic { font-size: 2.6rem; filter: drop-shadow(0 0 10px rgba(245,184,0,.45)); }
.g-pick button b { font-size: 1rem; }
.g-back { background: none; border: 0; padding: 0 0 8px; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.g-gtitle { font-size: 1.4rem !important; margin: 2px 0 2px !important; }
.g-gsub { margin: 0 0 8px; font-size: .92rem; }
#g-form { margin: 8px 0 4px; gap: 8px; }
#g-form input { min-width: 0; flex: 1 1 100%; }
.g-nicknote { margin: 4px 0 8px; font-size: .76rem; line-height: 1.35; color: var(--ink-2); }
.g-howd { margin: 0 0 10px; font-size: .88rem; }
.g-howd summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.g-howd .g-how { margin-top: 6px; font-size: .86rem; }
.g-contest { padding: 12px 14px; margin: 8px 0 0; border-radius: 16px; }
.g-contest h3 { font-size: 1rem; }
.g-contest p { margin: 4px 0; font-size: .86rem; }
.g-contest .small { font-size: .74rem; }

/* Passa la palla */
.pp-stage { text-align: center; }
.pp-msg { font-weight: 800; font-size: 1.15rem; margin: 14px 0 8px; min-height: 1.5em; }
.pp-dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; min-height: 12px; }
.pp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pp-dots i.on { background: var(--red); }
.pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 460px; margin: 0 auto; }
.pp-pad { aspect-ratio: 1; border: 0; border-radius: 26px; background: linear-gradient(160deg, #e0343e, #b81f29); color: #fff; font: inherit; display: grid; align-content: center; justify-items: center; gap: 2px; cursor: pointer; box-shadow: 0 6px 0 #7e1219; transition: transform .1s, box-shadow .1s, filter .1s; padding: 4px; }
.pp-pad b { font-size: 2.1rem; line-height: 1; }
.pp-pad small { font-size: .62rem; line-height: 1.1; opacity: .92; font-weight: 700; }
.pp-pad:disabled { opacity: 1; cursor: default; }
.pp-grid.wait .pp-pad { filter: saturate(.7) brightness(.92); }
.pp-pad.on { background: linear-gradient(160deg, #ffd24a, #f5a800); color: #3b2a00; transform: translateY(4px) scale(1.04); box-shadow: 0 2px 0 #a87400, 0 0 28px rgba(255,200,40,.8); filter: none !important; }
.pp-pad.ok { background: linear-gradient(160deg, #38c46a, #1f9d4d); box-shadow: 0 2px 0 #12662f, 0 0 24px rgba(56,196,106,.8); transform: translateY(4px); filter: none !important; }
.pp-pad.bad { background: linear-gradient(160deg, #555, #333); animation: ppShake .35s; filter: none !important; }
@keyframes ppShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pp-hint { color: var(--ink-2); font-size: .8rem; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .pp-pad, .g-pick button { transition: none; animation: none; } }

/* pagina di una squadra */
.crumb { margin: 0 0 8px; font-weight: 700; } .crumb a { color: inherit; text-decoration: none; opacity: .9; } .crumb a:hover { text-decoration: underline; }
.rosa { padding-top: 28px; padding-bottom: 40px; }
.rosa-ph { margin: 0 0 24px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.rosa-ph img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.rosa h2.rosa-h { font-size: 1.35rem; margin: 26px 0 12px; letter-spacing: 0; } .rosa-n { color: var(--red); }
.rosa-staff { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; }
.rosa-staff li b { display: block; } .rosa-staff small { color: var(--ink-2); font-weight: 600; }
.team-b .btn { margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1; min-height: 52px; padding: .2em 26px 0; }
@media (max-width: 760px) { .team-b .btn { display: flex; width: 100%; } }

.cap-b { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--gold, #f0b400); color: #2e2300; font: 800 .7rem/1.5 system-ui, sans-serif; font-style: normal; vertical-align: middle; }

/* testo di presentazione della squadra */
.rb { display: grid; gap: 18px; margin-bottom: 8px; }
.rb-sec { background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); padding: 26px 28px; }
.rb-sec h2 { font-size: 1.6rem; margin: 0 0 10px; }
.rb-lead { font-size: 1.2rem; color: var(--red); margin: 0 0 10px; }
.rb-sec p { margin: 0 0 10px; max-width: 70ch; }
.rb-list { margin: 8px 0 6px; padding-left: 1.2em; display: grid; gap: 8px; max-width: 70ch; }
.rb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 8px 0; }
.rb-card { background: color-mix(in srgb, var(--red) 7%, var(--paper)); border-radius: 18px; padding: 16px 18px; margin: 0; max-width: none; }
.rb-call { background: var(--red); color: #fff; border-radius: 18px; padding: 14px 18px; margin: 12px 0; }
.rb-call p { margin: 4px 0; max-width: none; } .rb-sec .rb-call a { color: #fff; }
.rb-sec a { color: var(--red); font-weight: 700; } @media (max-width: 560px) { .rb-sec { padding: 20px 18px; } }

/* rosa divisa in avanti e trequarti */
.rosa-sub { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px; }
.sq { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sq-c { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; }
.sq-n { flex: none; min-width: 46px; height: 46px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; font: 800 1.2rem/1 var(--display, inherit); }
.sq-t { display: grid; gap: 2px; min-width: 0; } .sq-name { font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; } .sq-t small { color: var(--ink-2); font-weight: 600; } .sq-t .cap-b { justify-self: start; margin-left: 0; }

/* Schema dei due percorsi */
.pc { margin: 14px 0 10px; display: grid; justify-items: center; max-width: 640px; }
.pc-root { display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--red) 8%, var(--paper)); border: 2px solid var(--red); border-radius: 999px; padding: 8px 22px 8px 10px; font-size: 1.05rem; }
.pc-root img { border-radius: 50%; display: block; }
.pc-lines { width: 50%; height: 34px; } .pc-lines svg { width: 100%; height: 100%; display: block; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.pc-b { border-radius: 20px; padding: 16px 14px 18px; text-align: center; color: #fff; display: grid; justify-items: center; gap: 4px; }
.pc-b.nc { background: linear-gradient(160deg, var(--navy-2), var(--navy)); }
.pc-b.c { background: linear-gradient(160deg, var(--red-hi), var(--red-2)); }
.pc-ic { width: 60px; height: 60px; margin-bottom: 4px; } .pc-ic svg { width: 100%; height: 100%; display: block; }
.rb-sec .pc-b h3 { font-size: 1.15rem; margin: 0; color: #fff; }
.rb-sec .pc-b p { margin: 0; max-width: none; }
.pc-s { font-weight: 800; font-size: .92rem; } .pc-d { font-size: .86rem; opacity: .92; line-height: 1.35; }
@media (max-width: 480px) { .pc-row { gap: 10px; } .pc-b { padding: 14px 10px 16px; } .pc-lines { width: 56%; } }

/* Riconoscimenti */
.tro { margin: 26px 0 8px; }
.tro-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tro-c { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: 14px 16px; color: inherit; text-decoration: none; height: 100%; }
a.tro-c:hover { transform: translateY(-2px); }
.tro-ic { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; } .tro-ic img, .tro-ic svg { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.tro-t { display: grid; gap: 2px; } .tro-t b { font-size: 1.05rem; } .tro-y { color: var(--red); font-weight: 800; font-size: .85rem; } .tro-t small { color: var(--ink-2); line-height: 1.35; }
.team-tr { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.team-tri { width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.5rem; } .team-tri img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* Occhio per mostrare la password */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { padding-right: 52px !important; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-2, #667); cursor: pointer; border-radius: 12px; }
.pw-eye[aria-pressed="true"] { color: var(--red, #c2252b); }

/* Carosello foto nelle news */
.gallery { position: relative; margin: 0 auto 40px; max-width: 920px; border-radius: 26px; overflow: hidden; background: #14161c; box-shadow: var(--shadow); }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: -3px; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; height: min(68vh, 560px); display: flex; align-items: center; justify-content: center; }
.gallery .slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; object-fit: contain; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 38px 18px 14px; color: #fff; font-weight: 700; font-size: .98rem; background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; }
.g-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #14161c; font-size: 1.9rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.g-btn.prev { left: 12px; } .g-btn.next { right: 12px; }
.g-count { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; font-size: .85rem; }
.g-dots { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.g-dots button { pointer-events: auto; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.g-dots button.on { background: #fff; transform: scale(1.3); }
@media (max-width: 560px) { .gallery { border-radius: 20px; } .gallery .slide { height: 62vh; } .g-btn { width: 40px; height: 40px; } }
.feature-posters.one { grid-template-columns: 1fr; }
.feature-posters.one a:nth-child(2) { margin-top: 0; }

/* Archivio news e articoli */
.prose .art-h { font: 800 1.5rem/1.2 var(--display); letter-spacing: -.03em; margin: 34px 0 12px; }
.prose .lead-in { font-size: 1.25rem; }
.arch-f { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.arch-f .chip { padding: 9px 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.arch-f .chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.arch { display: grid; gap: 18px; }
.arch-m { font: 800 1.1rem/1 var(--display); text-transform: capitalize; letter-spacing: -.01em; color: var(--ink-2); margin: 18px 0 0; }
.arch-card { display: grid; grid-template-columns: 280px 1fr; background: var(--paper); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .2s ease; }
.arch-card:hover { transform: translateY(-3px); }
.arch-card img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; display: block; }
.arch-b { padding: 22px 26px; }
.arch-b h3 { font-size: 1.45rem; letter-spacing: -.03em; margin: 4px 0 8px; }
.arch-b p { margin: 0 0 8px; max-width: none; }
.arch-b .when { font-weight: 800; color: var(--red); margin: 6px 0 0; }
.arch-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--gold); color: #1a1a1a; font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.arch-go { font-weight: 800; color: var(--red); }
@media (max-width: 640px) { .arch-card { grid-template-columns: 1fr; } .arch-card img { height: 200px; } }
.news-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.news-more .arch-card { grid-template-columns: 1fr; }
.news-more .arch-card img { height: 160px; min-height: 0; }
.news-all { margin-top: 22px; text-align: center; }

/* Video a tutto schermo in testa alla home */
.reel { position: sticky; top: 77px; z-index: 0; isolation: isolate; height: calc(100svh - 115px); min-height: 420px; max-height: 1000px; background: #12060a; overflow: hidden; display: flex; justify-content: center; }
.reel-bg { position: absolute; inset: -40px; z-index: -2; background: url("../video/rugby-rende-reel.jpg") center / cover no-repeat; filter: blur(36px) brightness(.55) saturate(1.2); }
.reel-v { display: block; height: 100%; width: auto; max-width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.reel-btn { position: absolute; z-index: 3; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: rgba(0,0,0,.45); color: #fff; font-size: .85rem; font-weight: 800; cursor: pointer; }
.reel-down { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 7px 16px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
@media (max-width: 760px) { .reel-v { width: 100%; } .reel-bg { display: none; } }
.reel.wide { height: min(calc(100svh - 115px), 56.25vw); min-height: 320px; max-height: none; }
.reel.wide .reel-bg { display: block; background-image: url("../video/rugby-rende-reel-wide.jpg"); }
.reel-v.wide { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: transparent; }
/* Il video resta fermo e le foto della home gli scorrono sopra */
.after-reel { position: relative; z-index: 1; background: var(--bg); box-shadow: 0 -18px 40px rgba(0,0,0,.28); }
@media (max-width: 860px) { .reel { top: 65px; height: calc(100svh - 65px); } }
@media (prefers-reduced-motion: reduce) { .reel { position: relative; top: 0; } }
