/* =====================================================================
   NATAL - Inicipump
   Gorro animado no logo, luzes no topo do slider, neve acumulada nos
   cartões de serviços, padrão de Natal nas secções cinzentas e neve a cair
   (js/natal.js + js/snow.js).
   Para remover depois do Natal: apagar as linhas marcadas "Natal" no index.php
   ===================================================================== */

/* ---------- Gorro de Pai Natal animado no logo ----------
   O logo é o fundo do .logo-wrapper (100x100, a 15px da esquerda).
   O gorro fica na curva de cima do "P". */
.logo-wrapper { position: relative; }
.logo-wrapper .gorro-natal {
    position: absolute;
    left: 44px;
    top: 2px;
    width: 62px;
    max-width: none;
    pointer-events: none;
    transform: rotate(6deg);
    transform-origin: 40% 80%;
    animation: gorro-abanar 4s ease-in-out infinite;
    z-index: 2;
}
@keyframes gorro-abanar {
    0%, 55%, 100% { transform: rotate(6deg) translateY(0); }
    60%  { transform: rotate(-4deg) translateY(-4%); }
    67%  { transform: rotate(12deg) translateY(-1%); }
    74%  { transform: rotate(2deg); }
    81%  { transform: rotate(9deg); }
    88%  { transform: rotate(5deg); }
    94%  { transform: rotate(6deg); }
}

/* ---------- Fiada de luzes ---------- */
.lightrope {
    position: absolute;
    top: -10px;
    left: 25px;
    right: 25px;
    z-index: 10;             /* por baixo do menu fixo (z-index 99) */
    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 o azul 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: #5cc8f2; --c2: #1479a8; --glow: rgba(42, 169, 224, 0.85); animation-duration: 1.9s; } /* azul */
.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 fixo) */
.site-slider .flexslider { position: relative; }
.lightrope.lightrope-banner { top: -8px; left: 22px; right: 22px; }

/* ---------- Neve acumulada em cima dos cartões azuis de serviços ---------- */
.service-item:before {
    content: "";
    position: absolute;
    top: -7px;
    left: -3px;
    right: -3px;
    height: 30px;
    background: url('/img/natal/neve-cartao.svg?v=1') left top / 120px 30px repeat-x;
    border-radius: 8px 8px 0 0;
    filter: drop-shadow(0 2px 2px rgba(0, 70, 110, 0.35)) drop-shadow(0 -1px 1px rgba(0, 70, 110, 0.18));
    pointer-events: none;
    z-index: 3;
}

/* ---------- Secções cinzentas com padrão de Natal em azul suave ---------- */
.content-section.grey {
    background-color: #F8F8F8;
    background-image: url('/img/natal/padrao-azul@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;
}
