:root {
  --recoim-orange: #fd7e14;
  --recoim-dark: #222;
  --recoim-light-bg: #ffece2;
  --recoim-footer: #313131;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
}
/* Navbar & hover */
.navbar-nav .nav-link {
  position: relative;
  transition: color 0.2s;
  font-weight: 500;
  padding: .5rem 1rem;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: var(--recoim-orange) !important;
}
.navbar-nav .nav-link::after {
  content:'';
  display:block;
  width:0;
  height:2px;
  background: var(--recoim-orange);
  transition: .3s;
  margin: 0 auto;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
  width: 60%;
}

 .swiper-controls button
    {
        border-radius:50%;
        background:transparent;
        color:#000 !important;
        cursor: pointer;
        height: 30px;
        width: 30px;
        border: solid 2px #ef8425;
        line-height:1;
    }

     .swiper-pagination-bullet-active
    {
        background:#000;
    }

    .swiper-slide img {
    border-radius: 8px;
}

.swiper-pagination-bullet-active {
    background: #ef8425 !important;
    opacity: var(--swiper-pagination-bullet-opacity, 1);
}

.text-success {
    color: rgb(239 132 37) !important;
}

p.lead.mb-4.fw-medium {
    font-size: 16px;
}
h2{    text-wrap: balance;}
h2.lead.mb-4.fw-medium {
    font-size: 16px;
}
.title {
    text-wrap: balance;
    color: #ef8425;
    line-height: 37px;
}
.intro{color: #ef8425 !important;}

/* Hero */
.hero-section-video-boxed {
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-video-content-wrapper {
  aspect-ratio: 16/9;
  background: #111;
  min-height: 320px;
  max-height: 700px;
  width: 100%;
}

.hero-video-boxed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.66);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 18%);
  z-index: 2;
}

.hero-video-text {
  z-index: 3;
  text-align: left;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  max-width: 55%;
  padding-right: 2vw;
  padding-left: 80px !important;
}

@media (max-width: 991.98px) {
  .hero-video-text {
    max-width: 100vw;
    text-align: center;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .hero-video-text {
    max-width: 100vw;
    padding-left: 0;
    padding-top: 0;
    align-items: center;
    text-align: center;
  }
}


/* Icon row */
.icon-col {
  transition: transform 0.18s;
}
.icon-col:hover {
  transform: translateY(-6px) scale(1.03);
}
.icon-col i {
  color: var(--recoim-orange);
  font-size: 2.3rem;
  margin-bottom: 7px;
  display: block;
}
/* Azienda + foto */
.azienda-img {
  border-radius: .7rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.11);
  object-fit: cover;
}
/* Servizi row */
.service-block {
  background: var(--recoim-light-bg);
  padding: 2rem 1rem 1.2rem 1rem;
  transition: box-shadow .18s, transform .18s;
}

/* Card realizzazioni */
.realization-card {
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.realization-card:hover {
  transform: translateY(-7px) scale(1.04);
  box-shadow: 0 4px 20px #fd7e143c;
  border-color: #fd7e14 ;
}
.realization-card img {
  object-fit: cover;
  height: 135px;
}
/* Footer */
.footer-bg {
  background: var(--recoim-footer);
  color: #fff;
  margin-top: 3rem;
}
.footer-bg a { color: white; }
.footer-bg li { margin-bottom: .3rem;}
.footer {
    background-color: rgb(54 54 54) !important;
    padding: 80px 0 20px 0 !important;
}
.social-icons i {
  font-size: 1.4rem; margin-right: 6px; color: #fff;
  transition: color .2s;
}
.realizzazioni-img {
  width: 250px;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-origin: center;
}

.realizzazioni-img:hover,
.realizzazioni-img:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.25);
}

@media (max-width: 767.98px) {
  .realizzazioni-img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}

