/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --primary-color: #e64210;
  --secondary-color: #9070f1;
/*  --secondary-color: #f4f4f4;*/
  --main-text-color: #222;
  --main-font-family: 'Elms Sans', sans-serif;
  --main-font-size: 14px;
  --main-border-radius: 12px;
  --rounded-border-radius: 22px;
  --main-letter-spacing: 0.5px;
  --white-color: #fff;
  --btn-radius: 20px;
  --btn-padding: 0.6rem 2rem;
  --btn-padding-mobile: 0.3rem 1rem;
  --bold: 600;
  --soft-shadow: 0 0px 12px rgba(0, 0, 0, 0.2);

/*Desktop: H1-70  H2-45  H5-18  H6-9  P-14
Mobile: H1-38  H2-22  H5-18  H6-6  P-12
*/
  --font-size-h1: clamp(38px, 4vw, 70px);
  --font-size-h2: clamp(28px, 3.5vw, 45px);
  --font-size-h3: clamp(18px, 4vw, 22px);
  --font-size-h4: clamp(16px, 2vw, 18px);
  --font-size-h5: clamp(18px, 3vw, 18px);
  --font-size-h6: clamp(1.25rem, 2.5vw, 1.75rem);
  --font-size-p: clamp(16px, 2vw, 16px);

}


* {
  font-family: var(--main-font-family);
  letter-spacing: var(--main-letter-spacing); 
  font-size: var(--main-font-size);
  line-height: 1.2;
}


/* COMMON RULES  */

.heading {
  font-weight: var(--bold);  
}

.btn {
  font-weight: var(--bold);
}

.btn-atlas {
  background: linear-gradient(135deg, #7360f1 0%, #a270ef 50%, #c0c9f3 100%);
  border: none;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  transition: all 0.3s ease;
}

.btn-atlas:hover{
  background: linear-gradient(135deg, #7360f1 0%, #a270ef 50%, #c0c9f3 100%);
  transform: scale(1.08);
}

.btn-atlas:active, .btn-atlas.active{
  background: linear-gradient(135deg, #7360f1 0%, #a270ef 50%, #c0c9f3 100%) !important;
}

.btn-tag {
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  transition: all 0.3s ease;
}

.btn-tag:hover{
  background-color: #ad320c;
  transform: scale(1.08);
}

.btn-tag:active, .btn-tag.active{
  background-color: #ad320c !important;
}

.btn-tag-white {
  color: var(--primary-color);
  background-color: #fff;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  transition: all 0.3s ease;
}
.btn-tag-white.active, .btn-tag-white:active {
  color: var(--primary-color) !important;
  background-color: #fff !important;
}

.btn-atlas-white {
  color: var(--secondary-color);
  background-color: #fff;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding);
  transition: all 0.3s ease;
}

.btn-tag-white:hover {
  background-color: #eaeaea;
  transform: scale(1.08);
  color: var(--primary-color);
}

.btn-tag-white:active, .btn-tag-white.active {
  background-color: #eaeaea;
  transform: scale(1.08);
  color: var(--primary-color);
}

.btn-atlas-white.active, .btn-atlas-white:active {
  color: var(--secondary-color) !important;
  background-color: #fff !important;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3);
    font-weight: var(--bold); }
h4 { font-size: var(--font-size-h4); }
h5 { 
  font-size: var(--font-size-h5);
  font-weight: var(--bold);
  }
h6 { font-size: var(--font-size-h6); }
p, li, strong  { font-size: var(--font-size-p); }

a{
  color: var(--primary-color);
} 


.loyalty-features, .why-tag-home-section, .atlas-feature-overview, .kpi-container {
  margin: 0 120px;
} 


/* NAVBAR */


.intro-home-wrapper {
  position: relative;
  width: 100%;
  background-image: url("../assets/images/intro-banner-2.png");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  min-height: 100vh;
  transition: all 0.3s ease;
}


.intro-cp-wrapper, .intro-ip-wrapper, .intro-terms-wrapper {
  position: relative;
  width: 100%;
  background-image: url("../assets/images/title-background-desktop.svg");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  min-height: 400px;
  transition: all 0.3s ease;
}

.navbar {
  padding: 24px;
  position: static;
  width: 100%;
  z-index: 10;
}


.nav-item a {
  color: #3c3c3b;
  transition: all 0.3s ease !important;
}

.nav-item .nav-link:hover {
  color: var(--primary-color);
}

.nav-item .nav-link:active {
  color: var(--primary-color);
  font-weight: var(--bold) !important;
}

.nav-item .nav-link.active {
  color: var(--primary-color);
  font-weight: var(--bold) !important;
}

.navbar .container-fluid {
  background-color: #fff;
  padding: .8rem 6rem;
  border-radius: 40px;
}

.navbar-nav {
  gap: 1rem;
}

.nav-left,
.nav-right {
  width: 300px;
}


.nav-left p{
  margin-bottom: 0 !important;
}
.nav-center {
  flex: 1;
}

.navbar-brand,
.navbar .nav-link {
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-center .navbar-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.navbar-brand img {
  width: 90px;
}


/*INTRO BANNER HEADING */

.home-intro-section {
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 100px 0 160px 0;
}

.home-intro--heading h1 span{
  font-weight: var(--bold);
  font-size: var(--font-size-h1);
}

#intro-home-title{
  padding: 0 3.5rem;
}

#intro-home-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  font-size: var(--font-size-h1);
}
#intro-home-title span.visible {
    opacity: 1;
    transform: translateY(0);
    color: white;
}

.intro-home-subtitle{
  margin: 1rem;
}

.intro-banner-pill-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 350px;
  padding-top: 50px;
}

