/********** Template CSS **********/

:root {
    --primary-green: #4C5561;
    --primary-yellow: #FFC107;
    --primary-blue: #081C2C;
    --text-dark: #333;
    --text-light: #666;
    --background-light: #888E96;
    --white: #fff;
}

.hover-trigger {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 2px dotted #007bff;
}

.hover-box {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    text-align: center;
}

.hover-box img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 8px;
}

.hover-box h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.hover-trigger:hover .hover-box {
    display: block;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    background: #ffd738;
    border-radius: 50%;
    display: grid;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    background: inherit;
    clip-path: polygon(0 0, 50% 40%, 100% 0, 60% 50%, 100% 100%, 50% 60%, 0 100%, 40% 50%);
    animation: l1 1s infinite alternate;
    transform: rotate(var(--r, 0)) scale(1)
}

.loader::after {
    --r: 45deg;
}

@keyframes l1 {
    100% {
        transform: rotate(var(--r, 0)) scale(1.4)
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 4rem;
}

.logo-img {
    width: 200px;
    height: auto;
    border-radius: 5px;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.pt-6 {
    padding-top: 5rem;
}

.pb-6 {
    padding-bottom: 5rem;
}


/*Login*/
.login-container {
    max-width: 550px;
    /* Aumentato da 450px */
    margin: 0 auto;
    padding: 2rem;
}

.login-card {
    background: var(--background-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 3rem;
    /* Aumentato da 2rem */
}


.login-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    /* Aggiunto per aumentare la dimensione del titolo */
}

.login-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    /* Aggiunto per aumentare la dimensione del sottotitolo */
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white) !important;
    border-color: var(--primary-blue);
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--white) !important;

}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--white) !important;

}

.btn-primary:hover {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.btn-secondary:hover {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;

}



.btn-check:checked+.btn-primary,
.btn-check:active+.btn-primary,
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
    color: var(--white) !important;
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.btn-check:focus+.btn-primary,
.btn-primary:focus {
    color: var(--white) !important;
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 .25rem var(--primary-green);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

.btn-quad {
    width: 75px;
    height: 50px;
}

.btn-quad-x {
    width: 105px;
    height: 50px;
}

.btn-analisi {
    width: 40%;
    height: 66px;
    padding: 10px !important;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square,
.btn-quad,
.btn-quad-x {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}


.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.data-table2 {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table2 th,
.data-table2 td {
    padding: 0.5rem 0.2rem;
    text-align: center;
    border: 1px solid #eee;
}

.data-table2 th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 500;
    position: sticky;
    top: 0;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--primary-green);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/*** Header ***/
.carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    background: rgba(0, 0, 0, .4);
    padding: 3rem;
    padding-left: 11rem;
    z-index: 1;
}

.carousel .carousel-indicators {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 80px;
    flex-direction: column;
    margin: 0;
    margin-left: 3rem;
}

.back {
    background-image: url("../img/imgsfondo.jpg");
    background-repeat: no-repeat;
    background-size: contain;

}

.caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    background: rgba(0, 0, 0, .4);
    padding: 3rem;
    padding-left: 11rem;
    z-index: 1;
}

.carousel-item {
    height: 600px;
}

.carousel .carousel-indicators [data-bs-target] {
    width: 70px;
    height: 70px;
    text-indent: 0;
    margin: 5px 0;
    border: 2px solid #FFFFFF;
    overflow: hidden;
}

.carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .carousel .carousel-item {
        position: relative;
        min-height: 600px;
    }

    .carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 60px;
        height: 60px;
    }

    .carousel .carousel-caption {
        padding-left: 10rem;
    }
}

@media (max-width: 768px) {
    .carousel .carousel-item {
        min-height: 500px;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 50px;
        height: 50px;
    }

    .carousel .carousel-caption {
        padding-left: 9rem;
    }
}

@media (min-width: 1200px) {
    .carousel .carousel-item .display-1 {
        font-size: 4.8rem;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}


/* Stili specifici per il caricamento */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-blue);
    background-color: rgba(30, 95, 116, 0.05);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.file-upload-text {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.file-upload-button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.file-upload-button:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
}

.file-upload-input {
    display: none;
}

.file-list {
    margin-top: 2rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background-color: white;
}

.file-item-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--primary);
}

.file-item-details {
    flex: 1;
}

.file-item-name {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.file-item-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.file-item-actions {
    display: flex;
    gap: 0.5rem;
}

.file-item-progress {
    margin-top: 0.5rem;
    width: 100%;
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.file-item-progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 500px;
    height: 600px;
    top: -40px;
    left: 0;
    border: 5px solid var(--primary-blue);
    /* animation: animateUpDown 3s ease-in-out infinite; */
    z-index: -1;
}

@keyframes animateUpDown {
    0% {
        top: -25px;
    }

    50% {
        top: -45px;
    }

    100% {
        top: -25px;
    }
}


/*** Features ***/
.feature {
    background: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 1) 50%), url(../img/carousel-1.jpg) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.feature-icon {
    position: relative;
    transition: .5s;
}

.feature-item:hover .feature-icon {
    margin-left: 3rem;
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--bs-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.feature-item a:hover {
    color: var(--bs-primary) !important;
}

.feature-item a:hover::after {
    background: var(--bs-primary);
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}

.ombra {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}


/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: var(--primary-green);
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
    margin-top: -45px;
    padding-left: 45px;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item:hover a {
    padding-left: 45px !important;
}


/*** Appoinment ***/
.appoinment {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/imgsfondo1.jpg) left center no-repeat;
    background-size: cover;
}


.service .service-item .carousel {
    margin-top: -25px;
    padding-left: 45px;
}

/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team .team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    color: var(--primary-blue);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--primary-green);
}


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Appoinment ***/
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-3.jpg) left center no-repeat;
    background-size: cover;
}


/*** Footer ***/
.footer {
    background: #081C2C;
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 1rem;
    padding-right: var(--bs-gutter-x, 0.75rem);
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    font-size: 16px
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.8rem;
    padding-right: var(--bs-gutter-x, 0.75rem);

}


.copyright {
    background: #222222;
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--bs-primary);
}

.modal-body .risposta {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.modal-body .risposta:last-child {
    border-bottom: none;
}

.risposta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.risposta-header .autore {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1rem;
}

.risposta-contenuto {
    font-size: 1rem;
    padding-left: 0.5rem;
}

#risposte-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

#reply-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
}

#reply-form textarea {
    min-height: 150px;
}

#risposta-feedback {
    margin-top: 1rem;
}