/* ============================
   FONT E BASE
   ============================ */

body {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    line-height: 1.5;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Titoli */
h1, h2, h3, h4, h5,
.navbar-brand,
.btn,
.section-title {
    font-family: 'Baloo 2', cursive;
}

/* Pulsanti */
.btn {
    border-radius: 12px;
    padding: 12px 26px;
    font-weight: 600;
}

/* ============================
   HERO FULLSCREEN
   ============================ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #001a33;
}

.videoWrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.custom-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 0 !important;
}

/* Fade-in poetico SENZA scatto */
.heroText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: white;
    text-align: center;
    opacity: 0;
    animation: fadeInSoft 2.5s ease forwards;
}

@keyframes fadeInSoft {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Pulsante magico */
.magic-btn {
    margin-top: 30px;
    background: #ffcc00;
    color: #333;
    border: none;
    font-size: 1.4rem;
    padding: 14px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magic-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* ============================
   NAVBAR
   ============================ */

/* Navbar in basso nel HERO — SEMPRE visibile */
.navbar {
    position: absolute;
    bottom: 20px; /* fondamentale */
    left: 0;
    width: 100%;
    background: rgba(255, 204, 0, 0.35); /* ocra */
    backdrop-filter: blur(6px);
    z-index: 5;
    transition: all 0.5s ease;
}

/* Navbar in alto dopo click */
.navbar.fixed-top {
    position: fixed;
    top: 0;
    bottom: auto;
    width: 100%;
    background: #2B2B2B;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Font navbar più grandi e ocra */
.navbar-nav .nav-link {
    font-size: 1.2rem;
    color: #ffcc00 !important; /* giallo-ocra */
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffe680 !important; /* ocra più chiaro */
    transform: scale(1.08);
}

/* ============================
   SEZIONI
   ============================ */

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Card Favole */
.favola-card img {
    border-radius: 12px;
}

/* Card Giochi */
.gioco-card {
    border-radius: 12px;
}

.favola-pulsante {
    display: flex;
    justify-content: flex-end;
}


/* ============================
   PAGINA FAVOLA
   ============================ */

.favola-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.favola-cover {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 30px;
}

.favola-text {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.back-btn {
    background: #ffcc00;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1.2rem;
}

/* ============================
   FOOTER
   ============================ */

footer {
    margin-top: 40px;
}

/* ============================
   FONT SIZE MIGLIORATI
   ============================ */

h1 { font-size: 4rem; }
h2 { font-size: 2.8rem; }
h3, h4 { font-size: 2rem; }
p, label, input, textarea, small { font-size: 1.25rem; }

/* Logo Nonno Brù con bagliore dorato */
.immagine-stile {
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    opacity: 0; /* parte invisibile */
}

/* Animazione che fa apparire il logo */
@keyframes bannerAppear {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Bagliore dorato moderato */
@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.45))
                drop-shadow(0 0 32px rgba(255, 180, 0, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 28px rgba(255, 215, 0, 0.75))
                drop-shadow(0 0 45px rgba(255, 180, 0, 0.35));
    }
    100% {
        filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.45))
                drop-shadow(0 0 32px rgba(255, 180, 0, 0.25));
    }
}

/* ============================
   GIOCHI STAMPABILI – NONNOBRÙ
============================ */

.gioco-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    display: flex;
    gap: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gioco-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.gioco-illustrazione img {
    border-radius: 12px;
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.gioco-titolo {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.gioco-sottotitolo {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 0.6rem;
}

.gioco-descrizione {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1rem;
}

.nonnobru-faccina {
  width: 160px;
  height: auto;
}

.coniglietta-faccina {
  width: 120px;
  height: auto;
  }
  
  #favole {
    background: linear-gradient(#F8F9FA, #ECECEC);
    padding-top: 80px;
    padding-bottom: 80px;
}

/* La sezione resta bianca */
#favole {
    background-color: transparent;
}

/* Lo sfondo diverso va SOLO dentro il container */
#favole .container {
    padding: 40px;
    border-radius: 16px;
}

