html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
}

.bodycontainer {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%)
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
    transition: all 0.3s ease;
    cursor: pointer;
}


.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: var(--bs-border-radius);
}
.card{
    border:none;
}

.title-header {
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-align : center;
}


.title-underline {
    width: 6rem;
    height: 0.25rem;
    background-color: white;
    margin: 0 auto;
    border-radius: 9999px;
}
.footer{
    background:white;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.breadcrumb-item {
    color: white;
    font-size: 1.4rem;
}
.breadcrumb {
    --bs-breadcrumb-divider: '>';
}

.breadcrumb-item a:hover {
        color: white !important;
        transition: color 0.3s ease;
}

.breadcrumb-item.active {
    color: white;
}
.breadcrumb-item+.breadcrumb-item::before{
    color:white;
}

.breadcrumb-url{
    color:white;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.structure-slide-img {
    max-height: 420px;
    object-fit: contain;
    background-color: #f8f9fa;
}

/* Frecce sempre visibili indipendentemente dallo sfondo */
#structureCarousel .carousel-control-prev,
#structureCarousel .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    opacity: 1;
}

#structureCarousel .carousel-control-prev {
    left: 8px;
}

#structureCarousel .carousel-control-next {
    right: 8px;
}

#structureCarousel .carousel-control-prev-icon,
#structureCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}