body{background-color: rgb(247,247,248)!important;}
footer{background: #fff;}

/* ===============================
ANIMACIONS SCROLL
================================ */

/* Estat inicial */
.fade-up,
.fade-left,
.fade-right {
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}

/* Moviments inicials */
.fade-up {
    transform: translateY(40px);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-right {
    transform: translateX(40px);
}

/* Quan apareix */
.fade-visible {
    opacity: 1;
    transform: translate(0,0);
}

/* ===============================================================================================================
        0- TEXT MIDES
=============================================================================================================== */
.hero-title { font-family: 'HN-75-Bold';font-size: 3rem; line-height: 1.1;}
.hero-subtitle { font-family: 'HN-55-Roman';font-size: 2.2rem;}
.hero-btn { font-family: 'HN-55-Roman'; font-size: 1rem; font-weight: 100;line-height: 30px;}
/*benefits*/
.benefit-title { font-family: 'HN-55-Roman'; font-size: clamp(1.1rem, 31px, 31px); font-weight: 600; max-width: }
.benefit-subtitle { font-family: 'HN-55-Roman'; font-size: clamp(10px, 16px, 16px); }
.benefit-link { font-family: 'HN-55-Roman'; font-size: 0.93rem; font-weight: 400; }
.tag { font-family: 'HN-55-Roman'; font-size: 0.9rem; }
.products-title, .we-are-header h2, .launches-header h2, .support-header h2 { font-family: 'HN-55-Roman' !important; font-size: 50px; font-weight: 600; margin-bottom: 12px; padding: 0 15px; }

.products-subtitle { font-family: 'HN-55-Roman'!important; font-size: 1rem; line-height: 1.3rem; color: #231F20; max-width: 1450px; margin:0 auto; margin-bottom: 140px; padding: 0 15px;}
.launches-header p, .support-header p { font-family: 'HN-55-Roman'!important; font-size: 1rem; line-height: 1.3rem; color: #cfcfcf;}
.launch-subtitle { font-family: 'HN-55-Roman'; font-size: 14px; color: #a2a2a2; margin-bottom: 6px; line-height:16px; }
.launch-title { font-family: 'HN-55-Roman'; font-size: 14px; line-height: 16px;  color: #a2a2a2; }
.launches-cta .btn-primary { font-family: 'HN-55-Roman';  color: #fff; font-size: 20px; }

/* ===============================================================================================================
        1- HERO GLOBAL 
=============================================================================================================== */

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide { width: 100%; height: 85vh; }

/* Cada slide */
.hero-slide { position: relative;width: 100%;height: 100%;overflow: hidden; }

/* Imatges i vídeos (locals i YouTube) */
.hero-slide img,
.hero-slide video.hero-video,
.hero-slide iframe.hero-video { position: absolute;top: 0;left: 0;width: 100%;height: 100%;object-fit: cover;   }

/* ========== CLOUDLARE STREAM ========== */

/* Contenidor del vídeo */
.video-wrapper-cloudflare { position: absolute;inset: 0;overflow: hidden;background: black;z-index: 0; }

/* Iframe que simula object-fit: cover */
.video-wrapper-cloudflare iframe { position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%); width: 100%;height: 100%;border: none;pointer-events: none;}

.cf-wrapper { position: relative;width: 100%;height: 100%;padding-top: 22%;  }
.cf-wrapper iframe {position: absolute;top: 0;left: 0;width: 100%;height: 100%;border: none;}


/* VIDEO YOUTUBE HERO */

.hero-slide iframe.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100vw;
    height: 56.25vw; /* ratio 16:9 */

    min-height: 100vh;
    min-width: 177.77vh;

    transform: translate(-50%, -50%);

    pointer-events: none;
}

/* ========== OVERLAY + TEXT ========== */

.hero-overlay {position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0,0,0,0.35);z-index: 1;}
.hero-content {position: absolute;z-index: 2;top: 50%;left: 8%;transform: translateY(-50%);color: #fff;max-width: 800px;}
.hero-title { margin-bottom: 1rem; }
.hero-subtitle { margin-bottom: 2rem; }
.hero-btn { display: inline-block;padding: 15px 60px;background: #DA1F26;color: #fff; border-radius: 50px; text-decoration: none;transition: 0.2s ease;}
.hero-btn:hover{background-color: #f40d18 !important;color: #fff;text-decoration: none;}


/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {

/* — HERO CONTENT — */
    .hero-content {position: absolute; top: 50%; left: 5%; transform: translateY(-50%); text-align: left; width: 90%; max-width: 90%;}

    /* — TITLE — */
    .hero-title {font-size: 2.6rem; line-height: 1.15; margin-bottom: 1rem;
    }

    /* — SUBTITLE — */
    .hero-subtitle {font-size: 1.6rem; margin-bottom: 1.8rem;line-height: 1.25;
    }

    /* — BUTTON — */
    .hero-btn {display: block; width: 100%; padding: 10px 32px; font-size: 1.5rem;border-radius: 50px;text-align: center;box-sizing: border-box; }
}

@media (max-aspect-ratio: 9/16) {
    .video-wrapper-cloudflare iframe { width: 100vw; height: calc(100vw * 16 / 9);}
}

/* ===============================================================================================================
   2- BENEFITS SECTION — GLASSMORPHISM CARDS
=========================================== */

.home-benefits { position: relative; margin-top: -94px; z-index: 10;}

/* ===========================================
   DESKTOP ( >1024px ) — GRID
=========================================== */

.benefits-container { max-width: 1500px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;}
.benefits-mobile { display: none;}

/* CARD */
.benefit-card { display: block; position: relative; border-radius: 20px; overflow: hidden; background:#fff; display: flex; align-items: flex-start;
 aspect-ratio: 1 / 1; background-size: contain; background-repeat: no-repeat; background-position: center bottom; transition: all 0.25s ease; text-decoration: none;}
.benefit-card:hover { transform: translateY(-6px); text-decoration: none;}

/* contingut per sobre del gradient */
.benefit-content { position: static; z-index: 2; padding: clamp(5px, 10px, 10px); padding-left: clamp(5px, 1.5vw, 3rem); padding-right: clamp(5px, 1.5vw, 3rem); max-width:475px; }

/* CONTINGUT */
.benefit-content { width: 100%; text-align: left; margin-top: clamp(0.6rem, 1.2vw, 1.4rem);}
.benefit-title { margin-bottom: 0.4rem; color: #000;}
.benefit-subtitle { color: #444; margin-bottom: 1.2rem;}
.benefit-content,
.benefit-content * {
  color: inherit;
}
/* sobretítol */
.benefit-eyebrow {
  font-size: 18px;
  opacity: 0.7;
  margin-bottom: 8px;
}

/* botó + */
.benefit-plus {
  position: absolute;
  bottom: 20px;
  right: 20px;

  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-plus span {
  color: #fff;
  font-size: 22px;
}
.benefit-link { color: #D10000; text-decoration: none; display: inline-block;}
.benefit-link:hover { color: #B80000; text-decoration: underline;}

/* TAGS (bloc 3) */
.benefit-tags { margin-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.55rem 0.7rem; }
.tag { padding: 0.42rem 0.95rem; border-radius: 999px; border: 1px solid #000; background: #FFF; color: #000; text-decoration: none; white-space: nowrap;}
.tag:hover { color:#000; text-decoration: none; border: 1px solid #000;}
.tag.featured { background: #D10000; color: #fff; border-color: #D10000;}
.tag.featured:hover{color:#fff;text-decoration: underline;}

/* ===========================================
   MOBILE / TABLET ( ≤1130px ) — SWIPER
=========================================== */

@media (max-width: 1130px) {
    .home-benefits { margin-top: 15px;}

    /* ❌ GRID TOTALMENT AMAGAT */
    .benefits-container { display: none;}
    .benefits-mobile .swiper-slide {width: auto;}

    /* ✅ SWIPER ACTIU */
    .benefits-mobile { display: block; padding: 0 0 24px;}
    .benefits-mobile .swiper-slide {  width:auto;}
    .benefit-card { background-position: center 75%;  }
    .benefit-title { font-size: 1.55rem;}
    .benefit-subtitle { font-size: 0.95rem;}

}

@media (max-width: 768px) {
  .benefit-card { background-position: center 78%; }
  .benefit-title { font-size: 1.45rem;}
  .benefit-subtitle { font-size: 0.9rem;}
  .benefit-tags { margin-top: 1.1rem;}
  .benefits-mobile .swiper-wrapper{padding-top: 10px;}
  .benefit-content { padding-left: clamp(5px, 4.5vw, 3rem); padding-right: clamp(5px, 4.5vw, 3rem);}
}

/* ===========================================
   LARGE ( ≥1600px )
=========================================== */

@media (min-width: 1600px) {
  .benefits-container { gap: 20px;}
  .benefit-card { border-radius: 14px;}
  .benefit-tags .tag { padding: 0.65rem 1.05rem 0.45rem; }
}

/* ===============================================================================================================
   3- PRODUCTES
=========================================== */

.home-products { padding: 140px 0; text-align: center; background: rgb(247, 247, 248);}


/* GRID DESKTOP */
.home-products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: 1500px; margin: 0 auto; padding: 0 30px;}

/* 🔑 Neutralitzem Swiper en desktop */
.home-products-grid.swiper { overflow: hidden;}
.home-products-grid .swiper-wrapper { display: contents; }
.home-products-grid .swiper-pagination { display: none;}


@media (max-width: 1400px) {
    .home-products-grid { grid-template-columns: repeat(3, 1fr);}
}

/* Tablet: 3 columnes (2 files) */
@media (max-width: 992px) {
    .home-products-grid { grid-template-columns: repeat(3, 1fr);}
}

/* ========= TARGETA PRODUCTE ========= */
.product-item { position: relative; background: #fff; border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; max-height: 520px; display: block; text-decoration: none; color: inherit; transition: all 0.25s ease;}
.product-item:hover { transform: translateY(-6px);}

/* IMATGE */
.product-image { position: absolute; top: 0px; left: 0; right: 0; text-align: center;}
.product-image img { max-height: 100%;
    max-width: 85%;
    width: auto;
    height: auto;
    object-fit: contain;}

/* TEXT */
.product-text { position: absolute; bottom: 26px; left: 26px; right: 26px; text-align: left; z-index: 10;}
.product-text .text-grey { font-size: 20px; color: #7a7a7a; line-height: 1.25;}
.product-text .text-black { font-size: 20px; color: #000; line-height: 1.25; }

/* GRADIENT */
.product-item::after {content: "";position: absolute;inset: auto 0 0 0;height: 120px;background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 40%, rgba(255,255,255,0) 100%);}

/* Ajusts mòbil */
@media (max-width: 768px) {
    .product-image img { height: 130px; }
    .product-text .text-grey { font-size: 20px; }
    .product-text .text-black { font-size: 20px; }
}


@media (max-width: 768px) {
    .home-products { text-align: left; padding: 30px 20px 30px;}
    .products-title { font-size: 36px; line-height: 1.15; margin-bottom: 16px; padding: 0; }
    .products-subtitle { font-size: 16px; line-height: 1.5; margin-bottom: 40px; /*max-width: 90%;*/ padding: 0; }

    /* 🔁 PASSEM DE GRID A SWIPER */
    .home-products-grid { display: block; padding: 0;}
    .home-products-grid.swiper { padding: 0 0px 50px;}
    .home-products-grid .swiper-wrapper {display: flex;           /* Swiper necessita flex */}
    .home-products-grid .swiper-slide { width: 90%; max-width: none;}
    .product-image img {height: 300px;}

    .product-item { max-width: 100%;}
}


/* ===============================================================================================================
   4- ÚLTIMOS LANZAMIENTOS LAUNCHES
================================ */

.home-launches { width: 100%; padding: 140px 0 120px; background: #3f3f3f; color: #fff; overflow: hidden;}

/* HEADER */
.launches-header { text-align: center; max-width: 900px; margin: 0 auto 80px;}
.launches-header h2 { color: rgb(228,228,228);}
.launches-header h2 span{ color:#A5A5A5;}

/* SLIDER */
.launches-slider { width: 100%; margin: 0; overflow: visible;}

/* SLIDES */
.launches-slider .swiper-slide { width: 880px; max-width: 90vw; opacity: 1; display: flex; justify-content: center;}

/* IMPORTANT: Swiper calcula l'espai, no el CSS */
.launches-slider .swiper-wrapper { align-items: stretch;}

/* SLIDE ACTIU */
.launches-slider .swiper-slide-active { opacity: 1; transform: scale(1.03);}

/* CARD */
/*.launch-card { width: 100%; height: 600px; background: #4a4a4a; border-radius: 26px; overflow: hidden; text-decoration: none; color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: flex; flex-direction: column;}*/
.launch-card { position: relative; width: 100%; height: 600px; background: #4a4a4a; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; }

/* IMATGE */
.launch-image { position: absolute; inset: 0; padding: 70px;  box-sizing: border-box;}

.launch-image img { width: 100%; height: 100%; object-fit: contain;}

/* TEXTOS */
.launch-info { position: absolute; bottom: 32px; left: 32px; right: 32px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;}
.launch-text { max-width: 55%; }
.launch-button {font-family: 'HN-55-Roman'; background: #e30613; color: #fff; padding: 16px 36px 14px; border-radius: 30px; font-size: 20px; font-weight: 500; white-space: nowrap; }


/* CTA */
.launches-cta { text-align: center; margin-top: 90px;}
.launches-cta .btn-primary { background: #e30613; padding: 16px 36px 14px; border-radius: 30px; text-decoration: none;}



/* RESPONSIVE */
@media (max-width: 1200px) {
    .launches-slider .swiper-slide { width: 720px;}
    .home-launches{ padding: 60px 20px 60px; }
    .launches-header { text-align: left;}
    .launches-header h2{padding: 0;}

}

@media (max-width: 768px) {

  .launch-card { position: relative; height: auto; padding: 30px 25px 30px; display: flex; flex-direction: column; align-items: center; text-align: center;}

  /* IMATGE passa a ser normal, no absoluta */
  .launch-image { position: relative; inset: unset; padding: 0; width: 100%; margin-bottom: 24px; }

  .launch-image img { width: 100%; height: auto; object-fit: contain; }

  /* INFO deixa de ser absoluta */
  .launch-info { position: relative; bottom: unset; left: unset; right: unset; display: flex; flex-direction: column; align-items: center; gap: 14px; }

  .launch-text { max-width: 100%; }

  .launch-subtitle { margin-bottom: 4px; }

  .launch-button { margin-top: 20px; line-height: 20px;}
  .launches-header { margin-bottom: 40px;}

}

@media (min-width: 1600px) {
    .launches-slider .swiper-slide { width: 1000px; margin-left: 10px; margin-right: 10px;}
}


/* ===============================================================================================================
   8- WE ARE STEN
================================ */
.home-we-are { width: 100%; padding: 140px 0; background: #fff;}

/* HEADER centrada */
.we-are-header { text-align: center; margin: 0 auto 80px auto;}
.we-are-header h2 span { color: #999; }

/* GRID */
.we-are-grid {
  display: grid;
  grid-template-columns:
    21.30%
    20.81%
    29.20%
    25.51%;
  grid-template-areas:
    "item1 item3 item4 item6"
    "item2 item3 item5 item6";
  column-gap: 1.06%;
  row-gap: 3%;
  max-width: 1878px;
  width: 100%;
  margin: 0 auto;
}

/* Assignació àrees */
.item-1 { grid-area: item1; }
.item-2 { grid-area: item2; }
.item-3 { grid-area: item3; }
.item-4 { grid-area: item4; }
.item-5 { grid-area: item5; }
.item-6 { grid-area: item6; }

.we-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: block;}

.we-item-link {
    display: block;
    width: 100%;
    height: 100%;
}

.we-item-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.we-item-link:hover img {
    transform: scale(1.03);
}

.we-are-social {
    display: flex;
    align-items: center;
    justify-content: center;   /* 👈 centrat horitzontal */
    gap: 10px;
    margin-top: 20px;
}

.we-are-social a {
    display: inline-flex;
}

.we-are-social a img {
    display: block;
    transition: transform .25s ease, opacity .25s ease;
}

.we-are-social a:hover img {
    transform: translateY(-4px) scale(1.05);
    opacity: .85;
}

.we-are-scroll {
  padding-left: 2.13%;
  padding-right: 2.13%;
}

/* =========================================
   WE ARE RESPONSIVE SCROLL
========================================= */

@media (max-width: 900px) {

  .we-are-scroll {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .we-are-grid {
    transform: none;
    width: 1500px;
  }

}
/* RESPONSIVE */
@media (max-width: 768px) {
    .home-we-are { padding: 100px 0;}
    .we-are-header h2 { font-size: 36px; }
    .we-are-header p { font-size: 16px; padding: 0 40px;}
    .we-are-image { padding: 0 20px; }
    .we-are-image img { border-radius: 22px; }

    .we-are-scroll {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* ===============================================================================================================
   9-SOPORTE STEN
================================ */

.home-support { padding: 140px 0; background: #f7f7f8; }

/* HEADER */
.support-header { text-align: center; margin: 0 auto 100px; }
.support-header h2 { color: #231f20;; }
.support-header h2 span { color: #999; }
.support-header p { color: #231F20; }

/* GRID */
.support-grid {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 40px;

  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;

  align-items: stretch;

  overflow: hidden; /* 👈 evita que se surti */
}

/* CARD */
.support-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  /*aspect-ratio: 2.1 / 1;*/
  min-height: 420px;
}

/* CONTENT */
.support-card-content {
  position: relative;
  z-index: 2;
  padding: 60px 40px 0;
  text-align: center;
}
.support-card h3 { font-family: 'HN-55-Roman'; font-size: clamp(1.1rem, 31px, 31px);
  font-weight: 600; margin-bottom: 14px; color: #231f20; }
.support-card p { font-family: 'HN-55-Roman'; font-size: clamp(10px, 16px, 16px); color: #555; margin-bottom: 28px; }
.support-location .support-card-content {text-align: center;}

/* LINK */
.support-link { font-family: 'HN-55-Roman'; font-size: 20px; color: #e30613; text-decoration: none; font-weight: 500;}
.support-link:hover { text-decoration: underline;}

/* BOTÓ */
.home-support .btn-primary { font-family: 'HN-55-Roman'; background: #e30613; color: #fff; padding: 14px 30px; border-radius: 30px; font-size: 20px; text-decoration: none; display: inline-block;}
.home-support .btn-primary:hover {background: #c7000d;}

/* BACKGROUND IL·LUSTRACIÓ */
.support-card-bg { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background-repeat: no-repeat; z-index: 1; pointer-events: none;}

/* CARD 1 */
.support-request { position: relative; }
.support-card-1 .support-illustration {
  position: absolute;
  inset: 0;              /* 👈 ocupa tot el card */
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 👈 clau */
  object-position: bottom center;
  z-index: 1;
}

/* CARD 2 */
.support-card-2 .support-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  z-index: 1;
}

.support-card img {
  display: block;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .support-grid { grid-template-columns: 1fr; }

    .support-card {aspect-ratio: 1.6 / 1;   /* més vertical */ }
    .support-header p {padding: 0 40px;}
}

@media (max-width: 768px) {
    .support-grid {
        padding: 0 20px;  /* 👈 abans 40px */
    }

    .support-card { aspect-ratio: 1 / 1.2;   /* proporció molt més equilibrada */}
    .support-header h2 { font-size: 34px; }
    .support-card h3{ font-size:28px!important; }
    .support-header p { font-size: 18px; padding: 0 40px;}
    .support-request .support-illustration {
      width: 100%;
      left: 0;
    }
    .support-card p{ font-size:16px; }
}

@media (max-width: 540px) {

  .support-card {
    min-height: auto;   /* 👈 anul·la el 420px */
  }

}

/* ===============================
   7- BLOG TÉCNICO
================================ */

.home-blog { padding: 140px 0; background: #f7f7f8;}

/* HEADER */
.blog-header { text-align: center; margin: 0 auto 100px;}

.blog-header h2 { font-family: 'HN-55-Roman' !important; font-size: 50px; font-weight: 600; margin-bottom: 12px; padding: 0 15px; color: #111;}

.blog-header h2 span {color: #999;}

.blog-header p {font-family: 'HN-55-Roman'!important; font-size: 1rem; line-height: 1.3rem;color: #555;}

/* ===============================
   GRID DESKTOP
================================ */

.blog-grid {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 40px;
}

/* CARD */
.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card a { text-decoration: none; color: inherit; }

.blog-content{padding: 20px 0;}

/* IMAGE */
.blog-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 455 / 255;   /* 👈 proporció real del disseny */
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.blog-image:hover img { transform: scale(1.05);}

/* TITLE */
.blog-title { font-family: 'HN-55-Roman'; font-size: 28px; margin-bottom: 20px;}

.blog-content time{font-size: 20px; font-family: 'HN-55-Roman'; }
.blog-title a { font-family: 'HN-55-Roman'; color: #111; text-decoration: none;}

.blog-title a span {color: #e30613;}

.blog-title a:hover {text-decoration: underline;}

.blog-category {
    font-family: 'HN-55-Roman';
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #707070;
    display: block;
    margin-bottom: 20px;
}

.blog-date,
.blog-content time {
    font-family: 'HN-55-Roman';
    font-size: 18px;
    color: #707070;
}


/* CTA */
.blog-cta { text-align: center; margin-top: 80px; }

/* BOTÓ reutilitzat */
.home-blog .btn-primary { background: #e30613; color: #fff; padding: 14px 34px; border-radius: 30px; font-size: 20px; text-decoration: none; display: inline-block; line-height: 20px;}

.home-blog .btn-primary:hover {background: #c7000d;}

/* ===============================
   SCROLL INTERMEDI (1400px → 1024px)
================================ */

.blog-scroll {
    position: relative;
}

@media (max-width: 1400px) {
    .blog-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 40px; /* manté alineació */
    }

    .blog-grid {
        min-width: 1800px; /* amplada real del disseny */
    }
}

/* ===============================
   MOBILE SWIPER (<1024px)
================================ */
.blog-swiper {
    padding: 0 20px;   /* respir lateral */
}

.desktop-blog {
    display: block;
}

.mobile-blog {
    display: none;
}



@media (max-width: 1024px) {

    .desktop-blog {
        display: none;
    }

    .mobile-blog {
        display: block;
        padding: 0 20px;
    }

    .blog-header h2 {
        font-size: 36px;
    }

    .blog-header p {
        font-size: 18px;
    }


}

/* ======================================================
   6- Projects + slider
====================================================== */
.home-projects { padding: 160px 0; background: #f8f8f9; }
.projects-header {margin: 0 auto 120px;text-align: center;}
.projects-header h2 { font-family: 'HN-55-Roman' !important; font-size: 50px; font-weight: 600; margin-bottom: 12px; padding: 0 15px; color: #111;}
.projects-header h2 span {color: #999;}
.projects-header p { font-family: 'HN-55-Roman'!important; font-size: 1rem; line-height: 1.3rem; color: #231F20; max-width: 1450px; margin:0 auto; margin-bottom: 140px;}

.projects-header__title { font-size: 64px; font-weight: 700; color: #9c9c9c;}
.projects-header__title span { color: #1c1c1c; /* negre */ }

.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(40px,5vw,125px) clamp(40px, 3vw, 120px);

    width: 100%;
    max-width: 1680px; /* ample de disseny */
}
.project-card__content { flex: 0.75; }
.project-card__image { flex: 1.3;  }
.project-card__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }

.project-card__category {font-family: 'HN-55-Roman'; font-size: 20px; letter-spacing: 1.5px; color: #1c1c1c; font-weight: 700;}
.project-card__title { font-family: 'HN-55-Roman'; font-size: 60px; font-weight: 700; text-transform: uppercase; line-height: 1.05;
    margin: 30px 0 30px 0; color: #1c1c1c; }
.project-card__description { font-family: 'HN-55-Roman'; font-size: 20px; line-height: 1.6; color: #3c3c3c; margin-bottom: 32px; }
.project-card__link { font-size: 20px; color: #e30613; text-decoration: none; }

.project-card__tags { margin-top: 40px; }
.project-card__tags .tag { display: inline-block; border: 1px solid #dcdcdc; padding: 10px 18px; border-radius: 999px; font-size: 16px; margin-right: 12px; margin-bottom: 15px; background: #fff;}
.project-card__tags .tag.highlight { background: #e30613; color: white; border-color: #e30613; }

.projects-slider {
    position: relative;
    overflow: hidden;
}

.projects-slider {
    width: 100%;
    margin-left: 0;
}
.projects-slider .swiper-wrapper {
    align-items: stretch;
}
.projects-slider .swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}
.projects-slider .swiper-slide-active .project-card {
    box-shadow: 0 30px 80px rgba(0,0,0,0.06);
}


@media (max-width: 1200px) {
  .project-card { padding: 60px; gap: 60px;}
  .project-card__title { font-size: 42px;}
}

@media (max-width: 992px) {
  .project-card { flex-direction: column; text-align: left; }
  .project-card__image { max-width: 100%;}
}  

@media (max-width: 990px) {
    .home-projects, .home-support, .home-we-are{padding: 70px 0 40px;}
    .home-blog{padding: 50px 0 40px;}
    .projects-header, .support-header{ margin-bottom:40px; }
  .project-card {
    flex-direction: column;
    padding: 0;   
    gap: 0; 
  }

  .project-card__image {
    order: -1;                  /* puja la imatge a dalt */
    flex: none;
    width: 100%;
  }

  .project-card__image img {
    width: 100%;
    border-radius: 20px 20px 0 0;   /* només arrodonim dalt */
  }

  .project-card__content {
    padding: 25px;  /* padding només pel text */
  }

  .projects-slider .swiper-wrapper {
    align-items: flex-start;
  }

  .projects-slider .swiper-slide {
    height: auto;
  }
  .projects-pagination {
    margin-top: -50px;
    }
  .project-card__description, .project-card__link { font-size: 16px; line-height: 1.3rem;} 
  .project-card__tags .tag{ line-height:16px; padding:10px 18px 6px; }
  .project-card__title{margin:15px 0 20px 0; }
  .project-card__description{ margin-bottom:15px; }
  .project-card__tags{margin-top:20px;}
  .project-card__image img{ aspect-ratio:1/1; }
  .project-card__description {
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* número de línies visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
    }
}  

/* ===============================
   5- WORLD MAP – STEN
================================ */

/* SECCIÓ GENERAL */
.home-world { padding: 140px 0; background: #fff;}

/* ===============================
   HEADER
================================ */

.world-header {text-align: center;margin: 0 auto 60px;}
.world-header h2 { font-family: 'HN-55-Roman' !important; font-size: 50px; font-weight: 600; margin-bottom: 12px; padding: 0 15px; color: #111;}
.world-header h2 span {color: #999;}
.world-header p { font-family: 'HN-55-Roman'!important; font-size: 1rem; line-height: 1.3rem; color: #231F20;}

/* ===============================
   CLAIMS – BASE
================================ */

.claim-card { height: 325px; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; background-size: cover; background-position: center; background-repeat: no-repeat; color: #111;}
.claim-card h3 { font-family: 'HN-55-Roman' !important; font-size: clamp(1.1rem, 31px, 31px); font-weight: 600; margin-bottom: 8px; text-align: center;}
.claim-card p { font-family: 'HN-55-Roman' !important; font-size: clamp(10px, 16px, 16px); color: #444; text-align: center;}

/* FONS CLAIMS */
.claim-innovation {background-image: url('/img/home/world-map/claim-innovation.png');}
.claim-proximity {background-image: url('/img/home/world-map/claim-proximity.png');}
.claim-expansion {background-image: url('/img/home/world-map/claim-expansion.png');}

/* ===============================
   CLAIMS – DESKTOP
================================ */

.world-claims-desktop { max-width: 1400px; margin: 0 auto 80px; padding: 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;}

/* Amaguem el slider en desktop */
.world-claims-mobile {display: none;}


/* ===============================
   CLAIMS – MOBILE (SWIPER)
================================ */

@media (max-width: 768px) {

    /* Amaguem grid desktop */
    .world-claims-desktop {display: none;}

    /* Swiper container */
    .world-claims-mobile {display: block; margin-bottom: 50px;overflow: hidden;}

    .world-claims-mobile .swiper-wrapper {display: flex;}

    .claim-card {height: auto; aspect-ratio: 5/4}

    .claim-card h3 {font-size: 24px;}

    .claim-card p {font-size: 16px;}

}

/* ======================================================
   WORLD MAP – BASE
====================================================== */

.world-map { max-width: 1600px; margin: 0 auto; position: relative; overflow: hidden;}

/* ======================================================
   MAP CONTAINER
====================================================== */

/*.map-container { position: relative; height: 700px; overflow: hidden;}*/
.map-container {
    position: relative;
    height: 700px;
    overflow-x: auto;     /* 👈 activem scroll */
    overflow-y: hidden;
}

/* ======================================================
   MAP IMAGE (REFERÈNCIA DE COORDENADES)
====================================================== */

.map-image { position: relative; height: 100%; display: flex; justify-content: center;  align-items: center;}

/* Este es el bounding box REAL 
.map-canvas { position: relative; height: 100%;}*/
.map-canvas {
    position: relative;
    width: 1200px;   /* 👈 amplada real fixa */
    height: 754px;   /* 👈 mateixa alçada que el container */
    flex-shrink: 0;
}

/* La imagen define el tamaño 
.map-canvas img { height: 100%; width: auto; display: block;}*/
.map-canvas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ======================================================
   MAP POINTS
====================================================== */

.map-point {position: absolute;display: flex;align-items: center;gap: 8px;white-space: nowrap;opacity: 1;pointer-events: none;transition: opacity .3s ease;}
.map-point.is-visible {opacity: 1;pointer-events: auto;}

/* DOT */
.map-dot { position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: #e30613; border-radius: 50%; box-shadow: 0 0 0 6px rgba(227,6,19,.15); transform: translate(-50%, -50%);}

/* LABEL */
.map-label {margin-left: 14px; /* separació respecte el punt */font-size: 14px;color: #222;background: rgba(255,255,255,.9);padding: 4px 8px;border-radius: 6px;white-space: nowrap;transition: background .25s ease, transform .25s ease;}
.map-label strong {color: #e30613;font-weight: 700;margin-right: 4px;}

/* Hover */
.map-point:hover {z-index: 5;}
.map-point:hover .map-dot {box-shadow: 0 0 0 8px rgba(227,6,19,.25);}
.map-point:hover .map-label {background: #fff;transform: translateX(4px);}

/* MODE SMALL (total view) */
.map-point.is-small .map-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px rgba(227,6,19,.15);
}

/* amagar label */
.map-point.is-small .map-label {
  display: none;
}

/* BASE */
.map-point .map-dot {
    width: 16px;
    height: 16px;
}

/* SMALL */
.map-point.point-small .map-dot {
    width: 10px;
    height: 10px;
}

/* MEDIUM */
.map-point.point-medium .map-dot {
    width: 16px;
    height: 16px;
}

/* LARGE */
.map-point.point-large .map-dot {
    width: 26px;
    height: 26px;
}

/* ======================================================
   MAP OVERLAY + METRICS
====================================================== */

.map-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: flex-start;}

/* METRICS LATERAL */
.map-metrics { width: 240px;padding-top: 80px;padding-left: 40px; display: flex;flex-direction: column;gap: 40px; pointer-events: auto; }

/* Metric item */
.metric {display: flex;flex-direction: column;gap: 6px;padding-bottom: 32px;position: relative; opacity: 1;transition: opacity .25s ease, transform .25s ease; }

.metric:not(:last-child)::after { content: ""; position: absolute; bottom: 0; left: 0; width: 200px; height: 1px; background-color: #e5e5e5; }


/* Textos */
.metric-number { font-family: 'HN-55-Roman'; font-size: 60px; font-weight: 600; color: #e30613; line-height: 1; text-align: center;}
.metric-label { font-family: 'HN-55-Roman'; font-size: 20px; font-weight: 500; color: #111; text-align: center; }
/* BASE */
.map-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

/* LABEL A LA DRETA */
.map-point.label-right .map-label {
    left: 22px;
    right: auto;
    text-align: left;
}

/* LABEL A L'ESQUERRA */
.map-point.label-left .map-label {
    right: 22px;
    left: auto;
    text-align: right;
}

/* ===============================
   MAP RESPONSIVE
================================ */
@media (max-width: 1199px) {

  .map-image {
    justify-content: flex-start;  /* 👈 ara sí alineem a l'esquerra */
  }

}
@media (max-width: 1024px) {
    .map-container { height: auto;}
    .map-image { position: relative;}
    .map-image img { height: auto; }
    .map-overlay { position: static; margin-bottom: 40px; margin-top: 40px;}
    .map-metrics { flex-direction: row; justify-content: space-around; width: 100%; padding: 0 20px;}
    .metric::after { display: none; }
}

@media (max-width: 768px) {
    .home-world{padding: 30px 0;}
  .map-canvas {
    width: 900px;     /* 👈 mida fixa mobile */
    height: 565px;    /* proporció correcta */
  }

  .map-overlay {
    position: relative;
    inset: auto;
  }

.map-metrics {
    width: 100%;
    padding: 30px 20px 0;
    display: flex;
    flex-wrap: wrap;              /* 👈 permet salt de línia */
    justify-content: center;
    gap: 20px 0;                  /* espai vertical */
  }

  .map-metrics .metric {
    flex: 0 0 50%;   /* 👈 força exactament 2 columnes */
    padding-bottom: 0;
    text-align: center;
    opacity: 1;
    transform: none;
}

  .metric:not(:last-child)::after {
    display: none;          /* eliminem línies separadores */
  }

  .metric-number {
    font-size: 36px;
  }

  .metric-label {
    font-size: 14px;
  }
}

/*              CSS                 */

@media (max-width: 1024px) {

    .world-header h2,  .world-header p,.projects-header h2, .blog-header h2, .projects-header p,   .blog-header p{ text-align: left; padding-left: 20px; padding-right: 20px;}
    .products-title, .launches-header h2, .world-header h2, .projects-header h2, .blog-header h2, .we-are-header h2,.support-header h2 { font-size: 42px!important;}
    .products-subtitle, .launches-header p, .world-header p, .projects-header p,   .blog-header p,  .we-are-header p, .support-header p{ font-size: 16px!important; }
}


/* ==========================
   NOVA HOME – DESKTOP MENU
========================== */

#nav-desktop {
  background: #fff;
  height: 50px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
}

#nav-desktop .menu-top {
  width: 100%;
}

.home-main-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.home-main-links a {
  font-family: 'HN-55-Roman';
  font-size: 16px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  position: relative;
  transition: color .25s ease;
}

.home-main-links a:hover {
  color: #e30613;
}

/* Subratllat animat */
.home-main-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #e30613;
  transition: width .25s ease;
}

.home-main-links a:hover::after {
  width: 100%;
}

header, #sub-menu{display: none!important;}

/* =====================================
   FIX RESPONSIVE NAV (<= 991px)
===================================== */

@media (max-width: 991px) {

  /* El row es comporta com flex real */
  #nav-desktop .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo i burger ocupen meitat i es distribueixen */
  #nav-desktop .menu-logo-sten,
  #nav-desktop .menu-section {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Burger alineat dreta */
  #nav-desktop .menu-section {
    text-align: right;
  }

}



/* =====================================
   PAGINATION BULLETS
===================================== */
.hero-swiper .swiper-pagination{ display: flex; justify-content: center; gap: 8px; bottom: 40px!important; position: relative;}
.benefits-mobile .swiper-pagination { position: static; margin-top: 50px; display: flex; justify-content: center; gap: 8px;}
.launches-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 70px; position: relative; z-index: 5;}
.blog-swiper .swiper-pagination {margin-top: 30px; position: relative;}

.hero-swiper .swiper-pagination-bullet{ width: 18px; height: 18px; border-radius: 50%; background: transparent; border: 1.5px solid #fff; opacity: 1; transition: all 0.25s ease;}
.benefits-mobile .swiper-pagination-bullet { width: 18px; height: 18px; border-radius: 50%; background: transparent; border: 1.5px solid #bfbfbf; /* gris clar contorn */ opacity: 1; transition: all 0.25s ease;}
.launches-pagination .swiper-pagination-bullet { width: 18px; height: 18px; background: transparent; border: 1px solid #aaa; opacity: 1; transition: all .25s ease;}

.hero-swiper .swiper-pagination-bullet-active { background: #fff; border-color: #fff; }
.benefits-mobile .swiper-pagination-bullet-active { background: #666; border-color: #666; }
.launches-pagination .swiper-pagination-bullet-active { background: #aaa; border-color: #aaa;}    

/* ===============================
   BLOG SWIPER PAGINATION
================================ */



.blog-swiper .swiper-pagination-bullet {width: 18px;height: 18px;background: transparent;opacity: 1;transition: all .3s ease;}

.blog-swiper .swiper-pagination-bullet-active {background: #cfcfcf;   }

/* PAGINATION */
.home-projects .projects-slider > .projects-pagination.swiper-pagination {
    position: static !important;
    margin-top: 60px;
    display: flex;
    justify-content: center;   /* 👈 centra els bullets */

}

.projects-pagination .swiper-pagination-bullet {
    width: 18px;
    height: 18px;
    background: transparent;
    opacity: 1;
    margin: 0 8px;
    border:1px solid #cfcfcf;
}

.projects-pagination .swiper-pagination-bullet-active {
    background: #cfcfcf;
}
.projects-pagination{
  margin-top: 40px;
  text-align: center;}

/* =====================================
   SWITCH NAV DESKTOP / MOBILE
===================================== */

/* Per defecte: amaguem el nav mòbil */
#nav-movil {
  display: none;
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    .blog-header { margin-bottom: 40px;}
    #nav-desktop {
        display: none !important;
    }

    #nav-movil {
        display: block !important;
    }

    .hero-content h1, .hero-content p, .hero-content a{ text-align:center; }
    
    .home-benefits .swiper-pagination, 
    .world-claims-pagination .swiper-pagination, 
    .projects-pagination .swiper-pagination,
    .blog-swiper .swiper-pagination{ display: flex; justify-content: center; gap: 8px; margin-top: 20px;}
    
    .home-benefits .swiper-pagination-bullet, 
    .world-claims-pagination .swiper-pagination-bullet, 
    .projects-pagination .swiper-pagination-bullet,
    .blog-swiper .swiper-pagination-bullet { width: 15px; height: 15px; background: #ccc; opacity: .4;}
    
    .home-benefits .swiper-pagination-bullet-active, 
    .world-claims-pagination .swiper-pagination-bullet-active, 
    .projects-pagination .swiper-pagination-bullet-active,
    .blog-swiper .swiper-pagination-bullet-active { background: #666; opacity: 1;}
    
    .home-benefits .swiper-pagination{display: flex; justify-content: center; gap: 8px; margin-top: 25px;}
    
    .hero-swiper .swiper-pagination-bullet, .launches-pagination .swiper-pagination-bullet { width: 15px; height: 15px; }

        /* PAGINACIÓ */
    .home-products-grid .swiper-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px;}
    .home-products-grid .swiper-pagination-bullet { width: 15px; height: 15px; background: #ccc; opacity: .4;}
    .home-products-grid .swiper-pagination-bullet-active { background: #666; opacity: 1;}

        /* PAGINACIÓ */
    .world-claims-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 25px;}

    .world-claims-pagination .swiper-pagination-bullet { width: 15px; height: 15px; background: #ccc; opacity: 1;}

    .world-claims-pagination .swiper-pagination-bullet-active {background: #999;}

    .launches-pagination { margin-top: 35px;}
    .launches-cta {margin-top: 35px;}
    .blog-cta { margin-top: 40px; }
}