.social-icons i:hover { color: var(--recoim-orange);}
.data {font-weight: normal;}
.btn, .btn-warning {
      border-radius: 0 !important;
  font-size: 14px;
  background: var(--recoim-orange);
  border: none;
  color: #fff !important;
  font-weight: 500;
  padding: 10px;
  transition: background .18s, box-shadow .18s, transform .18s;
  width: 190px;
}
.btn-warning:hover {
  background: #fd6500;
  color: #fff !important;
  box-shadow: 0 3px 24px #fd651046;
  transform: scale(1.035);
}

.link-warning, .link-warning:hover{
    color: rgb(239 132 37) !important;
    -webkit-text-decoration-color: RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important;
    text-decoration-color: rgb(239 132 37) !important;
    font-weight: bolder;
}

h4.fw-bold.mb-2 {
    font-size: 18px;
}

.bg-servizi {
  background: #ffece2;
  display: flex;
}
.icona-servizio {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.riassunto p {
    font-size: 13px;
}

@media (max-width: 767.98px) 
{

  .icona-servizio 
  {
    margin-right: 0.8rem;
    margin-left: 0;
  }

  .navbar-nav .nav-link::after 
  {
    transition: none;
  }

  .navbar-nav .nav-link:hover::after
  ,.navbar-nav .nav-link.active::after 
  {
    width: 100%;
  }


}



@media (max-width: 576px) {
  .hero-video-text h1 {
    font-size: 1.5rem !important;      /* ad es. 24px, meno invasivo */
    line-height: 1.18;
  }
  .hero-video-text p,
  .hero-video-text .lead {
    font-size: 1rem !important;        /* 16px */
    line-height: 1.18;
  }
  .hero-video-text {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    max-width: 100vw !important;
  }
  .hero-video-text .btn {
    font-size: 1.05rem !important;     /* anche il bottone più leggibile */
    padding: 0.5rem 1.15rem;
  }
}


.lead {
    font-size: 1.25rem;
    font-weight: normal;
}


.form-control
,.form-select
,.form-check-input
{
  border-radius: 0;
  
}

#f_messaggio
{
  min-height: 250px;
}

.balance{text-wrap: balance;}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim1 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.2s; 
}

.anim2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s; 
}

.anim3 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 1s; 
}


.timeline-item 
{
  position: relative;
  text-align:center;
  margin-bottom:10px;
}




 .timeline-year {

    position: static;
    font-weight: bold;
    font-size: 26px;
    line-height:1;
}

.timeline h4
{
    font-size:14px;
}

.timeline p
{
    font-size:14px
}

@media (min-width: 576px) {
 .timeline-year {
    position: absolute;
    left: -90px;
    padding-right: 141px;
    width: 328px;
      text-align: right;

  }

        .timeline-item {
        position: relative;
        text-align:left;
        margin: 2rem 0;
        padding-left: calc(25% + 15px);
      }

  .timeline-item::before {
    content: '';
    position: absolute;
    top: -12px;
    left: calc(20% - 23px);
    width: 18px;
    padding: 6px;
    height: 18px;
    background: #000000;
    border-radius: 50%;
    border: solid 18px #FFF;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20%;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,      
        #b3b3b3 10%,      
        #b3b3b3 90%,    
        transparent     
    );
}

      .timeline {
        position: relative;
         padding: 2rem 0;
        list-style: none;
      }



}

.partner-logo {
    max-width: 150px;
    margin: 20px auto;
    transition: transform 0.3s;
}

.partner-logo:hover {
    transform: scale(1.1);
}


.link-underline-anim {
  position: relative;
  color: var(--bs-warning);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-underline-anim::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.link-underline-anim:hover::after,
.link-underline-anim:focus-visible::after {
  width: 100%;
}

.link-underline-anim:hover,
.link-underline-anim:focus-visible {
  color: var(--bs-warning);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-boxed { display: none; }
  .hero-video-content-wrapper {
    background: center/cover no-repeat url('cover.jpg');
  }
}