/********** Template CSS **********/

.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;
}

.pb-8 {
    padding-bottom: 8rem;
}

.orange-underline {
    width: 150px;
    height: 4px;
    background: orange;
    margin-bottom: 24px;
    border-radius: 2px;
}

/*** 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,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

.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: 70px;
    height: 70px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.plus-button {
  width: 50px;
  height: 50px;
  padding: 0;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.plus-button:hover {
  transform: scale(1.2);
}

/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--bs-dark);
    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(--bs-primary);
}

.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;
    }
}

/*** Header ***/
.carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items:   center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .7);
    padding: 3rem;
    padding-left: 1rem;
    z-index: 1;
}

.carousel .carousel-indicators {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 80px;
    flex-direction: column;
    margin: 0;
    margin-left: 3rem;
}

.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: 300px;
    }

    .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: 7rem;
    }
}

#carouselProgettazione .carousel-inner img {
  max-height: 420px;
  object-fit: contain;
  width: auto;
}

@media (max-width: 768px) {
  #carouselProgettazione .carousel-inner img {
    max-height: 250px;
    width: auto;
    object-fit: contain;    
    margin: 0 auto;
    display: block;
  }
}

#carouselAnimazione .carousel-inner img {
    max-height: 420px;      
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.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;
}


/*** About ***/

/* Timeline */

.timeline-nav {
    background: orange;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.timeline-nav:hover {
    opacity: 1;
}

.timeline-buttons {
  width: 100%;
}
.timeline-line {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 10px;
  background: orange;
  z-index: 0;
  border-radius: 2px;
}

.timeline-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 40px;
  height: 40px;
  border-right: 8px solid orange;
  border-bottom: 8px solid orange;
  background: transparent;
  border-radius: 2px;
}
.timeline-container {
        position: relative;
        overflow: hidden;
        min-height: 400px; /* adatta in base al tuo contenuto */
    }

    .timeline-section {
        position: absolute;
        width: 100%;
        top: 0;
        left: 100%;
        opacity: 0;
        transition: all 0.6s ease;
    }

    .timeline-section.active {
        left: 0;
        opacity: 1;
        z-index: 2;
    }

    .timeline-section.exit-left {
        left: -100%;
        opacity: 0;
        z-index: 1;
    }

.timeline-btn-group {
  width: 20%;
}
.timeline-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid orange;
  background: #fff;
  color: orange;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
  position: relative;
  transition: background-color 0.2s, color 0.2s;
}

.timeline-btn:hover {
  background: orange;
  color: #fff;
}

.timeline-btn.active {
    background-color: orange;
    color: white;
}

.timeline-year {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #333;
}



.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--bs-primary);
    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;
}


/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: rgb(190, 233, 255); 
    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(--bs-primary);
}

.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/carousel-2.jpg) left center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team-item img {
    width: 200px;
    height: 400px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.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(--bs-primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}


/*** 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;
}

/*** Products ***/
.projects .nav-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .09);
}

.projects-item .projects-content {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.projects .nav-item a.active {
    background: var(--bs-primary);
}

.projects .nav-item a span {
    color: var(--bs-dark);
}

.projects .nav-item a.active span {
    color: var(--bs-white);
}

.projects .nav-item a.active .projects-icon {
    background: var(--bs-dark) !important;
}

.projects .nav-item a.active .projects-icon span {
    color: var(--bs-primary);
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #222222;
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--bs-primary);
}

:root {
  --bs-primary: #38b6ff; /* sky blue */
}

.bg-primary {
  background-color: #38b6ff !important;
}
.text-primary {
  color: #38b6ff !important;
}
.border-primary {
  border-color: #38b6ff !important;
}
.btn-primary {
  background-color: #38b6ff !important;
  border-color: #38b6ff !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #1e90ff !important; /* darker sky blue on hover */
  border-color: #1e90ff !important;
  color: #fff !important;
}

.sidebar-custom {
  width: 220px;
  background-color: var(--bs-primary);
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  height: 100%;
  position: static; /* Optional, default value */
}