.intro-banner-pill {
  position: relative;
  display: inline-block;
  padding: 0.8rem 1.2rem;
  background-color: rgba(230, 66, 16, 0.5);
  border-radius: 50px; 
  color: white;
  animation: float 2s ease-in-out infinite;
  white-space: nowrap;
  transition: top 0.5s ease, left 0.5s ease;
}

.intro-banner-pill::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 60px;
  background-color: rgba(230, 66, 16, 0.5);
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); } /* altezza del flusso */
  100% { transform: translateY(0); }
}

.intro-banner-pill:nth-child(1) {
  right: 15%;
  top: 15px;
  animation: float 2s ease-in-out infinite;
}
.intro-banner-pill:nth-child(2) {
  right: 5%;
  top: 110px;
  animation: float 1.8s ease-in-out infinite;
}
.intro-banner-pill:nth-child(3) {
  right: 0;
  top: 50px;
  animation: float 2.2s ease-in-out infinite;
}
.intro-banner-pill:nth-child(4) {
  left: 10%;
  top: 130px;
  animation: float 1.6s ease-in-out infinite;
}
.intro-banner-pill:nth-child(5) {
  left: 10%;
  top: 30px;
  animation: float 2s ease-in-out infinite;
}
.intro-banner-pill:nth-child(6) {
  left: 15%;
  top: 60px;
  animation: float 1.9s ease-in-out infinite;
}


/* HERO BANNER */

.why-tag-home-hero-image-wrapper, .atlas-home-hero-image-wrapper {
  position: relative;
  width: 100%; 
  overflow: hidden;
}

/*.why-tag-home-banner-img, .why-tag-home-banner-img, .atlas-feature-overview .atlas-home-banner-img {
  width: 100%;
  height: auto;      
  object-fit: cover; 
  padding: 0 4rem;
}
*/
.why-tag-home-banner-img, .atlas-feature-overview .atlas-home-banner-img {
  width: 100%;
  height: 700px;   
  max-height: 1050px;
  object-fit: cover;
  display: block;
  border-radius: 3rem;
  transition: height 0.5s ease;
}

.atlas-home-banner-img-mobile {
  display: none;
}

.atlas-feature-overview .atlas-home-banner-img {
  display: block;
  height: 700px;   
}


.why-tag-title h2{
  font-size: var(--font-size-h1);
  margin-top: 1rem;
}

.why-tag-title p{
  font-size: clamp(16px, 3.5vw, 18px);
  margin-top: 1rem;
}


.why-tag-home-section .text-overlay--container, .atlas-feature-overview .text-overlay--container{
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: start;
  max-height: 100%;
  overflow: hidden;
}

.atlas-feature-overview
.atlas-logo {
  width: 500px;
}
 
.why-tag-home-section .text-overlay--container img, .atlas-feature-overview .text-overlay--container img{
  fill: #fff !important;
  padding-bottom: 2rem;
}

.why-tag-home-section .text-overlay--container h2{
  font-weight: var(--bold);
  margin-bottom: 0 !important;
}

.why-tag-home-section .hero-info--container, .atlas-feature-overview .hero-info--container{
  display: flex;
  flex-wrap: wrap;
  justify-content:center;
  gap: 1rem;
  padding-top: 1rem;
}

