/* -------------------------------------------------
   ACAYX PRO V1 — CSS OPTIMITZAT
   Sense conflictes amb Astra
   Header Elementor 100% funcional
-------------------------------------------------- */


/* -------------------------------------------------
   1. TIPOGRAFIES PRINCIPALS
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

body,
p,
li,
input,
textarea,
button {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #151515;
    font-weight: 400;
}

/* Títols tipus logotip ACAYX */
h1, h2, h3, h4, h5, h6,
.acayx-heading,
.acayx-hero-title,
.acayx-card-title {
    font-family: 'League Spartan', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: #151515;
}

/* Etiquetes petites (kickers) */
.acayx-kicker,
.acayx-label,
span.label {
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 500;
    color: #A1473B;
}

/* Variant clara per sobre de fotos */
.acayx-on-dark,
.acayx-on-dark h1,
.acayx-on-dark h2,
.acayx-on-dark p,
.acayx-on-dark span {
    color: #ECECEC;
}


/* -------------------------------------------------
   2. BOTONS ACAYX
-------------------------------------------------- */
.acayx-btn,
button.acayx-btn,
a.acayx-btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: #151515;
    color: #ECECEC !important;
    padding: 12px 26px;
    border-radius: 4px;
    border: none;
    transition: background 0.3s ease;
}

.acayx-btn:hover {
    background: #A1473B;
}


/* -------------------------------------------------
   3. FI DELS CONFLICTES AMB ASTRA
   (Eliminem sticky dels headers nadius)
-------------------------------------------------- */

/* NO sticky Astra (només Elementor controla) */
.ast-primary-header-bar {
    position: relative !important;
    background: transparent !important;
}


/* -------------------------------------------------
   4. HEADER ACAYX (Elementor)
-------------------------------------------------- */

/* Header inicial TRANSPARENT */
.elementor-location-header {
    background: transparent !important;
    transition: background 0.35s ease, padding 0.35s ease;
}

/* Header EN SCROLL (Sticky mode) */
.elementor-location-header.elementor-sticky--effects {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* Logo transició */
.elementor-location-header .elementor-image img {
    transition: transform 0.3s ease;
}

/* Logo més petit en scroll */
.elementor-location-header.elementor-sticky--effects .elementor-image img {
    transform: scale(0.85);
}


/* -------------------------------------------------
   5. MENÚ PRINCIPAL ACAYX
-------------------------------------------------- */

.elementor-location-header .elementor-nav-menu a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #ffffff !important;
    padding: 12px 18px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* Separació entre items */
.elementor-location-header .elementor-nav-menu li {
    margin: 0 8px;
}

/* Hover */
.elementor-location-header .elementor-nav-menu a:hover {
    color: #A1473B !important;
}


/* -------------------------------------------------
   6. SUBRATLLAT ANIMAT A LO PREMIUM
-------------------------------------------------- */

.elementor-location-header .elementor-nav-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0%;
    height: 2px;
    background-color: #A1473B;
    transition: width 0.35s ease, left 0.35s ease;
}

.elementor-location-header .elementor-nav-menu a:hover::after {
    width: 100%;
    left: 0;
}

/* Actiu */
.elementor-location-header .elementor-nav-menu .current-menu-item > a::after {
    width: 100%;
    left: 0;
}

/* Sticky ajusta lleugerament la posició */
.elementor-location-header.elementor-sticky--effects .elementor-nav-menu a::after {
    bottom: 3px;
}


/* -------------------------------------------------
   7. BOTÓ ESPECIAL (Seleccionar vehículo)
-------------------------------------------------- */

.acayx-btn-menu {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: #0466C8;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.acayx-btn-menu:hover {
    background: #A1473B;
}

ul#sm-1764870282187121-2 {
    background: #151515!important;
}


/* ===============================
   SUBMENÚ MARCAS – ESTIL ACAYX
   =============================== */
