/* ======================================================
   LA SOFFITTA DELLE FATE - FOGLIO DI STILE (style.css)
   ====================================================== */

/* STILI GENERALI */
body {
  background-color: #FFFFFF;
  color: #0033FF;
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif;
  margin: 0;
  padding: 10px;
}

a {
  color: #0033FF;
  text-decoration: underline;
}
a:visited {
  color: #0033CC;
}
a:hover {
  color: #CC00FF;
}

/* CONTENITORE PRINCIPALE */
.site-container {
  max-width: 1000px;
  margin: 0 auto;
  border: 3px double #0066FF;
  background-color: #ffffff;
}

/* HEADER / BANNER */
header {
  text-align: center;
  padding: 15px;
  border-bottom: 2px solid #0066FF;
}

.banner-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0066FF;
  margin: 10px 0;
}

@media screen and (max-width: 600px) {
  header > div {
    font-size: 16px;
  }
  .banner-title {
    font-size: 1.1rem;
    display: inline-block;
    margin: 0 4px;
  }
}

/* STRUTTURA A 3 COLONNE (FLEXBOX) */
.main-layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .main-layout {
    flex-direction: row;
  }
}

/* COLONNE LATERALI (Sidebar Menu) */
.sidebar {
  background: linear-gradient(180deg, #ff007f 0%, #0099ff 100%);
  color: #ffffff;
  padding: 15px;
  flex: 1;
  text-align: center;
}

.sidebar a {
  color: #ffffff;
  font-weight: bold;
  display: block;
  margin: 8px 0;
  text-shadow: 1px 1px 2px #000000;
}

.sidebar a:hover {
  color: #FFFF00;
}

/* TITOLI DEI MENU (Ombra Morbida) */
nav.sidebar h3,
aside.sidebar h3 {
  color: #FFFFFF !important;
  font-size: 1.4rem !important;
  font-weight: bold !important;
  margin-top: 5px !important;
  margin-bottom: 15px !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0px 2px 8px rgba(0, 0, 30, 0.7) !important;
}

/* COLONNA CENTRALE */
.content {
  flex: 2.5;
  padding: 15px;
  background-color: #ffffff;
}

/* BOX INTERNI RETRO */
.retro-box {
  border: 1px solid #0066FF;
  padding: 10px;
  margin-bottom: 15px;
  background-color: #FFFFFF;
}

.retro-box h3 {
  margin-top: 0;
  color: #CC00FF;
  text-align: center;
  font-style: italic;
}

/* BOX TESTO SCORREVOLE / MARQUEE */
.marquee-box {
  background-color: #E6F2FF;
  border: 1px dashed #0066FF;
  padding: 8px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px;
  border-top: 2px solid #0066FF;
  font-size: 0.8rem;
  background-color: #F0F8FF;
}

/* IMMAGINI RESPONSIVE */
img {
  max-width: 100%;
  height: auto;
}

/* ANIMAZIONE STELLINE CURSORE */
.star-particle {
  position: fixed;
  pointer-events: none;
  font-family: "Comic Sans MS", sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #FFD700;
  text-shadow: 0 0 4px #FF007F;
  user-select: none;
  z-index: 99999;
  animation: fadeAndFall 0.8s forwards linear;
}

@keyframes fadeAndFall {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(0, 25px) scale(0.2);
  }
}

/* Rende il link dell'header pulito senza sottolineatura */
.header-link {
  text-decoration: none;
  color: inherit;
}

/* LINK DELL'HEADER PULITO SENZA SOTTOLINEATURA */
.header-link,
.header-link:hover,
.header-link:visited {
  text-decoration: none !important;
  color: inherit !important;
}

.header-link .banner-title {
  text-decoration: none !important;
}

/* CURSORE STELLINA SUI LINK */
a, 
a:hover, 
button, 
input[type="submit"] {
  /* Imposta il cursore a stellina; usa 'pointer' come ruota di scorta */
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><text y='20' font-size='20'>✨</text></svg>") 10 10, pointer !important;
}