/* Body Nutrition: regole CSS delle pagine CMS. */

/* =========================================================
   3. CMS - pagine CMS
   ========================================================= */

body.page-cms .page-content img,
body.page-cms .rte img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   BODY NUTRITION - CMS SHOP ALL CATEGORIES
   ========================================================= */


/* ---------------------------------------------------------
   MAIN CONTAINER
   --------------------------------------------------------- */

.bn-all-categories {
  width: 100%;
  margin: 0;
  padding: 10px 0 40px;
  box-sizing: border-box;
}


/* ---------------------------------------------------------
   INTRO
   --------------------------------------------------------- */

.bn-all-categories__intro {
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
}

.bn-all-categories__intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #5d6870;
}


/* ---------------------------------------------------------
   CATEGORY GROUP
   --------------------------------------------------------- */

.bn-category-group {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}


/* ---------------------------------------------------------
   CATEGORY HEADER
   Qui gestiamo il distacco tra le categorie padre
   --------------------------------------------------------- */

.bn-category-group__head {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-top: 40px;
  margin-bottom: 16px;

  padding: 0;
}


/* Il primo gruppo non deve avere spazio sopra */

.bn-category-group:first-of-type .bn-category-group__head {
  margin-top: 0;
}


/* ---------------------------------------------------------
   CATEGORY ICON
   --------------------------------------------------------- */

.bn-category-group__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 48px;
  width: 48px;
  height: 48px;

  border-radius: 10px;

  background: rgba(72, 188, 138, .11);
  color: #2eb279;

  font-size: 22px;
}

.bn-category-group__head > div:last-child {
  min-width: 0;
}


/* ---------------------------------------------------------
   CATEGORY TITLE
   --------------------------------------------------------- */

.bn-category-group__head h2 {
  margin: 0 0 4px;
  padding: 0;

  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;

  color: #263746;
}

.bn-category-group__head h2 a {
  color: #263746;
  text-decoration: none;
}

.bn-category-group__head h2 a:hover {
  color: #2eb279;
}


/* ---------------------------------------------------------
   CATEGORY DESCRIPTION
   --------------------------------------------------------- */

.bn-category-group__head p {
  margin: 0;
  padding: 0;

  font-size: 12px;
  line-height: 1.45;

  color: #69767e;
}


/* ---------------------------------------------------------
   SUBCATEGORY GRID
   --------------------------------------------------------- */

.bn-category-links {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;

  margin: 0;
  padding: 0;
}


/* ---------------------------------------------------------
   SUBCATEGORY LINK
   --------------------------------------------------------- */

.bn-category-links a {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 44px;

  padding:
    10px
    38px
    10px
    13px;

  box-sizing: border-box;

  background: #f8fbf9;

  border: 1px solid #dcebe3;

  border-radius: 7px;

  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;

  color: #34444c;

  text-decoration: none;

  transition:
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}


/* ---------------------------------------------------------
   PURE CSS ARROW
   --------------------------------------------------------- */

.bn-category-links a::after {
  content: "";

  position: absolute;

  right: 16px;
  top: 50%;

  width: 7px;
  height: 7px;

  border-top: 2px solid #2eb279;
  border-right: 2px solid #2eb279;

  transform:
    translateY(-50%)
    rotate(45deg);

  box-sizing: border-box;
}


/* ---------------------------------------------------------
   SUBCATEGORY HOVER
   --------------------------------------------------------- */

.bn-category-links a:hover {
  background: #f0faf5;

  border-color: #a9dec7;

  color: #229b69;

  transform: translateY(-1px);

  box-shadow:
    0 3px 10px rgba(46, 178, 121, .08);
}


/* ---------------------------------------------------------
   SHOP BY GOAL
   --------------------------------------------------------- */

.bn-category-group--goals {
  margin-top: 40px;

  padding: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(72, 188, 138, .07) 0%,
      #ffffff 55%,
      rgba(72, 188, 138, .05) 100%
    );

  border: 1px solid #d7eee3;

  border-radius: 10px;
}


/* Evita doppio spazio nel blocco Goals */

