/* ==========================================================================
   ALCHIMISTA CELTICO - STYLESHEET PRINCIPALE (RIGENERATO DA ZERO)
   ========================================================================== */

:root {
  --bg-deep: #080a0f;           /* Nero profondo */
  --bg-card: #121824;           /* Sfondo card scuro blu notte */
  --text-main: #c5c6c7;
  --celtic-gold: #00bfff;       /* Azzurro/blu brillante distintivo */
  --celtic-gold-rgb: 0, 191, 255;
}

/* Sicurezza totale per evitare lo scroll orizzontale */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  padding-top: 76px;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

/* ==========================================================================
   LOGO & NAVBAR DIMENSIONI FISSE
   ========================================================================== */

.celtic-navbar {
  background-color: rgba(8, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.celtic-logo-wrapper {
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  min-height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--celtic-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.celtic-brand-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: 45px !important;
  max-height: 45px !important;
}

@media (max-width: 768px) {
  .nav-link {
    font-size: 14px !important;
    padding: 6px 10px !important;
  }
}

/* ==========================================================================
   EFFETTO PARALLAX RISOLTO AL 100% (SENZA SPAZI BIANCHI)
   ========================================================================== */

.parallax-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.parallax-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.parallax-img-wrapper img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.45);
}

/* ==========================================================================
   MAGIC CARDS & INTERATTIVITÀ
   ========================================================================== */

.magic-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 12px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.magic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 191, 255, 0.9);
  box-shadow: 0 15px 35px rgba(0, 191, 255, 0.2), 0 0 20px rgba(0, 0, 0, 0.8);
}

.text-accent {
  color: var(--celtic-gold) !important;
}

.text-glow {
  text-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.celtic-navbar .navbar-nav .nav-link {
  color: var(--celtic-gold) !important;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-celtic-pill {
  background-color: rgba(18, 24, 36, 0.7);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 8px;
  padding: 6px 14px !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.nav-celtic-pill:hover, 
.nav-celtic-pill.active {
  background-color: rgba(0, 191, 255, 0.15) !important;
  border-color: rgba(0, 191, 255, 0.9) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 191, 255, 0.3), 0 0 10px rgba(0, 191, 255, 0.2);
  color: #ffffff !important;
}

.btn-outline-mystic {
  color: var(--celtic-gold);
  border-color: var(--celtic-gold);
  transition: all 0.5s ease;
}

.btn-outline-mystic:hover {
  background-color: var(--celtic-gold);
  color: #080a0f;
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.celtic-footer {
  background-color: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(5px);
}