@media (min-width: 769px) {

  /* Contenidor del submenú (la caixa blanca lletja) */
  .elementor-location-header 
  .elementor-nav-menu--main .sub-menu {
    background: rgba(5, 5, 5, 0.92);    /* fons negre translúcid */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 220px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  }

  /* Eliminar fons / vora estranys que venen del tema */
  .elementor-location-header 
  .elementor-nav-menu--main .sub-menu li,
  .elementor-location-header 
  .elementor-nav-menu--main .sub-menu a {
    background: transparent !important;
    border: 0 !important;
  }

  /* Cada ítem del submenú */
  .elementor-location-header 
  .elementor-nav-menu--main .sub-menu li {
    margin: 0;
  }

  /* Enllaços del submenú */
  .elementor-location-header 
  .elementor-nav-menu--main .sub-menu a {
    display: block;
    padding: 8px 18px;
    color: #F5F5F5 !important;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease;
  }

  /* Hover: destacat ACAYX */
  .elementor-location-header 
  .elementor-nav-menu--main .sub-menu a:hover {
    background: #A1473B;
    color: #ffffff !important;
    padding-left: 26px; /* petit “slide” cap a dins */
  }

  /* Opcional: una mica de separació sota l’element pare */
  .elementor-location-header 
  .elementor-nav-menu--main .menu-item-has-children > .sub-menu {
    margin-top: 10px;
  }
}



ul#sm-1764916877247617-2 {
    background-color: red ! Important;
}



/* Reduir alçada de cada fila de logos */
.gs_logo_single__wrapper {
  height: 90px !important; /* molt més baix que 205px */
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Contenidor del grid de logos */
.gs_logo_container {
  gap: 10px !important; /* menys espai */
  padding: 0 !important;
  margin: 0 auto !important;
}

/* Caixa interior */
.gs_logo_single--flex-center {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
}

/* Les imatges pròpiament */
.gs_logo_single__inner img {
  max-height: 60px !important; /* controla la mida final */
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: grayscale(100%); /* blanc i negre cool */
  opacity: 0.9;
  transition: 0.2s ease;
}

.gs_logo_single__inner img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Elimina marge lateral estrany generat pel plugin */
#gs_logo_area_50 .gs_logo_container {
  margin-right: 0 !important;
}



/* Reduir alçada total de cada logo al mínim */
.gs_logo_single__wrapper {
  height: 70px !important;   /* abans 205px → ara molt més baix */
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Eliminar espai intern de les caixes */
.gs_logo_single--flex-center {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
}

/* Contenidor del grid */
.gs_logo_container {
  padding: 0 !important;
  margin: 0 auto !important;
  row-gap: 10px !important;   /* menys separació vertical entre files */
}

/* Ajustar la mida dels logos */
.gs_logo_single__inner img {
  max-height: 50px !important; /* controla la mida final */
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: 0.2s ease;
}

.gs_logo_single__inner img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Eliminar marge lateral estrany del plugin */
#gs_logo_area_50 .gs_logo_container {
  margin-right: 0 !important;
}


/* FIX REAL – sobrescriu l'alçada inline del plugin */
.gs_logo_single__wrapper {
    height: 80px !important;     /* Abans 212px → ara molt compacte */
    max-height: 80px !important;
    min-height: 80px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Més compactació entre files */
.gs_logo_container {
    row-gap: 10px !important;  
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Ajustar la mida de les imatges */
.gs_logo_single__inner img {
    max-height: 45px !important;  /* Ajusta aquí per fer-los més petits o grans */
    width: auto !important;
    object-fit: contain !important;
    filter: grayscale(100%);
    opacity: 0.9;
    transition: 0.2s ease;
}

.gs_logo_single__inner img:hover {
    opacity: 1;
    transform: scale(1.05);
}


/* --- FORÇAR MATEIXA MIDA PER A TOTS ELS LOGOS --- */
.gs_logo_single img {
    width: 140px !important;      /* Ajusta si els vols més grans o petits */
    height: auto !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

/* --- BLANC I NEGRE SEMPRE --- */
.gs_logo_single img {
    filter: grayscale(100%) brightness(0.8);
    opacity: 1;
    transition: all .3s ease-in-out;
}

/* --- HOVER (opcional) → mostra color lleu --- */
.gs_logo_single img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}