@font-face {
    font-family: 'NTBrickSans'; 
    src: url('NTBrickSans.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'VanDoesburgArchiTypeRegular'; 
    src: url('VanDoesburgArchiTypeRegular.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open'; 
    src: url('RQND.otf') format('opentype'); 
    font-weight: normal;
    font-style: normal;
}

body {
  background-color: #a8a8a8;
  background-image: url('https://imgur.com/sJtiIwY.png'), url('B.png'); 
  background-repeat: repeat, repeat-y;
  background-size: auto, auto;
  background-position: top left, 5% 0;
  background-attachment: fixed;
  justify-content: center;
  align-items: top;
  font-family: Arial, sans-serif;
  text-align: center;
}

body::after {
    content: '';
    position: fixed;
    top: -85px;
    right: -180px;
    width: 750px;
    height: 750px;
    background-image: url('FSCG.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(30deg);
    transform-origin: center;
    z-index: -99;
  }
  
  /* Media query per schermi medi */
  @media screen and (max-width: 1024px) {
    body::after {
      width: 500px;
      height: 500px;
      top: -50px;
      right: -120px;
    }
  }
  
  /* Media query per schermi piccoli come tablet */
  @media screen and (max-width: 768px) {
    body::after {
      width: 350px;
      height: 350px;
      top: -40px;
      right: -80px;
    }
  }
  
  /* Media query per smartphone */
  @media screen and (max-width: 480px) {
    body::after {
      width: 200px;
      height: 200px;
      top: -25px;
      right: -50px;
    }
  }

.category {
    font-family: 'Open', sans-serif; 
    font-size: 25px;   
    color: black;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid black;
  margin: 40px 0 0 0;
}

.title {
  font-family: 'NTBrickSans', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: black;
  margin: 25px 0 10px 0; 
}

.subtitle {
    font-family: 'VanDoesburgArchiTypeRegular', sans-serif;
    font-size: 16px;
    color: black;
    padding: 2px 10%;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
    width: 100%;
    display: block;
    line-height: 1.5;
}

/* Tab Navigation Styling */
.tabs-container {
    position: relative;
    display: flex;
    justify-content: center;
    background-color: #656565; 
    transition: background-color 0.4s;
    border-radius: 25px;
    margin-bottom: 20px;
    overflow: hidden;
    max-width: 500px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
}
  
.tab-button {
    flex: 1;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    font-family: 'Open', sans-serif;
}
  
.tab-button.active {
    color: black;
}
  
.slider-indicator {
    position: absolute;
    height: 85%;
    width: calc(25% - 10px); /* 10px less than tab width */
    background-color: white;
    border-radius: 20px;
    top: 7.5%;
    z-index: 1;
    transition: all 0.3s ease;
    margin: 0 1px; /* Add horizontal margin */
}
  
/* Content Sections */
.content-section {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s;
}
  
.content-section.active {
    display: block;
}
  
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#button-container {
    gap: 10px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
}

.custom-button {
    font-family: 'Open', sans-serif;
    background-color: #9ba150;
    color: white;
    border: 2px solid #b4a46c;
    padding: 15px 25px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 20px;
    margin: 10px 0px;
    position: relative;
    transition: all 0.2s ease-in-out;
    box-shadow: 6px 6px 0px 0px #b4a46c;
    width: 490px;
    max-width: 90%;
}

.custom-button:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0px 0px #b4a46c;
}

.custom-button:disabled,
.custom-button[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.shop-button {
    max-width: 200px; 
    margin: 10px 10px; 
    padding: 10px 20px; 
    font-size: 20px; 
    background-color: #9ba150;
    color: white;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    z-index: 0;
}

.shop-button:hover {
    transform: translate(0px, 0px);
    box-shadow: 6px 6px 0px 0px #b4a46c;
    z-index: 9999;
}

.shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.shop-image, .gig-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
    z-index: 0;
    cursor: zoom-in;
}

/* Classe per gestire lo stato di zoom su mobile */
.zoomed {
    transform: scale(1.5) !important;
    z-index: 9999 !important;
}

/* Mantieni l'hover solo per desktop */
@media screen and (min-width: 601px) {
    .shop-image:hover, 
    .shop-image:active {
        transform: scale(2.5);
        z-index: 9999;
    }
    
    .gig-image:hover, 
    .gig-image:active {
        transform: scale(2);
        z-index: 9999;
    }
}

.shop-name {
    margin: 20px 0 0 0;
    font-size: 22px;
    color: black;
}

.shop-price {
    margin: 0px 0 10px 0;
    font-weight: bold;
    font-size: 22px;
    color: white;
}

.shop-link {
    display: inline-block;
    padding: 5px 15px;
    margin-top: 10px;
    background-color: #b4a46c;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.2s ease;
}

.shop-Ulink {
    display: inline-block;
    padding: 5px 15px;
    margin-top: 10px;
    background-color: #a80000;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.2s ease;
}

.shop-link:hover {
    background-color: #8a7e52;
    transform: scale(1.05);
}

.shop-Ulink:hover {
    background-color: #690707;
    transform: scale(1.05);
}

.gig-button {
    max-width: 400px; 
    margin: 10px 10px; 
    padding: 10px 20px; 
    font-size: 20px; 
    background-color: #9ba150;
    color: white;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    z-index: 0;
}

.gig-button:hover {
    transform: translate(0px, 0px);
    box-shadow: 6px 6px 0px 0px #b4a46c;
    z-index: 9999;
}

.gig-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gig-name {
    margin: 20px 0 0 0;
    font-size: 22px;
    color: black;
}

.gig-price {
    margin: 0px 0 10px 0;
    font-weight: bold;
    font-size: 22px;
    color: white;
}

@media screen and (max-width: 600px) {
    .subtitle {
        font-size: 14px;
        padding: 5px 5%;
    }
    
    .custom-button {
        font-size: 110%;
        padding: 10px 20px;
    }
    
    .shop-item {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .shop-button {
        width: 40%; 
        margin: 10px 3px;
    }

    .gig-item {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .gig-button {
        width: 90%; 
        margin: 10px 3px;
    }
    
    /* Aumentato il fattore di zoom per le immagini dello shop su mobile */
    .shop-image.zoomed {
        transform: scale(2.2) !important;
    }
    
    /* Mantenuto il fattore di zoom originale per le immagini gig */
    .gig-image.zoomed {
        transform: scale(1.5) !important;
    }
}

@media screen and (max-width: 400px) {
    .subtitle {
        font-size: 12px;
        padding: 5px 5%;
    }
    
    /* Anche qui, aumentato il fattore di zoom per le immagini dello shop */
    .shop-image.zoomed {
        transform: scale(2.0) !important;
    }
    
    /* Leggero aumento anche per gli schermi molto piccoli */
    .gig-image.zoomed {
        transform: scale(1.3) !important;
    }
}

/* Stili per il caricamento progressivo delle immagini */
.progressive-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.progressive-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(10px);
    transform: scale(1.05);
    transition: opacity 0.3s ease;
    opacity: 1;
    border-radius: 10px;
}

.progressive-image {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: cover;
    border-radius: 10px;
}

.progressive-image.loaded {
    opacity: 1;
}

.progressive-image-placeholder.loaded {
    opacity: 0;
}