/* =========================
   LILIUM — CSS PREMIUM PULITO
   ========================= */

/* Scorrimento fluido */
html {
  scroll-behavior: smooth;
}

/* Elementi secondari inutili */
#secondary,
.site-info {
  display: none !important;
}

/* =========================
   CONTATTI — PAGINA ID 3
   ========================= */
.page-id-3 .site-footer,
.page-id-3 footer,
.page-id-3 .widget-area,
.page-id-3 .sidebar,
.page-id-3 .comments-area,
.page-id-3 .comment-respond,
.page-id-3 .jp-sharing,
.page-id-3 .sharedaddy,
.page-id-3 .sd-sharing-enabled,
.page-id-3 .wp-block-jetpack-subscriptions,
.page-id-3 .subscribe-blog,
.page-id-3 .mc4wp-form,
.page-id-3 .post-navigation,
.page-id-3 .nav-links,
.page-id-3 .main-navigation,
.page-id-3 .primary-navigation,
.page-id-3 .site-navigation,
.page-id-3 .menu-toggle,
.page-id-3 .search-form,
.page-id-3 .site-search,
.page-id-3 .header-search,
.page-id-3 button {
  display: none !important;
}

/* =========================
   CATEGORIA SPECIFICA
   ========================= */
.tax-product_cat.term-prodotti-tipici-padovani-dolci-e-ricette .woocommerce-ordering,
.tax-product_cat.term-prodotti-tipici-padovani-dolci-e-ricette .woocommerce-result-count {
  display: none !important;
}

/* =========================
   CARRELLO
   ========================= */
.woocommerce-cart #secondary,
.woocommerce-cart #comments,
.woocommerce-cart .comments-area,
.woocommerce-cart .comment-respond,
.woocommerce-cart .cookie-banner,
.woocommerce-cart .cookie-notice,
.woocommerce-cart .cn-bottom,
.woocommerce-cart #cookie-notice,
.woocommerce-cart .jetpack-cookie-banner,
.woocommerce-cart .site-footer,
.woocommerce-cart .footer-widgets,
.woocommerce-cart #colophon,
.woocommerce-cart .main-navigation {
  display: none !important;
}

.woocommerce-cart #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
}

.woocommerce-cart .site-main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.woocommerce-cart header {
  padding: 10px 0 !important;
}

/* =========================
   CHECKOUT
   ========================= */
.woocommerce-checkout .site-footer,
.woocommerce-checkout .footer-widgets,
.woocommerce-checkout #colophon,
.woocommerce-checkout .cookie-banner,
.woocommerce-checkout .cookie-notice,
.woocommerce-checkout .cn-bottom,
.woocommerce-checkout #cookie-notice,
.woocommerce-checkout .main-navigation {
  display: none !important;
}

.woocommerce-checkout header {
  padding: 10px 0 !important;
}

/* =========================
   PULSANTI GLOBALI PREMIUM
   ========================= */
button,
input[type="button"],
input[type="submit"],
.button,
a.button,
.wp-element-button,
.added_to_cart,
.single_add_to_cart_button {
  border-radius: 999px !important;
  border: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease, filter 0.28s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover,
a.button:hover,
.wp-element-button:hover,
.added_to_cart:hover,
.single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* =========================
   MENU — SHOP ONLINE PIÙ FORTE
   ========================= */
†.main-navigation a[href*="shop-dolci-artigianali-padova"],
.main-navigation a[href*="/shop"],
.site-header-cart .widget_shopping_cart a.button,
a[href*="shop-dolci-artigianali-padova"] {
  display: inline-block;
  padding: 12px 22px !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8b75f, #f1dfab);
  color: #4a341f !important;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(216, 183, 95, 0.24);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.main-navigation a[href*="shop-dolci-artigianali-padova"]:hover,
.main-navigation a[href*="/shop"]:hover,
a[href*="shop-dolci-artigianali-padova"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(216, 183, 95, 0.30);
  filter: brightness(1.05);
}
/* =========================
   PRODOTTO — AGGIUNGI AL CARRELLO PIÙ GRANDE
   ========================= */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.single-product .added_to_cart {
  min-height: 54px;
  padding: 14px 28px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  background: linear-gradient(90deg, #d4af37, #f3d98b) !important;
  color: #3a2b1b !important;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.28);
}

.single-product .single_add_to_cart_button:hover,
.single-product button.single_add_to_cart_button:hover,
.single-product .added_to_cart:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.35);
  filter: brightness(1.08);
}

/* Più aria attorno al form carrello */
.single-product form.cart {
  margin-top: 18px;
  margin-bottom: 18px;
}

/* =========================
   HOME — HERO TEATRALE SOLO SULLA PRINCIPALE
   ========================= */
.home .wp-block-image:first-of-type {
  position: relative;
  overflow: hidden;
}

.home .wp-block-image:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.22) 100%
  );
  transform: scaleX(1);
  transform-origin: center;
  transition: transform 0.8s ease;
  z-index: 2;
  pointer-events: none;
}

.home .wp-block-image:first-of-type:hover::before {
  transform: scaleX(0);
}

.home .wp-block-image:first-of-type img {
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.home .wp-block-image:first-of-type:hover img {
  transform: scale(1.03);
  filter: brightness(1.04);
}

/* =========================
   HOME — PRODOTTI IN EVIDENZA
   ========================= */
.home ul.products li.product,
.home .wc-block-grid__product {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home ul.products li.product::before,
.home .wc-block-grid__product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 48%,
    rgba(255, 255, 255, 0.18) 100%
  );
  transform: scaleX(1);
  transform-origin: center;
  transition: transform 0.65s ease;
  z-index: 2;
  pointer-events: none;
}

.home ul.products li.product:hover::before,
.home .wc-block-grid__product:hover::before {
  transform: scaleX(0);
}

.home ul.products li.product img,
.home .wc-block-grid__product img {
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.home ul.products li.product:hover,
.home .wc-block-grid__product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.home ul.products li.product:hover img,
.home .wc-block-grid__product:hover img {
  transform: scale(1.03);
  filter: brightness(1.03);
}

/* =========================
   CTA HOME — LUCE LEGGERA
   ========================= */
.home .button,
.home a.button,
.home .wp-element-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home .button::before,
.home a.button::before,
.home .wp-element-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.26) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.65s ease;
  z-index: 1;
  pointer-events: none;
}

.home .button:hover::before,
.home a.button:hover::before,
.home .wp-element-button:hover::before {
  left: 140%;
}

/* =========================
   NAVIGAZIONE BISCOTTI
   ========================= */
a[href="#pevarini"],
a[href="#zaleti"],
a[href="#amorevoli"],
a[href="#giuggiole"],
a[href*="shop-dolci-artigianali-padova"] {
  transition: all 0.28s ease;
}

a[href="#pevarini"]:hover,
a[href="#zaleti"]:hover,
a[href="#amorevoli"]:hover,
a[href="#giuggiole"]:hover {
  background: #f3e3d3 !important;
  transform: translateY(-2px);
}

a[href*="shop-dolci-artigianali-padova"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.28);
}