/* === STYLE CSS – Mood Academy TCG === */
/* Versione pulita - senza conflitti hero */

body {
  font-family: system-ui, Arial, sans-serif;
  color: #111;
}

/* === Banner di accesso === */
#access-banner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/banner.png') center/cover no-repeat;
  z-index: 9999;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(25,25,35,0.65),
    rgba(70,80,95,0.65)
  );
  background-size: 200% 200%;
  animation: moveGrad 20s ease-in-out infinite alternate;
}

@keyframes moveGrad {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.access-box {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
}

.glass {
  backdrop-filter: blur(16px);
  background: rgba(30,30,35,0.35);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.logo {
  width: 200px;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* === FORM === */
form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 280px;
  margin: auto;
}

input {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 0.8rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}

input::placeholder {
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

input:focus {
  background: rgba(255,255,255,0.3);
  border-color: #fff;
  outline: none;
  box-shadow: 0 0 14px rgba(255,255,255,0.5),
             0 0 20px rgba(30,120,255,0.3);
}

/* === Mood gradient border === */
input:focus-visible {
  border-image: linear-gradient(45deg, #00b4ff, #ff8a00) 1;
  border-width: 2px;
}

/* === BUTTON === */
button {
  background: linear-gradient(135deg,#ffffff,#e5e5e5);
  color: #111;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: none;
  border-radius: 8px;
  padding: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(255,255,255,0.4);
}

/* === Animazione fade-out === */
.fadeOut {
  animation: fadeout 2.5s forwards;
}

@keyframes fadeout {
  0% { opacity: 1; }
  80% { opacity: 0; }
  100% { opacity: 0; visibility: hidden; display: none; }
}

.error { 
  color: #ff7b7b; 
  font-size: .9rem; 
}

/* === Effetto FOIL sulle carte === */
.anim-card {
  position: relative;
  border-radius: 12px;
  overflow: visible;
  transition: transform 0.3s ease;
}

.anim-card:hover {
  transform: scale(1.05);
}

/* Contenitore dell'immagine per il bordo foil */
.carta-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: inline-block;
}

.carta-wrapper::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: linear-gradient(
    120deg,
    #00eaff,
    #ff00c8,
    #ffee00,
    #00eaff
  );
  background-size: 300% 300%;
  animation: foilGlow 4s linear infinite;
  opacity: 0;
  z-index: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.anim-card:hover .carta-wrapper::before {
  opacity: 1;
}

.carta-svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.anim-card:hover .carta-svg {
  filter: brightness(1.2) saturate(1.2);
  transform: scale(1.03);
}

@keyframes foilGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === POPUP FULLSCREEN CARTA === */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.popup.show {
  display: flex !important;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-caption {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  font-weight: 600;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
  color: #ffb84d;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === EFFETTO HOVER SPECIALE PER RARITÀ === */

/* === SILVER (S) - Argento === */
.card-item[data-numero*="S"] .carta-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  transition: all 0.3s ease;
}

.card-item[data-numero*="S"]:hover .carta-wrapper::after {
  border-color: #c0c0c0;
  box-shadow: 
    inset 0 0 20px rgba(192, 192, 192, 0.6),
    inset 0 0 40px rgba(192, 192, 192, 0.3),
    0 0 15px rgba(192, 192, 192, 0.5);
  animation: pulseSilverBorder 1.5s ease-in-out infinite;
}

@keyframes pulseSilverBorder {
  0%, 100% {
    border-color: #c0c0c0;
    box-shadow: 
      inset 0 0 20px rgba(192, 192, 192, 0.6),
      inset 0 0 30px rgba(192, 192, 192, 0.3),
      0 0 15px rgba(192, 192, 192, 0.5);
  }
  50% {
    border-color: #e8e8e8;
    box-shadow: 
      inset 0 0 30px rgba(192, 192, 192, 0.9),
      inset 0 0 50px rgba(192, 192, 192, 0.5),
      0 0 25px rgba(192, 192, 192, 0.8);
  }
}

/* === GOLD (G) - Oro === */
.card-item[data-numero*="G"] .carta-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  transition: all 0.3s ease;
}

.card-item[data-numero*="G"]:hover .carta-wrapper::after {
  border-color: #ffd700;
  box-shadow: 
    inset 0 0 20px rgba(255, 215, 0, 0.6),
    inset 0 0 40px rgba(255, 215, 0, 0.3),
    0 0 15px rgba(255, 215, 0, 0.5);
  animation: pulseGoldBorder 1.5s ease-in-out infinite;
}

@keyframes pulseGoldBorder {
  0%, 100% {
    border-color: #ffd700;
    box-shadow: 
      inset 0 0 20px rgba(255, 215, 0, 0.6),
      inset 0 0 30px rgba(255, 215, 0, 0.3),
      0 0 15px rgba(255, 215, 0, 0.5);
  }
  50% {
    border-color: #ffed4e;
    box-shadow: 
      inset 0 0 30px rgba(255, 215, 0, 0.9),
      inset 0 0 50px rgba(255, 215, 0, 0.5),
      0 0 25px rgba(255, 215, 0, 0.8);
  }
}

/* === RAINBOW (R) - Arcobaleno === */
.card-item[data-numero*="R"] .carta-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  transition: all 0.3s ease;
}

.card-item[data-numero*="R"]:hover .carta-wrapper::after {
  border-color: #ff00ff;
  box-shadow: 
    inset 0 0 20px rgba(255, 0, 255, 0.6),
    inset 0 0 40px rgba(0, 255, 255, 0.3),
    0 0 15px rgba(255, 0, 255, 0.5);
  animation: pulseRainbowBorder 1.5s ease-in-out infinite;
}

@keyframes pulseRainbowBorder {
  0% {
    border-color: #ff00ff;
    filter: hue-rotate(0deg);
  }
  33% {
    border-color: #00ffff;
    filter: hue-rotate(120deg);
  }
  66% {
    border-color: #ffff00;
    filter: hue-rotate(240deg);
  }
  100% {
    border-color: #ff00ff;
    filter: hue-rotate(360deg);
  }
}

/* === EFFETTO SPARKLE PER VARIANT === */

.card-item[data-numero*="V"] .carta-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 0, 255, 0.6) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 100px 100px;
  background-position: 0 0, 40px 40px, 80px 20px;
  animation: sparkleMove 6s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
  z-index: 5;
}

.card-item[data-numero*="V"]:hover .carta-wrapper::before {
  opacity: 0.6;
}

@keyframes sparkleMove {
  0% {
    background-position: 0 0, 40px 40px, 80px 20px;
  }
  100% {
    background-position: 100px 100px, 140px 140px, 180px 120px;
  }
}

/* Glow multicolore */
.card-item[data-numero*="V"]:hover .carta-wrapper {
  box-shadow: 
    0 0 20px rgba(255, 0, 255, 0.6),
    0 0 40px rgba(0, 255, 255, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
  animation: sparkleGlow 2s ease-in-out infinite;
}

@keyframes sparkleGlow {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.15) saturate(1.3);
  }
}