.why-tag-home-section .hero-info-block {
  width: 350px;
  text-align: center;
}

.atlas-feature-overview .hero-info-block {
  width: 350px;
  text-align: center;
}

.atlas-feature-overview .hero-info-block h5, .why-tag-home-section .hero-info-block h5{
  font-weight: var(--bold);
}

.atlas-feature-overview .loyalty-features--title btn{
  color: var(--secondary-color);
}

.loyalty-features--heading .loyalty-features--title{
  color: var(--primary-color);
}

/* TITLES */

.loyalty-features--heading, .atlas-feature-overview--heading {
  text-align: center;
  margin: 4rem 6rem;
}

.loyalty-features--box, .kpi-card {
  max-width: 300px;
  padding: 2rem;
  box-shadow: var(--soft-shadow);
  border-radius: var(--rounded-border-radius);
  text-align: start;
  flex-wrap: wrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.loyalty-features--box:hover, .kpi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}


.loyalty-features--box div p{
  font-weight: var(--bold);
}


.brand-home-description-container{
  padding: 60px 120px; 
  gap: 80px;
}

.brand-home-description-container .project-summary{
  width: 600px;
}

.project-summary h2{
  color: var(--primary-color);
}

.find-out-about-us-container h2{
  color: var(--primary-color);
}

.atlas-feature-overview--heading h2, .kpi-card h2{
  color: var(--secondary-color);
}

.kpi-card h2 {
 font-size: var(--font-size-h1);
}

.kpi-card h6 {
  font-weight: var(--bold);
}

.atlas-feature-overview--heading p {
  font-size: 18px;
}



 /*COLLABORATIONS */

.collaborations-section {
  height: 900px;
  overflow: hidden;
}

.collaborations-slider-wrapper {
  width: 100%;
/*  overflow: hidden;*/
  position: relative;
}

.collaborations-slider-wrapper,
.collaborations-card-slider {
    transform: rotate(-2deg);
}

.collaborations-card h6{
  font-weight: var(--bold);
  padding-bottom: 1rem;
}

.collaborations-logos-slider {
  display: flex;
  gap: 5rem;
  margin: 2.5rem 2rem;  
  flex-wrap: nowrap;
  will-change: transform;
}

.collaborations-logos-slider img {
    flex-shrink: 0;
}

.collaborations-section--title{
  text-align: center;
  padding: 9rem 2rem 4rem 2rem;;
  font-weight: var(--bold);
}

.collaborations-card-slider {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  will-change: transform;
}

.collaborations-card {
  width: 330px;
  height: 370px;
  color: #fff;
  background-color: var(--primary-color);
  border-radius: var(--rounded-border-radius);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease, background-position 0.3s ease;
}
.collaborations-card-text{
  padding: 2rem 2rem 0 2rem;
}

.collaborations-card:hover {
  transform: scale(1.08);
  z-index: 10;
}


.bioritmon-card {
  background: linear-gradient(
    140deg, #333e5b 35%, #202945 100%
  );

}

.kimbo-card {
  background: linear-gradient(
    140deg, #f5ebdc 35%, #e8dfcf 100%
  );
  color: #330e00;
}

.mastercard-card {
  background: linear-gradient(
    140deg, #1a1a1a 35%, #333333 100%
  );
}

.borghetti-card {
  background: linear-gradient(
    140deg, #870e19 35%, #cb1517 100%
  );
}

.plasmon-card {
  background: linear-gradient(
    140deg, #e57201 35%, #f48b34 100%
  );
}

.loreal-card {
  background: linear-gradient(
    140deg, #be9c55 35%, #dbba79 100%
  );
}


/*BLOG*/

.blog-section--title {
  font-weight: var(--bold);
  text-align: center;
  margin: 4rem;
}

.blog-section h6{
  font-weight: var(--bold);  
}

