/*
Theme Name: ARIVA Child
Theme URI: http://www.themestudio.net
Author: Vu Ngoc Linh
Author URI: http://www.themestudio.net
Description: ARIVA Child Theme - ARIVA is an onepage, minimal, clean and modern WordPress Theme for anyone who wants to build an amazing & modern website for their agency, company, team work, group of people, a music band, hiphop band, dancing band, dancer, freelancer team..
Template: ariva
Version: 1.8
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: white, custom-background, threaded-comments, translation-ready, custom-menu
Text Domain: themestudio
*/

/*For older themes, and themes that do not use wp_enqueue_style() to enqueue their stylesheet, use the following line where ainex is the name of the directory where the theme resides:*/
@import url("../ariva/style.css");
/* Ajustes responsive Genèric: servicios en rejilla y menú móvil funcional. */
@media (min-width: 992px) {
    .ts-service-slide {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
        gap: 30px !important;
        align-items: stretch !important;
    }
    .ts-service-slide > .item-service-slide {
        width: auto !important;
        min-width: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }
    .ts-service-slide > .item-service-slide .content-service { flex: 1 1 auto !important; }
    .menubar.menubar-default { display: none !important; visibility: hidden !important; pointer-events: none !important; }
    #default-menu-position { display: block !important; visibility: visible !important; }
}
@media (max-width: 991px) {
    .ts-service-slide { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
    .ts-service-slide > .item-service-slide { width: auto !important; max-width: 100% !important; margin: 0 !important; }
    .menubar.menubar-default { display: block !important; visibility: visible !important; pointer-events: auto !important; z-index: 10001 !important; }
    #default-menu-position { display: none !important; visibility: hidden !important; opacity: 0 !important; height: 0 !important; overflow: hidden !important; }
    #default-menu-position.generic-mobile-menu-open { display: block !important; visibility: visible !important; opacity: 1 !important; height: auto !important; overflow: visible !important; }
    #default-menu-position.generic-mobile-menu-open .default-nav { display: flex !important; flex-direction: column !important; width: 100% !important; }
}

/* Elimina el bloque vacío previo al inicio en la portada beta. */
body.home #container_full > .bg_parallax:nth-child(3) {
  display: none !important;
}

/* Banners de secciones. */
.page-id-1899 #banner .banner { background-image: url("/wp-content/uploads/2026/07/projectes.png"); background-position: center center; background-repeat: no-repeat; background-size: cover; }
.page-id-1900 #banner .banner { background-image: url("/wp-content/uploads/2026/07/servicios.png"); background-position: center center; background-repeat: no-repeat; background-size: cover; }
.page-id-1901 #banner .banner { background-image: url("/wp-content/uploads/2026/07/clients.png"); background-position: center center; background-repeat: no-repeat; background-size: cover; }
.page-id-1902 #banner .banner { background-image: url("/wp-content/uploads/2026/07/contacte.jpg"); background-position: center 58%; background-repeat: no-repeat; background-size: cover; }

/* Correcciones de composición, alineación y lectura móvil. */
@media (min-width: 768px) {
  body.home .vc_btn3-container:has(> a[href$="/serveis/"]) {
    margin-top: -24px !important;
    margin-bottom: 22px !important;
  }

  body.page-id-1900 .section-title,
  body.page-id-1900 .section-title h3,
  body.page-id-1900 .section-title + .vc_separator,
  body.page-id-1900 .section-title + .vc_separator + .wpb_text_column {
    text-align: center !important;
  }

  body.page-id-1900 .section-title + .vc_separator + .wpb_text_column {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 767px) {
  body.home .main-header {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  body.page-id-1899 #banner .banner,
  body.page-id-1900 #banner .banner,
  body.page-id-1902 #banner .banner {
    min-height: 210px !important;
    height: 210px !important;
    background-size: cover !important;
  }

  body.page-id-1899 #banner .banner { background-position: left bottom !important; }
  body.page-id-1900 #banner .banner { background-position: 62% bottom !important; }
  body.page-id-1902 #banner .banner { background-position: center 62% !important; }

  body.page-id-1900 .ts-service-slide {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: calc(100vw - 30px) !important;
    margin-left: calc(50% - 50vw + 15px) !important;
  }

  body.page-id-1900 .ts-service-slide .item-service-slide {
    width: auto !important;
  }

  body.page-id-1902 .generic-privacy-consent {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 460px;
    margin: 12px auto 20px !important;
    padding: 0 22px;
    text-align: left !important;
  }

  body.page-id-1902 .generic-privacy-consent label {
    position: relative;
    display: block !important;
    max-width: none !important;
    padding-left: 27px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left !important;
  }

  body.page-id-1902 .generic-privacy-consent input[type="checkbox"] {
    position: absolute;
    top: .35em;
    left: 0;
    width: 16px;
    height: 16px;
    margin: 0 !important;
  }
}


/* Prioridad sobre las reglas heredadas insertadas en el contenido. */
@media (max-width: 767px) {
  body.page-id-1900.wpb-js-composer .ts-service-slide {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: calc(100vw - 30px) !important;
    margin-left: calc(50% - 50vw + 15px) !important;
  }

  body.page-id-1900.wpb-js-composer .ts-service-slide .item-service-slide {
    width: auto !important;
  }

  body.page-id-1902.wpb-js-composer .generic-privacy-consent {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 460px !important;
    margin: 12px auto 20px !important;
    padding: 0 22px !important;
    text-align: left !important;
  }

  body.page-id-1902.wpb-js-composer .generic-privacy-consent label {
    position: relative !important;
    display: block !important;
    max-width: none !important;
    padding-left: 27px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }

  body.page-id-1902.wpb-js-composer .generic-privacy-consent input[type="checkbox"] {
    position: absolute !important;
    top: .35em !important;
    left: 0 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
  }
}
