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 rgb(20, 40, 80);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.ritaglio {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px; /* opzionale, per angoli arrotondati */
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

/*.popup-container {
    position: relative;
    display: inline-block;
}
*/
/*.popup {
    display: none;
    position: absolute;
    left: 110px;
    z-index: 10;
    border: 1px solid #ccc;
    background: white;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
*/
.popup-container {
    position: relative;
    display: inline-block;
}

.popup {
    display: none;
    position: absolute;
    z-index: 10;
    border: 1px solid #ccc;
    background-color: white;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    /*max-width: 300px;*/
    /*transition: all 0.3s ease;*/
}

    .popup img {
        max-width: 500px;
        max-height: 500px;
        object-fit: contain;
    }

/* Mostra popup al hover */
.popup-container:hover .popup {
    display: block;
}

.expander-hidden {
    max-height: 210px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.expander-visible {
    max-height: 5000px;
    transition: max-height 0.5s ease;
}

.galleria {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnail2 {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    transition: transform 0.2s ease-in-out;
}

    .thumbnail2:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

.thumbnail-clickable {
    cursor: pointer;
    display: inline-block;
}

/*.btn {
    background-color: rgb((77, 132, 153) !important;  tuo colore RGB 
    border-color: rgb((77, 132, 153) !important;
    color: white !important;  testo leggibile 
}

.btn-success {
    background-color: rgb((77, 132, 153) !important;
    border-color: rgb((77, 132, 153) !important;
    color: white !important;  testo leggibile 
}

    .btn-success:hover,
    .btn-success:focus {
        background-color: rgb(50, 90, 125) !important;
        border-color: rgb(20, 40, 80) !important;
        color: white !important;
        text-decoration: none !important;
    }
*/
.btn-success {
    --bs-btn-bg: rgb(77, 132, 153) !important;
    --bs-btn-border-color: rgb(77, 132, 153) !important;
    --bs-btn-hover-bg: rgb(50, 90, 125) !important;
    --bs-btn-hover-border-color: rgb(20, 40, 80) !important;
    --bs-btn-active-bg: rgb(20, 40, 80);
    --bs-btn-active-border-color: rgb(20, 40, 80);
    --bs-btn-color: white;
    --bs-btn-hover-color: white;
    background-color: rgb(77, 132, 153) !important;
    border-color: rgb(77, 132, 153) !important;
}

h1 {
    font-size: 1.5rem !important;
}
h2 {
    font-size: 1.25rem !important;
}
h3 {
    font-size: 1.25rem !important;
}

.mobile-text {
    font-size: 1.25em;
}

    .mobile-text h1,
    .mobile-text h2,
    .mobile-text h3 {
        font-size: 1.75rem !important;
        font-weight: 700;
    }

    .mobile-text small {
        font-size: 1em;
    }