.container {
    width: 100% !important;
    max-width: 95%;

}

@media (max-width: 576px) {
    table.table-mobile {
        border: 0;
    }

    table.table-mobile thead {
        display: none;
        /* su mobile nascondiamo la riga di intestazione */
    }

    table.table-mobile tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        padding: 0.5rem 0.75rem;
    }

    table.table-mobile tbody td {
        display: block;
        width: 100%;
        border: none;
        padding: 0.25rem 0;
        text-align: left !important;
    }

    table.table-mobile tbody td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        display: inline-block;
        margin-right: 0.25rem;
    }
}

.list-view {
    max-width: 95%;
}


/* Colore primario personalizzato */
.btn-primary {
    color: #fff;
    /* testo bianco: contrasto ≈ 4.79:1 (AA) */
    background-color: #B2593A;
    /* base */
    border-color: #B2593A;
    font-weight: 600;
    border-radius: .6rem;
    /* look più “morbido” */
    padding: .55rem 1rem;
    /* area clic più ampia */
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
    transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
}

.btn-primary:hover {
    color: #fff;
    background-color: #984C30;
    /* +scuro per miglior hover e contrasto */
    border-color: #8F452B;
    transform: translateY(-1px);
    box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .12);
}

/* Focus ring ben visibile e non solo basato sul colore */
.btn-primary:focus,
.btn-primary.focus {
    color: #fff;
    background-color: #984C30;
    border-color: #8F452B;
    outline: none;
    /* rimuove l’outline di default */
    box-shadow:
        0 .35rem .9rem rgba(0, 0, 0, .12),
        0 0 0 .2rem rgba(178, 89, 58, .35);
    /* anello esterno */
}

/* :focus-visible nei browser che lo supportano (ancora più netto) */
.btn-primary:focus-visible {
    box-shadow:
        0 .35rem .9rem rgba(0, 0, 0, .12),
        0 0 0 .22rem #212529,
        /* bordo scuro ad alto contrasto */
        0 0 0 .38rem rgba(178, 89, 58, .35);
}

/* Stato active/pressed */
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #7F3F27;
    /* ancora più scuro */
    border-color: #763A23;
    box-shadow: inset 0 .15rem .3rem rgba(0, 0, 0, .15);
    transform: translateY(0);
}

/* Disabled */
.btn-primary.disabled,
.btn-primary:disabled {
    color: #fff;
    background-color: #B2593A;
    border-color: #B2593A;
    opacity: .65;
    /* mantiene contrasto, ma segnala lo stato */
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* Variante outline coordinata (opzionale) */
.btn-outline-primary {
    color: #B2593A;
    border-color: #B2593A;
    background: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #B2593A;
    border-color: #B2593A;
}

.badge-featured {
    color: #fff;
    background-color: #B2593A !important;
    border-color: #B2593A !important;
    font-size: 20px !important;
}

/* Rispetto preferenze di riduzione del movimento */
@media (prefers-reduced-motion: reduce) {

    .btn-primary,
    .btn-outline-primary {
        transition: none;
        transform: none !important;
    }
}


/*SCHEDA DI ARTISTA IN EVIDENZA  */

.artist-card {
    border: 0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    overflow: visible;
    /* importante per non tagliare l'avatar/ombra */
}

.artist-cover {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, rgba(33, 37, 41, .9), rgba(108, 117, 125, .6));
    background-size: cover;
    background-position: center;
}

.badge-featured {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: #0d6efd;
    color: #fff;
    padding: .35rem .6rem;
    border-radius: .5rem;
    font-weight: 600;
    font-size: .8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.artist-avatar {
    position: absolute;
    left: 50%;
    bottom: -56px;
    transform: translateX(-50%);
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    background: #eee;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.artist-body {
    padding: 80px 1.25rem 1.25rem;
}

/* spazio per l’avatar */
.artist-name {
    margin-bottom: .25rem;
}

.artist-sub {
    color: #6c757d;
    font-size: .95rem;
}

.badge-chip {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-weight: 500;
    margin: .125rem .25rem .125rem 0;
    display: inline-block;
}

.bio {
    color: #495057;
}

.bio.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.toggle-bio {
    font-weight: 600;
    font-size: .9rem;
}

.stats {
    gap: 1rem;
    color: #6c757d;
}

.stat-pill {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    padding: .35rem .6rem;
    font-weight: 600;
    font-size: .9rem;
}

.card-actions .btn {
    margin-right: .5rem;
}

@media (max-width:576px) {
    .artist-cover {
        height: 150px;
    }

    .artist-avatar {
        width: 96px;
        height: 96px;
        bottom: -48px;
    }

    .artist-body {
        padding-top: 72px;
    }
}

/*FINE SCHEDA DI ARTISTA IN EVIDENZA  */

/* INDEX DEGLI ARTISTI  */
.avatar-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.avatar-oval {
    width: 240px;
    height: 180px;
    border-radius: .6rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ritaglio centrale */
    object-position: center;
    display: block;
}

/* mobile */
@media (max-width: 576px) {
    .avatar-oval {
        width: 200px;
        height: 150px;
    }
}

/* FINE  INDEX DEGLI ARTISTI  */




.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #B2593A;
    border-color: #B2593A;
}

