@font-face {
  font-family: 'HALGapVariableUnlicensed-Variable';
  src: url("../fonts/HALGapVariableUnlicensed-Variable.ttf") format("opentype")
}

@font-face {
  font-family: 'HAL Four Grotesk';
  src: url("../fonts/HALFourGroteskUnlicensed-Regular.otf") format("opentype");
  font-weight: normal;
}

body {
  font-family: 'HAL Four Grotesk', sans-serif;
}

.font-hal-bold {
  font-family: 'HAL Four Grotesk', sans-serif;
  font-weight: bold;
}

/* Centrare titolo */
.title-center {
  text-align: center;
  margin: 0px 0;
  font-size: 30rem;
  font-weight: bold;
  color: black;
  font-family: 'HALGapVariableUnlicensed-Variable';
  display: flex;
  justify-content: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* Header Styles */
.site-header .navbar-brand,
.site-header .nav-link {
  font-family: 'HAL Four Grotesk', sans-serif;
  font-weight: bold;
  font-size: 20px;
}

.site-header .nav-link.active,
.site-header .nav-link:active {
  color: #FFFFFF !important;
}

.site-header-no-logo .nav-link.active,
.site-header-no-logo .nav-link:active,
.site-header-no-logo .nav-link:hover {
  color: #FFFFFF !important;
}

.site-header-no-logo .navbar-brand,
.site-header-no-logo .nav-link {
  color: #000000 !important;
}

.site-header .navbar-nav {
  gap: 2rem;
  /* Spacing between items */
}

.site-header .nav-item {
  text-align: center;
}

.site-header-black {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: black !important;
}

/* Header Black Styles */
.site-header-black .navbar-brand,
.site-header-black .nav-link {
  color: #BA66FF !important;
}

.site-header-black .nav-link:hover,
.site-header-black .nav-link.active,
.site-header-black .nav-link:active {
  color: #ffffff !important;
}

.body-header.black {
  background-color: black;
}


body {
  background-color: #BA66FF;
  margin: 0;
}

/* Marquee / Infinite Scroll Gallery */
.gallery-marquee {
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
  background-color: transparent;
}

.purple-section {
  background-color: #BA66FF;
  width: 100%;
  padding-bottom: 20px;
  /* Optional spacing */
}

.gallery-track {
  display: flex;
  gap: 20px;
  /* Spazio tra le immagini */
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-item img {
  width: 150px;
  /* Larghezza fissa */
  height: 150px;
  /* Altezza fissa */
  object-fit: contain;
  /* Mantiene le proporzioni riempiendo il box */
  border-radius: 6px;
  display: block;
}

/* Animazione scorrimento continuo */
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Scroll automático */
@keyframes scroll {
  5% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.button-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

a.button {
  color: black;
  text-decoration: none;
  margin: 10px;
}

a.button:hover {
  color: white;
  text-decoration: none;
  margin: 10px;
}

/* Cinque blocchi in fila */
.text-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 50px auto;
  text-align: center;
  max-width: 900px;
  font-family: 'HAL Four Grotesk', sans-serif;

}

.text-col {
  flex: 1;
  font-size: 0.9rem;
}

.full-width-image {
  width: 100%;
  overflow: hidden;
  /* Ensures no spillover */
}

.full-width-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ZIGZAG FULL WIDTH */
.zigzag {
  width: 100vw;
  height: 120px;
  display: block;
  margin-left: calc(50% - 50vw);
}

.black-section {
  background-color: black;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

/* Testo centrale */
.central-text {
  max-width: 700px;
  margin: 100px auto 0px auto;
  text-align: center;
  font-size: 20px;
  font-family: 'HAL Four Grotesk', sans-serif;
  color: rgb(255, 255, 255);
}

@media (max-width: 991.98px) {
  .central-text {
    font-size: 15px
  }

}

/* Galleria finale */
/* Galleria finale (Slider) */
.bottom-gallery-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 50px;
  width: 100%;
  position: relative;
}

.slider-container {
  width: 600px;
  /* Larghezza fissa o max-width */
  max-width: 80vw;
  height: 400px;
  /* Altezza fissa per evitare salti */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 100px 0;
}

.slider-img {
  display: none;
  /* Nascondi tutte di base */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.slider-img.active {
  display: block;
  /* Mostra solo quella attiva */
  animation: fadeIn 0.5s ease-in-out;
}

/* Frecce */
.slider-arrow {
  background: none;
  border: none;
  font-size: 3rem;
  color: #BA66FF;
  cursor: pointer;
  padding: 0 90px;
  transition: transform 0.2s;
  user-select: none;
}

.slider-arrow:hover {
  transform: scale(1.2);
  color: #ffffff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ZIGZAG FULL WIDTH */
.zigzag {
  width: 100vw;
  height: 120px;
  display: block;
  margin-left: calc(50% - 50vw);
}

@media (max-width: 991.98px) {
  .zigzag {
    position: static;
    width: 100%;
    height: 60px;
  }

}

/* Sezione artisti */
.artist-section {
  margin: 100px 0;
}

/* Titolo orizzontale sopra ai box */
.artist-section__title {
  font-weight: 900;
  font-size: 3rem;
  font-family: 'HALGapVariableUnlicensed-Variable';
  margin-bottom: 40px;
  margin-left: 20px;
  /* spostalo più a sinistra/destra se vuoi */
  line-height: 1;
  color: black;
}

/* Contenitore dei box in fila */
.artist-section__cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  /* Reduced space between large blocks */
  padding: 0 20px;
}

/* Singolo box nero cliccabile */
.artist-card {
  width: 311px;
  height: 573px;
  background-color: black;
  display: block;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

/* Testo verticale dentro il box */
.artist-card__text {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  white-space: nowrap;
  font-size: 190px;
  /* Reduced from 226px for a better fit */
  line-height: 1;
  font-weight: 900;
  font-family: 'HALGapVariableUnlicensed-Variable';
  color: #fff;
  padding: 0;
  margin: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 5px;
}

.artist-card:hover {
  background-color: #fff;
}

.artist-card:hover .artist-card__text {
  color: #BA66FF;
}


.owner-section {
  background-color: #fff;
  padding: clamp(24px, 4vw, 56px) 0;
}

.owner-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.owner-title {
  margin: 0 0 60px 0;
  font-weight: 900;
  font-size: 3rem;
  font-family: 'HALGapVariableUnlicensed-Variable';
  text-transform: uppercase;
  line-height: 1;
  color: black;
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 44px);
  align-items: start;
}

.owner-card {
  display: grid;
  justify-items: center;
  text-decoration: none;
  color: black;
  padding: 10px 6px;
  border-radius: 5px;
}

.owner-card:hover {
  transform: none !important;
}

.owner-art {
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 220px;
  position: relative;
}

.owner-art img {
  max-width: 100%;
  max-height: 240px;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Hide the uploaded hover image as we are using zoom instead */
.hover-img {
  display: none !important;
}

/* Zoom effect on main image */
.owner-card:hover .main-img {
  transform: scale(1.1);
}

.owner-code {
  margin-top: 12px;
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 34px);
  font-family: 'HALGapVariableUnlicensed-Variable';
}

/* responsive */
@media (max-width: 900px) {
  .owner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 320px) {
  .owner-grid {
    grid-template-columns: 1fr;
  }

  .owner-art {
    min-height: 100px;
  }
}


@keyframes pulse {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

@keyframes scroll {
  5% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


@keyframes span-i {
  0% {
    font-variation-settings: 'wdth' 10;
  }

  50% {
    font-variation-settings: 'wdth' 100;
  }

  100% {
    font-variation-settings: 'wdth' 10;
  }
}

@keyframes span-n {
  0% {
    font-variation-settings: 'wdth' 100;
  }

  50% {
    font-variation-settings: 'wdth' 10;
  }

  100% {
    font-variation-settings: 'wdth' 100;
  }
}

@keyframes span-k {
  0% {
    font-variation-settings: 'wdth' 40;
  }

  50% {
    font-variation-settings: 'wdth' 100;
  }

  100% {
    font-variation-settings: 'wdth' 40;
  }
}

@keyframes span-r {
  0% {
    font-variation-settings: 'wdth' 100;
  }

  50% {
    font-variation-settings: 'wdth' 10;
  }

  100% {
    font-variation-settings: 'wdth' 100;
  }

}

@keyframes span-p {
  0% {
    font-variation-settings: 'wdth' 100;
  }

  50% {
    font-variation-settings: 'wdth' 10;
  }

  100% {
    font-variation-settings: 'wdth' 100;
  }

}

@keyframes span-t {
  0% {
    font-variation-settings: 'wdth' 10;
  }

  50% {
    font-variation-settings: 'wdth' 100;
  }

  100% {
    font-variation-settings: 'wdth' 10;
  }

}

span.i {
  animation-name: span-i;
  animation-duration: 4s;
  animation-iteration-count: 999;
}

span.n {
  animation-name: span-n;
  animation-duration: 4s;
  font-variation-settings: 'wdth' 20;
  animation-iteration-count: 999;
}

span.k {
  animation-name: span-k;
  animation-duration: 4s;
  font-variation-settings: 'wdth' 100;
  animation-iteration-count: 999;
}

span.r {
  animation-name: span-r;
  animation-duration: 4s;
  animation-iteration-count: 999;
}

span.p {
  animation-name: span-p;
  animation-duration: 4s;
  font-variation-settings: 'wdth' 60;
  animation-iteration-count: 999;
}

span.t {
  animation-name: span-t;
  animation-duration: 4s;
  font-variation-settings: 'wdth' 20;
  animation-iteration-count: 999;
}

.inkript-footer,
.inkript-footer * {
  animation: none !important;
  transition: none !important;
}

/* Mobile Only Utility */
.mobile-only {
  display: none;
}

/* RESPONSIVE GLOBAL (max-width: 991.98px) */
@media (max-width: 991.98px) {

  /* 1. Title Center */
  .title-center {
    font-size: 50vw;
    /* Riduce drasticamente la dimensione */
    line-height: 1.1;
  }

  /* 2. Text Row (blocchi di testo sotto il titolo) */
  .text-row {
    flex-direction: column;
    gap: 30px;
    margin: 30px 20px;
    /* Margini laterali per non toccare i bordi */
  }

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

  /* 1. Hide unwanted header elements on mobile */
  /* 1. Hide unwanted header elements on mobile */
  .artist-header-image {
    display: none !important;
  }

  /* Logo on Mobile - Reset to static inside the navbar */
  .navbar-brand {
    display: block !important;
    position: static;
    /* Was fixed */
    margin-right: auto;
    /* Push toggler to right */
    padding-left: 20px;
  }

  .navbar-brand img {
    height: 30px;
    width: auto;
  }

  /* For header-no-logo: show this specific brand only on mobile */
  .mobile-only {
    display: block !important;
  }

  /* 2. Reposition Menu and Remove Strip -> RESTORED Header Bar */
  .site-header {
    background-color: #BA66FF !important;
    /* Purple background */
    position: sticky;
    /* Fixed at top */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    padding: 10px 0;
    /* Add some padding */
  }

  .site-header.site-header-black {
    background-color: #000 !important;
  }

  .navbar {
    padding: 0;
    width: 100%;
  }

  .navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    z-index: 100000;
    position: static;
    /* Was fixed */
    margin-right: 20px;
    padding: 10px;
    background: transparent;
  }

  .navbar-toggler:focus,
  .navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
  }

  .artist-section {
    padding-top: 20px;
    /* Reduced to sit higher up */
  }

  /* 3. Sezione Artisti */
  .artist-section__title {
    font-size: 3rem;
    margin-left: 20px;
  }

  .artist-section__cards {
    display: grid;
    grid-template-columns: repeat(2, 164px);
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
  }

  .artist-card {
    width: 164px;
    height: 297px;
    background-color: #000;
    display: block;
    text-decoration: none;
    overflow: hidden;
    position: relative;
  }

  .artist-card__text {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    white-space: nowrap;
    font-size: 90px;
    line-height: 1;
    font-weight: 900;
    font-family: 'HALGapVariableUnlicensed-Variable';
    color: #fff;
    padding: 0;
    margin: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 5px;
  }

  /* 4. Slider Galleria */
  .slider-container {
    width: 100%;
    max-width: 90vw;
    height: auto;
    aspect-ratio: 4/3;
    margin: 50px auto;
  }

  .slider-arrow {
    font-size: 2rem;
    padding: 0 10px;
  }

  /* --- Mobile Menu Fullscreen Styles --- */
  .navbar-toggler-icon {
    width: 35px;
    height: 35px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  /* Force white hamburger on both headers (since no-logo is purple bg, and black is black bg) */
  .site-header-no-logo .navbar-toggler-icon,
  .site-header-black .navbar-toggler-icon {
    /* Ensure icon is white regardless of parent filters */
    filter: none;
  }

  /* When Menu is OPEN (aria-expanded=true) */
  /* Make it an X and PURPLE */
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23BA66FF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M24 6L6 24'/%3e%3c/svg%3e") !important;
    filter: none !important;
    transform: rotate(90deg);
    transition: transform 0.3s ease-in-out;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 99999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: none !important;
    display: flex;
  }


  /* Ensure links are centered and visible in fullscreen */
  .navbar-collapse .navbar-nav {
    text-align: center;
    gap: 30px;
    width: 100%;
  }

  .navbar-collapse .nav-item {
    width: 100%;
  }

  .navbar-collapse .nav-link {
    font-size: 2rem;
    font-family: 'HALGapVariableUnlicensed-Variable';
    text-transform: uppercase;
    color: #fff !important;
  }

  .navbar-collapse .nav-link:hover {
    color: #BA66FF !important;
  }
}

/* Owner Page Specific Hover (Image Swap) */
.owner-page .ownerTable__cell--image {
  position: relative;
}

.owner-page .ownerTable__cell--image .hover-img {
  position: absolute;
  top: 50;
  left: 50;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: block !important;
  /* Force display if hidden globally */
}

.owner-page .ownerTable__cell--image:hover .hover-img {
  opacity: 1;
}

.owner-page .ownerTable__cell--image:hover .main-img {
  opacity: 0;
}