/* =========================================================
   NONNOBRÙ – STILE GENERALE
   Autore: Bruno Rosati
   Ultimo aggiornamento: Luglio 2026
   ========================================================= */

/* --- BASE --- */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f5f3f8;
  color: #2f2640;
}

/* --- HEADER --- */
.hero-header {
  padding: 2rem 10%;
  background: linear-gradient(135deg, #4b3f72, #8b6fbf);
  color: #fff;
  text-align: center;
}

.hero-name {
  margin: 0;
  font-size: 2.4rem;
}

.hero-subtitle {
  margin: 0.3rem 0 1rem;
  font-size: 1rem;
  opacity: 0.9;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-link {
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-link.primary {
  background: #ffd66b;
  color: #4b3f72;
}

.hero-link.secondary {
  background: #ffffff22;
  color: #fff;
  border: 1px solid #ffffff55;
}

/* --- MAIN --- */
.hero-main {
  padding: 2rem 10%;
  max-width: 1000px;
  margin: 0 auto;
}

/* =========================================================
   SEZIONE IDENTIKIT (TRE COLONNE)
   ========================================================= */
.hero-identikit {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hero-identikit img {
  max-width: 100%;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-data,
.hero-notes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-data li,
.hero-notes li {
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #3b3058;
  
  /* parametri linea-rossa */
  /* Nuovi parametri per la riga rossa */
  border-top: 3px solid #b30000;
  padding-top: 8px;
  margin-top: 0;
}

/* =========================================================
   SEZIONE DESCRIZIONE NARRATIVA
   ========================================================= */
.hero-description {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.hero-text {
  margin: 0 0 1rem;
  line-height: 1.6;
}

/* =========================================================
   SEZIONE EDUCATIVA (DUE BLOCCHI ORIZZONTALI)
   ========================================================= */
.hero-edu-block {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.hero-edu-block img,
.hero-edu-block video {
  width: 100%;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-edu-block p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* =========================================================
   SEZIONE VIDEO IN COLONNA (ALTERNATIVA)
   ========================================================= */
.hero-video-column {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-video-column video {
  width: 100%;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =========================================================
   FOOTER
   ========================================================= */
.hero-footer {
  padding: 1.5rem 10%;
  text-align: center;
  font-size: 0.85rem;
  color: #6b5c8a;
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 900px) {
  .hero-identikit {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .hero-edu-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-identikit {
    grid-template-columns: 1fr;
  }
}

/* Layout a due colonne */
.descrizione-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

.descrizione-testo {
  flex: 1;
}

.descrizione-animazione {
  flex: 1.5;
  position: relative;
}

/* Fiocchetto verde */
#luna-container {
  position: relative;
  display: inline-block;
}

#fiocchetto {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 27%;	/* Regola in base alla posizione del fiocchetto */
  left: 56%;  /* Regola in base alla posizione del fiocchetto */
  border-radius: 50%;
  background: rgba(128, 186, 233, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Bagliore */
.pulse {
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(150, 210, 255, 0.5); }
  50% { box-shadow: 0 0 15px rgb(0 126 255); }
  100% { box-shadow:0 0 5px rgb(0 126 255 / 60%); }
}

#fiocchetto.disabled {
  animation: none;
  background: rgba(0, 255, 100, 0.4);
  box-shadow: none;
  cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
  .descrizione-layout {
    flex-direction: column;
  }
}

.descrizione-titolo {
  text-align: center;
  margin-bottom: 25px;
}

.titolo-sezione {
  font-size: 26px; /* o 28px */
  color: #202020;
  font-weight: bold;
  margin: 0;
  font-family: 'Quicksand', 'Poppins', sans-serif;
  animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.icona-luna {
  color: #d4af37; /* dorato tenue */
  font-size: 26px;
  margin-right: 6px;
}

.linea-decorativa {
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #d4af37, #f5e6b3);
  border-radius: 2px;
  margin: 8px auto 0;
}

#luna-container {
  position: relative;
  display: inline-block; /* fondamentale */
  margin: 0 auto;
}

#luna-img {
  max-width: 100%;
  height: auto;
  display: block;
}

@keyframes fadeHint {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fiocchetto-hint {
  position: absolute;
  top: 10px; /* regola a piacere */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: #202020;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  animation: fadeHint 1.2s ease-in-out;
}

.superimpose-link {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(128, 186, 233, 0.4);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #202020;
  text-decoration: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.3s;
}

.superimpose-link:hover {
  background: rgba(128, 186, 233, 0.6);
}

#personaggio-container {
  position: relative;
}

.superimpose-gufo {
  background: rgba(75, 63, 114, 0.4);
}

.superimpose-timo {
  background: rgba(92, 122, 75, 0.4);
}

.superimpose-tobia {
  background: rgba(201, 161, 74, 0.4);
}

.superimpose-milo {
  background: rgba(122, 140, 169, 0.4);
}

.superimpose-stella {
  background: rgba(216, 167, 177, 0.4);
}



/* FOOTER */
.nonnobru-footer {
    background-color: #2B2B2B; /* Grigio antracite */
    color: #EAEAEA;
    text-align: center;
    padding: 60px 20px;
    margin-top: 0px;
}

/* Riquadro Scrivimi */
.scrivimi-box {
    background-color: #F7F4FA; /* Malva chiarissimo */
    color: #3A3A3A;
    padding: 30px 25px;
    border-radius: 10px;
    max-width: 450px;
    margin: 0 auto 40px auto;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

.scrivimi-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #CBBF8A; /* Oro crema */
    color: #2B2B2B;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

/* Menu Footer */
.footer-menu {
    margin-bottom: 25px;
}

.footer-menu a {
    color: #EAEAEA;
    margin: 0 12px;
    text-decoration: none;
    font-size: 15px;
}

.footer-menu a:hover {
    color: #CBBF8A; /* Oro crema */
}

/* Copyright */
.copyright {
    font-size: 16px;
    color: #B0B0B0;
}

.cover-thumb {
  width: 100%;
  max-width: 263px;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #b30000; /* aggiungi questa */
}


/* PAGINA CLASSICHE - Sfondo scuro in sovrimpressione */

.modal {
  display: none;              /* nascosto di default */
  position: fixed;
  z-index: 1000;
  inset: 0;                   /* top/right/bottom/left: 0 */
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

/* Box centrale con l’immagine */
.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

/* Immagine grande */
.modal-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

/* Pulsante X in alto a destra */
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 32px;
  color: #ffffff;
  cursor: pointer;
  text-shadow: 0 0 4px #000;
}
.modal-close:hover {
  color: #ffd27f;
}

.hero-identikit {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Le tre colonne */
.col-left,
.col-center,
.col-right {
  flex: 1;
  min-width: 250px;
}

/* La riga PDF */
.pdf-info-row {
  flex-basis: 100%;     /* ECCO LA CHIAVE */
  text-align: center;
  border-top: 3px solid #b30000;
  padding: 12px 0;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 0 0 12px 12px;
}

.preview-gif {
  width: 100%;
  margin-top: 15px;
  border: 2px solid #b30000;
  border-radius: 8px;
}

.pdf-info-row {
  flex-basis: 100%;
  text-align: center;
  border-top: 3px solid #b30000;
  padding: 14px 0;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 0 0 12px 12px;
  font-family: 'Segoe UI', sans-serif;
}

.pdf-info-row p {
  margin: 0;
  font-size: 1.05rem;
  color: #b30000;
  font-weight: 600;
  line-height: 1.4;
}

.pdf-subtext {
  font-size: 0.9rem;
  color: #333;
  font-weight: 400;
}

.pdf-icon {
  font-size: 1.3rem;
  margin-right: 6px;
}

.emoji-timo {
  width: 1.4em;
  vertical-align: -0.2em;
}

/* =========================================================
   PAGINA FAVOLE
   ========================================================= */
 