/*
 Theme Name: Hello Biz Child
 Description: Tema fill del tema Hello Biz
 Author: Hello
 Template: hello-biz
 Version: 1.0.0
*/




/* COLORS */
:rot {
    --color-rosa: #F7ABC7;       /*rosa*/  
    --color-lila: #B494C5;       /*lila*/
    --color-vermell: #F4A6A6;    /*vermell*/
    --color-groc: #FDE780;       /*groc*/    
    --color-blau: #86E1E0;       /*blau*/
    --color-verd: #C5EA8B;       /*verd*/
    --color-fons: #FFF8F3;       /*fons*/
    --color-text: #4A4A4A;       /*text*/
   
    
}


:root {
  --lila:    #6610f2;
  --lila-s:  #FBC740;     /* color actual del botó */
  --blanc:   #ffffff;
  /*--ring:    rgba(123,104,238,0.45); /* anell de focus */
}




/* FONTS */
@font-face{
  font-family: 'Nunito';
  src: url('/wp-content/themes/hello-biz-child/fonts/Nunito-Variable.woff2') format('woff2');
  font-weight: 200 1000;   /* tot l’interval disponible */
  font-style: normal;
  font-display: swap;
}




/* ========================================================================== */
/*   BOTÓ DE DESCÀRREGA (SDM)                                                 */
/* ========================================================================== */
.btn-descarga {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 40px 0;
  padding: 12px 40px;
  border-radius: 30px;

  font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 1.5vw, 26px);
  line-height: 1;
  white-space: nowrap;

  color: #ffffff !important; /*OK*/
  background: #B494C5; /*OK*/

  text-decoration: none;
  cursor: pointer;
  border: none;

  transition:
    background-color .2s ease,
    box-shadow .2s ease,
    transform .06s ease;
  -webkit-tap-highlight-color: transparent; /* millor UX en mòbil */
}

.btn-descarga:hover {
  background: #F7ABC7; /*OK*/
  color: #ffffff; /*OK*/
  /*box-shadow: 0 7px 25px rgba(123,104,238,0.25);*/
  /*transform: translateY(-1px);*/
}

/*.btn-descarga:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,.12) inset;
}*/

/* Focus accessible, només quan cal (teclat) */
.btn-descarga:focus {
  outline: none;
}
/*.btn-descarga:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}*/


/* treu subratllat en tots els estats del link */
a.btn-descarga,
a.btn-descarga:link,
a.btn-descarga:visited,
a.btn-descarga:hover,
a.btn-descarga:focus,
a.btn-descarga:active{
  text-decoration: none;
}


/* Respecte a usuaris amb menys animacions */
@media (prefers-reduced-motion: reduce){
  .btn-descarga{ transition: none; }
}




/* ========================================================================== */
/*   OCULTA "ETIQUETADO" A LES ENTRADES DEL A LA PART INFERIOR                */
/* ========================================================================== */
.entry-meta .tags-links,
.entry-footer .tag-links,
.post-tags {
  display:none !important;
}


/* ========================================================================== */
/*   MOSTRA LA MÀ PER A ENLLAÇOS I BOTONS                                     */
/* ========================================================================== */
a[href], a[href]:hover, a[href]:focus, button, button:hover,
button:focus, [role="button"], .wp-block-button__link, .wp-block-button__link:hover,
.wp-block-button__link:focus, .ehp-button__tex, .ehp-flex-footer__link, .ehp-button {
  cursor: pointer !important;
}


/* ========================================================================== */
/*   ELEMENTOR GALLERY: TREU EL PADDING QUE PROVOCA L'OVERFLOW A MÒBIL        */
/* ========================================================================== */
@media (max-width: 767px) {
  .elementor-image-gallery .gallery-item {
    padding-right: 0 !important;
    padding-left: 0 !important;   /* per si algun layout el fa servir */
    width: 100% !important;
    max-width: 100%;
    display: block;               /* evita quirks d'inline-block */
  }

  /* opcional: per si el contenidor té marges negatius/“grid gap” */
  .elementor-image-gallery .gallery {
    margin: 0 !important;
    overflow-x: clip;             /* evita qualsevol sobrant residual */
  }

  /* assegura que la imatge no s’eixampla */
  .elementor-image-gallery .gallery-icon img {
    width: 100%;
    height: auto;
    display: block;
  }
}


