/********** Template CSS **********/
:root {
    --primary: #E2A328;
    --light: #F3F5F7;
    --dark: #2F4863;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
    font-weight: 400 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

@media (max-width: 991.98px) {
  .mobile-cta {
      position: fixed;
      left: 0px;
      right: 0px;
      bottom: 0;
      z-index: 998;

      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
      transition: all 0.35s ease;
  }

  .mobile-cta.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }

  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

    padding: 16px 20px;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;

    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: 1px;

    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

  .mobile-cta a:hover,
  .mobile-cta a:active {
      transform: translateY(-3px);
      box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  }

  .back-to-top {
      z-index: 999;
  }
}

@media (min-width: 992px) {
  .mobile-cta {
      display: none;
  }
}

/*** 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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #F3F5F7;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-outline-body {
    color: var(--primary);
    border-color: #F3F5F7;
}

.btn-outline-body:hover {
    color: #F3F5F7;
    background: var(--primary);
    border-color: var(--primary);
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 30px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: var(--dark);
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    transition: .5s;
    opacity: .3;
}

.header-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.breadcrumb-item.active {
  font-weight: bold;
}

/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.title-spacing {
  margin-bottom: 80px !important;
}

/*** Facts ***/
.fact-item .fact-icon {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 120px;
    transition: .5s;
}

.fact-item:hover .fact-icon {
    background: var(--dark);
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}


/*** About & Feature ***/
.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid var(--primary);
    z-index: -1;
}


