/* =====================================================================
   NATAL - MTL Lusogomma
   Gorro animado no logo, luzes no topo do slider, neve acumulada no menu,
   padrão de Natal no fundo e no rodapé, neve a cair (js/natal.js + js/snow.js).
   Para remover depois do Natal: apagar as linhas marcadas "Natal" em
   inc/html_top.inc, inc/header.inc e inc/html_bottom.inc
   ===================================================================== */

/* ---------- Fundo: cinzento do site com padrão de Natal em azul-petróleo ---------- */
html, body {
    background-color: #e8e8e8;
    background-image: url('/img/natal/padrao-teal@2x.png');
    background-size: 512px 512px;
    background-repeat: repeat;
}

/* ---------- Gorro de Pai Natal animado no logo ---------- */
a.logo-gorro {
    position: relative;
    display: inline-block;
    vertical-align: top;
}
a.logo-gorro img.logo { display: block; }
a.logo-gorro img.gorro-natal {
    position: absolute;
    left: 10%;
    top: 0;
    margin-top: 1.5%;
    width: 24%;
    max-width: none;
    pointer-events: none;
    transform: rotate(-12deg);
    transform-origin: 43% 79%;
    animation: gorro-abanar 4s ease-in-out infinite;
    z-index: 2;
}
@keyframes gorro-abanar {
    0%, 55%, 100% { transform: rotate(-12deg) translateY(0); }
    60%  { transform: rotate(-24deg) translateY(-6%); }
    67%  { transform: rotate(-2deg)  translateY(-2%); }
    74%  { transform: rotate(-17deg); }
    81%  { transform: rotate(-8deg); }
    88%  { transform: rotate(-13.5deg); }
    94%  { transform: rotate(-12deg); }
}

/* ---------- Neve acumulada em cima da barra do menu ---------- */
#menu_bar { position: relative; }
#menu_bar:before {
    content: "";
    position: absolute;
    top: -7px;
    left: -3px;
    right: -3px;
    height: 30px;
    background: url('/img/natal/neve-menu.svg?v=1') left top / 120px 30px repeat-x;
    border-radius: 8px 8px 0 0;
    filter: drop-shadow(0 2px 2px rgba(0, 50, 60, 0.4)) drop-shadow(0 -1px 1px rgba(0, 50, 60, 0.2));
    pointer-events: none;
    z-index: 3;
}

/* ---------- Fiada de luzes ---------- */
.lightrope {
    position: absolute;
    top: -10px;
    left: 25px;
    right: 25px;
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    height: 76px;
}
.lightrope li {
    --c: #e8352c; --c2: #8a1410; --glow: rgba(220, 40, 30, 0.8); /* vermelho */
    position: relative;
    flex: 0 0 auto;
    width: 13px;
    height: 20px;
    margin: 16px var(--folga, 39px) 0 0;
    padding: 0;
    list-style: none;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95) 0 14%, var(--c) 44%, var(--c2) 100%);
    box-shadow: 0 3px 16px 5px var(--glow);
    animation: lampada 2.2s ease-in-out infinite;
}
.lightrope li:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 3px;
    width: 7px;
    height: 7px;
    border-radius: 2px 2px 1px 1px;
    background: linear-gradient(90deg, #9aa1aa, #f4f6f8 45%, #8c939c);
}
.lightrope li:after {
    content: "";
    position: absolute;
    top: -7px;
    left: 6.5px;
    width: var(--passo, 52px);
    height: 15px;
    border-bottom: 1.5px solid #a9b1bc;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.lightrope li:last-child:after,
.lightrope li.ultima:after { display: none; }
.lightrope.ajustada { overflow: visible; }
.lightrope.ajustada li.extra { display: none; }

/* Cores: vermelho, dourado, branco quente e azul-gelo (o azul claro da marca) */
.lightrope li:nth-child(4n+2) { --c: #ffc540; --c2: #b07a00; --glow: rgba(255, 190, 40, 0.85); animation-duration: 1.7s; } /* dourado */
.lightrope li:nth-child(4n+3) { --c: #fff4d6; --c2: #e0b45c; --glow: rgba(255, 206, 120, 0.9); animation-duration: 2.5s; } /* branco quente */
.lightrope li:nth-child(4n+4) { --c: #86d7e8; --c2: #1d7f92; --glow: rgba(110, 210, 235, 0.85); animation-duration: 1.9s; } /* azul-gelo */
.lightrope li:nth-child(odd)  { animation-delay: 0.5s; }
@keyframes lampada {
    0%, 100% { filter: brightness(1.12) saturate(1.1); box-shadow: 0 3px 16px 5px var(--glow); }
    50%      { filter: brightness(0.78) saturate(1);   box-shadow: 0 3px 8px 0 transparent; }
}

/* Slider (pendurada no topo) */
.callbacks_container { position: relative; z-index: auto; }
.lightrope.lightrope-banner { top: -8px; left: 22px; right: 22px; }

/* ---------- Cartões das famílias: brilho dourado ao passar o rato ---------- */
.fam_index_box { transition: box-shadow .25s ease, transform .25s ease; }
.fam_index_box:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px #ffc540, 0 6px 18px rgba(255, 180, 40, 0.45);
}

/* ---------- Rodapé com padrão de Natal em branco ---------- */
#footer {
    background-color: #4092A0;
    background-image: url('/img/natal/padrao-branco@2x.png');
    background-size: 512px 512px;
    background-repeat: repeat;
}

/* ---------- Neve a cair ---------- */
#neve {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}