.sidebar-custom a {
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.sidebar-custom a:hover,
.sidebar-custom a.active {
  background-color: #1e90ff;
}

.main-content {
  margin-left: 220px;
  padding: 2rem;
  width: 100%;
  background-color: #f8f9fa;
  overflow-y: auto;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .sidebar-custom {
    position: relative;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-custom a {
    flex: 1 1 50%;
    text-align: center;
  }
  .main-content {
    margin-left: 0;
  }
}


/* Wheel Timeline */

    @layer demo {
    /* Hide radio buttons */
    input[type="radio"] {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }
    .cards-container {
        --base-rotation: 0deg;
        --full-circle: 360deg;
        --radius: 40vw;
        --duration: 200ms;

        --cards-container-size: calc(var(--radius) * 2);
        --cards-container-padding: 2rem;

        --border-color: transparent;

        --label-offset: calc(var(--radius) * -1 - 1rem);
        --label-size: 30px;
        --label-color: #666;
        --label-color-hover: steelblue;
        --label-line-h: 0;
        --label-line-h-current: 2rem;
        --label-dot-size: 10px;

        --title-top: 1.5rem;
        --title-offset-y: 30px;

        --info-top: 1rem;
        --info-width: min(70%, 500px);
        --info-offset-y: 30px;

        box-sizing: content-box;
        position: relative;
        inset: 0;
        margin: 4rem auto;
        width: var(--cards-container-size);
        height: var(--cards-container-size);
        padding: var(--cards-container-padding);
    

        @media (width > 600px){
            clip-path: polygon(0 -20%, 100% -20%, 100% 50%, 0 50%);
            height: calc(var(--cards-container-size) / 2);
            margin-bottom: -300px;
            
        }
        @media (min-width: 800px) {
            --radius: 30vw;
            --label-size: 40px;
            --label-dot-size: 15px;
            --label-line-h-current: 4rem;
            --title-top: 4rem;
            --info-top: 8rem;
        }
        }
        @media (min-width: 1200px) {
        .cards-container {
            --label-size: 50px;
            --border-color: var(--label-color);
            --radius:50vw;
        }
        }
        
    }
    .cards {
        position: absolute;
        inset: var(--cards-container-padding);
        aspect-ratio: 1;
        border-radius: 50%;
        border: 1px solid var(--border-color);
        transition: transform 0.3s ease-in-out var(--duration);
        list-style: none;
    }



    .cards li {
        position: absolute;
        inset: 0;
        margin: 0;
        padding: 0;
        transform-origin:center;
        display: grid;
        place-content: center;
        transform: rotate(calc(var(--i) * 360deg / var(--items)));
        pointer-events: none;
    }

    .cards li > label {
        position: absolute;
        inset: 0;
        margin: auto;
        transform: translateY(var(--label-offset));
        width: var(--label-size);
        height: var(--label-size);
        cursor: pointer;
        pointer-events: initial;
        text-align: center;
        color: var(--label-color);
        font-size: clamp(.8rem, 2.5vw + .04rem,1rem);
        transition: var(--duration) ease-in-out;

    }
    .cards li > label::before{
        content: '';
        position: absolute;
        top: var(--cards-container-padding);
        left: 50%;
        translate: -50% 0;
        width: var(--label-dot-size);
        height: var(--label-dot-size);
        aspect-ratio: 50%;
        border-radius: 50%;
        background-color: var(--label-color);
        transition: background-color var(--duration) ease-in-out;
    }

    .cards li > label::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        translate: -50% 5px;
        width: 2px;
        height: var(--label-line-h);
        background-color: steelblue;
        transition: height 300ms ease-in-out var(--label-line-delay,0ms);
    }
    .cards li > label:hover{
        --label-color: var(--label-color-hover);
    }

    .cards > li > h2,
    .cards > li > p{
        position: absolute;
        left: 50%;
        text-align: center;
        transform: translate(-50%, 0);
        transform-origin: center;
    }
    .cards > li > h2{
        top: var(--title-top);
        opacity: var(--title-opacity,0);
        translate: 0 var(--title-offset-y);
        transition: var(--duration) ease-in-out var(--title-delay,0ms);
    }
    .cards > li > p{
        top: var(--info-top);
        margin: 0 auto;
        width: var(--info-width);
        z-index: 2;
        font-size: clamp(.8rem, 2.5vw + 0.05rem, .9rem);
        text-align: left;
        text-wrap: pretty;
        opacity: var(--info-opacity,0);
        /*translate: 0 var( --info-offset-y);*/
        transition: var(--duration) ease-in-out var(--info-delay,0ms);
    }

    /* update custom properties for checked item */
    li:has(input:checked){
        --label-opacity: 1;
        --label-color: var(--label-color-hover);
        --label-line-h: var(--label-line-h-current);
        --label-line-delay: calc(var(--duration) * 2);

        --title-opacity: 1;
        --title-offset-y: 0;
        --title-delay: calc(var(--duration) * 3);

        --info-opacity: 1;
        --info-offset-y: 0;
        --info-delay: calc(var(--duration) * 4);
        /*outline: 1px dashed red;*/
    }

    /* rotate container based on checked radio */
    .cards:has(input:checked) {
        transform: rotate(calc(var(--base-rotation) - (var(--index) * var(--full-circle) / var(--items))));
    }
    /*
    this would be so much simpler if we could use counter values as custom property values
    */
    .cards:has(li:nth-child(1)>input:checked) { --index: 0; }
    .cards:has(li:nth-child(2)>input:checked) { --index: 1; }
    .cards:has(li:nth-child(3)>input:checked) { --index: 2; }
    .cards:has(li:nth-child(4)>input:checked) { --index: 3; }
    .cards:has(li:nth-child(5)>input:checked) { --index: 4; }
    .cards:has(li:nth-child(6)>input:checked) { --index: 5; }
    .cards:has(li:nth-child(7)>input:checked) { --index: 6; }
    .cards:has(li:nth-child(8)>input:checked) { --index: 7; }
    .cards:has(li:nth-child(9)>input:checked) { --index: 8; }
    .cards:has(li:nth-child(10)>input:checked) { --index: 9; }
    .cards:has(li:nth-child(11)>input:checked) { --index: 10; }
    .cards:has(li:nth-child(12)>input:checked) { --index: 11; }
    .cards:has(li:nth-child(13)>input:checked) { --index: 12; }
    .cards:has(li:nth-child(14)>input:checked) { --index: 13; }
    .cards:has(li:nth-child(15)>input:checked) { --index: 14; }
    .cards:has(li:nth-child(16)>input:checked) { --index: 15; }
    .cards:has(li:nth-child(17)>input:checked) { --index: 16; }
    .cards:has(li:nth-child(18)>input:checked) { --index: 17; }
    .cards:has(li:nth-child(19)>input:checked) { --index: 18; }
    .cards:has(li:nth-child(20)>input:checked) { --index: 19; }
    .cards:has(li:nth-child(21)>input:checked) { --index: 20; }
    .cards:has(li:nth-child(22)>input:checked) { --index: 21; }
    .cards:has(li:nth-child(23)>input:checked) { --index: 22; }
    .cards:has(li:nth-child(24)>input:checked) { --index: 23; }
    .cards:has(li:nth-child(25)>input:checked) { --index: 24; }
    .cards:has(li:nth-child(26)>input:checked) { --index: 25; }

  