.breadcrumb-chevron {
  --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  gap: .5rem;
}
.breadcrumb-chevron .breadcrumb-item {
  display: flex;
  gap: inherit;
  align-items: center;
  padding-left: 0;
  line-height: 1;
}
.breadcrumb-chevron .breadcrumb-item::before {
  gap: inherit;
  float: none;
  width: 1rem;
  height: 1rem;
}

.breadcrumb-custom .breadcrumb-item {
  position: relative;
  flex-grow: 1;
  padding: .75rem 3rem;
}
.breadcrumb-custom .breadcrumb-item::before {
  display: none;
}
.breadcrumb-custom .breadcrumb-item::after {
  position: absolute;
  top: 50%;
  right: -25px;
  z-index: 1;
  display: inline-block;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  content: "";
  background-color: var(--bs-tertiary-bg);
  border-top-right-radius: .5rem;
  box-shadow: 1px -1px var(--bs-border-color);
  transform: scale(.707) rotate(45deg);
}
.breadcrumb-custom .breadcrumb-item:first-child {
  padding-left: 1.5rem;
}
.breadcrumb-custom .breadcrumb-item:last-child {
  padding-right: 1.5rem;
}
.breadcrumb-custom .breadcrumb-item:last-child::after {
  display: none;
}


/* Feature */
.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: .75rem;
}

.icon-square {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
}

.text-shadow-1 { text-shadow: 0 .125rem .25rem rgba(0, 0, 0, .25); }
.text-shadow-2 { text-shadow: 0 .25rem .5rem rgba(0, 0, 0, .25); }
.text-shadow-3 { text-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25); }

.card-cover {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.feature-icon-small {
  width: 3rem;
  height: 3rem;
}

















/* Card Contenitore */
#rosario-app {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}
.rosario-card {
    border-radius: 20px;
    background-color: #f8f9fa;
    position: relative;

}

/* Sfondo con visibilità aumentata al 25% + gradiente di contrasto */
/*.rosario-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35; 
    filter: blur(1px);
    pointer-events: none;
    z-index: 0;
}


.decina-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 360px;
}

.decina-bar .bead {
    font-size: 1.1rem;
    color: #ced4da;
    transition: all 0.25s ease;
}

.decina-bar .bead.completed {
    color: #198754; 
}

.decina-bar .bead.active {
    color: #ffc107; 
    transform: scale(1.35);
    filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.9));
}*/

/* Tipografia Preghiera */
.preghiera-container p {
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Scrollbar personalizzata per il Vangelo lungo */
.vangelo-box::-webkit-scrollbar {
    width: 4px;
}
.vangelo-box::-webkit-scrollbar-thumb {
    background: #198754;
    border-radius: 4px;
}

/* Border separatore solo su Desktop */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
}
















/* Card di Configurazione */
.style-rosario-card {
    border-radius: 20px;
    background-color: #ffffff;
    position: relative;
}

/* Stile Input e Select */
.style-rosario-card .form-select,
.style-rosario-card .input-group-text {
    border-color: rgba(0, 0, 0, 0.1);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.style-rosario-card .form-select:focus {
    border-color: #097969;
    box-shadow: 0 0 0 0.25rem rgba(9, 121, 105, 0.15);
}

/* Hover e Animazione sul Pulsante Principale */
.style-rosario-card button[type="submit"] {
    background-color: #097969;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.style-rosario-card button[type="submit"]:hover {
    background-color: #044a40;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(9, 121, 105, 0.3) !important;
}


/*
.rosario-card {
    border-radius: 20px;
    background-color: #f8f9fa;
    position: relative;
}

.rosario-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position:top;
    opacity: 0.42;
    pointer-events: none;
    z-index: 0;
}*/


.rosario-card {
    border-radius: 20px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}
/*
.rosario-bg-overlay {
    position: absolute;
    inset: 0;

    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;

    opacity: 0.42;
    pointer-events: none;
    z-index: 0;
}*/

.rosario-bg-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;         
  background-repeat: no-repeat;
  background-position: center top; 
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

/* Grani e Palline */
.decina-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.decina-bar .bead {
    font-size: 1.1rem;
    color: #dee2e6;
    transition: all 0.25s ease;
}

.decina-bar .bead.completed {
    color: #198754; /* Verde quando superata */
}

.decina-bar .bead.active {
    color: #ffc107; /* Oro quando attiva */
    transform: scale(1.4);
    filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.9));
}

.preghiera-container {
    font-family: 'Georgia', 'Times New Roman', serif;
}

.badge-rosario {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}


/* Effetto fluido al passaggio del mouse sui pulsanti attinenti */
.btn-group .btn-light {
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-group .btn-light:hover {
    background-color: #f1f5f9;
    color: #0d6efd !important;
}

/* Contenitore del Button Group */
.nav-section-group {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    padding: 4px;
}

/* Stato Normale (Pulsante Inattivo) */
.nav-section-group .btn-nav-item {
    background-color: transparent;
    color: #6c757d;
    border: none;
    transition: all 0.2s ease-in-out;
}

/* Hover sui pulsanti inattivi */
.nav-section-group .btn-nav-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Stato ATTIVO (impostato da PHP) */
.nav-section-group .btn-nav-item.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.nav-section-group .btn-nav-item.active i {
    color: #ffffff !important;
}




/* Contenitore Responsive con Scroll Orizzontale */
.nav-section-wrapper {
    width: 100%;
    overflow-x: auto; /* Permette lo scroll orizzontale su schermi piccoli */
    white-space: nowrap; /* Impedisce ai pulsanti di andare a capo male */
    -webkit-overflow-scrolling: touch; /* Scroll fluido su iOS */
    padding-bottom: 5px; /* Spazio per l'ombra senza tagliarla */
}

/* Nasconde la barra di scroll antiestetica */
.nav-section-wrapper::-webkit-scrollbar {
    display: none;
}
.nav-section-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Stile Pulsantiera */
.nav-section-group {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    padding: 4px;
    display: inline-flex; /* Mantiene i pulsanti affiancati */
}

.nav-section-group .btn-nav-item {
    background-color: transparent;
    color: #6c757d;
    border: none;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.nav-section-group .btn-nav-item.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.nav-section-group .btn-nav-item.active i {
    color: #ffffff !important;
}



/* Pagina principale Scrutatio */
#scrutatio-page {
    /* Sostituisci con il percorso effettivo dell'immagine */
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.84),
            rgba(255, 255, 255, 0.84)
        ),
        url("/img/sfondi/g1.jpg");

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Copertine delle Bibbie */
#scrutatio-page .bibbia-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#scrutatio-page .bibbia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

#scrutatio-page .bibbia-cover {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
}

/* Le bandiere nei pulsanti delle lingue */
#scrutatio-page #bibbie-languages .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 42px;
}

#scrutatio-page #bibbie-languages img {
    display: block;
    object-fit: contain;
}

/* Fallback per dispositivi mobili */
@media (max-width: 767.98px) {
    #scrutatio-page {
        background-attachment: scroll;
    }

    #scrutatio-page .bibbia-cover {
        height: 170px;
    }
}


.libro-titolo {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.capitoli {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.capitoli a {
    min-width: 2.5rem;
    text-align: center;
    padding: .3rem .5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    color: var(--bs-secondary-color);
    text-decoration: none;
    background: var(--bs-body-bg);
}

.capitoli a:hover {
    background: var(--bs-dark);
}