@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

body {
    font-family: 'Lato' !important;
    color: #333;
}

label {
    font-family: 'Lato' !important;
}

h1 {
    font-size: 82px; 
    font-weight: 900; 
    letter-spacing: -1.44px;
}

h2 {
    font-size: 52px;
    color: #C00322;
    font-weight: 900;
}

h3 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.54px;
}

p {
    font-size: 16px;
    color: #262a30;
}

#contacts {
    scroll-behavior: smooth;
}

#headerHome {
    overflow: hidden;
}

#headerHome > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 33.34%;
}

#headerHome > div:first-child {
    animation: header_industries 2s ease-in-out;
}

#headerHome > div:nth-child(2) {
    animation: header_rail forwards 2s ease-in-out;
    animation-delay: 1s;
    opacity: 0;
}

#headerHome > div:last-child {
    animation: header_aiworks forwards 1.5s ease-in-out;
    animation-delay: 2s;
    opacity: 0;
}

@keyframes header_industries {
    0%{
        left: 150%;
        transform: translateX(-150%); 
        opacity: 0;
    }
    100%{
        left: 0;
        transform: translateX(0);
        opacity: 100%;
    }
}

@keyframes header_rail {
    0%{
        left: 150%;
        transform: translateX(-150%); 
        opacity: 0;
    }
    100%{
        left: 50%;
        transform: translateX(-50%);
        opacity: 100%;
    }
}

@keyframes header_aiworks {
    0%{
        left: 150%;
        transform: translateX(-150%); 
        opacity: 0;
    }
    100%{
        left: 100%;
        transform: translateX(-100%);
        opacity: 100%;
    }
}
@media screen and (min-width: 1400px) {
    #headerHome > div {
        width: 33.34%;
    }
}

@media screen and (min-width: 1600px) {
    #headerHome > div {
        width: 33.34%;
    }
}


.scroll-img {
    animation: scroll 20s linear infinite;
}

.slide-track {
    width: 100%;
    display: flex;
    gap: 3em;
    overflow: hidden;
}

.slider {
    margin-top: 30px;
    padding-bottom: 70px;
}

@keyframes scroll {
    0% {transform: translateX(0);}
    100% {transform: translatex(-1000%)}
}

.footerLink {
    text-decoration: none;
    color: #DBDBDB;
    cursor: pointer;
    transition: all .1s linear;
}

.footerLink:hover {
    color: #C00322!important;
    transition: all .3s linear;
}

#navbar > a {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: all .1s linear;
}

#navbar > a:hover {
    color: #C00322;
    transition: all .1s linear;
}

.iconComunicati:hover .iconArrow {
    animation: arrowAnimation 2.5s linear infinite;
}

#lateralMenu * {
    cursor: pointer;
}

#lateralMenu .iconArrow {
    transform: translateX(0%);
    transition: transform .3s linear;
}

#lateralMenu:hover .iconArrow {
    transform: translateX(25%);
    transition: transform .3s linear;
}

@keyframes arrowAnimation {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-25%);
    }
    50% {
        transform: translateX(0%)
    }
    75% {
        transform: translateX(25%);
    }
    100% {
        transform: translateX(0);
    }
}

#faqBilanci .accordion-button {
    background-color: transparent;
}

#faqBilanci .accordion-item {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #C00322;
}

#checkIPO .form-check-input:checked {
    background-color: #C00322;
    border-color: #C00322;
}

#checkIPO .form-check-input {
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    border: 1px solid black;
}

#checkIPO > div > label {
    margin-left: 10px;
}

#evento {
    background: #f5f5f5;
    border-radius: 10px;
    transition: all .1s linear;
}

#evento:hover {
    background: transparent;
    border-radius: 10px;
    border-left: 2px solid #C00322;
    transition: all .1s linear;
}

.buttonBio {
    background-color: rgb(192, 3, 34);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    transition: all .2s linear;
}

.buttonBio:hover {
    background-color: rgb(162, 3, 34);
    transition: all .2s linear;
}

.btn-outline-white {
    color: white !important;
    border-color: white !important;

}

/* Per schermi di tablet e desktop */
@media (min-width: 768px) {
    .ReactModal__Content {
      width: 60% !important; /* Sovrascrive lo stile inline */
      max-width: 650px !important; /* Sovrascrive lo stile inline */
    }
}
  
/* Per schermi desktop più grandi */
@media (min-width: 1024px) {
    .ReactModal__Content {
        width: 50% !important; /* Sovrascrive lo stile inline */
        max-width: 800px !important; /* Sovrascrive lo stile inline */
    }
}
@media (min-width: 1200px) {
    .ReactModal__Content {
      width: 40% !important; /* Ancora più grande per schermi molto grandi */
      max-width: 1000px !important; /* O un valore che preferisci */
      /* Aggiusta l'altezza se necessario */
    }
}

.h1-resp {
    font-size: 50px;
  }
@media (min-width: 1024px) {
    .h1-resp {
        font-size: 81px;
    }
}
.h3-resp {
    font-size: 22px;
    padding-bottom: 50px;
    padding-top: 20px;
  }
@media (min-width: 1024px) {
    .h3-resp {
        font-size: 36px;
    }
}

/* Definizione base della Navbar */
.navbar {
    transition: background-color 0.5s ease; /* Transizione morbida dello sfondo */
}
  
/* Stato modificato della Navbar con sfondo nero */
.navbar-scrolled {
    background-color: rgba(38, 42, 48) !important; /* Sfondo nero */
    backdrop-filter: none !important; /* Rimuovi il blur se preferisci */
}

/* Definisci la classe CSS per il colore di sfondo nero della navbar */
.navbar-mobile-black {
    background-color: rgba(38, 42, 48) !important; /* Usa !important per sovrascrivere altri stili se necessario */
}

/* Media query per applicare lo stile sui dispositivi mobili */
@media (max-width: 768px) {
    .navbar-mobile-black {
        background-color: rgba(38, 42, 48) !important;
    }
}

/* Stile per i box di categoria non selezionati */
.box-categoria {
    transition: background-color 0.3s ease; /* Aggiunge una transizione per il colore di sfondo */
    color:rgb(255, 255, 255);
    cursor: pointer;
}
  
/* Stile per il box di categoria selezionato */
.box-categoria-selezionata, .box-categoria:hover {
    background-color: rgb(255, 255, 255, 0.8); /* Un grigio più chiaro rispetto a rgb(38, 42, 48) */
    color:rgb(0, 0, 0);
    transition: background-color 0.3s ease;
}
.card-prod .icon-overlay {
    top: 0;
    right: 0;
    margin-right: 10px; /* Adegua lo spazio dal bordo destro */
    margin-top: 10px; /* Adegua lo spazio dal bordo superiore */
    padding: 5px;
    border-radius: 10%;
    background: rgb(248, 249, 250);
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}
.card-title-container {
    min-height: 4em; /* Esempio di altezza per due righe di testo, da aggiustare in base al caso d'uso */
    display: flex;
    align-items: center;
    justify-content: center;
}
  