.bn-category-group--goals .bn-category-group__head {
  margin-top: 0;
  margin-bottom: 16px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

  .bn-category-links {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

}


/* =========================================================
   TABLET SMALL
   ========================================================= */

@media (max-width: 991px) {

  .bn-all-categories {
    padding-bottom: 30px;
  }

  .bn-all-categories__intro {
    max-width: 760px;
    margin-bottom: 32px;
  }

  .bn-category-group__head {
    margin-top: 34px;
  }

  .bn-category-group:first-of-type .bn-category-group__head {
    margin-top: 0;
  }

  .bn-category-group__head h2 {
    font-size: 20px;
  }

  .bn-category-group--goals {
    margin-top: 34px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .bn-all-categories {
    padding: 5px 0 24px;
  }


  /* INTRO */

  .bn-all-categories__intro {
    max-width: none;
    margin-bottom: 28px;
    text-align: left;
  }

  .bn-all-categories__intro p {
    font-size: 13px;
    line-height: 1.55;
  }


  /* CATEGORY HEADER */

  .bn-category-group__head {
    align-items: flex-start;

    gap: 12px;

    margin-top: 28px;
    margin-bottom: 14px;
  }

  .bn-category-group:first-of-type .bn-category-group__head {
    margin-top: 0;
  }


  /* ICON */

  .bn-category-group__icon {
    flex-basis: 40px;

    width: 40px;
    height: 40px;

    font-size: 19px;

    border-radius: 8px;
  }


  /* TITLE */

  .bn-category-group__head h2 {
    font-size: 17px;
  }


  /* DESCRIPTION */

  .bn-category-group__head p {
    font-size: 11px;
  }


  /* GRID */

  .bn-category-links {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 7px;
  }


  /* SUBCATEGORY */

  .bn-category-links a {
    min-height: 40px;

    padding:
      8px
      30px
      8px
      10px;

    font-size: 11px;
  }


  /* ARROW */

  .bn-category-links a::after {
    right: 12px;

    width: 6px;
    height: 6px;
  }


  /* GOALS */

  .bn-category-group--goals {
    margin-top: 28px;
    padding: 16px 14px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

  .bn-category-links {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}
/* =========================================================
   BODY NUTRITION â€” OUR STORY
   ========================================================= */

.bn-story-intro,
.bn-story-section,
.bn-story-values,
.bn-story-evolution,
.bn-story-today,
.bn-story-cta {
  box-sizing: border-box;
}

.bn-story-eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #2eb279;
}


/* =========================================================
   INTRO
   ========================================================= */

.bn-story-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, .8fr);
  gap: 45px;
  align-items: center;
  width: 100%;
  margin: 0 0 18px;
  padding: 42px 46px;
  overflow: hidden;
  background: linear-gradient(135deg, #f2faf6 0%, #fbfdfc 100%);
  border: 1px solid #deebe5;
  border-radius: 10px;
}

.bn-story-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    #2eb279 0%,
    #48bc8a 55%,
    rgba(72,188,138,.15) 100%
  );
}

.bn-story-intro__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.bn-story-intro__content h2 {
  margin: 0 0 16px;
  padding: 0;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.6px;
  color: #263746;
}

.bn-story-intro__content p {
  margin: 0 0 11px;
  max-width: 680px;
  font-size: 13px;
  line-height: 1.65;
  color: #5f6e75;
}

.bn-story-intro__content .bn-story-intro__lead {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: #3f5058;
}

.bn-story-intro__highlight {
  position: relative;
  padding: 25px 25px;
  background: rgba(255,255,255,.78);
  border: 1px solid #dceae3;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(35,55,65,.05);
}

.bn-story-intro__highlight strong {
  display: block;
  margin-bottom: 7px;
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
  color: #2eb279;
}

.bn-story-intro__highlight span {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  color: #68767e;
}


/* =========================================================
   OUR BEGINNING
   ========================================================= */

.bn-story-section {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.8fr);
  gap: 55px;
  width: 100%;
  padding: 42px 46px;
}

.bn-story-section__head h2 {
  margin: 0;
  padding: 0;
  max-width: 270px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.3px;
  color: #263746;
}

.bn-story-section__content {
  max-width: 760px;
}

.bn-story-section__content p {
  margin: 0 0 13px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #5f6e75;
}

.bn-story-section__content p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   VALUES
   ========================================================= */

.bn-story-values {
  width: 100%;
  padding: 38px 46px 42px;
  background: #f7faf8;
  border-top: 1px solid #e5ece8;
  border-bottom: 1px solid #e5ece8;
}

.bn-story-values__intro {
  max-width: 760px;
  margin: 0 auto 25px;
  text-align: center;
}

