/* Pagina del torneo (/tornei/…): testata con il logo del torneo e la nostra prossima partita, schede per squadra */
.tn-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tn) 45%, transparent), transparent 60%), linear-gradient(160deg, #120d18, #0b0910); }
.tn-hero::after { content: ""; position: absolute; inset: auto -10% -40% 40%; height: 80%; background: radial-gradient(closest-side, rgba(197, 0, 15, .35), transparent); pointer-events: none; }
.tn-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 36px; }
@media (max-width: 860px) { .tn-hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 24px; } }
.tn-brand { display: flex; gap: 18px; align-items: center; min-width: 0; }
.tn-intro, .tn-next, .tn-brand > div { min-width: 0; }
.tn-crest { width: 112px; height: 112px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); animation: tn-float 6s ease-in-out infinite; }
@media (max-width: 520px) { .tn-crest { width: 78px; height: 78px; } }
@keyframes tn-float { 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .tn-crest { animation: none; } }
.tn-eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.tn-title { font-size: clamp(30px, 6vw, 54px); font-weight: 900; line-height: 1; color: #fff; text-wrap: balance; margin-top: 6px; }
.tn-title span { color: color-mix(in srgb, var(--tn) 70%, #fff); }
.tn-sub { margin-top: 8px; color: #cbd5e1; font-weight: 600; }
.tn-desc { margin-top: 16px; color: #cbd5e1; max-width: 60ch; line-height: 1.55; }
.tn-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tn-stats div { padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; }
.tn-stats b { font-size: 24px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tn-stats span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.tn-next-label { font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }

.tn-body { background: #0e0b12; }
.tn-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.tn-tab { position: relative; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #cbd5e1; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: background .2s, border-color .2s, transform .2s; }
.tn-tab b { font-size: 18px; font-weight: 900; color: #fff; }
.tn-tab span { font-size: 12px; font-weight: 700; color: #94a3b8; }
.tn-tab:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .25); }
.tn-tab.is-active { background: linear-gradient(135deg, #c5000f, #7a0510); border-color: var(--yellow); box-shadow: 0 10px 30px rgba(197, 0, 15, .3); }
.tn-tab.is-active span { color: #fde68a; }
.tn-live-dot { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 99px; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: tn-pulse 1.6s infinite; }
@keyframes tn-pulse { 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.tn-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .tn-cols { grid-template-columns: minmax(0, 1fr); } }
.tn-col { min-width: 0; }
.tn-h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.tn-h2 small { font-size: 13px; font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.tn-h3 { font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin: 20px 0 8px; }
.tn-day { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; margin: 16px 0 8px; }
.tn-day:first-of-type { margin-top: 4px; }
.tn-match { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 34px; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: 16px; background: linear-gradient(160deg, #1d1820, #151019); border: 1px solid rgba(255, 255, 255, .07); border-left: 4px solid rgba(255, 255, 255, .15); color: #e2e8f0; text-decoration: none; transition: transform .15s, border-color .15s; }
.tn-match:hover { transform: translateX(2px); border-color: rgba(255, 255, 255, .2); }
.tn-match.is-W { border-left-color: #22c55e; } .tn-match.is-D { border-left-color: #94a3b8; } .tn-match.is-L { border-left-color: #ef4444; }
.tn-match.is-live { border-color: rgba(239, 68, 68, .6); border-left-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.tn-time { font-size: 17px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.tn-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tn-team { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-team.is-ours { color: var(--yellow); font-weight: 900; }
.tn-logo { width: 22px; height: 22px; border-radius: 99px; overflow: hidden; flex-shrink: 0; display: inline-block; }
.tn-score { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }
.tn-score b { font-size: 17px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 22px; }
.tn-score small { font-size: 11px; font-weight: 700; color: #94a3b8; max-width: 110px; }
.tn-flag { justify-self: end; min-width: 30px; padding: 4px 0; border-radius: 8px; text-align: center; font-size: 11px; font-weight: 900; color: #111; }
.tn-match.is-W .tn-flag { background: #22c55e; } .tn-match.is-D .tn-flag { background: #94a3b8; } .tn-match.is-L .tn-flag { background: #ef4444; color: #fff; }
.tn-match.is-live .tn-flag { background: #ef4444; color: #fff; animation: tn-blink 1.4s infinite; }
@keyframes tn-blink { 50% { opacity: .55; } }

.tn-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: #151019; }
.tn-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #e2e8f0; font-variant-numeric: tabular-nums; }
.tn-table th { padding: 10px 8px; font-size: 11px; font-weight: 900; letter-spacing: .06em; color: #94a3b8; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tn-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.tn-table th:nth-child(2), .tn-table .tn-tname { text-align: left; }
.tn-tname { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.tn-table tr.is-ours { background: rgba(245, 192, 0, .12); }
.tn-table tr.is-ours td { color: var(--yellow); font-weight: 900; }
.tn-table tr:last-child td { border-bottom: 0; }
.tn-others { margin-top: 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); padding: 4px 14px; }
.tn-others summary { cursor: pointer; padding: 10px 0; font-weight: 800; color: #cbd5e1; font-size: 14px; }
.tn-other { display: grid; grid-template-columns: 78px minmax(0, 1fr) 40px; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 13px; color: #cbd5e1; }
.tn-other span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-other b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.tn-other.is-ours { color: var(--yellow); }
.tn-other-group { margin-top: 10px; padding-top: 8px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.tn-finals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tn-finals li { padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 13px; color: #cbd5e1; }
.tn-finals li.is-final { background: linear-gradient(90deg, rgba(245, 192, 0, .2), rgba(245, 192, 0, .05)); color: #fde68a; font-weight: 800; }
.tn-note { margin-top: 8px; font-size: 12px; color: #64748b; }
.tn-fnote { margin: -2px 0 10px; font-size: 13px; font-weight: 700; color: #fde68a; }
.tn-fvenue { margin-bottom: 12px; border-radius: 16px; overflow: hidden; background: #151019; border: 1px solid rgba(255, 255, 255, .08); }
.tn-fvenue-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tn-fvenue-head b { color: #fff; font-size: 14px; }
.tn-fvenue-head span { font-size: 12px; font-weight: 700; color: #94a3b8; }
.tn-frow { display: grid; grid-template-columns: 52px minmax(0, 110px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid rgba(255, 255, 255, .04); font-size: 13px; color: #cbd5e1; }
.tn-frow:first-of-type { border-top: 0; }
.tn-ftime { font-weight: 900; color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.tn-fstage { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
.tn-fmatch { min-width: 0; }
.tn-frow mark { background: rgba(245, 192, 0, .22); color: #fde68a; padding: 0 4px; border-radius: 4px; font-weight: 800; }
.tn-frow.is-ours { box-shadow: inset 3px 0 0 var(--yellow); }
.tn-frow.is-final { background: linear-gradient(90deg, rgba(245, 192, 0, .2), rgba(245, 192, 0, .04)); }
.tn-frow.is-final .tn-fstage, .tn-frow.is-final .tn-ftime { color: #fde68a; }
.tn-venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tn-venue { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, #1d1820, #151019); border: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.tn-venue span { font-size: 13px; font-weight: 800; color: var(--yellow); }

/* Fascia in home nei giorni del torneo */
.tn-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 20px; text-decoration: none; color: #fff;
  background: linear-gradient(110deg, color-mix(in srgb, var(--tn) 80%, #000) 0%, #7a0510 70%, #c5000f 100%); border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.tn-banner img { width: 56px; height: 56px; object-fit: contain; }
.tn-banner b { display: block; font-size: 18px; font-weight: 900; }
.tn-banner small { display: block; font-size: 13px; color: #e2e8f0; font-weight: 600; }
.tn-banner em { font-style: normal; font-weight: 900; color: var(--yellow); white-space: nowrap; }
@media (max-width: 520px) { .tn-banner { grid-template-columns: auto minmax(0, 1fr); } .tn-banner em { grid-column: 1 / -1; } }