/* === SECRET (X) - Nero + Oro === */
.card-item[data-numero*="X"] .carta-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  transition: all 0.3s ease;
}

.card-item[data-numero*="X"]:hover .carta-wrapper::after {
  border-color: #000000;
  box-shadow: 
    inset 0 0 30px rgba(255, 215, 0, 0.8),
    inset 0 0 50px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(0, 0, 0, 0.8);
  animation: pulseSecretBorder 1.8s ease-in-out infinite;
}

@keyframes pulseSecretBorder {
  0%, 100% {
    border-color: #000000;
    box-shadow: 
      inset 0 0 25px rgba(255, 215, 0, 0.7),
      inset 0 0 45px rgba(255, 215, 0, 0.3),
      0 0 15px rgba(255, 215, 0, 0.5),
      0 0 35px rgba(0, 0, 0, 0.9);
  }
  50% {
    border-color: #1a1a1a;
    box-shadow: 
      inset 0 0 40px rgba(255, 215, 0, 1),
      inset 0 0 60px rgba(255, 215, 0, 0.5),
      0 0 30px rgba(255, 215, 0, 0.9),
      0 0 50px rgba(0, 0, 0, 0.7);
  }
}

/* === BORDI NEL POPUP 3D === */
.card3d {
  position: relative;
}