.page-link {
    position: relative;
    display: block;
    padding: .5rem .75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #B2593A;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.page-link:hover {
    z-index: 2;
    color: #B2593A;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.artista-dettaglio {
    display: grid;
    grid-template-columns: 1fr 280px;

    grid-column-gap: 1rem;
    align-items: start;

}

@media (max-width: 991.98px) {
    .artista-dettaglio {
        grid-template-columns: 1fr;

    }

    .artista-dettaglio .foto-col {
        order: -1;

        margin-bottom: 1rem;
        text-align: center;
    }
}

.data {
    font-size: 0.8em !important;
}

/* FOOTER */

/* Immagine sopra il footer */
.footer-top img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 280px;
    /* regola altezza se vuoi */
}

/* Footer brand con il tuo colore */
.footer-brand {
    background-color: #B2593A;
    /* colore richiesto */
    color: #fff;
}

/* Testo/link accessibili su sfondo colorato */
.footer-brand a {
    color: #fff;
    text-decoration: underline;
}

.footer-brand a:hover,
.footer-brand a:focus {
    color: #fff;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Focus visibile per tastiera */
.footer-brand a:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* Titolo sempre bianco */
.footer-brand h2 {
    color: #fff;
}

/* Se hai vecchie classi pull-* (BS3), neutralizzale */
.footer .pull-left,
.footer .pull-right {
    float: none !important;
}

.footer-top {
    background-color: #B2593A !important;
}

.footer-bottom {
    background-color: #B2593A !important;
    color: #fff !important;
}

.hero-artist {
    position: relative;
    background-color: #5C5C5C !important;
    border-radius: 1rem;
    min-height: 100px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.hero-artist .inner {
    width: 100%;
    padding: 1.25rem 1.25rem 1.5rem;
    color: #fff;
}

.hero-name {
    margin: 0;
}

.hero-meta {
    opacity: .9;
}


.header-cover {
    aspect-ratio: 16 / 9;
    /* altezza fissa */
    width: 100%;
    /* tutta la larghezza */
    background-size: cover;
    /* riempie il box e ritaglia se necessario */
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.section-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.section-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.section-accent {
    border-top: 4px solid #B2593A;
}

a.section-toggle {
    display: block;
    width: 100%;
    text-align: left;
}

.table caption {
    caption-side: top;
    font-weight: 700;
    color: #212529;
}

.badge-role {
    background: #f1e3de;
    color: #7f3f27;
    border: 1px solid #e6cfc6;
    border-radius: 999px;
    padding: .2rem .55rem;
    margin-right: .25rem;
}

.btn-primary {
    color: #fff;
    background-color: #B2593A;
    border-color: #B2593A;
    font-weight: 600;
    border-radius: .6rem;
}

.btn-primary:hover {
    background-color: #984C30;
    border-color: #8F452B;
}

.btn-outline-secondary {
    border-radius: .6rem;
}

@media (prefers-reduced-motion: reduce) {

    .btn,
    .collapse {
        transition: none !important;
    }
}









/* VIEW   ARTISTA */

/* Layout a due colonne, mobile-first */
.artista-dettaglio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .artista-dettaglio {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }
}

/* Pannello DetailView pulito con accento brand */
.dv-panel {
    border: 1px solid #eee;
    border-top: 4px solid #B2593A;
    /* brand */
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.dv-clean .detail-view {
    margin-bottom: 0;
}

.dv-clean .detail-view th {
    background: #fff;
    color: #6c757d;
    font-weight: 600;
    border: none;
    border-bottom: 1px solid #eee;
    padding: .65rem .9rem;
}

.dv-clean .detail-view td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: .65rem .9rem;
}

.dv-clean .kv-panel-footer {
    background: #fff;
    border-top: 1px solid #eee !important;
    color: #6c757d;
}

/* Chip accessibili per Sì/No */
.chip {
    display: inline-block;
    border-radius: 999px;
    padding: .2rem .6rem;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1;
    border: 1px solid transparent;
}

.chip-yes {
    background-color: #B2593A;
    /* brand */
    color: #fff;
    border-color: #B2593A;
}

.chip-no {
    background-color: #f1f3f5;
    color: #212529;
    border-color: #e9ecef;
}

/* Immagine autore */
.foto-col {
    position: sticky;
    top: 90px;
    /* sotto la navbar fixed */
}

.img-artist {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 1rem;
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    background: #f1f3f5;
    object-fit: cover;
}

/* Stampa: nascondi tab e bottoni 
@media print {
    #tabs-artista-blocco-<?=(int)$model->id ?> {
        display: none !important;
    }

    #tabs-artista-blocco-due-<?=(int)$model->id ?> {
        display: block !important;
    }

    .btn {
        display: none !important;
    }

    .foto-col {
        position: static;
    }
}
    */

/** BREADCRUMB **/
/* link dentro al breadcrumb (qualsiasi tag: ol o ul) */
.breadcrumb li>a {
    color: #B2593A;
    text-decoration: none;
    font-weight: 700;
}

/* elemento attivo (di solito NON è un <a>) */
.breadcrumb .breadcrumb-item.active,
.breadcrumb li.active {
    color: #B2593A;
    font-weight: 700;
}

/* hover opzionale */
.breadcrumb li>a:hover {
    text-decoration: underline;
    /* o 'none' se non vuoi la sottolineatura */
}

.breadcrumb {
    margin-top: 20px;
}