/* =====================================================================
   NATAL - Amorlux
   Gorro animado no logo, luzes no topo do slider, neve acumulada nos
   separadores vermelhos dos títulos e 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
   ===================================================================== */

/* ---------- Gorro de Pai Natal animado no logo ----------
   Logo 184x96: "cabeça" amarela da figura entre x=31-46, y=21-35. */
a.logo-gorro {
    float: left;
    position: relative;
    margin: 3px 0 0 2px;
}
a.logo-gorro img.logo {
    float: none;
    display: block;
    margin: 0;
}
a.logo-gorro img.gorro-natal {
    position: absolute;
    left: 6%;
    top: 0;
    margin-top: -2.2%;
    width: 31.5%;            /* ~58px em 184px */
    max-width: none;
    pointer-events: none;
    transform: rotate(-10deg);
    transform-origin: 43% 79%;
    animation: gorro-abanar 4s ease-in-out infinite;
    z-index: 2;
}
@keyframes gorro-abanar {
    0%, 55%, 100% { transform: rotate(-10deg) translateY(0); }
    60%  { transform: rotate(-22deg) translateY(-6%); }
    67%  { transform: rotate(0deg)   translateY(-2%); }
    74%  { transform: rotate(-15deg); }
    81%  { transform: rotate(-6deg); }
    88%  { transform: rotate(-11.5deg); }
    94%  { transform: rotate(-10deg); }
}

/* ---------- Fiada de luzes ---------- */
.lightrope {
    position: absolute;
    top: -10px;
    left: 25px;
    right: 25px;
    z-index: 50;             /* por cima das camadas do slider (nivo) */
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    height: 76px;
}
.lightrope li {
    --c: #e8204c; --c2: #8a0020; --glow: rgba(204, 0, 51, 0.8); /* vermelho da marca */
    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 e amarelo da marca, branco quente e verde-pinheiro */
.lightrope li:nth-child(4n+2) { --c: #ffd633; --c2: #b38600; --glow: rgba(255, 204, 0, 0.85); animation-duration: 1.7s; } /* amarelo */
.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: #44b36b; --c2: #175f30; --glow: rgba(50, 160, 85, 0.7);  animation-duration: 1.9s; } /* verde */
.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, logo abaixo do menu) */
#banner { position: relative; }
.lightrope.lightrope-banner { top: -8px; left: 22px; right: 22px; }

/* ---------- Neve acumulada em cima dos separadores vermelhos dos títulos ---------- */
.title { position: relative; }
.title:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 3px;
    right: 10px;
    height: 17px;
    background: url('/img/natal/neve-titulo.svg?v=2') left top / 52px 17px repeat-x;
    filter: drop-shadow(0 1px 1px rgba(90, 0, 20, 0.35));
    pointer-events: none;
}

/* ---------- Neve a cair ---------- */
#neve {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}



/* ---------- Fundo principal: vermelho de Natal com padrão ----------
   Vermelho profundo (mais claro ao centro/topo, bordô nas margens) com os ícones de
   Natal em traço branco suave por cima. A caixa branca do site fica em destaque.
   (Alternativa cinzenta guardada: img/natal/padrao-fundo@2x.png sobre img/back.png) */
html, body {
    background-color: #8e0a20;
    background-image:
        url('/img/natal/padrao-branco@2x.png'),
        radial-gradient(ellipse 120% 90% at 50% 0%, #c3122f 0%, #a10d26 45%, #6e0618 100%);
    background-size: 512px 512px, 100% 100%;
    background-repeat: repeat, no-repeat;
    background-attachment: scroll, fixed;
}
/* sombra suave à volta da caixa branca para a separar do vermelho */
#wrapper {
    box-shadow: 0 0 40px rgba(40, 0, 8, 0.45);
}
