/* Import external stylesheets */
@import url(colors.css);
@import url(bootstrap.css);
@import url(animations.css);
@import url(components.css);



/* ===== Base Styles ===== */
body {
  font-family: "Proxima Nova", sans-serif;
  background-color: var(--black);
  color: var(--cream);
}

h1, h2, h3 {
  font-family: "PP Cirka", sans-serif;
  font-weight: bold;
}

.debug {
  border: 1px solid red !important;
}

/* ===== Utility Classes ===== */
.bg-grain {
  background-image: url(/media/grain.png);
  background-position: center;
  background-size: cover;
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.z-1 { z-index: 1; }
.z-10 { z-index: 10; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }
.z-2000 { z-index: 2000; }
.z-10000 { z-index: 10000; }

/* ===== Layout Components ===== */

.logo-ah {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12000;
}

.text-wrap-balance {
  text-wrap: balance !important;
}

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  isolation: isolate;
  transform: translateZ(0);
}

.overlay.z-10000 {
  position: fixed;
  /* Aggiungi queste proprietà */
  isolation: isolate;
  transform: translateZ(0);
}

.overlay__path {
  fill: var(--black);
}

.main-container {  
  overflow: hidden;
  transition: all 1s ease;
  position: relative;
}

.stories {
  width: 30%;
  height: 100%;
  transition: all 1s ease;
  position: relative;
  z-index: 1000;
}

.wrapped-container-hero {
  opacity: 1;
  visibility: visible;
  transition: all 0.7s ease;
}

.wrapped-container-case {

  width: 100%;
  height: 100vh;
  position: absolute;
  left: 0;
  bottom: -100%;
  opacity: 0;
  transition: all 1s ease;
  z-index: 2000;
}

.inner-nav {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem 0rem 3rem;
 
}

.star-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.white-star {
    position: relative;
    cursor: pointer;
    transition: filter 0.3s ease;
    will-change: transform;
}

.star-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 15px 2px rgba(255, 255, 255, 0.8),
        0 0 4px 1px rgba(255, 255, 255, 1);
}

.cases {

  height: 100%;
  opacity: 1;
  visibility: visible;
  width: 70%;
  padding: 0;
  transition: all 1s ease;
}

/* ===== Button Components ===== */
.icon-btn-secondary {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  border: 1px solid var(--black-100);
  border-radius: 20px;
  background-color: var(--white-100);
  color: var(--black-100);
}

.icon-btn {
  border: 1px rgba(188, 184, 174, 0.25) solid;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--bs-border-radius-xxl);
  transition: 800ms cubic-bezier(0.075, 0.82, 0.165, 1);
  text-decoration: none !important;
  color: #BCB8AE;
}

.icon-btn:hover,
.card:hover .icon-btn,
.table-line:hover .icon-btn {
  background-color: rgba(188, 184, 174, 0.75);
  transform: rotate(-45deg);
  color: #eee;
}

/* ===== Card Components ===== */
.card {
  border-radius: 20px;
  background-color: var(--black-100);
  opacity: 1 !important;
}
 
.card p {
  color: var(--white-100);
}

.card-img {
  background-size: cover;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: end;
  background-position: center;
  border-radius: 12px;
}

.card-info {
  color: #BCB8AE !important;
  fill: #BCB8AE !important;
  opacity: 50%;
  display: flex;
}

.footer-slide {
  background-size: 100%;
  background-position: right bottom;
  background-repeat: no-repeat;
  background-image: url('/media/cascate.png');
}

/* ===== Logo Carousel ===== */
.logo-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  margin: auto;
  position: relative;
}

.logo-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: scroll 20s linear infinite;
}

.logo-slide img {
  height: 24px;
}

/* Fade Container */
.fade-container {

  mask-image: linear-gradient(
    to right,
    transparent,
    black 4rem,
    black calc(100% - 4rem),
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 4rem,
    black calc(100% - 4rem),
    transparent
  );


} 

/* ===== Media Queries ===== */


@media screen and (max-width: 440px) {
  .stories {
    width: 100%;
    height: 100svh !important;
    min-height: -webkit-fill-available;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .stories .swiper {
    height: 100% !important;
    min-height: -webkit-fill-available;
  }

  .stories .swiper-wrapper {
    height: 100% !important;
  }

  .stories .swiper-slide {
    height: 100% !important;
  }

  .wrapped-container-case {
    padding: 0 !important;
    height: 100svh !important;
    min-height: -webkit-fill-available;
  }

  .wrapper-stories-case {
    height: 100% !important;
  }

  .cases {
    display: none !important;
  }

  .inner-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .wrapped-container-case {
    padding: 0 !important;
    height: 100svh !important;
    min-height: -webkit-fill-available;
  }

  .wrapper-stories-case {
    height: 100% !important;
  }

  .cases {
    display: none !important;
  }

  .stories {
    width: 100%;
    height: 100% !important;
  }

  .stories .swiper {
    height: 100% !important;
  }

  .stories .swiper-wrapper {
    height: 100% !important;
  }

  .stories .swiper-slide {
    height: 100% !important;
  }

  .container-cta {
    visibility: visible !important;
  }

  .inner-nav {
    display: none !important;
  }
}

.star-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

