/* ═══ Allenamenti ═══ */
.trn { display: flex; flex-direction: column; gap: 22px; }
.trn-h2 { font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-top: 8px; }

/* Trova la categoria */
.trn-finder { padding: 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(197, 0, 15, .28), rgba(255, 255, 255, .03)); border: 1px solid rgba(197, 0, 15, .45); display: flex; flex-direction: column; gap: 12px; }
.trn-finder-label { font-size: 20px; font-weight: 900; color: #fff; text-wrap: balance; }
.trn-finder-input { width: 100%; max-width: 340px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .35); color: #fff; font-size: 18px; font-weight: 700; }
.trn-finder-input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.trn-finder-input::placeholder { color: #94a3b8; font-weight: 500; }
.trn-finder-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); border-left: 5px solid var(--cat); color: #fff; text-decoration: none; }
.trn-finder-cat { font-size: 20px; font-weight: 900; }
.trn-finder-cat small { font-size: 14px; color: #cbd5e1; font-weight: 700; margin-left: 6px; }
.trn-finder-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.trn-finder-none { color: #cbd5e1; }
.trn-finder-none a { color: var(--yellow); font-weight: 800; }
.trn-finder-result { display: flex; flex-direction: column; gap: 10px; }

/* Schede delle categorie */
.trn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.trn-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-top: 4px solid var(--cat); color: #fff; text-decoration: none; transition: background .15s; }
.trn-card:hover { background: rgba(255, 255, 255, .07); }
.trn-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.trn-card-name { font-size: 18px; font-weight: 900; }
.trn-card-years { font-size: 13px; font-weight: 800; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.trn-card-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.trn-card-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: #cbd5e1; padding: 3px 8px; border-radius: 8px; }
.trn-card-list li b { color: #fff; font-variant-numeric: tabular-nums; }
.trn-card-list li.is-today { background: rgba(245, 192, 0, .14); color: #fff; }
.trn-card-go { font-size: 13px; font-weight: 800; color: var(--yellow); }

/* Settimana */
.trn-week { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); gap: 10px; }
.trn-day { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.trn-day.is-today { border-color: var(--yellow); background: rgba(245, 192, 0, .07); }
.trn-day-name { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.trn-today { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 999px; background: var(--yellow); color: #111; letter-spacing: .05em; vertical-align: middle; }
.trn-slot { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border-left: 4px solid var(--cat); color: #fff; text-decoration: none; }
.trn-slot:hover { background: rgba(0, 0, 0, .5); }
.trn-slot-name { font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.trn-slot-time { font-size: 13px; color: #cbd5e1; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .trn-week { grid-template-columns: minmax(0, 1fr); } }

/* Pagina della categoria */
.trn-hero { border-bottom: 4px solid var(--cat); }
.trn-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 18px; align-items: start; }
@media (max-width: 860px) { .trn-show { grid-template-columns: minmax(0, 1fr); } .trn-side { order: -1; } }
.trn-main, .trn-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.trn-box { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 10px; }
.trn-box-title { font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.trn-next { color: #e2e8f0; }
.trn-next b { color: #fff; }
.trn-rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.trn-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); }
.trn-rows li.is-today { outline: 2px solid var(--yellow); }
.trn-row-day { font-size: 17px; font-weight: 900; color: #fff; }
.trn-row-time { font-size: 20px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.trn-row-note { flex-basis: 100%; font-size: 13px; color: #cbd5e1; }
.trn-link { font-size: 14px; font-weight: 800; color: var(--yellow); text-decoration: none; }
.trn-link:hover { text-decoration: underline; }
.trn-btn { display: block; width: 100%; text-align: center; padding: 13px 14px; border-radius: 12px; font-size: 15px; font-weight: 900; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); text-decoration: none; cursor: pointer; }
.trn-btn:hover { background: rgba(255, 255, 255, .16); }
.trn-btn--wa { background: #1fa855; border-color: #1fa855; font-size: 16px; }
.trn-btn--wa:hover { background: #1b944b; }
.trn-btn--small { padding: 10px 8px; font-size: 13px; }
.trn-btn--ghost { background: transparent; }
.trn-cal { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.trn-cal-title { font-size: 14px; font-weight: 800; color: #fff; }
.trn-cal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trn-cal-note { font-size: 12px; color: #94a3b8; }
.trn-preview summary { cursor: pointer; font-size: 13px; color: #cbd5e1; font-weight: 700; }
.trn-preview pre { margin-top: 8px; padding: 12px; border-radius: 10px; background: #0b141a; color: #e9edef; font-family: inherit; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.trn-others { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
