﻿/**
 * Codice CSS custom del progetto 
 */

.badge-outline {
    color: black;
    outline: 1px solid var(--bs-info);
    background-color: transparent;
}

.btn {
    border-radius: 7px !important;
}

.btn-sm:has(.material-symbols),
.btn:has(.fas) {
    padding: 0.25rem 0.55rem 0.5rem 0.55rem !important;
}

.navbar-divider {
    margin: 10px;
    border: 1px solid lightgray;
}

.stat-card {
    border-radius: 0.4rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.stat-card:hover {
    transform: translateY(-0.2px);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 40px;
}

.stat-value {
    font-size: 24px;
    color: black;
    font-weight: bold;
}

.action-buttons {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    padding-top: calc(-1 * var(--bs-gutter-y));
    padding-right: calc(-0.5 * var(--bs-gutter-x));
    padding-left: calc(-0.5 * var(--bs-gutter-x));
}

.action-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.175) !important;
    border-radius: 0.4rem;
}

.action-container:hover {
    cursor: pointer;
}

.action-buttons .card:hover {
    background-color: rgba(197, 195, 195, 0.158);
}

.action-container>.action-button:first-child {
    padding-right: 0;
}

.action-container>.action-button:first-child .card {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    box-shadow: none;
}

.action-container>.action-button:not(:first-child, :last-child) {
    padding: 0;
}

.action-container>.action-button:not(:first-child, :last-child) .card {
    border-radius: 0;
    box-shadow: none;
}

.action-container>.action-button:last-child {
    padding-left: 0;
}

.action-container>.action-button:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.125);
}

.action-container>.action-button:last-child .card {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    box-shadow: none;
}

.action-container>div:first-child:last-child .card {
    border-radius: 0.4rem;
}

@media (max-width: 768px) {
    .action-container span {
        display: none;
    }

    .action-container .alingn-items-center>div:first-child {
        margin: 0;
    }
}

.sidebar .menu .list .ml-menu li.active a.toggled:not(.menu-toggle):before {
    content: "" !important;
    font-family: "Material Symbols";
    position: relative;
    font-size: 0;
    height: 0;
    top: 0;
    right: 0;
}

.sidebar .menu .list .ml-menu li.active a.toggled:not(.menu-toggle) {
    margin-left: 0;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #c30b82;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

.custom-marker-icon i {
    position: absolute;
    width: 22px;
    font-size: 22px;
    left: 0;
    right: 0;
    margin: 10px auto;
    text-align: center;
}

.nav-tabs {
    border-bottom: 0 !important;
}

.nav-tabs .nav-item {
    margin-bottom: 0 !important;
    top: 0 !important;
    left: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0.25rem !important;
}

.nav-tabs .nav-item:is(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.125) !important;
}

.nav-tabs .nav-item:has(.active) {
    background-color: rgba(197, 195, 195, 0.158) !important;
}

.nav-tabs .nav-link.active {
    border: none;
    background-color: transparent !important;
}

.nav-tabs .nav-item {
    background-color: #fff !important;
}

.flip-card {
    perspective: 1000px;
    height: 300px;
    margin-bottom: 20px;
    border-radius: 0.4rem;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.flip-card-front {
    background-color: inherit;
    color: #000;
    transform: rotateY(0deg);
}

.flip-card-back {
    background-color: inherit;
    color: #000;
    transform: rotateY(180deg);
}

.card-img-top {
    object-fit: fill;
    max-height: 315px;
    border-radius: 0.4rem;
}

.form-line i {
    margin-left: -30px;
    cursor: pointer;
}

.bg-gray {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-gray-rgb), var(--bs-bg-opacity)) !important;
}

.stat-card .text-muted {
    width: 100%;
    overflow-x: hidden;
}

.video-area {
    justify-content: center;
    vertical-align: middle;
}

.video-area video {
    width: 100%;
}

.snap-button {
    width: 90px;
}

.image_drop {
    display: none;
}

.image-container img {
    width: 100%;
}

