/* Testo giallo oro per evidenziare la parola Tema */
.gold-text {
  color: #FFD700 !important;
  font-weight: bold;
  -webkit-text-fill-color: #FFD700 !important;
}

:root {
  --bg-start: #0a0e1a;
  --bg-mid: #151b2e;
  --bg-end: #0d1222;
  --card: linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
  --card-border: rgba(110, 168, 255, 0.3);
  --line: #2a3655;
  --muted: #2e3a54;
  --ink: #2e3a54;
  --pill: linear-gradient(135deg, #1a2140 0%, #0f1628 100%);
  --pillline: #3d4d75;
  --accent1: #27ae60;
  --accent2: #2ecc71;
  --accent-glow: rgba(108, 92, 231, 0.4);
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.3);
  --danger: #ff6b6b;
  --dangerbg: #3a1a1a;
  --dangerink: #ffe6e6;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* Forza i numeri delle sfere in oro */
.box .number,
.box .number * {
  color: #ffd700 !important;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: #030B18;
  background-attachment: fixed;
  color: var(--ink);
  margin: 0;
  font-size: 14px;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0.3px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Language Selector ===== */
.language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 100;
  background: rgba(15, 23, 42, 0.6);
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid rgba(110, 168, 255, 0.25);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(110, 168, 255, 0.15);
  backdrop-filter: blur(10px);
}

.lang-flag {
  width: 36px;
  height: 27px;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-flag:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.1);
  border-color: rgba(110, 168, 255, 0.6);
  box-shadow: 0 4px 12px rgba(110, 168, 255, 0.4);
}

.lang-flag.active {
  opacity: 1;
  border-color: #6ea8ff;
  box-shadow:
    0 0 15px rgba(110, 168, 255, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wrap {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .wrap {
    margin: 30px auto;
    padding: 0 16px;
  }
}

/* Riduci il margine superiore del wrap per tutte le pagine tranne la home */
body:not(.page-home) .wrap {
  margin-top: -6px;
}

.card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid rgba(108, 92, 231, 0.2);
  border-radius: 24px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 8px 40px rgba(0, 0, 0, 0.08);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.08), transparent);
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 12px 50px rgba(108, 92, 231, 0.15);
  transform: translateY(-2px);
}

.card>p:not(.box p),
.card>ul:not(.box ul),
.card>ol:not(.box ol) {
  color: #333;
}

.card>h2:not(.box h2),
.card>h3:not(.box h3),
.card>h4:not(.box h4) {
  color: #00BFFF;
}

.legend-box {
  color: #333 !important;
}

.legend-box p,
.legend-box strong,
.legend-box em {
  color: inherit;
}

.synthesis-conclusion {
  color: #333 !important;
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: 30px;
  margin: 30px 0 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 30px rgba(39, 174, 96, 0.5);
  letter-spacing: 2px;
  text-align: center;
}

.legend-box {
  margin: 20px auto 30px;
  padding: 20px 25px;
  max-width: 900px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08) 0%, rgba(108, 92, 231, 0.03) 100%);
  border-left: 4px solid #27ae60;
  border-radius: 4px;
  font-size: 22px;
  line-height: 1.8;
  color: #333;
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
}

.legend-box p {
  margin: 8px 0;
  display: inline;
}

.legend-box p:after {
  content: " ";
}

.legend-box p:first-child {
  margin-top: 0;
}

.legend-box p:last-child {
  margin-bottom: 0;
}

.legend-box p:last-child:after {
  content: "";
}

.legend-box strong {
  color: #ffd700;
  font-weight: 700;
}

.legend-box em {
  color: #27ae60;
  font-style: italic;
  font-weight: 600;
}

.synthesis-conclusion {
  margin: 40px auto 30px;
  padding: 30px 30px;
  max-width: 850px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.12) 0%, rgba(255, 215, 0, 0.05) 100%);
  border: 2px solid #27ae60;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 2;
  color: #333;
  text-align: center;
}

.synthesis-conclusion h3 {
  font-size: 32px;
  background: linear-gradient(135deg, #27ae60 0%, #ffd700 50%, #27ae60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 28px 0;
  letter-spacing: 2px;
  font-weight: 500;
  font-style: italic;
  text-transform: none;
}

.synthesis-conclusion p {
  margin: 18px 0;
  text-align: justify;
}

.synthesis-conclusion p:first-of-type {
  margin-top: 0;
}

.synthesis-conclusion p:last-of-type {
  margin-bottom: 0;
  font-style: italic;
  color: #27ae60;
}

.synthesis-conclusion strong {
  color: #ffd700;
  font-weight: 700;
}

.synthesis-conclusion em {
  color: #27ae60;
  font-style: italic;
  font-weight: 600;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  background: linear-gradient(90deg, #6ea8ff, #9ba8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #cfe0ff;
}

.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  padding: 0 10px;
}

.profile-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Contenitore elegante per ogni campo */
.profile-form .form-row::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(255, 215, 0, 0.03));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.profile-form .form-row:hover::before {
  opacity: 1;
}

.profile-form .form-row.data-center {
  grid-column: 1 / 3;
  text-align: center;
  margin-top: 10px;
}

.profile-form .form-row.data-center label {
  margin: 0 auto 12px auto;
  justify-content: center;
}

/* Rimuovi la linea decorativa per la label centrata */
.profile-form .form-row.data-center label::after {
  display: none;
}

.profile-form .form-row.data-center input {
  display: block;
  margin: 0 auto;
  width: 50%;
  min-width: 200px;
  max-width: 320px;
  text-align: center;
}

/* Label stilizzate con effetto glow */
.profile-form label {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: #27ae60;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow:
    0 0 15px rgba(39, 174, 96, 0.6),
    0 0 30px rgba(39, 174, 96, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-left: 4px;
  position: relative;
}

/* Icona decorativa nella label */
.profile-form .label-icon {
  color: #ffd700;
  font-size: 16px;
  text-shadow:
    0 0 10px rgba(255, 215, 0, 0.8),
    0 0 20px rgba(255, 215, 0, 0.5);
  animation: iconPulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes iconPulse {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Decorazione linea sotto la label */
.profile-form label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.5), transparent);
  margin-left: 8px;
}

