/* ==========================================================================
   ALCHIMISTA CELTICO - STYLESHEET PRINCIPALE
   ========================================================================== */

: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: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 8px !important; /* Leggermente arrotondato per valorizzare lo scudo */
  overflow: hidden !important;
  border: 1px solid var(--celtic-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #080a0f;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

.celtic-brand-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* Mantiene l'intero scudo visibile e proporzionato */
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* --- SCRITTA ALCHIMISTA CELTICO CON EFFETTO ORO E LUCE ANIMATA --- */
.celtic-brand-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(
        110deg, 
        #b38728 0%, 
        #fbf5b7 25%, 
        #f3c053 45%, 
        #ffffff 50%, 
        #f3c053 55%, 
        #fbf5b7 75%, 
        #9e721d 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.8));
    animation: goldShimmer 4s linear infinite;
    display: inline-block;
    white-space: nowrap;
}

@keyframes goldShimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

@media (max-width: 576px) {
    .celtic-brand-text {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
}

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

/* ==========================================================================
   EFFETTO PARALLAX
   ========================================================================== */

.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);
}