.notification-counter {
    position: absolute;
    width: 1.3rem;
    height: 1.3rem;
    background-color: #f0ac4ea9;
    border: 1px solid #f0ad4e;
    border-radius: 50%;
    color: #000 !important;
    right: 10px;
    text-align: center;
}

.bg-oro {
    background-color: #ffd700 !important;
}

.bg-argento {
    background-color: #c0c0c0 !important;
}

.bg-platino {
    background-color: #e5e4e2 !important;
}

.bg-palladio {
    background-color: #8bb7c4 !important;
}

.bg-oro-da-investimento {
    background-color: #ffd700 !important;
}

.text-oro {
    color: #ffd700 !important;
}

.text-argento {
    color: #c0c0c0 !important;
}

.text-platino {
    color: #e5e4e2 !important;
}

.text-palladio {
    color: #8bb7c4 !important;
}

@media (min-width: 768px) {
    .badge {
        font-size: 80%
    }
}

.badge>a {
    color: inherit;
    font-weight: 600
}

.badge>a:hover {
    color: inherit;
    text-decoration: none
}

.badge-lg {
    padding: .5em .625em
}

.badge-subtle.badge-primary {
    color: #2e609c;
    background-color: #d6e2ef
}

.badge-subtle.badge-primary[href]:focus,
.badge-subtle.badge-primary[href]:hover {
    color: #2e609c;
    text-decoration: none;
    background-color: #cfddec
}

.badge-subtle.badge-secondary {
    color: #686f76;
    background-color: #fdfdfd
}

.badge-subtle.badge-secondary[href]:focus,
.badge-subtle.badge-secondary[href]:hover {
    color: #686f76;
    text-decoration: none;
    background-color: #f8f8f8
}

.badge-subtle.badge-success {
    color: #008974;
    background-color: #ccece8
}

.badge-subtle.badge-success[href]:focus,
.badge-subtle.badge-success[href]:hover {
    color: #008974;
    text-decoration: none;
    background-color: #c5e9e5
}

.badge-subtle.badge-info {
    color: #01678f;
    background-color: #cce4ee
}

.badge-subtle.badge-info[href]:focus,
.badge-subtle.badge-info[href]:hover {
    color: #01678f;
    text-decoration: none;
    background-color: #c4e0eb
}

.badge-subtle.badge-warning {
    color: #f6ba54;
    background-color: #fdf3e2
}

.badge-subtle.badge-warning[href]:focus,
.badge-subtle.badge-warning[href]:hover {
    color: #f6ba54;
    text-decoration: none;
    background-color: #fcefd8
}

.badge-subtle.badge-danger {
    color: #af5a98;
    background-color: #f1e1ed
}

.badge-subtle.badge-danger[href]:focus,
.badge-subtle.badge-danger[href]:hover {
    color: #af5a98;
    text-decoration: none;
    background-color: #eedae9
}

.badge-subtle.badge-light {
    color: #28313b;
    background-color: #fdfdfd
}

.badge-subtle.badge-light[href]:focus,
.badge-subtle.badge-light[href]:hover {
    color: #28313b;
    text-decoration: none;
    background-color: #f8f8f8
}

.badge-subtle.badge-dark {
    color: #323941;
    background-color: #d8dadc
}

.badge-subtle.badge-dark[href]:focus,
.badge-subtle.badge-dark[href]:hover {
    color: #323941;
    text-decoration: none;
    background-color: #d3d5d7
}

.input-group-text .badge {
    color: #32394199;
    font-size: .8rem;
    text-decoration: none;
}

.pulse {
    -webkit-animation: oi-pulse 2.5s ease infinite;
    animation: oi-pulse 2.5s ease infinite;
}

.badge-subtle.badge-red {
    color: #dc3545;
    background-color: #f8d7da
}

.badge-subtle.badge-red[href]:focus,
.badge-subtle.badge-red[href]:hover {
    color: #dc3545;
    text-decoration: none;
    background-color: #f5c2c7
}