.bn-story-values__intro h2 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.35px;
  color: #263746;
}

.bn-story-values__intro p {
  margin: 0 auto 8px;
  max-width: 720px;
  font-size: 12px;
  line-height: 1.6;
  color: #68767e;
}

.bn-story-values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.bn-story-value {
  position: relative;
  min-width: 0;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #e1ebe6;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(35,55,65,.04);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.bn-story-value:hover {
  transform: translateY(-2px);
  border-color: #d0e4da;
  box-shadow: 0 7px 18px rgba(35,55,65,.07);
}

.bn-story-value__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #edf9f3;
  color: #2eb279;
  font-size: 18px;
}

.bn-story-value h3 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  color: #263746;
}

.bn-story-value p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: #68767e;
}


/* =========================================================
   2001 / EVOLUTION
   ========================================================= */

.bn-story-evolution {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.8fr);
  gap: 50px;
  align-items: center;
  width: 100%;
  padding: 48px 46px;
}

.bn-story-evolution__number {
  font-size: 72px;
  line-height: .9;
  font-weight: 800;
  letter-spacing: -4px;
  color: #2eb279;
  opacity: .18;
}

.bn-story-evolution__content {
  max-width: 730px;
}

.bn-story-evolution__content h2 {
  margin: 0 0 14px;
  padding: 0;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.35px;
  color: #263746;
}

.bn-story-evolution__content p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.65;
  color: #68767e;
}


/* =========================================================
   BODY NUTRITION TODAY
   ========================================================= */

.bn-story-today {
  width: 100%;
  padding: 40px 46px;
  background: linear-gradient(135deg, #263746 0%, #31464f 100%);
}

.bn-story-today__content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.bn-story-today .bn-story-eyebrow {
  color: #65d3a4;
}

.bn-story-today__content h2 {
  margin: 0 0 14px;
  padding: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.35px;
  color: #fff;
}

.bn-story-today__content p {
  margin: 0 auto 10px;
  max-width: 760px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,.76);
}

.bn-story-today__content .bn-story-today__statement {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: 13px;
  color: rgba(255,255,255,.88);
}

.bn-story-today__statement strong {
  color: #65d3a4;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.bn-story-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  width: 100%;
  padding: 34px 46px;
  background: #f1faf6;
  border: 1px solid #dcebe4;
  border-top: 0;
}

.bn-story-cta h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  color: #263746;
}

.bn-story-cta p {
  margin: 0;
  max-width: 600px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #68767e;
}

.bn-story-cta__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.bn-story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.bn-story-btn span {
  font-size: 15px;
  transition: transform .2s ease;
}

.bn-story-btn:hover span {
  transform: translateX(2px);
}

.bn-story-btn--primary {
  background: #2eb279;
  border: 2px solid #2eb279;
  color: #fff !important;
}

.bn-story-btn--primary:hover {
  background: #279d6b;
  border-color: #279d6b;
  color: #fff !important;
}

.bn-story-btn--secondary {
  background: transparent;
  border: 2px solid #2eb279;
  color: #2eb279 !important;
}