/*** Service ***/
.service-item .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-item .service-text {
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-text {
    background: rgba(0, 0, 0, .7);
}

.service-item * {
    transition: .5;
}

.service-item:hover * {
    color: #FFFFFF;
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: #E2A328;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}

.service-icon{
    width:64px !important;
    height:64px !important;
}

/*** Project ***/
.project .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.project .nav .nav-link.active {
    background: var(--primary);
}

.project .nav .nav-link.active h3 {
    color: #FFFFFF !important;
}


/* Projects area
================================================== */
/* Project filter nav */
.shuffle-btn-group {
  display: inline-block;
  margin: 20px 0 50px;
  width: 100%;
  border-bottom: 3px solid #ffb600;
}
.shuffle-btn-group label {
  display: inline-block;
  color: #212121;
  font-size: 14px;
  padding: 6px 25px;
  padding-top: 10px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  margin: 0;
}
.shuffle-btn-group label.active {
  color: #212121;
  background: #ffb600;
}
.shuffle-btn-group label input {
  display: none;
}

/* Project shuffle Item */
.shuffle-item {
  padding: 0;
}
.shuffle-item .project-img-container {
  position: relative;
  overflow: hidden;
}
.shuffle-item .project-img-container img {
  transform: perspective(1px) scale3d(1.1, 1.1, 1);
  transition: all 400ms;
}
.shuffle-item .project-img-container:hover img {
  transform: perspective(1px) scale3d(1.15, 1.15, 1);
}
.shuffle-item .project-img-container:after {
  opacity: 0;
  position: absolute;
  content: "";
  top: 0;
  right: auto;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  transition: all 400ms;
}
.shuffle-item .project-img-container:hover:after {
  opacity: 1;
}
.shuffle-item .project-img-container .gallery-popup .gallery-icon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: perspective(1px) scale3d(0, 0, 0);
  transition: all 400ms;
}
.shuffle-item .project-img-container:hover .gallery-popup .gallery-icon {
  opacity: 1;
  transform: perspective(1px) scale3d(1, 1, 1);
}
.gallery-icon{
  padding:6px 12px;
  font-size:14px;
}
.shuffle-item .project-img-container .project-item-info {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:20px;
  z-index:2;
}
.shuffle-item .project-img-container .project-item-info-content {
  opacity: 0;
  transform: perspective(1px) translate3d(0, 15px, 0);
  transition: all 400ms;
}
.shuffle-item .project-img-container .project-item-info-content .project-item-title {
  font-size: 20px;
}
.project-item-title{
  font-size:22px;
  font-weight:600;
  font-family:'Poppins', sans-serif;
  margin-bottom:10px;
}
.shuffle-item .project-img-container .project-item-info-content .project-item-title a {
  color: #fff;
}
.shuffle-item .project-img-container .project-item-info-content .project-item-title a:hover {
  color: #ffb600;
}
.shuffle-item .project-img-container .project-item-info-content .project-cat {
  background: var(--primary);
  display: inline-block;
  padding: 8px 18px;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-cat{
  margin-top:8px;
}
.project-cat{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:60px;
  height:40px;

  background:var(--primary);
  color:#fff;

  font-size:14px;
  font-weight:600;

  overflow:hidden;
  white-space:nowrap;

  transition:all .4s ease;
}
.project-img-container:hover .project-cat{
  width:180px;
  padding:0 15px;
}
.project-cat span{
  opacity:0;
  margin-left:8px;
  transition:opacity .3s ease;
}

.project-img-container:hover .project-cat span{
  opacity:1;
}
.shuffle-item .project-img-container:hover .project-item-info-content {
  opacity: 1;
  transform: perspective(1px) translate3d(0, 0, 0);
}
.project-item-info-content{
  opacity:0;
  transform: perspective(1px) translate3d(0, 15px, 0);
  transition:all .4s;
  max-width:80%;
  margin:auto;
}
.general-btn .btn-primary:hover {
  background: #000;
}
.fancybox__container, 
.fancybox__slide {
    background: transparent !important; /* niente sfondo nero */
}
.fancybox__close, 
.fancybox__arrow {
    color: #E2A328 !important; /* colore X e frecce */
    font-size: 28px;
}

.project-plus {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #E2A328;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
}

.project-plus:hover {
    background: #E2A328;
    color: #fff;
}
/* Project owl */
.owl-theme.project-slide {
  margin-top: 60px;
}

.project-slide .item {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.project-item img {
  width: 100%;
  max-width: auto;
  transition: all 0.6s ease 0s;
}

.project-item:hover img {
  transform: scale(1.1, 1.1);
}

.project-item-content {
  position: absolute;
  bottom: -1px;
  padding: 15px 20px;
  width: 100%;
  background: #ffb600;
}

.owl-theme.project-slide .owl-nav > div {
  position: absolute;
  top: -70px;
  right: 0;
  transform: translateY(-50%);
}

.project-slide .owl-nav > div {
  display: inline-block;
  margin: 0 2px;
  font-size: 20px;
  background: #ffb600;
  color: #fff;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}

.owl-theme.project-slide .owl-nav > .owl-prev {
  right: 35px;
  left: auto;
}

/* Projects Single page */
.project-title {
  font-size: 30px;
}

.project-info-label {
  color: #303030;
  font-weight: 700;
  font-size: 14px;
}

.project-info-content {
  font-size: 12px;
}

.project-info li {
  margin-bottom: 5px;
}

.project-link {
  margin-top: 15px;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #777777;
    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(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #777777;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


/* ============================= */
/* SEZIONE CLIENTI */
/* ============================= */

.clients-section{
    width:100%;
    background:#f5f5f5;
    padding:60px 0;
    position:relative;
}


/* linea superiore */

.clients-section::before{

    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:1px;
    background:#e3e3e3;
}


/* linea inferiore */

.clients-section::after{

    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:1px;
    background:#e3e3e3;
}

/* titolo sezione */

.clients-title{
    text-align:center;
    font-size:12px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#777;
    margin-bottom:60px;
}


/* griglia loghi */

.clients-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:60px;
}


/* contenitore logo */

.client-logo{

    height:100px;
    display:flex;
    align-items:center;
    justify-content:center;

}


/* immagine logo */

.client-logo img{

    max-height:60px;
    max-width:100%;
    width:auto;

    opacity:0.7;
    filter:grayscale(100%);
    transition:all 0.3s ease;

}


/* hover */

.client-logo img:hover{

    opacity:1;
    filter:grayscale(0);

}


/* ============================= */
/* RESPONSIVE */
/* ============================= */


/* tablet */

@media (max-width:992px){

    .clients-grid{
        grid-template-columns:repeat(4,1fr);
        gap:50px;
    }

    .client-logo{
        height:90px;
    }

}


/* mobile */

@media (max-width:576px){

    .clients-grid{
        grid-template-columns:repeat(2,1fr);
        gap:40px;
    }

    .client-logo{
        height:80px;
    }

    .client-logo img{
        max-height:50px;
    }

}
/* FRECCE IMMAGINI PROGETTO SINGOLO*/
/* Contenitore slider */
#page-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%; /* altezza slider, puoi regolare */
}

/* Singola immagine */
#page-slider .item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

#page-slider .item img {
  width: 100%;
  height: auto;
  object-fit: cover; /* mantiene proporzioni e riempie area */
}

/* Immagine attiva */
#page-slider .item.active {
  opacity: 1;
  z-index: 2;
}

/* Frecce di navigazione */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  transition: background 0.3s;
}
.slider-arrow:hover {
  background: rgba(0,0,0,0.7);
}

.slider-arrow.prev {
  left: 15px;
}

.slider-arrow.next {
  right: 15px;
}


/* box informazioni singoli progetti */
.project-info-main{

background:#f5f5f5;
padding:35px;
border-left:4px solid #ffc107;
height:100%;
display:flex;
flex-direction:column;
}


/* titolo */

.project-info-main{
background:#f5f5f5;
padding:35px;
border-left:4px solid #ffc107;
height:100%;
}


.project-info-main h4{

font-size:20px;
font-weight:600;
margin-bottom:25px;
}


/* lista info */

.project-info-list{

list-style:none;
padding:0;
margin:0 0 30px 0;

}

.project-info-list li{
display:flex;
gap:15px;
margin-bottom:16px;
}

.project-info-list i{

color:#ffc107;
font-size:18px;
margin-top:4px;

}

.project-info-list span{

font-weight:600;
font-size:14px;
display:block;

}

.project-info-list p{

margin:0;
font-size:15px;

}
/* lista servizi */

.project-service-list{

list-style:none;
padding:0;
margin:0;

}

.project-service-list li{

padding:8px 0;
border-bottom:1px solid #e5e5e5;
position:relative;
padding-left:18px;
}

.project-service-list li:before{

content:"";
width:6px;
height:6px;
background:#ffc107;
position:absolute;
left:0;
top:14px;
}

.project-title{
font-weight:600;
margin-bottom:10px;
}

.project-meta{
color:#777;
}


.project-gallery img{

transition:transform .3s ease;
}

.project-gallery img:hover{

transform:scale(1.05);
}
/* ============================= */
/* SEZIONE CTA PROGETTO SINGOLO */
/* ============================= */

.cta-section{
    width:100%;
    background:#f5f5f5;
    padding:40px 0;
    position:relative;
}


/* SLIDER IMMAGINI SINGOLO PROGETTO*/

.project-slider{
position:relative;
overflow:hidden;
}

/* slides */

.slides{
position:relative;
}

.slide{
position:absolute;
width:100%;
opacity:0;
transition:opacity 0.8s ease;
}

.slide.active{
opacity:1;
position:relative;
}

/* immagini */

.slide img{
width:100%;
height:auto;
display:block;
transform:scale(1);
transition:transform 6s ease;
}

.slide.active img{
transform:scale(1.05);
}

/* NAV */

.slider-nav{
position:absolute;
bottom:30px;
left:50%;
transform:translateX(-50%);
text-align:center;
z-index:10;
}

/* counter */

.slider-counter{
color:white;
font-size:14px;
letter-spacing:2px;
margin-bottom:10px;
font-weight:500;
}

/* dots */

.slider-dots{
display:flex;
gap:10px;
justify-content:center;
}

.dot{
width:10px;
height:10px;
border-radius:50%;
background:rgba(255,255,255,0.4);
cursor:pointer;
transition:all 0.3s ease;
}

.dot.active{
background:white;
transform:scale(1.4);
}

/* =================== chi siamo =================== */

/* Numeri animati grandi */
.counter {
  font-size: 3rem;
  font-weight: 700;
  transition: all 0.5s ease;
}

/* Box Valori interattivi */
.service-item {
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.display-1 sup{
font-size:0.4em;
position:relative;
top:-0.6em;
}
.number-counter sup{
position:absolute;
top:0.15em; 
right:-0.6em;
font-size:0.42em;
line-height:1;
}
.number-counter{
color:var(--primary);
}
.number-counter{
position:relative;
display:inline-block;
}





/* =================== GLOBAL =================== */

/* FADE-IN SCROLL */
.fade-in {opacity:0; transform:translateY(20px); transition: all 0.8s ease-out;}
.fade-in.visible {opacity:1; transform:translateY(0);}

/* GRID BOX */
.grid-3 {display:flex; flex-wrap:wrap; gap:30px;}
.grid-3 .box {flex:1 1 calc(33.333% - 30px); background:#f7f7f7; padding:20px; border-radius:8px; transition:all 0.4s;}
.grid-3 .box:hover {transform:translateY(-8px) scale(1.03); box-shadow:0 10px 25px rgba(0,0,0,0.15);}




/* wrapper */
.timeline-pro {
  position: relative;
  margin: 60px 0;
  padding-left: 50%;
}

/* linea base */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #e5e5e5;
  transform: translateX(-50%);
}

/* linea animata */
.timeline-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--primary);
  transform: translateX(-50%);
  z-index: 1;
}