.card3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: 16px;
  pointer-events: none;
  z-index: 100;
  transition: all 0.3s ease;
}

/* Silver */
.card3d.silver::after {
  border-color: #c0c0c0 !important;
  box-shadow: 
    inset 0 0 30px rgba(192, 192, 192, 0.6),
    inset 0 0 50px rgba(192, 192, 192, 0.3),
    0 0 25px rgba(192, 192, 192, 0.8) !important;
  animation: pulseSilverBorder 1.5s ease-in-out infinite !important;
}

/* Gold */
.card3d.gold::after {
  border-color: #ffd700 !important;
  box-shadow: 
    inset 0 0 30px rgba(255, 215, 0, 0.6),
    inset 0 0 50px rgba(255, 215, 0, 0.3),
    0 0 25px rgba(255, 215, 0, 0.8) !important;
  animation: pulseGoldBorder 1.5s ease-in-out infinite !important;
}

/* Rainbow */
.card3d.rainbow::after {
  border-color: #ff00ff !important;
  box-shadow: 
    inset 0 0 30px rgba(255, 0, 255, 0.6),
    inset 0 0 50px rgba(0, 255, 255, 0.3),
    0 0 25px rgba(255, 0, 255, 0.8) !important;
  animation: pulseRainbowBorder 1.5s ease-in-out infinite !important;
}

/* === VARIANT FULL ART (V) - SPARKLE NEL POPUP === */

/* Setup base per sparkle nel popup */
.card3d.variant {
  position: relative;
  overflow: visible;
}

/* Sparkle overlay nel popup */
.card3d.variant::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 0, 255, 0.6) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 100px 100px;
  background-position: 0 0, 40px 40px, 80px 20px;
  animation: sparkleMove 6s linear infinite;
  opacity: 0.6;
  border-radius: 16px;
  z-index: 5;
  pointer-events: none;
}

/* Bordo sparkle nel popup */
.card3d.variant::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 5px solid transparent;
  border-radius: 16px;
  box-shadow: 
    0 0 20px rgba(255, 0, 255, 0.6),
    0 0 40px rgba(0, 255, 255, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1) !important;
  animation: sparkleGlow 2s ease-in-out infinite !important;
  pointer-events: none;
  z-index: 100;
}

/* Animazioni sparkle (assicurati che esistano già nel CSS) */
@keyframes sparkleMove {
  0% {
    background-position: 0 0, 40px 40px, 80px 20px;
  }
  100% {
    background-position: 100px 100px, 140px 140px, 180px 120px;
  }
}

@keyframes sparkleGlow {
  0%, 100% {
    filter: brightness(1) saturate(1);
    box-shadow: 
      0 0 20px rgba(255, 0, 255, 0.6),
      0 0 40px rgba(0, 255, 255, 0.4),
      inset 0 0 30px rgba(255, 255, 255, 0.1);
  }
  50% {
    filter: brightness(1.15) saturate(1.3);
    box-shadow: 
      0 0 30px rgba(255, 0, 255, 0.8),
      0 0 50px rgba(0, 255, 255, 0.6),
      inset 0 0 40px rgba(255, 255, 255, 0.15);
  }
}

/* Secret (Nero + Oro) - MASSIMA PRIORITÀ */
.card3d.secret::after {
  border-color: #1a1a1a !important;
  border-width: 5px !important;
  box-shadow: 
    inset 0 0 40px rgba(255, 215, 0, 0.9) !important,
    inset 0 0 60px rgba(255, 215, 0, 0.5) !important,
    0 0 30px rgba(255, 215, 0, 0.9) !important,
    0 0 50px rgba(0, 0, 0, 0.8) !important;
  animation: pulseSecretBorder 1.8s ease-in-out infinite !important;
  filter: none !important;
}