.sezione-favole-classiche {
    background-image: url('../images/bg-favole-classiche.png');
    background-size: cover;       /* oppure: contain */
    background-repeat: no-repeat;
    background-position: center;
    padding: 20px;
    border-radius: 12px;
}

.link-favole {
  color: #4A4A4A;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.link-favole:hover {
  color: #1A1A1A; /* nero profondo */
  text-shadow: 0 0 8px rgba(180, 180, 180, 0.8); /* riflesso argentato */
}



/* FOOTER */
.nonnobru-footer {
    background-color: #2B2B2B; /* Grigio antracite */
    color: #EAEAEA;
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
	padding-bottom: 1rem;
}

/* 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 10px;
    text-decoration: none;
    font-size: 20px;
	white-space: nowrap; /* impedisce il ritorno a capo */
}

.footer-menu a:hover {
    color: #CBBF8A; /* Oro crema */
}

/* Copyright */
.copyright {
    font-size: 16px;
    color: #B0B0B0;
}


/* Desktop */
.amazon-text-top {
    top: 32%;
    font-size: 3vw;
    animation-delay: 1s;
}

.amazon-text-bottom {
    top: 58%;
    font-size: 2vw;
    animation-delay: 2s;
}

/* Tablet */
@media (max-width: 1024px) {
    .amazon-text-top {
        top: 30%;
        font-size: 4vw;
    }

    .amazon-text-bottom {
        top: 56%;
        font-size: 3vw;
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .amazon-text-top,
    .amazon-text-bottom {
        text-shadow:
            0 0 2px rgba(0, 0, 0, 0.8),
            0 0 6px rgba(255, 255, 255, 0.9),
            0 0 12px rgba(255, 255, 255, 0.7);
    }

    .amazon-text-top {
        top: 32%;
        font-size: 6vw;
    }

    .amazon-text-bottom {
        top: 54%;
        font-size: 4.5vw;
    }
}

.amazon-text-top,
.amazon-text-bottom,
.amazon-logo-wrapper {
    position: absolute;
    z-index: 10;
}

.amazon-text-top,
.amazon-text-bottom {
    mix-blend-mode: normal !important;
    background: transparent !important;
    color: #fff8e6 !important;
}

.amazon-text-top,
.amazon-text-bottom {
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.6),
        0 0 4px rgba(255, 255, 255, 0.7),
        0 0 8px rgba(255, 255, 255, 0.5);
}

.amazon-text-middle {
    position: absolute;
    top: 67%; /* regolabile */
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f2f2f2;
    font-size: 4.5rem;
    font-weight: 700;
    text-shadow:
        0 0 2px rgba(0,0,0,0.6),
        0 0 4px rgba(255,255,255,0.7),
        0 0 8px rgba(255,255,255,0.5);
    z-index: 10;
	  opacity: 0;
	  animation: fadeInText 1.5s ease forwards;
	  animation-delay: 2.5s;
}

/*-- FINE BANNER ANIMAZIONE --*/


/* Ombra blu‑malva + zoom + bianco-e-nero */
.favola-immagine {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.favola-immagine img {
    transition: transform 0.45s ease,
                filter 0.45s ease,
                box-shadow 0.45s ease;
    display: block;
}

.favola-immagine:hover img {
    transform: scale(1.08);
    filter: grayscale(100%);
    box-shadow: 0 14px 32px rgba(110, 130, 180, 0.45); /* blu‑malva */
}

.favola-immagine img.img-fluid {
    transform: none !important;
    transition: transform 0.45s ease, filter 0.45s ease !important;
}

.favola-immagine:hover img.img-fluid {
    transform: scale(1.08) !important;
}

@keyframes bannerAppear {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.overlay-logo {
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
  opacity: 0; /* importante */
}

/* Footer responsive per schermi stretti */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr; /* una sola colonna */
    row-gap: 20px;              /* spazio verticale tra gli elementi */
  }

  .footer-img-left,
  .footer-img-right {
    text-align: center;
    padding: 0;
  }

  .footer-img-left img,
  .footer-img-right img {
    max-width: 100px; /* riduce leggermente le immagini */
  }
}