/* item */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 25px 25px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

/* alternanza */
.timeline-item:nth-child(odd) {
  left: -50%;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 0;
  text-align: left;
}

/* dot */
.timeline-dot {
  position: absolute;
  top: 25px;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  transition: 0.3s;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -7px;
}

/* hover dot elegante */
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
}

/* testo */
.timeline-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.timeline-text p {
  color: #666;
  line-height: 1.6;
  max-width: 320px;
}

/* animazione entrata */
.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media(max-width:768px){

  .timeline-pro {
    padding-left: 0;
  }

  .timeline-line,
  .timeline-progress {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    left: 0 !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 14px !important;
  }
}




/* NUMERI STUDIO */
.numeri {display:flex; justify-content:space-around; flex-wrap:wrap; margin-top:30px;}
.numeri .numero-box {flex:1 1 22%; background:#f7f7f7; padding:30px 15px; text-align:center; border-radius:8px; transition:all 0.3s;}
.numeri .numero-box:hover {transform:scale(1.05); box-shadow:0 8px 20px rgba(0,0,0,0.15);}
.numeri .numero {font-size:2.5em; font-weight:bold; color:#0077cc;}



/* FAQ PROGETTAZIONE STRUTTURALE */
.faq-wrapper { width:100%; }
.faq-item { border-bottom:1px solid #e0e0e0; }
.faq-question {
  width:100%;
  text-align:left;
  padding:12px 20px;
  background:none;
  border:none;
  outline:none;
  font-size:1rem;
  font-weight:500;
  color:var(--dark);
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition: color 0.3s;
}

.faq-question:hover,
.faq-item.active .faq-question { 
  color:var(--primary); 
}
.faq-toggle {
  display:inline-block;
  font-weight:bold;
  transition: transform 0.4s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color:var(--primary); 
}


.faq-answer {
  height:0;
  overflow:hidden;
  padding:0 20px;
  font-style:italic;
  color:#555;
  line-height:1.6;
  transition: height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}



//* METODO PAGINE SERVIZI *//
.process-section {
  padding: 80px 0;
  position: relative;
}

.process-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* LINEA */
.process-line {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--light);
  z-index: 1;
}

/* STEP */
.process-step {
  position: relative;
  text-align: center;
  flex: 1;
  z-index: 2;
  cursor: pointer;
  transition: 0.3s;
}

/* NUMERO */
.step-number {
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  flex-shrink: 0;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--dark);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: 0.3s;
}

/* CONTENUTO */
.step-content h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 1.0rem;
  opacity: 0.7;
  max-width: 220px;
  margin: 0 auto;
}