.blog-section-card{
  min-width: 350px;
  width: 30%;
  border-radius: var(--rounded-border-radius);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.blog-section-card--description{
    padding: 2.4rem;
    height: 260px;
}

.blog-section-card--description .btn {
  background-color: var(--primary-color);
  border: none;
  border-radius: var(--btn-radius);
  color: #fff;
  padding: 0.3rem 0.8rem;
  font-size: 12.25px;
}




/*-- */

.blog-section-card--container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px;
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch;
  
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.blog-section-card {
  flex-shrink: 0;
}

/* ----------- SCROLLBAR ARANCIONE ----------- */

/* Chrome / Edge / Safari */
.blog-section-card--container::-webkit-scrollbar {
  height: 10px;          /* altezza scroll bar */
}

.blog-section-card--container::-webkit-scrollbar-track {
  background: #f1f1f1;   /* colore sfondo */
  border-radius: 10px;
}

.blog-section-card--container::-webkit-scrollbar-thumb {
  background: #ff8c00;   /* ARANCIONE */
  border-radius: 10px;
}

.blog-section-card--container::-webkit-scrollbar-thumb:hover {
  background: #e07a00;   /* arancione più scuro */
}

/* Firefox */
.blog-section-card--container {
  scrollbar-width: none;
  scrollbar-color: #ff8c00 #f1f1f1; /* thumb | track */
}


/*--*/

.blog-section-card--container .reveal {
  opacity: 0;
  transform: translateY(100px);
  transition: all 1s ease-out;
}

.blog-section-card--container .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.home-closing-container {
  position: relative;
  width: 100%;
  background-image: url("../assets/images/Background-Footer.png");
  background-size: cover;
  background-position-x: center;
  background-position-y: top;
  background-repeat: no-repeat;
  min-height: 800px;
  transition: all 0.3s ease-out;
}

.home-closing {
  position: relative;
}

.home-closing--background {
  width: 100%;
  height: auto;
  display: block;
}

.home-closing--description {
  position: absolute;
  z-index: 4;
  width: 100%;
  height: 400px;
  top: 80px;
  padding-top: 200px;
  color: #fff;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.home-closing--description h2 {
  font-weight: var(--bold);
}

.home-closing--description p {
  font-size: 18px;
  margin: 1rem 3rem;
}

.footer-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding-top: 40px;
  padding-left: 96px;
  background-color: #fff; 
  z-index: 5;
  border-radius: var(--rounded-border-radius);
  transition: all 0.3s ease-out;
}

.upper-footer{
  gap: 60px;
}

.lower-footer img{
  transform: translate(40px, 10px);
  transition: all 0.3s ease-out;
}


/*INFO PRIVACY + COOKIE POLICY */
.info-privacy-container, .cookie-policy-container, .terms-conditions-container {
  padding: 0px 120px 0px 120px;
  position: relative;
  transform: translateY(-50px);  
}

.info-privacy-container h1, .cookie-policy-container h1, .terms-conditions-container h1 {
transform: translateY(-200px);  color: #fff;
}

@media (max-width: 1200px) {
  .cookie-policy-container, .terms-conditions-container, .info-privacy-container {
    padding: 0 30px;
    text-align: justify;
  }
}

.info-privacy-footer, .cookie-policy-footer, .terms-conditions-footer{
  margin: 24px;
}

.info-privacy-footer, .cookie-policy-footer, .terms-conditions-footer {
  background: linear-gradient(0deg, #e9520d 0%, #e64210 25%, #e64210 75%, #f59005 100%);
  color: #fff;
}

.cookie-policy-footer a, .info-privacy-footer a, .terms-conditions-footer a {
  color: #fff !important;
}

.cookie-policy-container .table-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-top: 2rem;
  -webkit-overflow-scrolling: touch; /* più fluido su mobile */
}

.cookie-policy-container .table-wrapper table {
  width: max-content;
  border-collapse: collapse;
}

.cookie-policy-container .table-wrapper th,
.cookie-policy-container .table-wrapper td {
  padding: 10px 16px;
  border: 1px solid #ddd;
  white-space: nowrap;
}




/*MEDIA QUERIES*/

/* Tablet */
@media (max-width: 1200px) {
  .atlas-feature-overview .atlas-home-banner-img {
    height: 1000px; 
  }

  .loyalty-features--heading, .atlas-feature-overview--heading{
    margin: 4rem 2.5rem;
  }
  .nav-left,
  .nav-right {
    width: auto;
  }
}


@media (max-width: 834px) {
  .why-tag-home-banner-img {
      height: 1010px;
  }
}