.badge-subtle.badge-purple {
    color: #6f42c1;
    background-color: #e2d9f3
}

.badge-subtle.badge-purple[href]:focus,
.badge-subtle.badge-purple[href]:hover {
    color: #6f42c1;
    text-decoration: none;
    background-color: #d8cbed
}

.badge-subtle.badge-brown {
    color: #795548;
    background-color: #e7ddd9
}

.badge-subtle.badge-brown[href]:focus,
.badge-subtle.badge-brown[href]:hover {
    color: #795548;
    text-decoration: none;
    background-color: #ded1cc
}

.badge-subtle.badge-orange {
    color: #fd7e14;
    background-color: #ffe5d0
}

.badge-subtle.badge-orange[href]:focus,
.badge-subtle.badge-orange[href]:hover {
    color: #fd7e14;
    text-decoration: none;
    background-color: #ffe5d0
}

.warning-row {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
}

.nav-item:has(.nav-link[hidden]) {
    display: none !important;
}

.completed {
    background-color: rgba(44, 199, 44, 0.118) !important;
}

.pdf-card {
    background-color: #fff;
    border: 1px solid var(--show-section-border);
    border-radius: .5rem;
    overflow: hidden;
}

.pdf-card--unavailable {
    opacity: .6;
}

.pdf-card__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--show-section-border);
}

.pdf-card__icon {
    color: #dc3545;
    font-size: 1.2rem;
}

.pdf-card__title {
    font-weight: 600;
    font-size: .88rem;
}

.pdf-card__embed-wrap {
    background: #6c757d;
}

.pdf-card__embed {
    width: 100%;
    height: var(--pdf-embed-height);
    border: none;
    display: block;
}

.pdf-card__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fcfcfc;
    min-height: 120px;
}

.image-gallery-block {
    border: 1px solid var(--show-section-border);
    border-radius: .5rem;
    overflow: hidden;
}

.image-gallery-block__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--show-section-border);
}

.image-gallery-block__icon {
    color: #0d6efd;
    font-size: 1.1rem;
}

.image-gallery-block__title {
    font-weight: 600;
    font-size: .88rem;
}

.image-gallery-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .5rem;
    padding: .75rem;
}

.image-gallery-block__thumb-link {
    display: block;
    border-radius: .375rem;
    overflow: hidden;
}

.image-gallery-block__thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}

.image-gallery-block__thumb:hover {
    transform: scale(1.04);
}

.image-gallery-block__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fcfcfc;
}

.show-detail-row {
    display: flex;
    flex-direction: column;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--show-section-border);
}

.show-detail-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--show-label-color);
    margin-bottom: .2rem;
}

.show-detail-value {
    font-size: .95rem;
    color: var(--show-value-color);
    font-weight: 500;
}

.show-detail-icon {
    font-size: 1rem;
    color: var(--show-icon-color);
    margin-bottom: .15rem;
}

.show-section {
    background-color: #fff;
    border: 1px solid var(--show-section-border);
    border-radius: .5rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.show-section-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--show-section-border);
}

.show-section-title {
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #495057;
}

.show-section-icon {
    font-size: 1.1rem;
    color: var(--show-icon-color);
}

.video-gallery-block {
    border: 1px solid var(--show-section-border);
    border-radius: .5rem;
    overflow: hidden;
}

.video-gallery-block__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--show-section-border);
}

.video-gallery-block__icon {
    color: #6f42c1;
    font-size: 1.1rem;
}

.video-gallery-block__title {
    font-weight: 600;
    font-size: .88rem;
}

.video-gallery-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: .75rem;
    padding: .75rem;
    background: #1a1a1a;
}

.video-gallery-block__item {
    border-radius: .375rem;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
}

.video-gallery-block__player {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    background: #000;
}

.video-gallery-block__item-footer {
    display: flex;
    align-items: center;
    padding: .35rem .5rem;
    background: #2a2a2a;
    color: #aaa;
}

.video-gallery-block__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fcfcfc;
}