/* Stili specifici per la pagina Zines */
.zine-intro {
  width: 100%;
  height: auto;
  background: var(--color-secondary);
  margin-bottom: 0rem;
}

.zine-issue {
  width: 48%;
  height: auto;
  padding: var(--spacing-large);
  border: var(--border-normal);
  box-shadow: var(--shadow-box);
  background-color: #00ccfe;
  /* Default fallback */
}

/* Alternanza Colori (Azzurro / Verde) come Home */
.zine-issue:nth-child(odd) {
  background-color: #00ccfe;
}

.zine-issue:nth-child(even) {
  background-color: #32CD32;
}

/* Eccezioni Specifiche */
.zine-issue.zine-yellow {
  background-color: #FFD700 !important;
}

.zine-issue.zine-purple {
  background-color: #800080 !important;
}

.zine-issue.zine-green {
  background-color: #32CD32 !important;
}

.zine-issue .content-item {
  position: relative;
}

.zine-issue .content-item img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  margin-bottom: 1rem;
  clip-path: polygon(0 5%, 5% 0,
      95% 0, 100% 5%,
      100% 95%, 95% 100%,
      5% 100%, 0 95%);
  border: 2px solid black;
}

.zine-issue .content-item::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid black;
  clip-path: polygon(0 7%, 7% 0,
      93% 0, 100% 7%,
      100% 93%, 93% 100%,
      7% 100%, 0 93%);
}

.zine-issues-container {
  display: flex;
  flex-wrap: wrap;
  /* Aggiunto flex-wrap per permettere ai nuovi zine di andare a capo */
  gap: 4%;
  margin-bottom: 0rem;
}

.zine-coming-soon {
  width: 100%;
  height: auto;
  background: #32CD32;
  padding: var(--spacing-large);
  border: var(--border-normal);
  box-shadow: var(--shadow-box);
}

.zine-coming-soon .content-item {
  text-align: center;
}

.zine-coming-soon .content-item img {
  width: 194px;
  height: 104px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.zine-coming-soon .loading-text {
  font-family: 'Share Tech Mono', monospace;
  margin-top: 2rem;
  font-size: 2rem;
  animation: blink 2s infinite;
}

.making-of {
  width: 100%;
  background: #00ccfe;
  padding: var(--spacing-large);
  margin-top: 0rem;
  border: var(--border-normal);
  box-shadow: var(--shadow-box);
}

.making-process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0;
}

.making-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 4px dashed #000000;
  padding-bottom: 2rem;
  position: relative;
}

.making-step img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  clip-path: polygon(0 5%, 5% 0,
      95% 0, 100% 5%,
      100% 95%, 95% 100%,
      5% 100%, 0 95%);
  border: 2px solid black;
  transition: transform 0.3s ease;
}

.making-step img:hover {
  transform: scale(1.5);
  cursor: url('../cur1103.gif'), auto;
}

.making-text {
  color: black;
  font-family: 'Share Tech Mono', monospace;
  margin-top: 1rem;
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 40px;
  background: rgba(255, 255, 255, 0.3);
  padding: 10px 40px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.making-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Icone per ogni step */
.making-step:nth-child(1) .making-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 4h-2v16h2V4zm-6 0h-2v16h2V4zM6 4H4v16h2V4z'/%3E%3C/svg%3E");
}

.making-step:nth-child(2) .making-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34a.996.996 0 0 0-1.41 0L9 12.25 11.75 15l8.96-8.96a.996.996 0 0 0 0-1.41z'/%3E%3C/svg%3E");
}

.making-step:nth-child(3) .making-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
}

.making-step:nth-child(4) .making-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z'/%3E%3C/svg%3E");
}

.making-step:nth-child(5) .making-text::before {
  /* Percorso SVG corretto per completezza */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3L13 9l4 4 6-6V3zM3 17l6 6h4l-6-6z'/%3E%3C/svg%3E");
}

.making-step:nth-child(6) .making-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z'/%3E%3C/svg%3E");
}

.making-step:nth-child(7) .making-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5z'/%3E%3C/svg%3E");
}

.making-step:nth-child(8) .making-text::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z'/%3E%3C/svg%3E");
}

.zine-issue a {
  display: block;
  /* Fa sì che il link occupi tutto lo spazio dell'immagine */
  position: relative;
  /* Necessario per far funzionare z-index */
  z-index: 2;
  /* Porta il link sopra lo pseudo-elemento ::after */
}

/* Opzionale: per fare in modo che il cursore a forma di mano appaia su tutta l'immagine */
.zine-issue .content-item img {
  cursor: pointer;
}

.zine-issue a:hover img {
  cursor: url('../cur1100.gif'), auto;
}

@media (max-width: 768px) {
  .zine-issues-container {
    flex-direction: column;
    width: 100%;
    gap: 2rem;
  }

  .zine-issue {
    width: 100%;
  }

  .zine-issue .content-item img {
    max-height: 300px;
  }

  .zine-intro,
  .zine-coming-soon {
    margin-bottom: 2rem;
  }

  .making-process {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .making-step img {
    width: 100%;
    height: auto;
    max-width: 250px;
  }

  .making-text {
    font-size: 16px;
    margin-top: 0.5rem;
    padding: 8px 20px;
  }

  .making-of {
    padding: var(--spacing-medium);
  }

  .making-step {
    width: 100%;
    /* Corretto: da '1' a '100%' */
  }
}