@keyframes pulseSecretBorder {
  0%, 100% {
    border-color: #1a1a1a;
    box-shadow: 
      inset 0 0 35px rgba(255, 215, 0, 0.8),
      inset 0 0 55px rgba(255, 215, 0, 0.4),
      0 0 25px rgba(255, 215, 0, 0.8),
      0 0 45px rgba(0, 0, 0, 0.9);
  }
  50% {
    border-color: #2a2a2a;
    box-shadow: 
      inset 0 0 50px rgba(255, 215, 0, 1),
      inset 0 0 70px rgba(255, 215, 0, 0.6),
      0 0 40px rgba(255, 215, 0, 1),
      0 0 60px rgba(0, 0, 0, 0.7);
  }
}
/* === POPUP CON EFFETTO 3D === */
.card3d-container {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.card3d {
  width: 340px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: grab;
}

.popup-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  transform: rotateY(0deg);
  background: #111;
}

.popup-face.back {
  transform: rotateY(180deg);
  background: #000;
}

/* Glow elegante */
.card3d:hover {
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.35);
  transition: box-shadow 0.4s ease;
}

/* === BORDO ORO/RAINBOW NEL POPUP 3D === */

/* Contenitore per il bordo nel popup */
.card3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: 16px;
  pointer-events: none;
  z-index: 100;
  transition: all 0.3s ease;
}

/* Bordo ORO per Full Art nel popup */
.card3d.fullart::after {
  border-color: #ffd700;
  box-shadow: 
    inset 0 0 30px rgba(255, 215, 0, 0.6),
    inset 0 0 50px rgba(255, 215, 0, 0.3),
    0 0 25px rgba(255, 215, 0, 0.8);
  animation: pulseGoldBorder 1.5s ease-in-out infinite;
}

/* Bordo RAINBOW per Secret nel popup */
.card3d.secret::after {
  border-color: #ff00ff;
  box-shadow: 
    inset 0 0 30px rgba(255, 0, 255, 0.6),
    inset 0 0 50px rgba(0, 255, 255, 0.3),
    0 0 25px rgba(255, 0, 255, 0.8);
  animation: pulseRainbowBorder 1.5s ease-in-out infinite;
}

/* === FRECCE NAVIGAZIONE POPUP === */
.popup-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.popup-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.popup-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.popup-nav-prev {
  left: 2rem;
}

.popup-nav-next {
  right: 2rem;
}

.popup-nav svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* Indicatore carta corrente */
.popup-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 200;
}

/* Mobile: frecce più piccole */
@media (max-width: 768px) {
  .popup-nav {
    width: 50px;
    height: 50px;
  }
  
  .popup-nav-prev {
    left: 1rem;
  }
  
  .popup-nav-next {
    right: 1rem;
  }
  
  .popup-nav svg {
    width: 24px;
    height: 24px;
  }
  
  .popup-counter {
    bottom: 5rem;
    font-size: 0.9rem;
  }
}

/* Animazione slide */
.card3d.slide-left {
  animation: slideLeft 0.3s ease;
}

.card3d.slide-right {
  animation: slideRight 0.3s ease;
}