/* Mobile: hamburger menu */
@media (max-width: 991px) {
  .nav-left, .nav-right {
    width: auto;
  }
  .collaborations-section {
      height: 850px;
  }

  .nav-center {
    text-align: center;
  }

  .nav-right {
    justify-content: center;
    margin-top: 10px;
  }
  .footer-overlay {
    padding-left: 2rem;
  }

  .loyalty-features, .why-tag-home-section, .atlas-feature-overview, .kpi-container{
    margin: 0 60px;
  }

  .blog-section-card--container{
    padding-left: 60px;
  }


/*  .intro-banner-pill {
      position: static;
        transition: all 0.3s ease;
  }*/
  .intro-banner-pill:nth-child(1) { top: 0; right: 5%; }
  .intro-banner-pill:nth-child(2) { top: 120px; right: 30px; }
  .intro-banner-pill:nth-child(3) { top: 50px; right: 0; }
  .intro-banner-pill:nth-child(4) { top: 130px;left: 5%;; }
  .intro-banner-pill:nth-child(5) { left: 0%; top: 20px;; }
  .intro-banner-pill:nth-child(6) { left: 5%; top: 90px; }

}


@media (min-width: 1600px) {
  .intro-home-wrapper {
    min-height: 100%;
    padding-bottom: 13rem;
  }
}

@media (min-width: 1350px) {
  .atlas-feature-overview .hero-info-block {
    width: 30%;
  }
}

@media (min-width: 1200px) {
  .atlas-feature-overview .atlas-home-banner-img {
      height: 900px;
  }
}

@media (max-width: 768px) {
  .loyalty-features, .why-tag-home-section, .atlas-feature-overview, .kpi-container{
    margin: 0 24px;
  } 
  .navbar{
    padding: 24px;
  }
  .blog-section-card--container{
    padding-left: 24px;
  }

  .loyalty-features--box, .kpi-card {
    width: 100%;
  }
/*
  .why-tag-home-banner-img{
    height: 1000px;
  }
*/
 .brand-home-description-container {
    padding: 80px 40px;
    gap: 80px;
  }

  .collaborations-section {
    height: 800px;
  }

  .collaborations-section--title {
      padding: 4rem 2rem;
  }

  .footer-overlay {
      padding-left: 2rem;
/*      padding-right: 2rem;*/
  }

  .atlas-feature-overview .atlas-logo {
      width: 300px;
  }
  .home-closing--description {
      top: 0;
      padding-top:200px;
  }

  .lower-footer .footer-logo-container {
    margin-left: auto;
    margin-right: auto;
    overflow: none;
  }
  .lower-footer img {
    transform: translate(0, 20px);
  }

  .intro-banner-pill:nth-child(1) { top: 0; left: 5%; }
  .intro-banner-pill:nth-child(2) { top: 120px; right: 30px; }
  .intro-banner-pill:nth-child(3) { top: 40px; left: 0; }
  .intro-banner-pill:nth-child(4) { top: 130px; left: 0; }
  .intro-banner-pill:nth-child(5) { left: -5%; top: 10px; }
  .intro-banner-pill:nth-child(6) { left: -5%; top: 90px; }
}


@media (max-width: 761px) {
  .atlas-feature-overview .atlas-home-banner-img {
    height: 1300px;      
  }
}


@media (max-width: 834px) {
  .atlas-home-banner-img-mobile {
      width: 100%;
      height: 1700px;
      object-fit: cover;
      display: block;
      border-radius: 30px;
  }
  .atlas-home-banner-img{
    display: none !important;
  }
}

/* Mobile */

@media (max-width: 634px) {
  .intro-banner-pill-wrapper {
    height: 340px;
  }
  .intro-banner-pill::after {
    width: 0;
    height: 0;
  }
  .intro-banner-pill{
    position: static;
    margin: 1.7rem;
  }
  .navbar .container-fluid {
    padding: .5rem 2rem;
  }
}

@media (max-width: 576px) {
  .footer-overlay {
    padding-right: 2rem;
    left: 16px;
    right: 16px;
  }
  .loyalty-features, .why-tag-home-section, .atlas-feature-overview, .kpi-container{
    margin: 0 16px;
  } 
  .blog-section-card--container{
    padding-left: 16px;
  }
  .navbar{
    padding: 16px;
  }

  .home-closing--description {
    top: 0;
    padding-top: 200px;
  }
  .home-closing--description p, .atlas-feature-overview--heading p, .loyalty-features--subtitle {
      font-size: var(--font-size-p);
  }
  .brand-home-description-container img {
    width: 200px;
  }
  .loyalty-features--heading, .atlas-feature-overview--heading {
      margin: 4rem 2rem;
  }
  .btn-tag, .btn-atlas, .btn-atlas-white, .btn-tag-white {
    padding: var(--btn-padding-mobile);
  }
}