.bn-story-btn--secondary:hover {
  background: #fff;
  color: #279d6b !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

  .bn-story-intro {
    grid-template-columns: minmax(0,1.5fr) minmax(190px,.7fr);
    gap: 25px;
    padding: 35px 30px;
  }

  .bn-story-intro__content h2 {
    font-size: 29px;
  }

  .bn-story-section {
    gap: 30px;
    padding: 36px 30px;
  }

  .bn-story-values {
    padding: 34px 30px 38px;
  }

  .bn-story-evolution {
    gap: 30px;
    padding: 42px 30px;
  }

  .bn-story-evolution__number {
    font-size: 60px;
  }

  .bn-story-today {
    padding: 38px 30px;
  }

  .bn-story-cta {
    padding: 30px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .bn-story-eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: 1.1px;
  }

  .bn-story-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 8px;
    padding: 28px 20px 22px;
    border-radius: 7px;
  }

  .bn-story-intro__content h2 {
    margin-bottom: 13px;
    font-size: 27px;
  }

  .bn-story-intro__content .bn-story-intro__lead {
    font-size: 13px;
  }

  .bn-story-intro__content p {
    font-size: 11.5px;
  }

  .bn-story-intro__highlight {
    padding: 18px;
  }

  .bn-story-intro__highlight strong {
    font-size: 23px;
  }

  .bn-story-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 20px;
  }

  .bn-story-section__head h2 {
    max-width: none;
    font-size: 23px;
  }

  .bn-story-section__content p {
    font-size: 11.5px;
  }

  .bn-story-values {
    padding: 30px 20px;
  }

  .bn-story-values__intro {
    margin-bottom: 20px;
    text-align: left;
  }

  .bn-story-values__intro h2 {
    font-size: 23px;
  }

  .bn-story-values__intro p {
    font-size: 11px;
  }

  .bn-story-values__grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .bn-story-value {
    padding: 19px 18px;
  }

  .bn-story-value__icon {
    width: 38px;
    height: 38px;
    margin-bottom: 11px;
    font-size: 16px;
  }

  .bn-story-evolution {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 34px 20px;
  }

  .bn-story-evolution__number {
    font-size: 52px;
  }

  .bn-story-evolution__content h2 {
    font-size: 23px;
  }

  .bn-story-evolution__content p {
    font-size: 11.5px;
  }

  .bn-story-today {
    padding: 32px 20px;
  }

  .bn-story-today__content {
    text-align: left;
  }

  .bn-story-today__content h2 {
    font-size: 23px;
  }

  .bn-story-today__content p {
    font-size: 11px;
  }

  .bn-story-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 20px;
  }

  .bn-story-cta h2 {
    font-size: 22px;
  }

  .bn-story-cta__actions {
    width: 100%;
  }

  .bn-story-btn {
    flex: 1;
    padding: 0 12px;
    font-size: 9.5px;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

  .bn-story-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bn-story-btn {
    width: 100%;
  }
}
/* Shipping CMS page */
.bn-shipping {
  color: #344451;
}

.bn-shipping-hero {
  margin-bottom: 24px;
  padding: 32px;
  border: 1px solid #dceee6;
  border-radius: 14px;
  background: linear-gradient(110deg, #eefbf5, #f9fefb);
}

.bn-shipping-eyebrow,
.bn-shipping-label {
  color: #268a64;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}

.bn-shipping-hero h2 {
  margin: 10px 0;
  color: #293947;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
}

.bn-shipping-hero p {
  max-width: 850px;
  margin: 0;
  line-height: 1.7;
}

.bn-shipping-warehouses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.bn-shipping-card,
.bn-shipping-section {
  padding: 24px;
  border: 1px solid #e1ece6;
  border-radius: 13px;
  background: #fff;
}

.bn-shipping-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.bn-shipping-card-head > div {
  flex: 1;
  min-width: 0;
}

.bn-shipping-card-head img {
  object-fit: contain;
}

.bn-shipping-number {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #e7f7ef;
  color: #24966a;
  font-weight: 800;
}

.bn-shipping-card h3 {
  margin: 3px 0 0;
  color: #293947;
  font-size: 19px;
  font-weight: 800;
}

.bn-shipping-card > p,
.bn-shipping-section p {
  line-height: 1.65;
}

.bn-shipping-rate {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-top: 1px solid #e6eee9;
}

.bn-shipping-rate strong {
  flex-shrink: 0;
  color: #178457;
}

.bn-shipping-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.bn-shipping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bn-shipping-table caption {
  padding: 0 0 9px;
  color: #293947;
  font-weight: 700;
  text-align: left;
}

.bn-shipping-table th,
.bn-shipping-table td {
  padding: 11px 8px;
  border-bottom: 1px solid #e6eee9;
  text-align: left;
}

.bn-shipping-table thead {
  background: #edf8f2;
}

.bn-shipping-table td {
  white-space: nowrap;
}

.bn-shipping-notice {
  margin: 20px 0 28px;
  padding: 18px 20px;
  border-left: 3px solid #36ad7a;
  border-radius: 0 9px 9px 0;
  background: #f2fbf6;
  line-height: 1.6;
}

.bn-shipping-section {
  margin-top: 16px;
}

.bn-shipping-section h2 {
  margin: 0 0 12px;
  color: #293947;
  font-size: 21px;
  font-weight: 800;
}

.bn-shipping-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .bn-shipping-hero,
  .bn-shipping-card,
  .bn-shipping-section {
    padding: 20px;
  }

  .bn-shipping-warehouses {
    grid-template-columns: 1fr;
  }

  .bn-shipping-rate {
    font-size: 13px;
  }
}