@keyframes slideLeft {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* === BADGE "NEW CARD" IN DIAGONALE === */

.new-card {
  position: relative;
}

.new-card::before {
  content: "NEW CARD";
  position: absolute;
  top: 20px;
  left: -30px;
  background: linear-gradient(135deg, #ff0844, #ff8c00);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 2.5rem;
  transform: rotate(-45deg);
  transform-origin: center;
  box-shadow: 0 4px 12px rgba(255, 8, 68, 0.4);
  z-index: 10;
  pointer-events: none;
}

/* Effetto glow al hover */
.new-card:hover::before {
  box-shadow: 
    0 4px 12px rgba(255, 8, 68, 0.6),
    0 0 20px rgba(255, 8, 68, 0.4);
}

/* === NASCONDI NEL POPUP === */
#cardPopup .new-card::before,
.card3d .new-card::before {
  display: none !important;
}

/* Mobile: badge più piccolo */
@media (max-width: 768px) {
  .new-card::before {
    font-size: 0.65rem;
    padding: 0.3rem 2rem;
    top: 15px;
    left: -35px;
  }
}

/* === MIGLIOR VISIBILITÀ TITOLO HERO === */
#hero h1 {
  color: #fff;
  text-shadow: 
    0 2px 8px rgba(0,0,0,0.8),
    0 4px 16px rgba(0,0,0,0.6);
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.2);
}
/* FORZA HERO FULL WIDTH */
#hero {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* === TEXT-SHADOW PER TUTTE LE PAGE-HERO (FIX LEGGIBILITÀ) === */
.page-hero h1,
.page-hero p,
.page-hero-content h1,
.page-hero-content p,
.page-hero-full h1,
.page-hero-full p {
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    2px 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* === SEZIONE INTRODUZIONE - IMMAGINE LARGA === */
.intro-section {
  padding: 3rem 2rem;
  max-width: 1920px;
  margin: 0 auto;
}

.intro-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.intro-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.intro-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.intro-wrapper:hover .intro-image {
  transform: scale(1.03);
}

/* Mobile */
@media (max-width: 768px) {
  .intro-section {
    padding: 2rem 1rem;
  }
  
  .intro-wrapper {
    border-radius: 12px;
  }
}

/* === BANNER NOVITÀ SCORREVOLE === */
.news-ticker {
  position: fixed;
  top: 80px; /* Desktop: sotto navbar */
  left: 0;
  width: 100%;
  background: #000;
  color: #ffd700;
  padding: 0.7rem 0;
  overflow: hidden;
  z-index: 900; /* MOLTO SOTTO la navbar */
  border-bottom: 2px solid #ffd700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
  gap: 0;
}

.ticker-item {
  font-size: 1rem;
  font-weight: 600;
  padding: 0 2rem;
}

.ticker-item a {
  color: #ffd700;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.3s ease;
}

.ticker-item a:hover {
  color: #fff;
}

.ticker-separator {
  color: #ffd700;
  font-size: 1.2rem;
  opacity: 0.5;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* === MOBILE: PIÙ SPAZIO SOTTO NAVBAR === */
@media (max-width: 768px) {
  .news-ticker {
    top: 90px; /* AUMENTATO: più spazio sotto navbar mobile */
    padding: 0.6rem 0;
    z-index: 900; /* Sempre sotto navbar */
  }
  
  .ticker-content {
    animation: scroll-left 25s linear infinite;
  }
  
  .ticker-item {
    font-size: 0.9rem;
    padding: 0 1.5rem;
  }
}

/* === COMPENSO PADDING BODY === */
body {
  padding-top: 130px !important; /* 80px navbar + 50px banner */
}

@media (max-width: 768px) {
  body {
    padding-top: 135px !important; /* 90px top + 45px banner */
  }
}

@media (max-width: 768px) {
  .news-ticker {
    display: none; /* Nasconde su mobile */
  }
  
  body {
    padding-top: 70px !important; /* Solo navbar */
  }
}

/* === STYLING CARTE PLACEHOLDER === */
.card-placeholder {
  opacity: 0.7;
}

.card-placeholder .carta-wrapper {
  border: 2px dashed rgba(255, 215, 0, 0.3);
}

.card-placeholder:hover {
  opacity: 0.85;
}

/* Badge "Coming Soon" opzionale */
.card-placeholder::after {
  content: "COMING SOON";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 215, 0, 0.9);
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  z-index: 10;
}

/* === MOSTRA/NASCONDI IMMAGINI DESKTOP/MOBILE === */

/* Desktop: mostra desktop, nascondi mobile */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Mobile: nascondi desktop, mostra mobile */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
}
```
