/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 18 2026 | 10:06:30 */
/* DATYA – Capçalera (CSS) — servit com a arxiu compartit (abans dins la pàgina). 2026-11-18 */
/* ==========================================================================
     DATYA PILL HEADER ENGINE (DM SANS + HOVER BRIDGE)
     ========================================================================== */

  @property --sweep-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }

  .d-header-wrap,
  .d-header-wrap * {
    font-family: 'DM Sans', sans-serif !important;
    box-sizing: border-box;
  }

  .d-header-wrap {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 999999;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    transform: translateY(0);
    opacity: 1;
  }

  .d-header-wrap.is-hidden {
    transform: translateY(-120%);
    opacity: 0;
  }

  .d-pill {
    pointer-events: auto;
    width: 100%;
    max-width: 1180px;
    height: 64px;
    background: rgba(2, 3, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  }

  .d-brand {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    flex: 0 0 auto !important;
    height: 100% !important;
    line-height: 0 !important;
  }

  .d-brand-img {
    height: 34px !important;
    max-height: 34px !important;
    width: auto !important;
    max-width: 180px !important;
    display: block !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast;
  }

  .d-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .d-nav-item {
    position: relative;
  }
  .d-nav-link {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .d-nav-link:hover,
  .d-nav-item:hover .d-nav-link,
  .d-nav-item:focus-within .d-nav-link {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
  }
  .d-chevron {
    transition: transform 0.25s ease;
  }
  .d-nav-item:hover .d-chevron,
  .d-nav-item:focus-within .d-chevron {
    transform: rotate(180deg);
  }

  /* HOVER BRIDGE + DESPLEGABLES */
  .d-dropdown-menu {
    position: absolute;
    top: 100%;
    padding-top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-radius: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    pointer-events: none;
    background: transparent;
  }

  .d-menu-services { width: 410px; }
  .d-menu-layers { width: 390px; }

  .d-dropdown-menu::after {
    content: "";
    display: block;
    position: absolute;
    top: 14px; left: 0; right: 0; bottom: 0;
    border-radius: 22px;
    padding: 1.5px;
    background: transparent;
    pointer-events: none;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.75), 0 0 30px rgba(238, 155, 57, 0.12);
  }

  .d-nav-item:hover .d-dropdown-menu,
  .d-nav-item:focus-within .d-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .d-nav-item:hover .d-dropdown-menu::after,
  .d-nav-item:focus-within .d-dropdown-menu::after {
    background: conic-gradient(
      from var(--sweep-angle),
      transparent 70%,
      rgba(238, 155, 57, 0.2) 80%,
      #EE9B39 92%,
      rgba(255, 255, 255, 0.9) 98%,
      #EE9B39 100%
    );
    animation: sweepBorder 5.5s linear infinite;
  }

  @keyframes sweepBorder {
    to { --sweep-angle: 360deg; }
  }

  .d-dropdown-inner {
    background: #060728;
    border-radius: 20px;
    padding: 20px 24px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .d-dropdown-header-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .d-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #EE9B39;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .d-all-link:hover .d-arr {
    transform: translateX(4px);
  }
  .d-arr {
    transition: transform 0.2s ease;
  }

  /* Grid Serveis */
  .d-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .d-col-title {
    font-size: 10.5px;
    font-weight: 800;
    color: #EE9B39;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
  }
  .d-menu-col a {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    padding: 5px 0;
    transition: all 0.2s ease;
  }
  .d-menu-col a:hover {
    color: #FFFFFF;
    transform: translateX(3px);
  }
  .d-menu-col a.d-link-highlight {
    color: #EE9B39;
    font-weight: 700;
  }

  /* Llista Capes */
  .d-layers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .d-layer-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .d-layer-card-link:hover {
    background: rgba(77, 15, 103, 0.4);
    border-color: rgba(238, 155, 57, 0.4);
    transform: translateX(3px);
  }
  .d-layer-num {
    font-size: 16px;
    font-weight: 900;
    color: #EE9B39;
    line-height: 1;
  }
  .d-layer-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .d-layer-info strong {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
  }
  .d-layer-info small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
  }

  /* ACCIONS DRETA & SELECTOR IDIOMES */
  .d-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .d-btn-cta {
    font-size: 13.5px;
    font-weight: 700;
    background: #EE9B39;
    color: #02032A;
    text-decoration: none;
    padding: 9px 22px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .d-btn-cta:hover {
    background: #D9812A;
    transform: translateY(-1px);
  }

  .d-lang-select {
    position: relative;
  }
  .d-lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: border-color 0.2s ease;
  }
  .d-lang-btn:hover {
    border-color: #EE9B39;
  }
  .d-lang-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #0B0C33;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    z-index: 100;
  }
  .d-lang-select.open .d-lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .d-lang-options a {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  .d-lang-options a:hover,
  .d-lang-options a.active {
    background: rgba(238, 155, 57, 0.15);
    color: #EE9B39;
  }

  /* BURGER & DRAWER MÒBIL */
  .d-burger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
  }
  .d-burger span {
    width: 20px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
  }

  .d-mobile-drawer {
    display: none;
  }

  /* RESPONSIVE BREAKPOINTS */
  @media (max-width: 1080px) {
    .d-nav-link { font-size: 12px; padding: 6px 8px; }
    .d-brand-img { max-width: 140px !important; }
  }

  @media (max-width: 900px) {
    .d-nav { display: none; }
    .d-burger { display: flex; }
    .d-pill { height: 56px; padding: 0 18px; }
    .d-brand-img { height: 28px !important; }
    .d-btn-cta { display: none; }

    .d-mobile-drawer {
      pointer-events: auto;
      position: absolute;
      top: 66px;
      left: 16px;
      right: 16px;
      background: #02032A;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 22px;
      padding: 24px;
      flex-direction: column;
      gap: 16px;
      box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9);
      max-height: 80vh;
      overflow-y: auto;
    }
    .d-mobile-drawer.open { display: flex; }

    .d-mob-section {
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding-bottom: 14px;
    }
    .d-mob-heading {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #EE9B39;
      display: block;
      margin-bottom: 8px;
    }
    .d-mob-subgrid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 12px;
    }
    .d-mob-subgrid a {
      font-size: 13px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      padding: 4px 0;
    }
    .d-mob-subgrid a.d-mob-main {
      grid-column: 1 / -1;
      color: #EE9B39;
      font-weight: 700;
      margin-bottom: 4px;
    }
    .d-mob-links {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .d-mob-links a {
      font-size: 14px;
      font-weight: 700;
      color: #FFFFFF;
      text-decoration: none;
    }
    .d-btn-mobile {
      background: #EE9B39 !important;
      color: #02032A !important;
      text-align: center;
      border-radius: 999px;
      padding: 12px 20px;
      font-size: 13.5px;
      font-weight: 800;
      text-decoration: none;
      border: none !important;
      margin-top: 6px;
    }
  }
