/* Portale societa' sportive: personalizzazioni sopra al template Flare Admin (css/style.css). */

.portale-login { background: #0a58a9; min-height: 100vh; }
.portale-login .auto-form-wrapper { border-radius: 6px; }
.portale-login-testata { background-color: #0766c6 !important; color: #fff; margin-bottom: 1rem; }
.portale-login-testata img { max-height: 48px; }
.portale-login .footer-text, .portale-login .footer-text a { color: #fff; }

/* Icone SVG in linea: prendono il colore del testo e non dipendono da font esterni. */
.icona-sv { vertical-align: -0.2em; flex-shrink: 0; }

/* Banda azzurra */
.navbar.horizontal-layout .nav-top { background: linear-gradient(90deg, #0a58a9 0%, #0b6bc9 100%); min-height: 64px; }
.portale-testata { gap: 1.25rem; padding-top: .5rem; padding-bottom: .5rem; }
.portale-logo img { max-height: 40px; width: auto; display: block; }
.portale-chi { color: #fff; line-height: 1.25; min-width: 0; }
.portale-chi-nome { display: block; font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portale-chi-dettaglio { display: block; font-size: .8rem; opacity: .92; }
.portale-tipo { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2); cursor: help; }
.portale-chi-squadra { opacity: .9; }
.portale-strumenti { display: flex; align-items: center; gap: .9rem; color: #fff; }
.portale-credito { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255, 255, 255, .18); border-radius: 18px; padding: .3rem .8rem; font-weight: 600; white-space: nowrap; cursor: help; }
.portale-icona-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; text-decoration: none; }
.portale-icona-link:hover, .portale-icona-link:focus { background: rgba(255, 255, 255, .22); color: #fff; text-decoration: none; }

/* Menu */
.navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item > .nav-link { display: flex; align-items: center; gap: .45rem; }
.navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.active > .nav-link,
.navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item > .nav-link:hover { color: #0a58a9; }
.navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.active > .nav-link { font-weight: 600; }

/* Quadrati dei portali */
.portale-quadrati { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.portale-quadrato { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-height: 130px; padding: 1rem .75rem; border-radius: 8px; color: #fff; text-align: center; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .12s ease, box-shadow .12s ease; }
.portale-quadrato:hover, .portale-quadrato:focus { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .22); }
.portale-quadrato-icona { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.portale-quadrato-titolo { font-weight: 600; line-height: 1.2; }
.colore-blu { background: linear-gradient(135deg, #0a58a9, #1a7be0); }
.colore-verde { background: linear-gradient(135deg, #1f8f4e, #36b872); }
.colore-arancio { background: linear-gradient(135deg, #e07b0a, #f5a623); }
.colore-viola { background: linear-gradient(135deg, #7b3fa0, #a463c8); }
.colore-rosso { background: linear-gradient(135deg, #c0392b, #e5604f); }
.colore-azzurro { background: linear-gradient(135deg, #0e8aa6, #2bb5d4); }

/* Card colorate */
.portale-card { border-top: 4px solid #0a58a9; }
.portale-card-verde { border-top-color: #1f8f4e; }
.portale-card-blu { border-top-color: #0a58a9; }
.portale-card .card-title { color: #0a58a9; }
.portale-card-verde .card-title { color: #1f8f4e; }

/* Lista gare */
.portale-gare th { border-top: 0; color: #6c757d; font-weight: 600; font-size: .8rem; text-transform: uppercase; }
.portale-gare td { vertical-align: middle; }
.portale-azioni { white-space: nowrap; }
.portale-azioni .btn { margin-left: .25rem; }

@media (max-width: 767px) {
    .content-wrapper { padding: 1rem 16px; }
    .portale-testata { flex-wrap: wrap; gap: .5rem 1rem; }
    .portale-strumenti { margin-left: auto; }
    .portale-quadrati { grid-template-columns: repeat(2, 1fr); }
    .portale-azioni { white-space: normal; }
}
