/* ==========================================================
   TuttoFood – Christmas styles (xmas-tuttofood.css v1.1)
   Paste into: Appearance › Customize › Additional CSS
   To remove after the holidays: delete this whole block.
   Theme: Martfury (child). Colours: red #dd2400, green #1f8a4c,
   gold #e8c15a, font Jura (already used by the site).
   ========================================================== */

/* 1. Top bar: festive red with a gold line */
#topbar {
  background: #b81d00 !important;
  border-bottom: 3px solid #e8c15a;
}
#topbar,
#topbar a,
#topbar b,
#topbar p,
#topbar span {
  color: #ffffff !important;
}
/* keep the language switcher readable (white box) */
#topbar .wpml-ls a,
#topbar .wpml-ls span {
  color: #1a1a1a !important;
}

/* 2. Christmas lights garland under the main menu */
.site-header .main-menu {
  position: relative;
}
.site-header .main-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  pointer-events: none;
  z-index: 5;
  background:
    radial-gradient(circle at 12px 9px, #dd2400 4px, transparent 5px) 0 0 / 72px 14px repeat-x,
    radial-gradient(circle at 36px 9px, #e8c15a 4px, transparent 5px) 0 0 / 72px 14px repeat-x,
    radial-gradient(circle at 60px 9px, #1f8a4c 4px, transparent 5px) 0 0 / 72px 14px repeat-x,
    linear-gradient(#1f6b3f, #1f6b3f) 0 3px / 100% 2px no-repeat;
  animation: tf-twinkle 2.4s ease-in-out infinite;
}
@keyframes tf-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 3. Light snowfall over the homepage slider */
.home sr7-module {
  position: relative;
}
.home sr7-module::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background-image:
    radial-gradient(circle at 20px 30px, #fff 3px, transparent 4px),
    radial-gradient(circle at 95px 125px, #fff 4px, transparent 5px),
    radial-gradient(circle at 165px 60px, #fff 2.5px, transparent 3.5px),
    radial-gradient(circle at 235px 175px, #fff 3.5px, transparent 4.5px),
    radial-gradient(circle at 300px 95px, #fff 3px, transparent 4px),
    radial-gradient(circle at 60px 200px, #fff 2.5px, transparent 3.5px);
  background-size: 320px 220px;
  opacity: 0.85;
  animation: tf-snow 14s linear infinite;
}
@keyframes tf-snow {
  from { background-position: 0 0; }
  to   { background-position: 60px 220px; }
}

/* 4. Buttons: red with a gold hover */
.mf-background-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .single_add_to_cart_button {
  transition: background-color .2s, box-shadow .2s;
}
.mf-background-primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover {
  background-color: #b81d00 !important;
  box-shadow: 0 0 0 3px #e8c15a;
}

/* 5. Product category tiles: gold frame + star on hover */
.product-category {
  position: relative;
  transition: transform .2s;
}
.product-category:hover {
  transform: translateY(-3px);
}
.product-category:hover img {
  outline: 3px solid #e8c15a;
  outline-offset: -3px;
}
.product-category::before {
  content: "\2605";
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 18px;
  color: #e8c15a;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}
.product-category:hover::before {
  opacity: 1;
}

/* 6. Footer: Italian tricolour stripe on top */
.site-footer {
  border-top: 8px solid transparent;
  border-image: linear-gradient(90deg, #1f8a4c 0 33.3%, #ffffff 33.3% 66.6%, #dd2400 66.6% 100%) 1;
}

/* Respect users who turn off animations */
@media (prefers-reduced-motion: reduce) {
  .site-header .main-menu::after,
  .home sr7-module::after {
    animation: none;
  }
}