/* ========================================================================== */
/*   PADDING ALS CONTENIDORS EN VERSIÓ MÒBIL                                  */
/* ========================================================================== */
@media (max-width: 767px) {
  .e-con-inner {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}






/* ========================================================================== */
/*   "MIGAS DE PAN"                                                           */
/* ========================================================================== */
.rank-math-breadcrumb {
  font-size: 1.1rem !important;
}
.rank-math-breadcrumb, .separator {
  font-size: 1.1rem !important;
}

.rank-math-breadcrumb a {
  font-size: 1.1rem !important;
  color: #B494C5 !important;
}































/* ========================================================================== */
/*   TARGETES AMAZON AFILIATS                                                 */
/* ========================================================================== */
.aff-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
  background: #ffffff;
  color: #1f2937;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  padding: 2rem;
  align-items: start;
  overflow: hidden;
  width: 100%;
  margin: 2rem 0;
}

.aff-card__media {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.aff-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.aff-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aff-card__titlewrap {
  padding: 0.25rem 0 0.5rem;
}

.aff-card__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.25rem, 1vw + 1.1rem, 1.75rem);
  line-height: 1;
  color: #1f2937;
  padding-bottom: 0.4rem;
}

.aff-card__desc {
  color: #1f2937;
  font-size: 1.4rem;
  line-height: 1.55;
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.aff-card__note {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.25rem;
}

.aff-card__disclaimer {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #6b7280;
}

.aff-card__cta {
  /*display: flex;*/
  /*flex-direction: column;*/
  gap: 0.6rem;
  padding-top: 1rem;
}

.aff-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2.6rem;
  border-radius: 999px;
  background: #FFB700;
  font-size: 1.3rem !important;
  color: #111111 !important;
  font-weight: 500;
  text-decoration: none;
  outline: none;
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease;
  width: auto;
}
.aff-card__button:hover {
  background: #FF9900;
  color: #111111 !important;
}
.aff-card__button:focus {
  box-shadow: 0 0 0 4px rgba(255,153,0,.35);
}
.aff-card__button:active {
  transform: translateY(1px);
}

/* Responsive */
@media (max-width: 900px) {
  .aff-card {
    grid-template-columns: 1fr;
  }
  .aff-card__cta {
    align-items: center;
    text-align: center;
  }
}













/* ========================================================================== */
/*   BLOC MÉS TARGETES                                                        */
/* ========================================================================== */
.mes-block {
  display: flex;
  flex-direction: column;
  background: #CF3476;
  color: #1f2937;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  padding: 2rem;
  align-items: center;
  overflow: hidden;
  width: 100%;
  margin: 2rem 0;
  text-align:center;
}
.mes-title {
  margin: 0 0 .35rem;
  font-weight: 800;
  font-size: clamp(1.4rem,3vw,2.2rem);
  line-height: 1.15;
  color: #ffffff !important;
  margin-bottom: 2rem;
}
.mes-text {
  margin: 0 0 .75rem;
  color: #ffffff !important;
  line-height: 1.6;
}
.mes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 12px;
  border: 0;
  background: #ffffff !important;
  color: #1f2937 !important;
  font-size: clamp(1.2rem,3vw,2rem);
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  margin-top: 2rem;
}
.mes-btn:hover { transform:translateY(-1px); }
.mes-btn:active{ transform:translateY(0); }
.mes-btn[disabled], .mes-btn[aria-busy="true"]{ opacity:.7; cursor:not-allowed; }
.mes-btn:focus-visible {
  outline:3px solid rgba(167,139,250,.45);   /* anell lila */
  outline-offset:2px;
}

.mes-thanks {
  display: none;
  margin-top: .75rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 640px) {
  .mes-block {
    padding: 1.6rem 1rem;
  }
  .mes-title {
    font-size: clamp(1.35rem,5vw,1.8rem);
  }
}

/* Accessibilitat: si l’usuari prefereix menys animacions */
@media (prefers-reduced-motion: reduce) {
  .mes-btn {
    transition:none;
  }
}