/* Input eleganti con bordo gradiente */
.profile-form input {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  border-radius: 14px;
  padding: 16px 20px;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, #062c5f 0%, #051f45 100%) padding-box,
    linear-gradient(135deg, #27ae60, #2ecc71) border-box;
  color: #f0f4ff;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  letter-spacing: 0.5px;
}

.profile-form input:hover {
  background:
    linear-gradient(135deg, #073a6f 0%, #06285a 100%) padding-box,
    linear-gradient(135deg, #2ecc71, #27ae60) border-box;
  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(108, 92, 231, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-form input:focus {
  outline: none;
  background:
    linear-gradient(135deg, #4a5478 0%, #3e4a68 100%) padding-box,
    linear-gradient(135deg, #2ecc71, #27ae60) border-box;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(108, 92, 231, 0.5),
    0 0 50px rgba(108, 92, 231, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.profile-form input::placeholder {
  color: rgba(160, 175, 210, 0.6);
  font-style: italic;
  letter-spacing: 0.3px;
}

.profile-form input[readonly] {
  background:
    linear-gradient(135deg, #3c4664 0%, #2e3a54 100%) padding-box,
    linear-gradient(135deg, #6ea8ff, #9fb0ff) border-box;
  color: rgba(240, 244, 255, 0.85);
  cursor: default;
  pointer-events: none;
  box-shadow:
    0 2px 15px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Responsive per i campi del form */
@media (max-width: 600px) {
  .profile-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-form .form-row.data-center {
    grid-column: 1;
  }

  .profile-form .form-row.data-center input {
    width: 100%;
    max-width: none;
  }

  .profile-form label {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .profile-form input {
    font-size: 18px;
    padding: 14px 16px;
  }
}

.form-errors {
  margin: 12px 0 0 0;
}

.error-msg {
  background: var(--dangerbg);
  color: var(--dangerink);
  padding: 9px 16px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 16px;
  border-left: 4px solid var(--danger);
}

.btn-calc {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding: 16px 40px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.8px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
  background-size: 200% 100%;
  animation: gradientSlide 3s ease infinite;
  color: #fff;
  border: 2px solid rgba(108, 92, 231, 0.6);
  border-radius: 16px;
  box-shadow:
    0 0 30px rgba(108, 92, 231, 0.6),
    0 0 60px rgba(108, 92, 231, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-calc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-calc:hover,
.btn-calc:focus {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 0 40px rgba(108, 92, 231, 0.8),
    0 0 80px rgba(108, 92, 231, 0.4),
    0 15px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(108, 92, 231, 1);
}

.btn-calc:hover::before {
  opacity: 1;
}

.btn-calc:active {
  transform: translateY(0) scale(0.98);
}

/* Bottone centrato con larghezza limitata */
.profile-form>.btn-calc {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Stile primario (Scopri profilo) */
.btn-primary {
  background: linear-gradient(135deg, #5d8ce6 0%, #6ea8ff 25%, #79b3ff 50%, #6ea8ff 75%, #5d8ce6 100%);
  background-size: 300% 100%;
  animation: gradientSlide 4s ease infinite;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 40px rgba(110, 168, 255, 0.7),
    0 0 80px rgba(110, 168, 255, 0.4),
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent, rgba(255, 255, 255, 0.2));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 16px;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover,
.btn-primary:focus {
  animation: gradientSlide 2s ease infinite;
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 60px rgba(110, 168, 255, 0.9),
    0 0 120px rgba(110, 168, 255, 0.5),
    0 15px 50px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary .btn-icon {
  font-size: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.btn-primary:hover .btn-icon {
  animation: rotateIcon 0.8s ease infinite;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
}

/* Stile reset (Nuovo profilo) */
.btn-reset {
  background:
    linear-gradient(135deg, #3c4664 0%, #2e3a54 100%) padding-box,
    linear-gradient(135deg, #27ae60, #2ecc71) border-box;
  border: 2px solid transparent;
  color: rgba(240, 244, 255, 0.95);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 1.5px;
  padding: 20px 50px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-reset:hover,
.btn-reset:focus {
  background:
    linear-gradient(135deg, #444e70 0%, #36425e 100%) padding-box,
    linear-gradient(135deg, #2ecc71, #27ae60) border-box;
  border: 2px solid transparent;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(108, 92, 231, 0.3);
}

.btn-reset .btn-icon {
  font-size: 20px;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(110, 168, 255, 0.8));
}

.btn-reset:hover .btn-icon {
  animation: rotateIcon 0.8s ease infinite;
  filter: drop-shadow(0 0 15px rgba(110, 168, 255, 1));
}

@keyframes rotateIcon {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn-calc:active {
  transform: translateY(0);
}

.download {
  margin-top: 16px;
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #2a3555;
  background: #0f1530;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.download:hover {
  border-color: #6ea8ff;
  box-shadow: 0 0 12px rgba(110, 168, 255, 0.2);
  background: rgba(110, 168, 255, 0.05);
}

.full {
  grid-column: 1 / -1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.report-title {
  margin: 10px 0 18px;
  text-align: center;
}

.report-title h2 {
  margin: 0;
  color: #27ae60 !important;
  font-size: 32px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(39, 174, 96, 0.3) !important;
}

.report-title p {
  margin: 6px 0 0;
  color: #27ae60 !important;
  font-size: 22px;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 6px rgba(39, 174, 96, 0.25) !important;
}

.pill {
  background: var(--pill);
  border: 2px solid var(--pillline);
  padding: 20px 16px;
  border-radius: 18px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(110, 168, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.pill:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--accent1);
  box-shadow:
    0 0 25px rgba(110, 168, 255, 0.4),
    0 15px 35px rgba(0, 0, 0, 0.4);
}

.pill:hover::after {
  opacity: 1;
}

.pill>span {
  display: block;
  font-size: 13px;
  color: #27ae60 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow:
    0 0 10px rgba(46, 204, 113, 0.5),
    0 0 20px rgba(46, 204, 113, 0.3);
}



.pill .number-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  position: relative;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.5),
    inset 0 2px 10px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(110, 168, 255, 0.2);
  transition: all 0.35s ease;
}

.pill:hover .number-circle {
  transform: scale(1.12) rotateZ(8deg);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 2px 15px rgba(255, 255, 255, 0.2),
    0 0 45px currentColor;
}

.pill .number-circle .icon {
  font-size: 40px;
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pill .number-circle .number {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  color: #ffd700 !important;
  font-family: 'Cinzel', serif;
}

/* Espressione - Rosso */
.pill:nth-child(1) .number-circle {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
  border: 3px solid rgba(255, 107, 107, 0.3);
}

/* Personalità - Verde acqua */
.pill:nth-child(2) .number-circle {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  border: 3px solid rgba(78, 205, 196, 0.3);
}

/* Desiderio dell'Anima - Rosso vivo */
.pill:nth-child(3) .number-circle {
  background: linear-gradient(135deg, #ff4d4f, #d9363e);
  color: white;
  border: 3px solid rgba(217, 54, 62, 0.35);
}

/* Percorso di Vita - Grigio argento */
.pill:nth-child(4) .number-circle {
  background: linear-gradient(135deg, #b8c6db, #7f8c9e);
  color: white;
  border: 3px solid rgba(184, 198, 219, 0.3);
}

/* Quintessenza - Blu come Desiderio */
.pill:nth-child(5) .number-circle {
  background: linear-gradient(135deg, #6ea8ff, #4a90ff);
  color: white;
  border: 3px solid rgba(110, 168, 255, 0.4);
}

/* Anno Personale - Rosa */
.pill:nth-child(6) .number-circle {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  color: white;
  border: 3px solid rgba(253, 121, 168, 0.3);
}

/* Mese Personale - Viola */
.pill:nth-child(7) .number-circle {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  border: 3px solid rgba(162, 155, 254, 0.3);
}

/* Ombra - Blu scuro con numero oro */
.pill:nth-child(8) .number-circle {
  background: linear-gradient(135deg, #1a2742, #0f1530);
  color: #ffd700;
  border: 3px solid rgba(26, 39, 66, 0.5);
}

.pill:nth-child(8) .number-circle .number {
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pill:nth-child(8) .number-circle .icon {
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pill:nth-child(8) strong {
  color: #74b9ff;
}

.pill:nth-child(9) strong {
  color: #00b894;
}

.pill:nth-child(10) strong {
  color: #fdcb6e;
}

.pill:nth-child(11) strong {
  color: #fab1a0;
}

.pill:nth-child(12) strong {
  color: #55efc4;
}

.pill em {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #cdd8ff;
  font-style: italic;
}

/* Override: numeri nelle sfere in oro coerente */
.pill .number-circle .number {
  color: #ffd700 !important;
  font-size: 24px;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  text-shadow:
    0 0 12px rgba(255, 215, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.pill .payoff {
  margin-top: 6px;
  color: #cfe8d9;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-style: italic;
}

.pager-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.pager-arrows.bottom {
  margin: 20px 0 10px;
}

.pager-arrow {
  width: 58px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(61, 224, 143, 0.6);
  background: radial-gradient(circle at 30% 30%, rgba(61, 224, 143, 0.25), rgba(12, 24, 45, 0.95));
  color: #e9fff4;
  cursor: pointer;
  transition: all 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 30px rgba(61, 224, 143, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(61, 224, 143, 0.35);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pager-arrow:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(61, 224, 143, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(61, 224, 143, 0.5);
}

.pager-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.page-indicator {
  min-width: 140px;
  padding: 10px 18px;
  border-radius: 16px;
  border: 1px solid rgba(61, 224, 143, 0.5);
  background: linear-gradient(135deg, rgba(15, 28, 51, 0.85), rgba(10, 22, 44, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #e6f7ef !important;
  font-weight: 500;
  text-align: center;
}

.page-indicator span {
  color: #e6f7ef !important;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pager .page-label {
  color: #cfe8d9;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

.pager .page-current {
  color: #d0fbe2;
}

.pager-btn {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(108, 92, 231, 0.35);
  background: rgba(12, 25, 45, 0.8);
  color: #cfe8d9;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pager-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.3);
}

.pager-btn.active {
  background: #27ae60;
  color: #0d1b2a;
  box-shadow: 0 0 16px rgba(108, 92, 231, 0.6);
}

.evol-respiro {
  background: linear-gradient(135deg, rgba(25, 33, 68, 0.9), rgba(15, 22, 45, 0.9));
  border: 2px solid rgba(110, 168, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 25px rgba(110, 168, 255, 0.15);
}

.evol-respiro h3 {
  color: #3de08f;
  text-shadow: 0 0 16px rgba(61, 224, 143, 0.5);
  letter-spacing: 0.5px;
}

.evol-respiro .legend {
  color: #cdd8ff;
  background: linear-gradient(135deg, rgba(32, 47, 90, 0.8), rgba(25, 36, 70, 0.7));
  padding: 12px 14px;
  border-radius: 8px;
  font-style: italic;
  margin: 12px 0 18px;
}

.evol-respiro .desc {
  color: #e5ecff;
  line-height: 1.75;
  font-size: 17px;
}

.evol-respiro .desc p+p {
  margin-top: 10px;
}

.evol-respiro .num-gold {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  font-weight: 700;
}

.box {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.95) 0%, rgba(15, 20, 40, 0.9) 100%);
  border: 2px solid rgba(110, 168, 255, 0.2);
  border-left: 4px solid var(--accent1);
  padding: 28px;
  border-radius: 16px;
  margin-top: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.15), transparent, rgba(110, 168, 255, 0.15));
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.box:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 168, 255, 0.5);
  border-left-color: var(--gold);
  box-shadow:
    0 0 30px rgba(110, 168, 255, 0.25),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.box:hover::before {
  opacity: 1;
}

.box h3 {
  font-family: 'Cinzel', serif;
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: #ffd700 !important;
  letter-spacing: 1.5px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.box .legend {
  font-style: italic;
  font-size: 18px;
  color: #b8c6ff !important;
  background: rgba(110, 168, 255, 0.08);
  border-left: 3px solid rgba(110, 168, 255, 0.4);
  margin: -8px 0 24px 0;
  padding: 12px 16px;
  line-height: 1.6;
  opacity: 1;
  letter-spacing: 0.4px;
  text-shadow: 0 0 12px rgba(184, 198, 255, 0.4);
  border-radius: 6px;
}

.box .desc p {
  margin: 0 0 16px;
  line-height: 1.75;
  color: rgba(240, 244, 255, 0.92) !important;
  font-size: 18px;
}

.box .desc p:last-child {
  margin-bottom: 0;
}

.box .desc strong {
  color: var(--gold) !important;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.box .desc em {
  color: rgba(159, 176, 255, 0.85) !important;
  font-style: italic;
}

.syn {
  background: #0d1330;
  border: 1px solid #39507a;
  padding: 18px;
  border-radius: 16px;
  margin-top: 16px;
}

.syn h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.syn p {
  white-space: pre-line;
  line-height: 1.6;
  margin: 0;
  color: #d6e0ff;
}

.sender {
  background: rgba(110, 168, 255, 0.08);
  border: 1px solid rgba(110, 168, 255, 0.25);
  padding: 16px;
  border-radius: 14px;
  margin-top: 16px;
  transition: all 0.3s ease;
}

.sender:hover {
  background: rgba(110, 168, 255, 0.12);
  border-color: rgba(110, 168, 255, 0.35);
}

.sender h4 {
  margin: 0 0 8px;
  font-size: 22px !important;
  color: #1e8449 !important;
  font-weight: 700 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(30, 132, 73, 0.3) !important;
}

.sender .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

.sender input[type="email"] {
  width: 100%;
  border: 1px solid #2a3555;
  background: #0f1530;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.sender input[type="email"]:focus {
  outline: none;
  border-color: #6ea8ff;
  background: #1a2140;
  box-shadow: 0 0 8px rgba(110, 168, 255, 0.15);
}

.sender button {
  background: linear-gradient(135deg, #1f2f57, #263a66);
  border: 0;
  color: #f3c94e;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.25px;
}

.sender button:hover {
  box-shadow: 0 4px 12px rgba(110, 168, 255, 0.3);
  transform: translateY(-1px);
}

.sender .msg {
  margin-top: 8px;
  font-size: 22px;
  color: #cfe0ff;
}

.sender .msg.error {
  color: #ffb5c1;
}

.sender .mini {
  font-size: 22px !important;
  color: #1e8449 !important;
  margin-top: 8px !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(30, 132, 73, 0.3) !important;
}

.master-note {
  color: #f3c94e;
  font-style: italic;
  display: inline-block;
  margin-top: 10px;
  font-size: calc(1em + 2px);
}

.master-note em {
  color: #f3c94e;
}

.master-note strong {
  color: #27ae60;
  font-style: normal !important;
}

/* forza colore oro (testo) e verde (label) anche dentro le descrizioni */
.desc .master-note {
  font-size: calc(1em + 2px);
}

.desc .master-note em {
  color: #f3c94e !important;
}

.desc .master-note strong {
  color: #27ae60 !important;
  font-style: normal !important;
}

/* ===== Nebbia Mistica Particellare ===== */
.mystical-fog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg,
      rgba(20, 30, 60, 0.95) 0%,
      rgba(30, 45, 80, 0.92) 50%,
      rgba(20, 30, 60, 0.95) 100%);
  animation: overlayFade 4s ease-out forwards;
  animation-delay: 0.8s;
}

#fogCanvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(40px);
}

.fog-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 100000;
}

.mystic-symbol {
  font-size: 120px;
  color: #FFD700;
  font-family: 'Cinzel', 'Segoe UI Symbol', 'Arial Unicode MS', 'Noto Sans Symbols 2', serif;
  text-shadow:
    0 0 20px rgba(255, 215, 0, 1),
    0 0 40px rgba(255, 215, 0, 0.8),
    0 0 60px rgba(255, 215, 0, 0.6),
    0 0 80px rgba(255, 215, 0, 0.4),
    0 0 100px rgba(255, 215, 0, 0.2);
  animation: symbolEntrance 3s ease-out forwards;
  position: relative;
  z-index: 2;
}

.mystic-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 215, 0, 0.3) 0%,
      rgba(255, 215, 0, 0.15) 30%,
      transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes overlayFade {
  0% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes symbolEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
    filter: blur(10px);
  }

  60% {
    opacity: 1;
    transform: scale(1.15) rotate(10deg);
    filter: blur(0px);
  }

  80% {
    transform: scale(0.95) rotate(-5deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0px);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.3;
  }
}

/* OVERRIDE FORZATO PER VERDE SMERALDO */
.box h3,
.box h3 * {
  color: #27ae60 !important;
  text-shadow: 0 0 15px rgba(108, 92, 231, 0.6) !important;
}

/* Inline styles moved from index.php */
:root {
  --accent1: #27ae60 !important;
}

h1 {
  font-size: 34px !important;
  margin: 45px 0 10px !important;
  font-weight: 700 !important;
}

h3 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  color: #27ae60 !important;
}

.box h3,
.box h3 *,
.results h3,
.results h3 * {
  color: #27ae60 !important;
  text-shadow: 0 0 15px rgba(108, 92, 231, 0.6) !important;
}

.site-header {
  text-align: center;
  padding: 60px 0 0;
  margin-top: 0;
  margin-bottom: 0 !important;
}

.site-brand {
  font-size: 4.5rem !important;
  font-weight: 900 !important;
  color: #2ecc71 !important;
  text-decoration: none !important;
  letter-spacing: 3px !important;
  text-shadow:
    0 1px 0 #7c73d7,
    0 2px 0 #6c63c7,
    0 3px 0 #5c53b7,
    0 4px 0 #4c43a7,
    0 5px 0 #3c3397,
    0 6px 1px rgba(0, 0, 0, 0.3),
    0 8px 3px rgba(0, 0, 0, 0.2),
    0 0 8px rgba(108, 99, 199, 0.4) !important;
  font-family: 'Cormorant Garamond', serif !important;
  display: inline-block;
  transition: all 0.4s ease !important;
  transform: perspective(500px) rotateX(5deg);
}

.site-brand:hover {
  color: #9c93f7 !important;
  text-shadow:
    0 1px 0 #2ecc71,
    0 2px 0 #7c73d7,
    0 3px 0 #6c63c7,
    0 4px 0 #5c53b7,
    0 5px 0 #4c43a7,
    0 6px 1px rgba(0, 0, 0, 0.4),
    0 8px 3px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(124, 115, 215, 0.5) !important;
  transform: perspective(500px) rotateX(5deg) translateY(-3px) scale(1.05) !important;
}

.nav-shell {
  padding: 10px 12px;
  margin: 0 8px 4px;
  border-radius: 18px;
  background: linear-gradient(120deg, #0f1a2e, #15293d);
  border: 1px solid rgba(39, 174, 96, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(39, 174, 96, 0.15);
  backdrop-filter: blur(6px);
}

/* Riduci la larghezza del menu solo sulla home page */
body.page-home .nav-shell {
  max-width: calc(100% - 80px);
  margin-left: auto;
  margin-right: auto;
}

/* Porta il menu più in alto per tutte le pagine tranne la home */
body:not(.page-home) .nav-shell {
  margin-top: -20px;
}

/* Rimuovi quadrante dal logo */
.main-nav .nav-logo,
.main-nav a.nav-logo {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.main-nav .nav-logo img,
.main-nav a.nav-logo img {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: block !important;
}

.main-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: flex-start;
}

.main-nav a {
  position: relative;
  color: #cfe8d9 !important;
  text-decoration: none !important;
  padding: 10px 18px !important;
  border-radius: 22px !important;
  transition: all 0.2s ease !important;
  letter-spacing: 0.45px !important;
  background: radial-gradient(circle at 30% 30%, rgba(39, 174, 96, 0.08), rgba(12, 24, 45, 0.7)) !important;
  border: 1px solid rgba(39, 174, 96, 0.35) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.25) !important;
  font-size: 16px !important;
  line-height: 1.1 !important;
  font-weight: normal !important;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, rgba(39, 174, 96, 0), rgba(39, 174, 96, 0.8), rgba(39, 174, 96, 0));
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: scaleX(0.8);
}

.main-nav a:hover {
  color: #9ff3c6;
  text-shadow: 0 0 12px rgba(39, 174, 96, 0.7);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 28px rgba(39, 174, 96, 0.18);
}

.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav a.active {
  color: #f0f4ff !important;
  font-size: 16px !important;
  padding: 10px 18px !important;
  letter-spacing: 0.45px !important;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
  box-shadow: 0 0 20px rgba(39, 174, 96, 0.7), 0 12px 24px rgba(39, 174, 96, 0.4) !important;
  border-color: rgba(39, 174, 96, 0.9) !important;
}

.main-nav a.active::after {
  opacity: 0;
}

.lang-dropdown {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-toggle {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
  color: #ffffff;
  border: 1px solid rgba(108, 92, 231, 0.6);
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3), 0 0 15px rgba(39, 174, 96, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lang-toggle:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #2ecc71 100%);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4), 0 0 20px rgba(39, 174, 96, 0.3);
  transform: translateY(-2px);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: none;
  background: rgba(13, 27, 42, 0.92);
  border: 1px solid rgba(39, 174, 96, 0.35);
  border-radius: 10px;
  padding: 3px 5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 20;
  min-width: 130px;
}

.lang-dropdown .lang-menu {
  gap: 3px;
  align-items: center;
  justify-content: space-between;
}

.lang-dropdown.open .lang-menu {
  display: flex;
}

.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.lang-option svg {
  width: 34px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lang-code {
  color: #cfe8d9;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 12px;
  line-height: 1.2;
}

.lang-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(39, 174, 96, 0.35);
}

.lang-option.active {
  box-shadow: 0 0 16px rgba(39, 174, 96, 0.55);
  border-color: rgba(39, 174, 96, 0.8);
}

.article {
  margin: 28px 0 18px;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1px solid rgba(108, 92, 231, 0.35);
  background: linear-gradient(135deg, rgba(12, 24, 45, 0.9), rgba(10, 22, 44, 0.92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  line-height: 1.7;
  color: #dbe6ff;
}

.article h2,
.article h3 {
  color: #27ae60;
  letter-spacing: 0.4px;
  margin: 8px 0 10px;
}

.article h2 {
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
}

.article h3 {
  font-size: 24px;
  font-style: italic;
}

.article p {
  margin: 12px 0;
  font-size: 22px;
  line-height: 1.6;
}

.article strong {
  color: #f3c94e;
}

.article-pages .article-page {
  display: none;
}

.article-pages .article-page.active {
  display: block;
}

.article-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 4px;
}

.article-nav .pager-arrow {
  width: 58px;
  height: 50px;
}

.article-nav .page-indicator {
  min-width: 110px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(61, 224, 143, 0.45);
  background: linear-gradient(135deg, rgba(15, 28, 51, 0.85), rgba(10, 22, 44, 0.9));
  color: #e6f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.article-nav .page-indicator .page-label {
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(230, 247, 239, 0.8);
}

.article-nav .page-indicator .page-count {
  font-size: 15px;
}

.pager-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 15px;
}

.pager-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.pager-arrows.bottom {
  margin: 20px 0 10px;
}

.pager-arrow {
  width: 58px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(61, 224, 143, 0.6);
  background: radial-gradient(circle at 30% 30%, rgba(61, 224, 143, 0.25), rgba(12, 24, 45, 0.95));
  color: #e9fff4;
  cursor: pointer;
  transition: all 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 30px rgba(61, 224, 143, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(61, 224, 143, 0.35);
}

.pager-arrow:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(61, 224, 143, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(61, 224, 143, 0.5);
}

.pager-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.page-indicator {
  min-width: 140px;
  padding: 10px 18px;
  border-radius: 16px;
  border: 1px solid rgba(61, 224, 143, 0.5);
  background: linear-gradient(135deg, rgba(15, 28, 51, 0.85), rgba(10, 22, 44, 0.9));
  color: #e6f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.page-indicator .page-label {
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(230, 247, 239, 0.8);
}

.page-indicator .page-count {
  font-size: 16px;
}

.pager-btn {
  background: #122341;
  color: #cfe8d9;
  border: 1px solid #27ae60;
  border-radius: 18px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pager-btn.active {
  background: #27ae60;
  color: #0d1b2a;
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.55);
}

.hidden {
  display: none !important;
}

.pages .page {
  display: none;
}

.pages .page.current {
  display: block;
}

/* ========================================
   TEMA NATALIZIO - Sfondo con neve
   ======================================== */

/* Pattern di fiocchi di neve sullo sfondo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 33% 80%, rgba(255, 255, 255, 0.09), transparent),
    radial-gradient(1px 1px at 15% 90%, rgba(255, 255, 255, 0.11), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  pointer-events: none;
  z-index: 1;
  animation: sparkle 60s ease-in-out infinite;
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

/* Container per i fiocchi di neve che cadono */
.snowflakes {
  position: fixed;
  top: -10px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* Singolo fiocco di neve */
.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.45em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    top: -10%;
    transform: translateX(0) rotate(0deg);
  }

  100% {
    top: 110%;
    transform: translateX(100px) rotate(360deg);
  }
}

/* Varianti di velocità e dimensione per realismo */
.snowflake:nth-child(1) {
  left: 10%;
  animation-duration: 10s;
  animation-delay: 0s;
  font-size: 0.4em;
}

.snowflake:nth-child(2) {
  left: 20%;
  animation-duration: 12s;
  animation-delay: 2s;
  font-size: 0.55em;
}

.snowflake:nth-child(3) {
  left: 30%;
  animation-duration: 8s;
  animation-delay: 4s;
  font-size: 0.35em;
}

.snowflake:nth-child(4) {
  left: 40%;
  animation-duration: 14s;
  animation-delay: 0s;
  font-size: 0.5em;
}

.snowflake:nth-child(5) {
  left: 50%;
  animation-duration: 11s;
  animation-delay: 3s;
  font-size: 0.45em;
}

.snowflake:nth-child(6) {
  left: 60%;
  animation-duration: 9s;
  animation-delay: 1s;
  font-size: 0.52em;
}

.snowflake:nth-child(7) {
  left: 70%;
  animation-duration: 13s;
  animation-delay: 5s;
  font-size: 0.38em;
}

.snowflake:nth-child(8) {
  left: 80%;
  animation-duration: 10s;
  animation-delay: 2s;
  font-size: 0.6em;
}

.snowflake:nth-child(9) {
  left: 90%;
  animation-duration: 12s;
  animation-delay: 4s;
  font-size: 0.42em;
}

.snowflake:nth-child(10) {
  left: 15%;
  animation-duration: 11s;
  animation-delay: 1s;
  font-size: 0.48em;
}

.snowflake:nth-child(11) {
  left: 25%;
  animation-duration: 9s;
  animation-delay: 3s;
  font-size: 0.44em;
}

.snowflake:nth-child(12) {
  left: 35%;
  animation-duration: 13s;
  animation-delay: 0s;
  font-size: 0.56em;
}

.snowflake:nth-child(13) {
  left: 45%;
  animation-duration: 10s;
  animation-delay: 2s;
  font-size: 0.36em;
}

.snowflake:nth-child(14) {
  left: 55%;
  animation-duration: 12s;
  animation-delay: 4s;
  font-size: 0.51em;
}

.snowflake:nth-child(15) {
  left: 65%;
  animation-duration: 8s;
  animation-delay: 1s;
  font-size: 0.43em;
}

.snowflake:nth-child(16) {
  left: 75%;
  animation-duration: 14s;
  animation-delay: 3s;
  font-size: 0.49em;
}

.snowflake:nth-child(17) {
  left: 85%;
  animation-duration: 11s;
  animation-delay: 5s;
  font-size: 0.37em;
}

.snowflake:nth-child(18) {
  left: 95%;
  animation-duration: 9s;
  animation-delay: 0s;
  font-size: 0.58em;
}

.snowflake:nth-child(19) {
  left: 5%;
  animation-duration: 13s;
  animation-delay: 2s;
  font-size: 0.46em;
}

.snowflake:nth-child(20) {
  left: 12%;
  animation-duration: 10s;
  animation-delay: 4s;
  font-size: 0.53em;
}

.snowflake:nth-child(21) {
  left: 3%;
  animation-duration: 11s;
  animation-delay: 1s;
  font-size: 0.41em;
}

.snowflake:nth-child(22) {
  left: 8%;
  animation-duration: 9s;
  animation-delay: 3s;
  font-size: 0.47em;
}

.snowflake:nth-child(23) {
  left: 13%;
  animation-duration: 12s;
  animation-delay: 0s;
  font-size: 0.39em;
}

.snowflake:nth-child(24) {
  left: 18%;
  animation-duration: 10s;
  animation-delay: 2s;
  font-size: 0.54em;
}

.snowflake:nth-child(25) {
  left: 23%;
  animation-duration: 14s;
  animation-delay: 4s;
  font-size: 0.45em;
}

.snowflake:nth-child(26) {
  left: 28%;
  animation-duration: 8s;
  animation-delay: 1s;
  font-size: 0.42em;
}

.snowflake:nth-child(27) {
  left: 33%;
  animation-duration: 13s;
  animation-delay: 3s;
  font-size: 0.51em;
}

.snowflake:nth-child(28) {
  left: 38%;
  animation-duration: 11s;
  animation-delay: 5s;
  font-size: 0.38em;
}

.snowflake:nth-child(29) {
  left: 43%;
  animation-duration: 9s;
  animation-delay: 0s;
  font-size: 0.48em;
}

.snowflake:nth-child(30) {
  left: 48%;
  animation-duration: 12s;
  animation-delay: 2s;
  font-size: 0.59em;
}

.snowflake:nth-child(31) {
  left: 53%;
  animation-duration: 10s;
  animation-delay: 4s;
  font-size: 0.43em;
}

.snowflake:nth-child(32) {
  left: 58%;
  animation-duration: 14s;
  animation-delay: 1s;
  font-size: 0.46em;
}

.snowflake:nth-child(33) {
  left: 63%;
  animation-duration: 11s;
  animation-delay: 3s;
  font-size: 0.52em;
}

.snowflake:nth-child(34) {
  left: 68%;
  animation-duration: 8s;
  animation-delay: 0s;
  font-size: 0.4em;
}

.snowflake:nth-child(35) {
  left: 73%;
  animation-duration: 13s;
  animation-delay: 2s;
  font-size: 0.55em;
}

.snowflake:nth-child(36) {
  left: 78%;
  animation-duration: 9s;
  animation-delay: 4s;
  font-size: 0.44em;
}

.snowflake:nth-child(37) {
  left: 83%;
  animation-duration: 12s;
  animation-delay: 1s;
  font-size: 0.49em;
}

.snowflake:nth-child(38) {
  left: 88%;
  animation-duration: 10s;
  animation-delay: 3s;
  font-size: 0.47em;
}

.snowflake:nth-child(39) {
  left: 93%;
  animation-duration: 14s;
  animation-delay: 5s;
  font-size: 0.37em;
}

.snowflake:nth-child(40) {
  left: 98%;
  animation-duration: 11s;
  animation-delay: 0s;
  font-size: 0.57em;
}

.snowflake:nth-child(41) {
  left: 2%;
  animation-duration: 9s;
  animation-delay: 2s;
  font-size: 0.41em;
}

.snowflake:nth-child(42) {
  left: 7%;
  animation-duration: 13s;
  animation-delay: 4s;
  font-size: 0.5em;
}

.snowflake:nth-child(43) {
  left: 11%;
  animation-duration: 10s;
  animation-delay: 1s;
  font-size: 0.39em;
}

.snowflake:nth-child(44) {
  left: 16%;
  animation-duration: 12s;
  animation-delay: 3s;
  font-size: 0.53em;
}

.snowflake:nth-child(45) {
  left: 21%;
  animation-duration: 8s;
  animation-delay: 0s;
  font-size: 0.45em;
}

.snowflake:nth-child(46) {
  left: 26%;
  animation-duration: 14s;
  animation-delay: 2s;
  font-size: 0.48em;
}

.snowflake:nth-child(47) {
  left: 31%;
  animation-duration: 11s;
  animation-delay: 4s;
  font-size: 0.42em;
}

.snowflake:nth-child(48) {
  left: 36%;
  animation-duration: 9s;
  animation-delay: 1s;
  font-size: 0.51em;
}

.snowflake:nth-child(49) {
  left: 41%;
  animation-duration: 13s;
  animation-delay: 3s;
  font-size: 0.38em;
}

.snowflake:nth-child(50) {
  left: 46%;
  animation-duration: 10s;
  animation-delay: 5s;
  font-size: 0.56em;
}

.snowflake:nth-child(51) {
  left: 51%;
  animation-duration: 12s;
  animation-delay: 0s;
  font-size: 0.43em;
}

.snowflake:nth-child(52) {
  left: 56%;
  animation-duration: 8s;
  animation-delay: 2s;
  font-size: 0.46em;
}

.snowflake:nth-child(53) {
  left: 61%;
  animation-duration: 14s;
  animation-delay: 4s;
  font-size: 0.5em;
}

.snowflake:nth-child(54) {
  left: 66%;
  animation-duration: 11s;
  animation-delay: 1s;
  font-size: 0.4em;
}

.snowflake:nth-child(55) {
  left: 71%;
  animation-duration: 9s;
  animation-delay: 3s;
  font-size: 0.54em;
}

.snowflake:nth-child(56) {
  left: 76%;
  animation-duration: 13s;
  animation-delay: 0s;
  font-size: 0.44em;
}

.snowflake:nth-child(57) {
  left: 81%;
  animation-duration: 10s;
  animation-delay: 2s;
  font-size: 0.49em;
}

.snowflake:nth-child(58) {
  left: 86%;
  animation-duration: 12s;
  animation-delay: 4s;
  font-size: 0.47em;
}

.snowflake:nth-child(59) {
  left: 91%;
  animation-duration: 14s;
  animation-delay: 1s;
  font-size: 0.36em;
}

.snowflake:nth-child(60) {
  left: 96%;
  animation-duration: 11s;
  animation-delay: 3s;
  font-size: 0.58em;
}

.snowflake:nth-child(61) {
  left: 4%;
  animation-duration: 9s;
  animation-delay: 1s;
  font-size: 0.42em;
}

.snowflake:nth-child(62) {
  left: 9%;
  animation-duration: 13s;
  animation-delay: 3s;
  font-size: 0.5em;
}

.snowflake:nth-child(63) {
  left: 14%;
  animation-duration: 10s;
  animation-delay: 0s;
  font-size: 0.37em;
}

.snowflake:nth-child(64) {
  left: 19%;
  animation-duration: 12s;
  animation-delay: 2s;
  font-size: 0.53em;
}

.snowflake:nth-child(65) {
  left: 24%;
  animation-duration: 8s;
  animation-delay: 4s;
  font-size: 0.45em;
}

.snowflake:nth-child(66) {
  left: 29%;
  animation-duration: 14s;
  animation-delay: 1s;
  font-size: 0.48em;
}

.snowflake:nth-child(67) {
  left: 34%;
  animation-duration: 11s;
  animation-delay: 3s;
  font-size: 0.41em;
}

.snowflake:nth-child(68) {
  left: 39%;
  animation-duration: 9s;
  animation-delay: 5s;
  font-size: 0.51em;
}

.snowflake:nth-child(69) {
  left: 44%;
  animation-duration: 13s;
  animation-delay: 0s;
  font-size: 0.39em;
}

.snowflake:nth-child(70) {
  left: 49%;
  animation-duration: 10s;
  animation-delay: 2s;
  font-size: 0.55em;
}

.snowflake:nth-child(71) {
  left: 54%;
  animation-duration: 12s;
  animation-delay: 4s;
  font-size: 0.43em;
}

.snowflake:nth-child(72) {
  left: 59%;
  animation-duration: 8s;
  animation-delay: 1s;
  font-size: 0.47em;
}

.snowflake:nth-child(73) {
  left: 64%;
  animation-duration: 14s;
  animation-delay: 3s;
  font-size: 0.5em;
}

.snowflake:nth-child(74) {
  left: 69%;
  animation-duration: 11s;
  animation-delay: 0s;
  font-size: 0.4em;
}

.snowflake:nth-child(75) {
  left: 74%;
  animation-duration: 9s;
  animation-delay: 2s;
  font-size: 0.52em;
}

.snowflake:nth-child(76) {
  left: 79%;
  animation-duration: 13s;
  animation-delay: 4s;
  font-size: 0.44em;
}

.snowflake:nth-child(77) {
  left: 84%;
  animation-duration: 10s;
  animation-delay: 1s;
  font-size: 0.49em;
}

.snowflake:nth-child(78) {
  left: 89%;
  animation-duration: 12s;
  animation-delay: 3s;
  font-size: 0.46em;
}

.snowflake:nth-child(79) {
  left: 94%;
  animation-duration: 14s;
  animation-delay: 5s;
  font-size: 0.38em;
}

.snowflake:nth-child(80) {
  left: 99%;
  animation-duration: 11s;
  animation-delay: 0s;
  font-size: 0.56em;
}

/* Assicura che il contenuto sia sopra lo sfondo natalizio */
.wrap,
.container,
nav {
  position: relative;
  z-index: 10;
}

/* ========================================
   PAYOFF SOTTO LE SFERE
   ======================================== */
.sphere-payoff {
  font-size: 16px;
  color: #27ae60;
  font-style: italic;
  text-align: center;
  font-weight: 700;
  margin-top: 6px;
  padding: 0 4px;
  letter-spacing: 0.3px;
}

/* ========================================
   NAVIGAZIONE PAGINE
   ======================================== */
.page-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
  padding: 16px;
  background: linear-gradient(135deg, #0f1c3a 0%, #1a2a4e 100%);
  border-radius: 12px;
  border: 1px solid rgba(39, 174, 96, 0.4);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.nav-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #1a2a4e 0%, #0f1c3a 100%);
  color: rgba(240, 244, 255, 0.95);
  border: 2px solid rgba(39, 174, 96, 0.5);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cormorant Garamond', serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  border-color: #27ae60;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 15px;
  color: #ffffff;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-indicator span {
  color: #27ae60;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

/* Contenuto pagine */
.page-content {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive per sfere */
@media (max-width: 768px) {
  .spheres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sphere-circle {
    width: 70px;
    height: 70px;
  }

  .sphere-icon {
    font-size: 20px;
  }

  .sphere-number {
    font-size: 14px;
  }
}

/* ========================================
   ELLIN DODGE LIFE PERIODS STYLES
   ======================================== */

.ellin-separator {
  margin: 40px 0 30px;
  text-align: center;
  border-top: 1px solid rgba(39, 174, 96, 0.3);
  padding-top: 30px;
}

.ellin-title {
  font-family: 'Cinzel', serif;
  color: #27ae60;
  font-size: 1.5rem;
  /* Aumentato */
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(39, 174, 96, 0.1);
  padding: 8px 25px;
  border-radius: 30px;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.ellin-timeline {
  display: flex;
  flex-direction: column;
  /* Stack verticale delle card */
  gap: 30px;
  margin-top: 30px;
}

.ellin-period-card {
  display: flex;
  /* Layout orizzontale interno */
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  background: rgba(15, 20, 40, 0.6);
  /* Sfondo più scuro per contrasto */
  border: 1px solid rgba(39, 174, 96, 0.25);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ellin-period-card:hover {
  background: rgba(20, 25, 50, 0.8);
  border-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.15);
}

/* Colonna Sinistra: Info Periodo e Numero */
.ellin-left-col {
  flex: 0 0 180px;
  /* Larghezza fissa per la colonna sinistra */
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ellin-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  width: 100%;
}

.ellin-age {
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
  /* Aumentato */
  background: rgba(39, 174, 96, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
}

.ellin-source {
  font-size: 0.95rem;
  /* Aumentato */
  color: #27ae60;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ellin-number {
  font-size: 4.5rem;
  /* Molto più grande */
  font-weight: 800;
  color: #27ae60;
  line-height: 1;
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(39, 174, 96, 0.4);
}

/* Colonna Destra: Contenuto */
.ellin-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ellin-meaning {
  font-size: 22px;
  /* Impostato a 22px come richiesto */
  line-height: 1.7;
  color: #e0e0e0;
  font-weight: 300;
}

.ellin-main-conn {
  background: rgba(39, 174, 96, 0.08);
  padding: 15px;
  border-radius: 8px;
  font-size: 22px;
  /* Aumentato a 22px */
  border-left: 4px solid #27ae60;
  color: #d0f0e0;
}

.ellin-toggle-btn {
  background: none;
  border: none;
  color: #27ae60;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px 0;
  text-align: left;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.ellin-toggle-btn:hover {
  color: #2ecc71;
  text-decoration: none;
}

.ellin-details {
  margin-top: 5px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  animation: fadeIn 0.4s ease;
}

.ellin-conn-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 22px;
  /* Aumentato a 22px */
  color: #ccc;
}

.ellin-icon {
  margin-right: 12px;
  font-size: 1.2rem;
  min-width: 25px;
  text-align: center;
}

.ellin-advice {
  margin-top: 10px;
  font-size: 22px;
  /* Aumentato a 22px */
  color: #b0c0d0;
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
}

.ellin-advice strong {
  color: #81c784;
  display: block;
  margin-bottom: 8px;
}

.ellin-advice ul {
  padding-left: 20px;
  margin: 0;
}

.ellin-advice li {
  margin-bottom: 6px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .ellin-period-card {
    flex-direction: column;
    /* Torna verticale su mobile */
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .ellin-left-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 20px;
    width: 100%;
    flex: auto;
  }

  .ellin-right-col {
    width: 100%;
    text-align: left;
  }

  .ellin-toggle-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ========================================= */
/* CHEF'S SPECIAL: ASTRONIUS MENU & FOOTER   */
/* ========================================= */

:root {
  --nav-bg: rgba(10, 14, 24, 0.85);
  --nav-border: rgba(108, 92, 231, 0.3);
  --nav-text: #e2e8f0;
  --nav-hover: #ffd700;
  --footer-bg: #030811;
  /* Even darker than body */
  --footer-text: #94a3b8;
  --gold-accent: #ffd700;
  --primary-glow: rgba(108, 92, 231, 0.6);
}

/* --- HEADER FIX --- */
.site-header {
  display: none !important;
}

/* Hide old header if present */
body {
  padding-top: 80px;
}

/* Space for fixed header */

/* --- NAVIGATION MENU --- */
.site-header-wrapper {
  position: fixed;
  top: 8px;
  /* User requested 8px lower */
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.site-header-wrapper.scrolled {
  height: 60px;
  background: rgba(5, 7, 12, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  top: 0;
  /* Align to top when scrolling */
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 8px;
  /* Increased to 8px spacing as requested */
}

.site-branding .brand-logo img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

.site-branding .brand-text {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, #ffd700 0%, #ffecb3 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fix lint warning */
}

.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 5px;
  height: 100%;
  align-items: center;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--nav-text);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.nav-item .nav-icon {
  font-size: 1rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
  transform: scale(1.2);
  opacity: 1;
}

.nav-item:hover,
.nav-item.active {
  color: var(--gold-accent);
  background: rgba(108, 92, 231, 0.1);
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

.nav-item.active {
  border: 1px solid rgba(108, 92, 231, 0.4);
}

.nav-item::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--gold-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--gold-accent);
}

.nav-item:hover::before,
.nav-item.active::before {
  width: 80%;
}

/* Language Selector */
.lang-dropdown {
  position: relative;
  margin-left: 20px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(108, 92, 231, 0.5);
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: #0f1623;
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 12px;
  padding: 8px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1010;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: #a0aec0;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(108, 92, 231, 0.15);
  color: #fff;
}

.lang-flag {
  font-size: 1.2rem;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- FOOTER (ASTRONIUS REPLICA) --- */
.site-footer {
  background: #060b19;
  /* Deep dark blue */
  color: #a0a0a0;
  padding: 0;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  font-family: 'Times New Roman', Times, serif;
  /* Looking at reference which has serifs */
}

/* Top Gold Border */
.footer-top-border {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  margin-bottom: 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

/* Row 1: Brand */
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.astro-logo-box {
  width: 50px;
  height: 50px;
  background: #000;
  border: 1px solid #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.astro-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.astro-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #9370db;
  /* Lavender/Purple color from image */
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Row 2: Nav & Social */
.footer-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

.astro-footer-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.astro-footer-nav a {
  color: #d0d0d0;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  /* Or a classic serif */
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.astro-footer-nav a:hover {
  color: #ffd700;
}

.astro-social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.social-icon:hover {
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* Specific Social Colors */
.social-icon.fb {
  color: #1877f2;
}

.social-icon.ig {
  color: #e4405f;
}

.social-icon.yt {
  color: #ff0000;
}

/* Divider */
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  margin-bottom: 25px;
}

/* Row 3: Bottom Info */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* Align top for text wrapping */
  font-size: 0.85rem;
  color: #808080;
  flex-wrap: wrap;
  gap: 20px;
  font-family: sans-serif;
  /* Standard sans for legal text */
}

.footer-company-info {
  line-height: 1.5;
}

.footer-company-info strong {
  color: #d0d0d0;
}

.footer-copyright-links {
  display: flex;
  gap: 20px;
}

.footer-copyright-links a {
  color: #808080;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copyright-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-nav-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .astro-footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 15px;
  }

  .footer-copyright-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {

  /* Menu Mobile */
  .site-header-wrapper {
    padding: 0 20px;
    height: 60px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #050810;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .main-nav.mobile-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 15px;
    align-items: flex-start;
  }

  .nav-item {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
  }

  body {
    padding-top: 60px;
  }
}