/*carosello card brand in evidenza homepage*/

.brand-item {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    /*opacity: 0;*/
    /*animation: fadeIn 0.6s ease forwards;*/ /* Modificato da fadeInUp a fadeIn */
    min-height: 600px;
}
/*
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
*/

.brand-item::before {
  content: '';
  position: absolute;
  inset: 0; /* top, right, bottom, left = 0 */
  background: rgba(0, 0, 0, 0.2); /* overlay scuro */
  transition: background 0.3s ease;
  z-index: 1;
}

.brand-item:hover::before {
  background: rgba(0, 0, 0, 0.5); /* opacità aumentata in hover */
}

.brand-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 0;
}

.brand-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px; /* puoi regolarlo */
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /*background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);*/
  box-sizing: border-box;
  z-index: 2;
  border-style: solid;
  border-width: 1px 0px 0px 0px;
  border-color: var( --e-global-color-secondary );
  --border-color: var( --e-global-color-secondary );
  /*--padding-top: 30px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;*/
  margin-left: 30px;
  margin-right: 30px;
}

.brand-label {
  margin: 0;
  font-family: var( --e-global-typography-5bfbc00-font-family ), Sans-serif !important;
  font-size: var( --e-global-typography-5bfbc00-font-size ) !important;
  font-weight: var( --e-global-typography-5bfbc00-font-weight ) !important;
  text-transform: var( --e-global-typography-5bfbc00-text-transform ) !important;
  line-height: var( --e-global-typography-5bfbc00-line-height ) !important;
  color: var( --e-global-color-secondary ) !important;
}

.brand-button {
  color: #f6e6b3;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: underline;
}

/* Contenitore navigazione */
.owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 5;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* evita click inutili fuori frecce */
}

/* Frecce */
.owl-prev,
.owl-next {
  background: rgba(0, 0, 0, 0.5);
  color: #f6e6b3;
  font-size: 30px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  pointer-events: auto; /* riattiva il click sulle frecce */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.owl-prev:hover,
.owl-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Posizione precisa se necessario */
.owl-prev {
  margin-left: -20px;
}
.owl-next {
  margin-right: -20px;
}

.owl-prev span::before {
  content: '\f104'; /* freccia Font Awesome left */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.owl-prev span,
.owl-next span {
  display: none; /* nasconde ‹ e › */
}

.owl-prev::before {
  content: '\f104'; /* ← */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 30px;
}

.owl-next::before {
  content: '\f105'; /* → */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 30px;
}

.griglia-brand-non-evidenza {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .griglia-brand-non-evidenza {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .griglia-brand-non-evidenza {
    grid-template-columns: 1fr;
  }
}



/*fine carosello card brand in evidenza homepage*/


/* Stili di base per schermi piccoli (mobile e tablet) */
.grid-marchi {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Due colonne di larghezza uguale */
    gap: 20px; /* Spazio tra le colonne e le righe, puoi regolare */
}

/* Media Query per desktop (schermi con larghezza minima di 992px, ad esempio) */
@media (min-width: 992px) {
    .grid-marchi {
        grid-template-columns: repeat(3, 1fr); /* Tre colonne di larghezza uguale */
    }
}