.home-carousel{
    display: block !important;
}

.mobile-carousel{
    display: none !important;
}

@media (max-width: 992px) {
    .home-carousel{
        display: none !important;
    }
    .mobile-carousel{
        display: block !important;
    }
}

.banner-container img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 35%;
    color: #ffffff;
    padding: 20px;
    animation-delay: 1s; 
    opacity: 0;
}

.owl-item.active .banner-container img {
    animation: fadeInImage 1.5s ease-out forwards;
}

.owl-item.active .banner-content {
    animation: slideInText 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInText {
    from {
        opacity: 0;
        transform: translate(-100px, -50%); 
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.banner-content h1 {
    color: #ffffff;
    margin-top: 0;
    font-size: 60px;
    text-transform: uppercase;
}

.banner-content p {
    line-height: 1.3;
    font-size: 24px;
    margin-bottom: 0;
    font-weight: bold;
}

.banner-content p.p-second {
    line-height: 1.3;
    font-size: 24px;
    margin-bottom: 0;
    font-weight: bold;
}

.banner-container-int {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.img-main {
    width: 100%;
    height: auto;
    display: block;
}

.banner-content-int {
    position: absolute;
    top: 50%; 
    left: 8%;  
    transform: translateY(-50%); 
    color: #ffffff;
    max-width: 600px;
    text-align: left;
}

.icon-small {
    width: 60px; 
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.banner-content-int h1 {
    color: #ffffff;
    margin-top: 0;
    text-transform: uppercase;
    font-size: 65px;
    line-height: 1.1;
    font-weight: bold;
}

.banner-content-int p {
    line-height: 1.3;
    font-size: 24px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: bold;
}

.banner-content-int a {
    color: orange;
    text-decoration: none;
}

@media (max-width: 768px) {
    .banner-content-int {
        left: 5%;
        top: 40%;
    }
    .banner-content-int h1 {
        font-size: 35px;
    }
    .banner-content-int p {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .banner-content-int {
        width: 90% !important;
        right: 5% !important; 
        top: 30%;
        text-align: center; 
        padding: 10px;
    }

    .banner-content-int h1 {
        font-size: 40px !important;
        margin-bottom: 10px;
    }
}

.mob-car-item {
  position: relative;
  display: block;
}

.main-img {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-content {
  position: absolute;
  top: 60%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 350px;
}

.small-img-container {
  margin-bottom: 20px;
}

.small-img-container img {
  width: 70px !important;
  height: auto;
}

.text-container {
  color: white;
  text-align: left;
}

.slide-title {
  color: white;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.slide-text {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  color: white;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px 20px;
    flex-wrap: wrap; 
}

.service-box {
    width: 300px;
    height: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 6px;
    border-bottom: none !important;
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-box img {
    width: 115px;
    height: 115px;
    object-fit:contain;  
}

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-box p {
    font-size: 0.8rem;
    line-height: 1.1;
    margin-top: 10px;
    flex-grow: 1;
}

.service-box a {
    text-decoration: underline;
    color: #ba1e22;
    font-weight: bold;
}

.main-home {
    text-align: center;
}

.ttr-separator.sepimg {
    display: block;
    margin: 0 auto 20px auto;
}

@media (min-width: 992px) {
    .main-home p {
        column-count: 3;
        column-gap: 40px;
        text-align: left;
        margin-bottom: 30px;
        font-size: 18px;
    }
}

.main-home h2{
    text-align: center;
}

.main-home p{
    text-align: justify; 
    margin-top: 20px;
}

.main-home span a{
    color: #ba1e22;
    font-weight: bold;
    text-decoration: none;
    font-size: 20px;
}

.vertical-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    flex-wrap: wrap;
    background-color: #fff;
    margin-bottom: 40px;
}

.v-card {
    width: 260px; 
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.v-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.v-card img {
    object-fit: contain;
    display: block;
    width: 100px; 
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.v-card-content {
    padding: 20px;
}

.v-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    text-align: center;
}

.v-card-content p {
    margin-top: 60px;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: justify;
}

@media (max-width: 768px) {
    .vertical-cards-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        gap: 15px;
        padding: 20px 40px;
        -webkit-overflow-scrolling: touch; 
        scroll-behavior: smooth;
    }

    .vertical-cards-container::before,
    .vertical-cards-container::after {
        content: '';
        flex: 0 0 10px; 
    }

    .v-card {
        flex: 0 0 80%; 
        width: 80%; 
        scroll-snap-align: center; 
        margin-bottom: 20px;
    }
}

.certificazioni{
    background-color: #ba1e22;
    color: #ffffff;
}

.certificazioni h2{
    color: #ffffff;
    margin-top: 40px;
}

.certificazioni p {
    line-height: 1.6;
    margin-bottom: 100px;
}

@media (min-width: 992px) {
    .certificazioni p {
        column-count: 2;
        column-gap: 40px;
        text-align: justify;
        font-size: 19px;
    }
}

.int-txt h2{
    text-align: justify;
    font-size: 40px;
}

.int-txt p{
    text-align: justify !important;
}

@media (min-width: 992px) {
    .int-txt p {
        column-count: 3;
        column-gap: 40px;
        text-align: left; 
        margin-top: 20px;
    }
}

.ttr-separator {
    display: block;
    margin: 20px auto;
}

.catalogo{
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.catalogo span a{
    margin: 20px;
    display: inline-block;
}

@media (max-width: 768px) {
    .catalogo{
        margin-top: 30px;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .catalogo span a {
        margin: 10px 0;
    }
}

.btn-custom {
    border-radius: 12px;
    background-color: #ba1e22;
    font-size: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid #ba1e22;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #ffffff;
    margin: 20px;
}

.btn-custom:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.2);
color: #ffffff;
}

@media (max-width: 768px) {
    .btn-custom {
        height: 150px;
        font-size: 1.2rem;
    }
}

.sezione-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 50px; 
  padding: 40px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
}

.gallery-item img {
  width: 50%;
  aspect-ratio: 1 / 1; 
  object-fit:contain;
  padding: 0px;
}

.gallery-item h3 {
  color: #ffffff; 
  margin-top: 15px;
  font-family: sans-serif;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
    text-align: center; 
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px 5px;
    border: 1px solid #f0f0f0;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-img-box img {
    width: 100%; 
    height: auto; 
    border-radius: 8px;
}

.product-name-box h5 {
    font-size: 16px; 
    margin: 10px 0 0; 
    color: #1a1a1a;
    font-weight: 600;
}

.grid-minimal {
  width: 100%;
  display: flex;
  justify-content: center;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 1600px;
  gap: 30px;
  padding: 0 20px;
}

.grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-card p{
    color: #ffffff;
}

.img-box {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
}

.img-box img {
  width: 30%;
  aspect-ratio: 1 / 1; 
  object-fit:contain;
  padding: 0px;
}

.grid-title {
  color: #000000;
  margin-top: 20px;
  font-size: 1.1rem;
  text-align: center;
  font-weight: bold !important;
}

@media (max-width: 900px) {
  .grid-wrapper {
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    }
}

@media (max-width: 600px) {
  .grid-wrapper { 
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }
  .grid-title {
    font-size: 0.9rem;
    margin-top: 10px;
  }
  .img-box img {
    width: 70%;
  }
}

.nav-item.dropdown:hover > .sub-menu {
    display: block;
    visibility: visible;
    opacity: 1;
}

.sub-menu {
    display: none;
    position: absolute;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-links .nav > li.menu-item-has-children:before {
    content: none !important;
}

.breadcrumb-row-division ul a{
    color: #000000;
}

.breadcrumb-row-division ul li{
    color: #000000;
}