/* HOVER */
.process-step:hover .step-number {
  border-color: var(--primary);
  color: var(--primary);
}

.process-step:hover h4 {
  color: var(--primary);
}

/* ACTIVE */
.process-step.active .step-number {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}

.process-step.active h4 {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 992px) {

  .process-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-line {
    left: 35px;
    top: 0;
    width: 2px;
    height: 100%;
  }

  .process-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    margin-bottom: 40px;
  }

  @media (max-width: 992px) {

    .step-number {
      width: 60px;
      height: 60px;
      min-width: 60px;
      min-height: 60px;
      margin: 0;
      flex-shrink: 0;
    }
  
  }

  .step-content p {
    max-width: 100%;
  }
}



.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.benefit-card {
  background: var(--dark);
  border: 1px solid --dark;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.35s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.benefit-card h4 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--light);
  transition: color 0.3s ease;
}

.benefit-card p {
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 0;
  color: var(--light);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.benefit-card:hover h4 {
  color: var(--primary);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--light);
  border: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

.benefit-icon i {
  font-size: 35px;
  color: var(--dark);
  transition: color 0.35s ease;
}

.benefit-card:hover .benefit-icon i {
  color: var(--primary);
}

@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    padding: 30px 22px;
  }
}

/* SOLUZIONI PROGETTUALI SINGOLO SERVIZIO */
.accordion-header-custom {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  padding: 0.4rem 0;
}

.accordion-header-custom span {
  color:  var(--dark);
}

/* Freccia */
.arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

/* Quando aperto (Bootstrap aggiunge .show) */
.collapse.show + .accordion-body-custom,
.collapse.show ~ .accordion-body-custom {
}

/* RUOTA FRECCIA */
.collapse.show ~ .accordion-body-custom,
.collapse.show {
}

.accordion-item-custom .collapse.show ~ * .arrow {
  transform: rotate(90deg);
}

/* TESTO */
.accordion-body-custom {
  padding-left: 1.6rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
  padding-top: 0.4rem;
}

/* Hover */
.accordion-header-custom:hover span {
  color: var(--primary);
}

/* Quando aperto */
.accordion-item-custom:has(.collapse.show) .accordion-header-custom span {
  color: var(--primary);
}


/* IMMAGINE FULL WIDTH SEZIONE SERVIZI SINGOLI */

/* Titolo della sezione */
.section-full-width h2 {
    font-size: 2.5rem; /* desktop */
    line-height: 1.3;
}

/* Tablet */
@media (max-width: 992px) {
    .section-full-width h2 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .section-full-width h2 {
        font-size: 1.5rem;
        padding: 0 1rem; /* margine laterale per non far sbordare il testo */
    }
}
