/* =====================================================================
   RUVIDASTAMPA — INTERFACCIA
   Menu a tutto schermo, carrello laterale, carrello/checkout, account, avvisi.
   ===================================================================== */

:root {
  --rs-blue: #44519e;
  --rs-lime: #ccd733;
  --rs-gray: #d0d0d0;
  --rs-ink: #000;
  --rs-paper: #e6e6e6;
  --rs-serif: 'Instrument Serif', Georgia, serif;
  --rs-sans: 'Manrope', system-ui, sans-serif;
  --rs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rs-ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --rs-line: 2px solid var(--rs-ink);
}

/* =====================================================================
   PULSANTE HAMBURGER (sostituisce l'icona di Astra)
   ===================================================================== */
.menu-toggle.main-header-menu-toggle .mobile-menu-toggle-icon {
  display: none !important;
}

.menu-toggle.main-header-menu-toggle {
  position: relative;
  z-index: 10002;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.rs-burger {
  position: relative;
  width: 26px;
  height: 12px;
  display: block;
}

.rs-burger i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rs-ink);
  border-radius: 2px;
  transition:
    transform 0.55s var(--rs-ease),
    top 0.35s var(--rs-ease) 0.2s,
    background-color 0.3s ease,
    width 0.35s var(--rs-ease);
}

.rs-burger i:first-child { top: 0; }
.rs-burger i:last-child { top: 10px; width: 70%; left: auto; right: 0; }

@media (hover: hover) {
  .menu-toggle.main-header-menu-toggle:hover .rs-burger i:last-child { width: 100%; }
}

html.rs-menu-open .rs-burger i {
  top: 5px;
  width: 100%;
  background: var(--rs-lime);
  transition:
    top 0.3s var(--rs-ease),
    transform 0.55s var(--rs-ease) 0.15s,
    background-color 0.3s ease,
    width 0.3s var(--rs-ease);
}

html.rs-menu-open .rs-burger i:first-child { transform: rotate(45deg); }
html.rs-menu-open .rs-burger i:last-child { transform: rotate(-45deg); }

/* Il pannello di Astra non serve più */
#ast-mobile-popup {
  display: none !important;
}

/* =====================================================================
   MENU A TUTTO SCHERMO
   ===================================================================== */
.rs-menu {
  --rs-origin-x: calc(100% - 40px);
  --rs-origin-y: 28px;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(84px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  background: var(--rs-blue);
  color: #fff;
  overflow: hidden auto;
  overscroll-behavior: contain;
  visibility: hidden;
  clip-path: circle(0 at var(--rs-origin-x) var(--rs-origin-y));
  transition:
    clip-path 0.8s var(--rs-ease-in-out),
    visibility 0s linear 0.8s;
}

html.rs-menu-open .rs-menu {
  visibility: visible;
  clip-path: circle(150vmax at var(--rs-origin-x) var(--rs-origin-y));
  transition:
    clip-path 0.9s var(--rs-ease-in-out),
    visibility 0s;
}

/* Grana leggera, come la "materia" delle stampe */
.rs-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23n%29%27/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.rs-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.rs-menu__item {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.rs-menu__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rs-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0 8px;
  color: var(--rs-lime) !important;
  text-decoration: none !important;
  transform: translateY(105%);
  transition:
    transform 0.7s var(--rs-ease),
    color 0.25s ease;
}

html.rs-menu-open .rs-menu__link {
  transform: none;
  transition-delay: calc(0.28s + var(--i) * 0.06s);
}

.rs-menu__num {
  font-family: var(--rs-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  min-width: 22px;
}

.rs-menu__label {
  font-family: var(--rs-serif);
  font-size: clamp(42px, 11vw, 76px);
  line-height: 1;
  transition:
    transform 0.45s var(--rs-ease),
    font-style 0s;
}

.rs-menu__link:hover .rs-menu__label,
.rs-menu__link:focus-visible .rs-menu__label {
  font-style: italic;
  transform: translateX(10px);
}

.rs-menu__link.is-current .rs-menu__label {
  color: #fff;
}

.rs-menu__link.is-current .rs-menu__num::before {
  content: '●';
  margin-right: 6px;
  color: var(--rs-lime);
}

.rs-menu__footer {
  position: relative;
  margin-top: 32px;
  display: grid;
  gap: 18px;
  font-family: var(--rs-sans);
  font-weight: 300;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.6s var(--rs-ease);
}

html.rs-menu-open .rs-menu__footer {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.35s + var(--i) * 0.06s);
}

.rs-menu__quick,
.rs-menu__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.rs-menu__quick a,
.rs-menu__social a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(var(--rs-lime), var(--rs-lime)) left bottom / 0 1px no-repeat;
  transition: background-size 0.35s var(--rs-ease), color 0.2s;
  padding-bottom: 2px;
}

.rs-menu__quick a:hover,
.rs-menu__social a:hover {
  background-size: 100% 1px;
  color: var(--rs-lime) !important;
}

.rs-menu__quick .rs-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--rs-lime);
  color: var(--rs-ink);
  font-size: 12px;
  font-weight: 600;
}

.rs-menu__claim {
  margin: 4px 0 0;
  font-family: var(--rs-serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.rs-menu__mark {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: var(--rs-lime);
  opacity: 0.16;
  -webkit-mask: var(--rs-mark) center / contain no-repeat;
  mask: var(--rs-mark) center / contain no-repeat;
  animation: ruota 24s linear infinite;
  pointer-events: none;
}

/* Header sopra il menu aperto: logo e icone in bianco */
html.rs-menu-open #masthead {
  position: relative;
  z-index: 10001;
}

html.rs-menu-open #masthead .ast-mobile-header-wrap .ast-primary-header-bar,
html.rs-menu-open #masthead .ast-mobile-header-wrap .main-header-bar,
html.rs-menu-open #masthead .ast-mobile-header-wrap {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html.rs-menu-open #masthead .ast-mobile-header-wrap .custom-logo,
html.rs-menu-open #masthead .ast-mobile-header-wrap .site-logo-img img {
  filter: invert(1);
  transition: filter 0.3s ease;
}

html.rs-menu-open #masthead .ast-mobile-header-wrap svg,
html.rs-menu-open #masthead .ast-mobile-header-wrap .count {
  color: #fff;
  fill: #fff;
}

html.rs-menu-open,
html.rs-menu-open body {
  overflow: hidden !important;
}

@media (min-width: 922px) {
  .rs-menu { display: none; }
}

/* =====================================================================
   RIDUCI MOVIMENTO
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .rs-menu,
  html.rs-menu-open .rs-menu {
    clip-path: none;
    transition: visibility 0s;
  }
  .rs-menu__link,
  .rs-menu__footer {
    transform: none;
    transition: none;
  }
  .rs-menu__footer { opacity: 1; }
  .rs-menu__mark { animation: none; }
}

/* =====================================================================
   CONTATORE DEL CARRELLO NELL'HEADER
   ===================================================================== */
.ast-site-header-cart .ast-icon-shopping-cart::after,
.ast-site-header-cart .ast-addon-cart-wrap .count,
.ast-site-header-cart .ast-cart-menu-wrap .count {
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 4px !important;
  border-radius: 9px !important;
  background: var(--rs-lime) !important;
  color: var(--rs-ink) !important;
  font-family: var(--rs-sans) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 17px !important;
  border: 0 !important;
  top: -7px !important;
  right: -10px !important;
  left: auto !important;
}

.ast-site-header-cart .ast-icon-shopping-cart[data-cart-total="0"]::after {
  display: none !important;
}

/* Icona centrata nell'header: così il pallino col numero non esce dal bordo in alto */
.ast-header-woo-cart .ast-site-header-cart-li > .cart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.ast-header-woo-cart .ast-addon-cart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ast-header-woo-cart .ast-icon-shopping-cart {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* =====================================================================
   CARRELLO LATERALE
   ===================================================================== */
.astra-mobile-cart-overlay {
  background: rgba(10, 12, 30, 0.35) !important;
  transition: opacity 0.45s ease, visibility 0.45s ease !important;
}

#astra-mobile-cart-drawer.astra-cart-drawer {
  background: var(--rs-gray) !important;
  border-left: var(--rs-line);
  box-shadow: none !important;
  width: min(460px, 100vw) !important;
  max-width: 100vw;
  font-family: var(--rs-sans);
  transition:
    transform 0.6s var(--rs-ease),
    left 0.6s var(--rs-ease),
    right 0.6s var(--rs-ease),
    opacity 0.4s ease,
    visibility 0.6s !important;
}

#astra-mobile-cart-drawer.astra-cart-drawer {
  display: flex !important;
  flex-direction: column;
}

#astra-mobile-cart-drawer .astra-cart-drawer-header {
  position: relative !important;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: 18px 22px !important;
  border-bottom: var(--rs-line) !important;
  background: transparent !important;
}

#astra-mobile-cart-drawer .astra-cart-drawer-title {
  font-family: var(--rs-serif) !important;
  font-size: 40px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-transform: none !important;
  color: var(--rs-ink) !important;
  padding: 0 !important;
}

#astra-mobile-cart-drawer .astra-cart-drawer-close {
  position: static !important;
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border: var(--rs-line) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--rs-ink) !important;
  transition: background-color 0.25s, transform 0.4s var(--rs-ease) !important;
}

#astra-mobile-cart-drawer .astra-cart-drawer-close:hover {
  background: var(--rs-lime) !important;
  transform: rotate(90deg);
}

#astra-mobile-cart-drawer .astra-cart-drawer-close svg {
  width: 18px;
  height: 18px;
}

#astra-mobile-cart-drawer .astra-cart-drawer-content {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#astra-mobile-cart-drawer .widget_shopping_cart {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
}

#astra-mobile-cart-drawer .widget_shopping_cart_content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart {
  padding: 0 22px !important;
  margin: 0 !important;
  flex: 1;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 92px 1fr auto;
  grid-template-areas:
    "img name price"
    "img qty qty";
  column-gap: 16px;
  row-gap: 10px;
  align-items: start;
  padding: 20px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18) !important;
  animation: rs-drawer-item 0.6s var(--rs-ease) both;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item:nth-child(2) { animation-delay: 0.05s; }
#astra-mobile-cart-drawer .woocommerce-mini-cart-item:nth-child(3) { animation-delay: 0.1s; }
#astra-mobile-cart-drawer .woocommerce-mini-cart-item:nth-child(n + 4) { animation-delay: 0.15s; }

@keyframes rs-drawer-item {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) {
  display: contents !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item img {
  grid-area: img;
  width: 92px !important;
  height: 116px !important;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  float: none !important;
}

#astra-mobile-cart-drawer .ast-product-image,
#astra-mobile-cart-drawer .woocommerce-mini-cart-item .ast-product-name {
  grid-area: name;
  font-family: var(--rs-serif) !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
  color: var(--rs-ink) !important;
  font-weight: 400 !important;
  padding: 0 !important;
}

#astra-mobile-cart-drawer .ast-mini-cart-price-wrap {
  grid-area: price;
  font-family: var(--rs-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--rs-ink);
  white-space: nowrap;
  padding-right: 26px;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item .quantity {
  grid-area: qty;
  justify-self: start;
  transform: none !important;
  margin: 0 !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item .remove {
  position: absolute !important;
  top: 18px;
  right: 0;
  left: auto !important;
  width: 22px !important;
  height: 22px !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  color: rgba(0, 0, 0, 0.55) !important;
  background: transparent !important;
  transition: color 0.2s, transform 0.3s var(--rs-ease);
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item .remove:hover {
  color: var(--rs-ink) !important;
  transform: rotate(90deg);
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item .remove svg {
  width: 16px;
  height: 16px;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__total {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 !important;
  padding: 20px 22px !important;
  border-top: var(--rs-line) !important;
  border-bottom: 0 !important;
  font-family: var(--rs-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__total strong {
  font-weight: 300 !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__total .amount {
  font-family: var(--rs-serif);
  font-size: 34px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rs-ink);
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 !important;
  padding: 0 22px 24px !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button {
  margin: 0 !important;
  padding: 16px 20px !important;
  border-radius: 999px !important;
  border: 1px solid var(--rs-ink) !important;
  background: transparent !important;
  color: var(--rs-ink) !important;
  font-family: var(--rs-serif) !important;
  font-style: italic;
  font-size: 22px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-align: center;
  transition: background-color 0.25s, transform 0.15s !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button.checkout {
  order: -1;
  background: var(--rs-lime) !important;
  border-color: var(--rs-lime) !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button:hover {
  background: var(--rs-ink) !important;
  color: var(--rs-lime) !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button:active {
  transform: scale(0.98);
}

/* Carrello vuoto */
#astra-mobile-cart-drawer .woocommerce-mini-cart__empty-message,
.rs-empty-cart {
  padding: 48px 22px 12px !important;
  margin: 0 !important;
  font-family: var(--rs-serif);
  font-size: 34px;
  line-height: 1.1;
  text-align: left !important;
  color: var(--rs-ink);
}

.rs-empty-cart__cta {
  display: inline-flex;
  margin: 8px 22px 24px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--rs-lime);
  color: var(--rs-ink) !important;
  text-decoration: none !important;
  font-family: var(--rs-serif);
  font-style: italic;
  font-size: 22px;
  transition: background-color 0.25s, color 0.25s;
}

.rs-empty-cart__cta:hover {
  background: var(--rs-ink);
  color: var(--rs-lime) !important;
}

/* Selettore quantità (carrello laterale, pagina prodotto) */
.quantity.buttons_added {
  border: 1px solid var(--rs-ink) !important;
  border-radius: 999px !important;
  overflow: hidden;
  background: transparent !important;
}

.quantity.buttons_added .minus,
.quantity.buttons_added .plus {
  color: var(--rs-ink) !important;
  background: transparent !important;
  border: 0 !important;
  font-family: var(--rs-sans);
  font-size: 18px;
  font-weight: 300;
  transition: background-color 0.2s;
}

.quantity.buttons_added .minus:hover,
.quantity.buttons_added .plus:hover {
  background: var(--rs-lime) !important;
}

.quantity.buttons_added input.qty {
  color: var(--rs-ink) !important;
  background: transparent !important;
  border: 0 !important;
  font-family: var(--rs-sans);
  font-weight: 400;
  -moz-appearance: textfield;
}

.quantity.buttons_added input.qty::-webkit-inner-spin-button,
.quantity.buttons_added input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* =====================================================================
   CARRELLO E CHECKOUT (blocchi WooCommerce)
   ===================================================================== */
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title {
  font-family: var(--rs-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(48px, 7vw, 96px) !important;
  line-height: 1 !important;
  letter-spacing: -0.01em;
}

.wc-block-cart,
.wc-block-checkout {
  font-family: var(--rs-sans);
  font-weight: 300;
  color: var(--rs-ink);
}

/* Titoli di sezione */
.wc-block-components-checkout-step__title,
.wc-block-components-title.wc-block-components-title,
.wc-block-cart__totals-title,
.wc-block-cart-items__header,
.wc-block-components-checkout-order-summary__title-text {
  font-family: var(--rs-serif) !important;
  font-weight: 400 !important;
  font-size: 30px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--rs-ink) !important;
}

.wc-block-cart-items__header {
  font-size: 13px !important;
  font-family: var(--rs-sans) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.wc-block-components-checkout-step {
  padding-bottom: 8px;
}

.wc-block-components-checkout-step__description,
.wc-block-checkout__guest-checkout-notice,
.wc-block-components-checkout-step__heading-content {
  font-family: var(--rs-sans);
  font-weight: 300;
  color: rgba(0, 0, 0, 0.7) !important;
}

/* Campi: niente riquadri, solo la riga sotto */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea,
.wc-block-components-address-form select {
  background: transparent !important;
  border: 0 !important;
  border-bottom: var(--rs-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--rs-ink) !important;
  font-family: var(--rs-sans) !important;
  font-weight: 400 !important;
  transition: border-color 0.25s, background-color 0.25s;
}

.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
  border-bottom-color: var(--rs-blue) !important;
  background: rgba(255, 255, 255, 0.25) !important;
  outline: none !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-blocks-components-select .wc-blocks-components-select__label {
  font-family: var(--rs-sans) !important;
  font-weight: 300 !important;
  color: rgba(0, 0, 0, 0.6) !important;
}

.wc-blocks-components-select .wc-blocks-components-select__container {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.wc-block-components-text-input.has-error input,
.wc-block-components-combobox.has-error input {
  border-bottom-color: #c0392b !important;
}

.wc-block-components-validation-error {
  font-family: var(--rs-sans);
  font-size: 13px;
}

/* Caselle e scelte */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox],
.wc-block-components-radio-control__input {
  border: 1.5px solid var(--rs-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked {
  background: var(--rs-lime) !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__mark {
  fill: var(--rs-ink) !important;
}

.wc-block-components-radio-control__input:checked {
  border-color: var(--rs-ink) !important;
}

.wc-block-components-radio-control__input:checked::before {
  background: var(--rs-ink) !important;
}

.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option,
.wc-block-checkout__shipping-method-option {
  border-radius: 0 !important;
  box-shadow: none !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
  box-shadow: inset 0 0 0 2px var(--rs-ink) !important;
  background: rgba(204, 215, 51, 0.15);
}

/* Riepilogo e totali */
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
  border: var(--rs-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.wc-block-components-totals-wrapper {
  border-color: rgba(0, 0, 0, 0.2) !important;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
  font-family: var(--rs-sans);
  font-weight: 300;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--rs-sans) !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  font-family: var(--rs-serif) !important;
  font-weight: 400 !important;
  font-size: 36px !important;
}

.wc-block-components-product-name {
  font-family: var(--rs-serif) !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  color: var(--rs-ink) !important;
  text-decoration: none !important;
}

.wc-block-components-product-metadata,
.wc-block-components-product-details {
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 13px !important;
}

.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
  border-radius: 0 !important;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}

.wc-block-components-order-summary-item__quantity {
  background: var(--rs-lime) !important;
  border: 0 !important;
  color: var(--rs-ink) !important;
  font-family: var(--rs-sans);
  font-weight: 600;
  box-shadow: none !important;
}

.wc-block-components-quantity-selector {
  border: 1px solid var(--rs-ink) !important;
  border-radius: 999px !important;
  overflow: hidden;
  background: transparent !important;
}

.wc-block-components-quantity-selector::after {
  display: none !important;
}

.wc-block-components-quantity-selector input,
.wc-block-components-quantity-selector button {
  background: transparent !important;
  color: var(--rs-ink) !important;
  font-family: var(--rs-sans) !important;
}

.wc-block-components-quantity-selector button:hover {
  background: var(--rs-lime) !important;
}

.wc-block-cart-item__remove-link {
  font-family: var(--rs-sans) !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.6) !important;
  text-decoration: none !important;
}

.wc-block-cart-items td,
.wc-block-cart-items th,
.wc-block-cart-items {
  border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Coupon e pannelli a scomparsa */
.wc-block-components-panel__button {
  font-family: var(--rs-sans) !important;
  font-weight: 300 !important;
}

/* Pulsanti principali */
.wc-block-components-button.contained,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-totals-coupon__button {
  min-height: 56px;
  border-radius: 999px !important;
  border: 1px solid var(--rs-lime) !important;
  background: var(--rs-lime) !important;
  color: var(--rs-ink) !important;
  box-shadow: none !important;
  font-family: var(--rs-serif) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: 24px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background-color 0.25s, color 0.25s, transform 0.15s !important;
}

.wc-block-components-totals-coupon__button {
  min-height: 0;
  font-size: 18px !important;
}

.wc-block-components-button.contained:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-totals-coupon__button:hover {
  background: var(--rs-ink) !important;
  border-color: var(--rs-ink) !important;
  color: var(--rs-lime) !important;
}

.wc-block-components-button.contained:active,
.wc-block-cart__submit-button:active,
.wc-block-components-checkout-place-order-button:active {
  transform: scale(0.98);
}

.wc-block-components-checkout-return-to-cart-button {
  font-family: var(--rs-sans) !important;
  font-weight: 300;
  color: var(--rs-ink) !important;
}

.wc-block-checkout__terms,
.wc-block-checkout__terms a {
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7) !important;
}

/* Carrello vuoto (blocchi) */
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  font-family: var(--rs-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(36px, 5vw, 64px) !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::before {
  display: none !important;
}

/* =====================================================================
   AVVISI (errori, conferme, info) — ora visibili e coerenti
   ===================================================================== */
.wc-block-components-notice-banner,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border: var(--rs-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--rs-ink) !important;
  font-family: var(--rs-sans) !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  animation: rs-notice-in 0.5s var(--rs-ease) both;
}

.wc-block-components-notice-banner.is-error,
.woocommerce-error {
  border-color: #c0392b !important;
  background: rgba(192, 57, 43, 0.06) !important;
}

.wc-block-components-notice-banner.is-success,
.woocommerce-message {
  border-color: var(--rs-ink) !important;
  background: rgba(204, 215, 51, 0.25) !important;
}

.wc-block-components-notice-banner > svg {
  background: var(--rs-ink) !important;
  fill: var(--rs-lime) !important;
  border-radius: 50%;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
  color: var(--rs-ink) !important;
}

@keyframes rs-notice-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* =====================================================================
   ACCOUNT (accesso, registrazione, area cliente)
   ===================================================================== */
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register,
.woocommerce-account .woocommerce form.lost_reset_password {
  border: var(--rs-line) !important;
  border-radius: 0 !important;
  padding: clamp(24px, 4vw, 48px) !important;
  background: transparent !important;
  max-width: 520px;
  margin: 0 auto !important;
}

.woocommerce-account .woocommerce h2 {
  font-family: var(--rs-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(36px, 5vw, 56px) !important;
  text-align: center;
  margin-bottom: 28px !important;
}

.woocommerce-account .woocommerce form .form-row label,
.woocommerce-account .woocommerce form .woocommerce-form-row label {
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.7);
}

.woocommerce-account .woocommerce form .input-text,
.woocommerce-account .woocommerce form input[type="text"],
.woocommerce-account .woocommerce form input[type="email"],
.woocommerce-account .woocommerce form input[type="password"],
.woocommerce-account .woocommerce form input[type="tel"],
.woocommerce-account .woocommerce form select {
  height: 48px;
  padding: 0 4px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: var(--rs-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--rs-sans) !important;
  font-size: 16px !important;
  color: var(--rs-ink) !important;
  text-align: left !important;
  transition: border-color 0.25s, background-color 0.25s;
}

.woocommerce-account .woocommerce form .input-text:focus,
.woocommerce-account .woocommerce form input:focus {
  border-bottom-color: var(--rs-blue) !important;
  background: rgba(255, 255, 255, 0.25) !important;
}

.woocommerce-account .woocommerce form .input-text::placeholder {
  color: rgba(0, 0, 0, 0.5);
  font-family: var(--rs-sans);
  font-weight: 300;
  opacity: 1;
}

.woocommerce-account .woocommerce .password-input {
  width: 100%;
}

.woocommerce-account .woocommerce .show-password-input {
  background: transparent !important;
  border: 0 !important;
}

.woocommerce-account .woocommerce .woocommerce-form-login__rememberme {
  font-family: var(--rs-sans);
  font-weight: 300;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.woocommerce-account .woocommerce input[type="checkbox"] {
  accent-color: var(--rs-lime);
}

.woocommerce-account .woocommerce .woocommerce-button,
.woocommerce-account .woocommerce button.button,
.woocommerce-account .woocommerce a.button {
  width: 100%;
  min-height: 54px;
  margin-top: 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--rs-lime) !important;
  background: var(--rs-lime) !important;
  color: var(--rs-ink) !important;
  font-family: var(--rs-serif) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: 22px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background-color 0.25s, color 0.25s, transform 0.15s;
}

.woocommerce-account .woocommerce .woocommerce-button:hover,
.woocommerce-account .woocommerce button.button:hover,
.woocommerce-account .woocommerce a.button:hover {
  background: var(--rs-ink) !important;
  border-color: var(--rs-ink) !important;
  color: var(--rs-lime) !important;
}

.woocommerce-account .woocommerce .lost_password,
.woocommerce-account .woocommerce .woocommerce-LostPassword {
  text-align: center;
  font-family: var(--rs-sans);
  font-weight: 300;
}

.woocommerce-account .woocommerce .lost_password a,
.woocommerce-account .woocommerce .woocommerce-LostPassword a,
.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
  color: var(--rs-ink) !important;
  text-decoration: none !important;
  background: linear-gradient(var(--rs-ink), var(--rs-ink)) left bottom / 100% 1px no-repeat;
  transition: background-size 0.3s var(--rs-ease), color 0.2s;
}

.woocommerce-account .woocommerce .lost_password a:hover,
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):hover {
  color: var(--rs-blue) !important;
  background-image: linear-gradient(var(--rs-blue), var(--rs-blue));
}

/* Area cliente: menu laterale e contenuto */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  border-top: var(--rs-line) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a {
  display: block;
  padding: 14px 0 !important;
  font-family: var(--rs-serif) !important;
  font-size: 24px !important;
  transition: color 0.2s, padding-left 0.35s var(--rs-ease) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a {
  font-style: italic;
  padding-left: 10px !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
}

.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-table {
  border: var(--rs-line) !important;
  border-radius: 0 !important;
  font-family: var(--rs-sans);
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-table th {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
  border: var(--rs-line);
  padding: 24px;
}

/* Checkout e account: niente fascia promozionale fissa sopra il riepilogo, solo l'essenziale */
.woocommerce-checkout .ast-below-header-wrap,
.woocommerce-account .ast-below-header-wrap {
  display: none !important;
}

.wc-block-components-panel,
.wc-block-components-totals-coupon {
  border: 0 !important;
  outline: none !important;
}

/* =====================================================================
   ELEMENTI COMUNI
   ===================================================================== */
::selection {
  background: var(--rs-lime);
  color: var(--rs-ink);
}

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--rs-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--rs-ink) !important;
  text-decoration: none !important;
  font-family: var(--rs-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
}

.rs-btn--lime {
  background: var(--rs-lime);
  border-color: var(--rs-lime);
}

.rs-btn:hover {
  background: var(--rs-ink);
  border-color: var(--rs-ink);
  color: var(--rs-lime) !important;
}

.rs-btn:active {
  transform: scale(0.97);
}

/* Pulsante "torna su" */
#ast-scroll-top {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--rs-ink) !important;
  color: var(--rs-lime) !important;
  border: 0 !important;
  display: grid !important;
  place-items: center;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--rs-ease), background-color 0.25s, opacity 0.3s !important;
}

#ast-scroll-top:hover {
  background: var(--rs-lime) !important;
  color: var(--rs-ink) !important;
  transform: translateY(-3px);
}

#ast-scroll-top .ast-icon svg,
#ast-scroll-top svg {
  fill: currentColor !important;
  width: 14px;
  height: 14px;
}

/* Menu desktop: riempimento lime che sale al passaggio del mouse */
@media (min-width: 922px) {
  #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    background-image: linear-gradient(var(--rs-lime), var(--rs-lime));
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 0;
    transition: background-size 0.4s var(--rs-ease), color 0.2s !important;
  }

  #ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover,
  #ast-desktop-header .main-header-menu > .menu-item > .menu-link:focus-visible {
    background-size: 100% 100%;
    color: var(--rs-ink) !important;
  }
}

/* =====================================================================
   RICERCA
   ===================================================================== */
.rs-search-head {
  padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 48px);
  text-align: center;
}

.rs-search-head__label {
  margin: 0 0 8px;
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rs-search-head__query {
  margin: 0;
  font-family: var(--rs-serif) !important;
  font-weight: 400 !important;
  font-style: italic;
  font-size: clamp(48px, 8vw, 110px) !important;
  line-height: 1 !important;
}

.rs-search-works {
  margin-bottom: clamp(40px, 6vw, 96px);
}

/* =====================================================================
   404
   ===================================================================== */
.rs-404 {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.rs-404 .site-main {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vw, 120px) 0;
}

.rs-404__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
  animation: rs-notice-in 0.8s var(--rs-ease) both;
}

.rs-404__code {
  margin: 0;
  font-family: var(--rs-serif);
  font-size: clamp(140px, 30vw, 360px);
  line-height: 0.8;
  color: var(--rs-lime);
  -webkit-text-stroke: 2px var(--rs-ink);
  letter-spacing: -0.04em;
}

.rs-404__title {
  margin: 24px 0 12px !important;
  font-family: var(--rs-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(34px, 5vw, 60px) !important;
  line-height: 1.05 !important;
}

.rs-404__text {
  margin: 0 auto 32px;
  max-width: 520px;
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 18px;
}

.rs-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.rs-404__search {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  border-bottom: var(--rs-line);
}

.rs-404__search input {
  flex: 1;
  height: 50px;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--rs-sans) !important;
  font-size: 16px !important;
  text-align: left !important;
}

.rs-404__search button {
  width: 50px;
  border: 0;
  background: transparent;
  color: var(--rs-ink);
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.3s var(--rs-ease);
}

.rs-404__search button:hover {
  transform: translateX(4px);
  background: transparent;
  color: var(--rs-ink);
}

.rs-404__mark {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: min(48vw, 480px);
  aspect-ratio: 1;
  background: var(--rs-ink);
  opacity: 0.06;
  -webkit-mask: var(--rs-mark) center / contain no-repeat;
  mask: var(--rs-mark) center / contain no-repeat;
  animation: ruota 40s linear infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .rs-404__mark { animation: none; }
}

.rs-search-works .section-title {
  text-align: center;
}

/* =====================================================================
   RICERCA A TUTTO SCHERMO (header)
   ===================================================================== */
.ast-search-box.full-screen {
  background: var(--rs-blue) !important;
  color: #fff;
  animation: rs-search-in 0.55s var(--rs-ease) both;
}

@keyframes rs-search-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

.ast-search-box.full-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23n%29%27/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ast-search-box.full-screen .ast-search-wrapper {
  top: 38% !important;
}

.ast-search-box.full-screen .large-search-text {
  font-family: var(--rs-sans) !important;
  font-weight: 300 !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75) !important;
  margin-bottom: 18px !important;
}

.ast-search-box.full-screen .search-form fieldset {
  border: 0 !important;
  border-bottom: 2px solid var(--rs-lime) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.ast-search-box.full-screen .search-field {
  height: auto !important;
  padding: 6px 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--rs-lime) !important;
  font-family: var(--rs-serif) !important;
  font-size: clamp(40px, 7vw, 88px) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  text-align: left !important;
}

.ast-search-box.full-screen .search-field::placeholder {
  color: rgba(204, 215, 51, 0.45) !important;
  font-style: italic;
}

.ast-search-box.full-screen .search-submit {
  background: transparent !important;
  border: 0 !important;
  color: var(--rs-lime) !important;
}

.ast-search-box.full-screen .search-submit svg {
  fill: var(--rs-lime) !important;
  width: 28px;
  height: 28px;
}

.ast-search-box.full-screen #close {
  top: 24px !important;
  right: 24px !important;
  width: 46px;
  height: 46px;
  display: grid !important;
  place-items: center;
  border: 2px solid var(--rs-lime);
  border-radius: 50%;
  color: var(--rs-lime) !important;
  transition: transform 0.4s var(--rs-ease), background-color 0.25s;
}

.ast-search-box.full-screen #close:hover {
  transform: rotate(90deg);
  background: var(--rs-lime);
  color: var(--rs-ink) !important;
}

.ast-search-box.full-screen #close svg {
  fill: currentColor !important;
  width: 18px;
  height: 18px;
}

/* Suggerimenti mentre si scrive (ricerca live di Astra) */
.ast-search-box.full-screen .ast-live-search-results,
.ast-live-search-results {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ast-search-box.full-screen .ast-live-search-results a,
.ast-search-box.full-screen .ast-live-search-results .ast-search-item {
  color: #fff !important;
  font-family: var(--rs-sans);
  font-weight: 300;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ast-search-box.full-screen .ast-live-search-results a:hover {
  color: var(--rs-lime) !important;
  background: transparent !important;
}

.ast-search-box.full-screen .ast-live-search-results .ast-search--posttype-heading {
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: var(--rs-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  border: 0 !important;
}

.ast-search-box.full-screen .search-field:focus,
.ast-search-box.full-screen .search-field:focus-visible,
.rs-404__search input:focus-visible {
  outline: none !important;
}

/* Riepilogo ordine nel checkout: respiro interno, niente righe doppie */
.wp-block-woocommerce-checkout-order-summary-block {
  padding: 4px 18px 8px !important;
}

.wc-block-components-checkout-order-summary__title {
  border: 0 !important;
  padding: 14px 0 !important;
}

.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper:first-child,
.wc-block-components-checkout-order-summary__content > .wc-block-components-totals-wrapper:first-child {
  border-top: 0 !important;
}

@media (max-width: 767px) {
  .wc-block-components-checkout-order-summary__title-text {
    font-size: 24px !important;
  }
  .wc-block-components-checkout-order-summary__title-price {
    font-family: var(--rs-serif);
    font-size: 22px;
  }
}

/* =====================================================================
   MODULO CONTATTI (Contact Form 7)
   ===================================================================== */
.wpcf7 .wpcf7-submit {
  min-height: 54px;
  padding: 0 44px !important;
  border: 1px solid var(--rs-ink) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--rs-ink) !important;
  font-family: var(--rs-serif) !important;
  font-style: italic;
  font-size: 24px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

.wpcf7 .wpcf7-submit:hover {
  background: var(--rs-ink) !important;
  color: var(--rs-lime) !important;
}

.wpcf7 .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
  background-color: var(--rs-ink);
}

.wpcf7 input[type="checkbox"] {
  accent-color: var(--rs-ink);
  width: 18px;
  height: 18px;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  font-family: var(--rs-sans);
  font-weight: 300;
}

.wpcf7 input.wpcf7-form-control:not([type="submit"]):focus,
.wpcf7 textarea:focus {
  outline: none !important;
  border-bottom-color: var(--rs-blue) !important;
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-family: var(--rs-sans);
  font-size: 13px;
  font-weight: 400;
  color: #b3261e;
  text-align: center;
  animation: rs-notice-in 0.4s var(--rs-ease) both;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.wpcf7 form .wpcf7-response-output {
  max-width: 520px;
  margin: 24px auto 0 !important;
  padding: 14px 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: var(--rs-sans);
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  animation: rs-notice-in 0.5s var(--rs-ease) both;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  background: var(--rs-ink);
  color: #fff;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: var(--rs-lime);
  color: var(--rs-ink);
}

/* =====================================================================
   AREA CLIENTE (layout moderno di Astra Pro)
   ===================================================================== */
.rs-avatar {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rs-lime);
  color: var(--rs-ink);
  font-family: var(--rs-serif);
  font-size: 24px;
  flex: 0 0 auto;
}

.woocommerce-account .ast-wooaccount-user-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
}

.woocommerce-account .ast-wooaccount-user-wrapper .ast-username {
  font-family: var(--rs-sans);
  font-weight: 300;
}

.woocommerce-account .ast-wooaccount-user-wrapper .ast-username strong {
  display: block;
  font-family: var(--rs-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link .ahfb-svg-iconset svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.6;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active .ahfb-svg-iconset svg {
  opacity: 1;
  color: var(--rs-blue);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 14px;
  padding: 18px 20px !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before {
  display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button {
  width: auto !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 22px !important;
  font-size: 18px !important;
  order: 2;
}

/* Ordini come schede */
.woocommerce-account .ast-woo-grid-orders-container {
  display: grid;
  gap: 12px;
}

.woocommerce-account .ast-orders-table__row {
  background: transparent !important;
  border: var(--rs-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background-color 0.25s, transform 0.35s var(--rs-ease);
}

.woocommerce-account .ast-orders-table__row:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

.woocommerce-account .ast-orders-table__row img {
  border-radius: 0 !important;
  background: rgba(0, 0, 0, 0.06);
  object-fit: contain;
}

.woocommerce-account .ast-woo-order-date {
  font-family: var(--rs-serif);
  font-weight: 400 !important;
  font-size: 24px;
}

.woocommerce-account .ast-orders-table__cell-order-status {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.woocommerce-account .ast-orders-table__cell-order-actions a.view {
  display: inline-flex;
  padding: 8px 18px;
  border: 1px solid var(--rs-ink);
  border-radius: 999px;
  background: none !important;
  font-family: var(--rs-serif);
  font-style: italic;
  font-size: 18px;
  transition: background-color 0.25s, color 0.25s;
}

.woocommerce-account .ast-orders-table__cell-order-actions a.view:hover {
  background: var(--rs-ink) !important;
  color: var(--rs-lime) !important;
}

/* =====================================================================
   FOOTER SU TELEFONO E TABLET: griglia con le linee nere, come l'header
   ===================================================================== */
@media (max-width: 921px) {
  .site-footer .site-primary-footer-wrap {
    padding: 0 !important;
    border-top: var(--rs-line);
  }

  .site-footer .site-primary-footer-wrap .ast-builder-grid-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "badge badge"
      "nav   mark"
      "social legal"
      "copy  copy";
    gap: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  .site-footer .site-footer-section,
  .site-footer .site-footer-primary-section-4 > .ast-builder-layout-element,
  .site-footer .site-footer-primary-section-4 > .footer-widget-area {
    margin: 0 !important;
    padding: 20px !important;
    border-bottom: var(--rs-line);
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: auto !important;
  }

  .site-footer .footer-nav-wrap,
  .site-footer .footer-bar-navigation,
  .site-footer .site-footer-primary-section-2 .footer-widget-area,
  .site-footer .site-footer-primary-section-2 nav {
    width: 100% !important;
  }

  .site-footer .footer-nav-wrap .menu-link,
  .site-footer .footer-nav-wrap .menu-text {
    text-align: left !important;
    width: 100%;
  }

  /* Badge del marchio */
  .site-footer .site-footer-primary-section-3 {
    grid-area: badge;
    display: flex !important;
    justify-content: center;
    padding: 26px 20px !important;
  }

  .site-footer .site-footer-primary-section-3 img {
    width: min(340px, 100%) !important;
    height: auto !important;
  }

  /* Menu */
  .site-footer .site-footer-primary-section-2 {
    grid-area: nav;
    border-right: var(--rs-line);
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 6px 20px !important;
  }

  .site-footer .footer-nav-wrap ul {
    display: block !important;
    width: 100%;
  }

  .site-footer .footer-nav-wrap li {
    margin: 0 !important;
    height: auto !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    text-align: left !important;
  }

  .site-footer .footer-nav-wrap li:last-child {
    border-bottom: 0;
  }

  .site-footer .footer-nav-wrap .menu-link {
    display: block !important;
    padding: 9px 0 !important;
    border: 0 !important;
    font-family: var(--rs-serif) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    color: var(--rs-ink) !important;
    text-align: left !important;
    justify-content: flex-start !important;
    transition: padding-left 0.35s var(--rs-ease), color 0.2s;
  }

  .site-footer .footer-nav-wrap .menu-link:active,
  .site-footer .footer-nav-wrap .current-menu-item > .menu-link {
    font-style: italic;
    color: var(--rs-blue) !important;
  }

  /* Marchio che ruota */
  .site-footer .site-footer-primary-section-1 {
    grid-area: mark;
    display: grid !important;
    place-items: center;
  }

  .site-footer .site-footer-primary-section-1 img {
    width: min(130px, 80%) !important;
    height: auto !important;
  }

  /* Social + link legali: la sezione 4 diventa due celle */
  .site-footer .site-footer-primary-section-4 {
    display: contents !important;
  }

  .site-footer .site-footer-primary-section-4 > .ast-builder-layout-element,
  .site-footer .site-footer-primary-section-4 > .footer-widget-area {
    padding: 18px 20px !important;
    margin: 0 !important;
    border-bottom: var(--rs-line);
    display: flex !important;
    align-items: center;
  }

  .site-footer .site-footer-primary-section-4 > .ast-builder-layout-element {
    grid-area: social;
    border-right: var(--rs-line);
    justify-content: flex-start !important;
  }

  .site-footer .ast-footer-social-wrap .footer-social-inner-wrap {
    display: flex !important;
    gap: 14px;
    justify-content: flex-start !important;
  }

  .site-footer .ast-footer-social-wrap .ast-builder-social-element {
    margin: 0 !important;
  }

  .site-footer .ast-footer-social-wrap svg {
    width: 30px !important;
    height: 30px !important;
    fill: var(--rs-ink) !important;
  }

  .site-footer .site-footer-primary-section-4 > .footer-widget-area {
    grid-area: legal;
    justify-content: flex-start;
  }

  .site-footer .site-footer-primary-section-4 .ast-builder-html-element p {
    margin: 0 !important;
    text-align: left !important;
    font-size: 11px !important;
    line-height: 1.9 !important;
    font-family: var(--rs-sans) !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .site-footer .site-footer-primary-section-4 .ast-builder-html-element a {
    color: var(--rs-ink) !important;
    text-decoration: none !important;
  }

  /* Copyright e dati societari */
  .site-footer .site-footer-primary-section-5 {
    grid-area: copy;
    border-bottom: 0;
    padding: 18px 20px 28px !important;
  }

  .site-footer .site-footer-primary-section-5 p {
    margin: 0 0 8px !important;
    text-align: left !important;
    font-family: var(--rs-sans) !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
    color: rgba(0, 0, 0, 0.6) !important;
  }

  .site-footer .site-footer-primary-section-5 p:empty,
  .site-footer .site-footer-primary-section-5 p:has(> br:only-child) {
    display: none;
  }
}

/* =====================================================================
   CARRELLO COME IL MENU: blu, grana, apertura a cerchio dall'icona
   (sovrascrive lo stile del pannello definito sopra)
   ===================================================================== */
#astra-mobile-cart-drawer.astra-cart-drawer {
  --rs-origin-x: calc(100% - 40px);
  --rs-origin-y: 28px;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  height: 100% !important;
  width: min(560px, 100vw) !important;
  min-width: 0 !important;
  transform: none !important;
  background: var(--rs-blue) !important;
  color: #fff;
  border-left: 0 !important;
  overflow: hidden;
  visibility: hidden;
  clip-path: circle(0 at var(--rs-origin-x) var(--rs-origin-y));
  transition:
    clip-path 0.75s var(--rs-ease-in-out),
    visibility 0s linear 0.75s !important;
}

#astra-mobile-cart-drawer.astra-cart-drawer.active {
  visibility: visible;
  clip-path: circle(150vmax at var(--rs-origin-x) var(--rs-origin-y));
  transition:
    clip-path 0.85s var(--rs-ease-in-out),
    visibility 0s !important;
}

#astra-mobile-cart-drawer.astra-cart-drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23n%29%27/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 0;
}

#astra-mobile-cart-drawer.astra-cart-drawer::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 240px;
  height: 240px;
  background: var(--rs-lime);
  opacity: 0.12;
  -webkit-mask: url('rs-mark.svg') center / contain no-repeat;
  mask: url('rs-mark.svg') center / contain no-repeat;
  animation: ruota 24s linear infinite;
  pointer-events: none;
  z-index: 0;
}

#astra-mobile-cart-drawer > * {
  position: relative;
  z-index: 1;
}

/* Intestazione */
#astra-mobile-cart-drawer .astra-cart-drawer-header {
  padding: calc(18px + env(safe-area-inset-top)) 22px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}

#astra-mobile-cart-drawer .astra-cart-drawer-title {
  color: var(--rs-lime) !important;
  font-size: clamp(44px, 10vw, 60px) !important;
}

#astra-mobile-cart-drawer .astra-cart-drawer-close {
  border-color: var(--rs-lime) !important;
  color: var(--rs-lime) !important;
}

#astra-mobile-cart-drawer .astra-cart-drawer-close:hover {
  background: var(--rs-lime) !important;
  color: var(--rs-ink) !important;
}

/* Le parti entrano dopo l'apertura del cerchio */
#astra-mobile-cart-drawer .astra-cart-drawer-header,
#astra-mobile-cart-drawer .woocommerce-mini-cart,
#astra-mobile-cart-drawer .woocommerce-mini-cart__total,
#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons,
#astra-mobile-cart-drawer .woocommerce-mini-cart__empty-message,
#astra-mobile-cart-drawer .rs-empty-cart__cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.6s var(--rs-ease);
}

#astra-mobile-cart-drawer.active .astra-cart-drawer-header { transition-delay: 0.25s; }
#astra-mobile-cart-drawer.active .woocommerce-mini-cart,
#astra-mobile-cart-drawer.active .woocommerce-mini-cart__empty-message { transition-delay: 0.33s; }
#astra-mobile-cart-drawer.active .woocommerce-mini-cart__total,
#astra-mobile-cart-drawer.active .rs-empty-cart__cta { transition-delay: 0.41s; }
#astra-mobile-cart-drawer.active .woocommerce-mini-cart__buttons { transition-delay: 0.47s; }

#astra-mobile-cart-drawer.active .astra-cart-drawer-header,
#astra-mobile-cart-drawer.active .woocommerce-mini-cart,
#astra-mobile-cart-drawer.active .woocommerce-mini-cart__total,
#astra-mobile-cart-drawer.active .woocommerce-mini-cart__buttons,
#astra-mobile-cart-drawer.active .woocommerce-mini-cart__empty-message,
#astra-mobile-cart-drawer.active .rs-empty-cart__cta {
  opacity: 1;
  transform: none;
}

/* Opere nel carrello */
#astra-mobile-cart-drawer .woocommerce-mini-cart-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  animation: none;
}

#astra-mobile-cart-drawer .ast-product-image,
#astra-mobile-cart-drawer .woocommerce-mini-cart-item .ast-product-name {
  color: var(--rs-lime) !important;
  font-size: 30px !important;
}

#astra-mobile-cart-drawer .ast-mini-cart-price-wrap,
#astra-mobile-cart-drawer .ast-mini-cart-price-wrap .amount {
  color: #fff !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item img {
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.7);
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item .remove {
  color: rgba(255, 255, 255, 0.6) !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart-item .remove:hover {
  color: var(--rs-lime) !important;
}

#astra-mobile-cart-drawer .quantity.buttons_added {
  border-color: rgba(255, 255, 255, 0.7) !important;
}

#astra-mobile-cart-drawer .quantity.buttons_added .minus,
#astra-mobile-cart-drawer .quantity.buttons_added .plus,
#astra-mobile-cart-drawer .quantity.buttons_added input.qty {
  color: #fff !important;
}

#astra-mobile-cart-drawer .quantity.buttons_added .minus:hover,
#astra-mobile-cart-drawer .quantity.buttons_added .plus:hover {
  background: var(--rs-lime) !important;
  color: var(--rs-ink) !important;
}

/* Totale e pulsanti */
#astra-mobile-cart-drawer .woocommerce-mini-cart__total {
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: rgba(255, 255, 255, 0.75);
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__total .amount {
  color: var(--rs-lime) !important;
  font-size: 44px;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button {
  border-color: #fff !important;
  color: #fff !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button.checkout {
  background: var(--rs-lime) !important;
  border-color: var(--rs-lime) !important;
  color: var(--rs-ink) !important;
}

#astra-mobile-cart-drawer .woocommerce-mini-cart__buttons a.button:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--rs-ink) !important;
}

/* Carrello vuoto */
#astra-mobile-cart-drawer .woocommerce-mini-cart__empty-message {
  color: #fff !important;
  font-size: 40px;
}

#astra-mobile-cart-drawer .rs-empty-cart__cta:hover {
  background: #fff;
  color: var(--rs-ink) !important;
}

/* Sfondo dietro al pannello (desktop) */
.astra-mobile-cart-overlay {
  background: rgba(20, 24, 60, 0.35) !important;
}

@media (prefers-reduced-motion: reduce) {
  #astra-mobile-cart-drawer.astra-cart-drawer,
  #astra-mobile-cart-drawer.astra-cart-drawer.active {
    clip-path: none;
    transition: visibility 0s !important;
  }
  #astra-mobile-cart-drawer .astra-cart-drawer-header,
  #astra-mobile-cart-drawer .woocommerce-mini-cart,
  #astra-mobile-cart-drawer .woocommerce-mini-cart__total,
  #astra-mobile-cart-drawer .woocommerce-mini-cart__buttons,
  #astra-mobile-cart-drawer .woocommerce-mini-cart__empty-message,
  #astra-mobile-cart-drawer .rs-empty-cart__cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #astra-mobile-cart-drawer.astra-cart-drawer::after { animation: none; }
}

/* =====================================================================
   POPUP "OPEN CALL"
   ===================================================================== */
.rs-popup[hidden] {
  display: none !important;
}

.rs-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
}

.rs-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 36, 0.62);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.rs-popup__card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box !important;
  /* !important: altri stili del sito azzeravano il margine interno */
  padding: clamp(28px, 5vw, 48px) !important;
  background: var(--rs-blue);
  color: #fff;
  border-radius: 28px;
  isolation: isolate;
  /* chiusa: un cerchio di raggio zero al centro del bollino */
  --rs-ox: calc(100% - 40px);
  --rs-oy: calc(100% - 40px);
  clip-path: circle(0 at var(--rs-ox) var(--rs-oy));
  transition:
    clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1),
    box-shadow 0.4s ease;
}

/* Grana come menu e carrello */
.rs-popup__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url%28%23n%29%27/%3E%3C/svg%3E");
}

.rs-popup.is-open .rs-popup__backdrop { opacity: 1; }
.rs-popup.is-open .rs-popup__card {
  clip-path: circle(var(--rs-r, 150%) at var(--rs-ox) var(--rs-oy));
  transition: clip-path 0.85s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.4s ease;
}

/* a cerchio aperto la scheda torna "libera": compaiono ombra e filo lime (il ritaglio li nasconderebbe) */
.rs-popup.is-settled .rs-popup__card {
  clip-path: none;
  box-shadow:
    0 0 0 1.5px rgba(204, 215, 51, 0.7),
    0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

/* ---- Il bollino con la R ---- */
.rs-popup__bubble {
  position: fixed;
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rs-blue);
  box-shadow: 0 0 0 1.5px rgba(204, 215, 51, 0.7), 0 18px 40px -14px rgba(0, 0, 0, 0.6);
  transform: scale(0) rotate(-120deg);
  opacity: 0;
  pointer-events: none;
}

.rs-popup__bubble-mark {
  width: 64%;
  height: 64%;
  background: var(--rs-lime);
  -webkit-mask: var(--rs-mark) center / contain no-repeat;
  mask: var(--rs-mark) center / contain no-repeat;
  animation: ruota 6s linear infinite;
}

/* spunta con un rimbalzo, come un adesivo */
.rs-popup.is-bubble .rs-popup__bubble {
  animation: rs-bubble-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* quando la scheda si apre il bollino si "scioglie" dentro il cerchio */
.rs-popup.is-open .rs-popup__bubble {
  animation: none;
  opacity: 0;
  transform: scale(1.6);
  transition: opacity 0.35s ease 0.1s, transform 0.5s var(--rs-ease);
}

/* chiusura: il bollino ricompare e cade via */
.rs-popup.is-bubble:not(.is-open) .rs-popup__bubble {
  opacity: 1;
  transform: none;
}

.rs-popup.is-leaving .rs-popup__bubble {
  animation: rs-bubble-drop 0.45s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes rs-bubble-pop {
  0% { opacity: 0; transform: scale(0) rotate(-120deg); }
  60% { opacity: 1; transform: scale(1.12) rotate(8deg); }
  80% { transform: scale(0.95) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes rs-bubble-drop {
  0% { opacity: 1; transform: none; }
  25% { transform: translateY(-10px) rotate(-8deg); }
  100% { opacity: 0; transform: translateY(140px) rotate(25deg) scale(0.8); }
}

/* Le pillole dei vantaggi saltano dentro con un effetto molla */
.rs-popup__perks li {
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.rs-popup.is-open .rs-popup__perks li { transform: none; opacity: 1; }
.rs-popup.is-open .rs-popup__perks li:nth-child(1) { transition-delay: 0.55s; }
.rs-popup.is-open .rs-popup__perks li:nth-child(2) { transition-delay: 0.62s; }
.rs-popup.is-open .rs-popup__perks li:nth-child(3) { transition-delay: 0.69s; }
.rs-popup.is-open .rs-popup__perks li:nth-child(4) { transition-delay: 0.76s; }

/* La freccia di "Candidati" fa un colpetto quando la scheda è pronta */
.rs-popup.is-settled .rs-popup__cta span {
  animation: rs-cta-nudge 1.2s var(--rs-ease) 0.2s 2;
}

@keyframes rs-cta-nudge {
  0%, 100% { transform: none; }
  40% { transform: translateX(7px); }
  60% { transform: translateX(2px); }
}

/* Contenuti che entrano uno dopo l'altro */
.rs-popup__card > :not(.rs-popup__mark):not(.rs-popup__close) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.6s var(--rs-ease);
}

.rs-popup.is-open .rs-popup__card > :not(.rs-popup__mark):not(.rs-popup__close) {
  opacity: 1;
  transform: none;
}

.rs-popup.is-open .rs-popup__eyebrow { transition-delay: 0.35s; }
.rs-popup.is-open .rs-popup__title { transition-delay: 0.42s; }
.rs-popup.is-open .rs-popup__text { transition-delay: 0.49s; }
.rs-popup.is-open .rs-popup__perks { transition-delay: 0.52s; }
.rs-popup.is-open .rs-popup__actions { transition-delay: 0.82s; }

.rs-popup__mark {
  position: absolute;
  right: -46px;
  top: -46px;
  z-index: -1;
  width: 200px;
  height: 200px;
  background: var(--rs-lime);
  opacity: 0.16;
  -webkit-mask: var(--rs-mark) center / contain no-repeat;
  mask: var(--rs-mark) center / contain no-repeat;
  animation: ruota 24s linear infinite;
  pointer-events: none;
}

.rs-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 2px solid var(--rs-lime) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--rs-lime) !important;
  cursor: pointer;
  transition: transform 0.4s var(--rs-ease), background-color 0.25s, color 0.25s;
}

.rs-popup__close:hover {
  transform: rotate(90deg);
  background: var(--rs-lime) !important;
  color: var(--rs-ink) !important;
}

.rs-popup__eyebrow {
  margin: 0 0 14px;
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.rs-popup__title {
  margin: 0 0 16px !important;
  padding-right: 40px;
  font-family: var(--rs-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(38px, 7vw, 56px) !important;
  line-height: 1 !important;
  color: var(--rs-lime) !important;
  letter-spacing: -0.01em;
}

.rs-popup__title em {
  display: block;
  font-style: italic;
  color: #fff;
}

.rs-popup__text {
  margin: 0 0 22px;
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.rs-popup__perks {
  list-style: none;
  margin: 0 0 28px !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rs-popup__perks li {
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 13px;
  color: #fff;
}

.rs-popup__perks li strong {
  font-weight: 600;
  color: var(--rs-lime);
}

.rs-popup__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.rs-popup__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--rs-lime);
  color: var(--rs-ink) !important;
  text-decoration: none !important;
  font-family: var(--rs-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1;
  transition: background-color 0.25s, color 0.25s, transform 0.15s;
}

.rs-popup__cta span {
  font-style: normal;
  transition: transform 0.35s var(--rs-ease);
}

.rs-popup__cta:hover {
  background: #fff;
}

.rs-popup__cta:hover span {
  transform: translateX(5px);
}

.rs-popup__cta:active {
  transform: scale(0.97);
}

.rs-popup__later {
  padding: 4px 0 !important;
  border: 0 !important;
  background: none !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-family: var(--rs-sans) !important;
  font-weight: 300 !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.rs-popup__later:hover {
  color: var(--rs-lime) !important;
}

html.rs-popup-open,
html.rs-popup-open body {
  overflow: hidden;
}

/* Telefono: pannello che sale dal basso */
@media (max-width: 600px) {
  .rs-popup {
    place-items: end center;
    padding: 0;
  }

  .rs-popup__card {
    width: 100%;
    max-height: 88dvh;
    border-radius: 28px 28px 0 0;
    padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
  }

  .rs-popup__bubble {
    right: calc(50% - 38px);
  }

  .rs-popup__cta {
    flex: 1 1 100%;
    justify-content: center;
  }

  .rs-popup__later {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-popup__card,
  .rs-popup__card > *,
  .rs-popup__perks li {
    transition: opacity 0.2s ease !important;
    transform: none !important;
    clip-path: none !important;
  }
  .rs-popup__card { opacity: 0; }
  .rs-popup.is-open .rs-popup__card { opacity: 1; }
  .rs-popup__bubble { display: none; }
  .rs-popup__mark,
  .rs-popup__cta span { animation: none !important; }
}

.rs-popup__card:focus,
.rs-popup__card:focus-visible {
  outline: none !important;
}

/* =====================================================================
   ARTISTI IN ORDINE CASUALE (Content Views)
   Prima che lo script li mescoli si vedono solo i primi 4 (niente salti di layout).
   ===================================================================== */
.pt-cv-view:not(.rs-cv-shuffled) .pt-cv-page[data-cvc="4"] > .pt-cv-content-item:nth-child(n + 5),
.pt-cv-view .pt-cv-content-item.rs-cv-extra {
  display: none !important;
}

/* Riepilogo nel carrello: stesso respiro interno del riepilogo del checkout */
.wc-block-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
  padding: 4px 18px 8px !important;
}

.wc-block-cart .wc-block-cart__totals-title {
  padding: 14px 0 !important;
  margin: 0 !important;
}

/* =====================================================================
   PAGINA RECESSO (/recesso/)
   ===================================================================== */
/* Il contenitore di Astra è flessibile e su desktop allineato a sinistra:
   qui prende tutta la larghezza, così la colonna si centra sempre */
body.rs-recesso-page #content > .ast-container {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

body.rs-recesso-page #primary.rs-recesso {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 100%;
  float: none;
  margin: 0 !important;
  padding: 0 !important;
}

.rs-recesso .site-main {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px clamp(56px, 8vw, 120px);
}

/* Su desktop sotto l'header c'è già la fascia "Ogni vendita… Free shipping": basta poco spazio in più */
@media (min-width: 922px) {
  .rs-recesso .site-main {
    padding-top: 16px;
  }
}

.rs-recesso__eyebrow {
  margin: 0 0 10px;
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rs-recesso__title {
  margin: 0 0 20px !important;
  font-family: var(--rs-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(48px, 8vw, 96px) !important;
  line-height: 1 !important;
}

.rs-recesso__steps {
  display: flex;
  gap: 10px;
  margin: 0 0 28px !important;
  padding: 0 !important;
  list-style: none;
}

.rs-recesso__steps li {
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  font-family: var(--rs-sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
}

.rs-recesso__steps li.is-current {
  background: var(--rs-ink);
  border-color: var(--rs-ink);
  color: var(--rs-lime);
}

.rs-recesso__steps li.is-done {
  background: var(--rs-lime);
  border-color: var(--rs-lime);
  color: var(--rs-ink);
}

.rs-recesso__card {
  padding: clamp(24px, 4vw, 44px);
  border: var(--rs-line);
  font-family: var(--rs-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  animation: rs-notice-in 0.5s var(--rs-ease) both;
}

.rs-recesso__lead {
  margin: 0 0 24px;
  font-size: 18px;
}

.rs-recesso__field {
  display: block;
  margin: 0 0 22px;
}

.rs-recesso__field span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.7);
}

.rs-recesso__field input,
.rs-recesso__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 8px 2px !important;
  border: 0 !important;
  border-bottom: var(--rs-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--rs-sans) !important;
  font-size: 17px !important;
  text-align: left !important;
}

.rs-recesso__field input:focus,
.rs-recesso__field textarea:focus {
  outline: none !important;
  border-bottom-color: var(--rs-blue) !important;
  background: rgba(255, 255, 255, 0.25) !important;
}

.rs-recesso__field small,
.rs-recesso__hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
}

.rs-recesso__trap {
  position: absolute !important;
  left: -9999px !important;
}

.rs-recesso__summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.rs-recesso__summary dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.6);
}

.rs-recesso__summary dd {
  margin: 0;
  font-family: var(--rs-serif);
  font-size: 22px;
  line-height: 1.2;
}

.rs-recesso__items {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.rs-recesso__items legend {
  margin-bottom: 8px;
  font-family: var(--rs-serif);
  font-size: 24px;
}

.rs-recesso__items label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.rs-recesso__items input {
  width: 18px;
  height: 18px;
  accent-color: var(--rs-ink);
}

.rs-recesso__warn {
  padding: 12px 16px;
  border-left: 3px solid var(--rs-blue);
  background: rgba(68, 81, 158, 0.08);
}

.rs-recesso__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 8px;
}

.rs-recesso__back {
  color: var(--rs-ink) !important;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rs-recesso__card .woocommerce-error,
.rs-recesso .woocommerce-error {
  margin-bottom: 20px;
}

/* =====================================================================
   PAGINA OPERA, TELEFONO: visualizzatore 3D a filo dei bordi dello schermo
   ===================================================================== */
@media (max-width: 768px) {
  /* attaccato anche all'header: niente margine sopra */
  .single-product .site .site-content #primary .ast-woocommerce-container,
  .single-product .ast-woocommerce-container {
    margin-top: 0 !important;
  }

  .single-product .product-image-column {
    min-height: 0 !important;
  }

  .single-product .woocommerce-product-gallery--viewer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    /* il visualizzatore dimensiona l'opera sull'altezza: più alto = opera che riempie la larghezza */
    height: min(142vw, 78vh) !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
}

/* La pagina recesso è "virtuale": WordPress la tratta come home (sfondo blu). Torna grigia. */
body.rs-recesso-page,
body.rs-recesso-page .site-content {
  background: var(--rs-gray) !important;
}

/* =====================================================================
   TELEFONO: niente "torna su"
   ===================================================================== */
@media (max-width: 768px) {
  #ast-scroll-top {
    display: none !important;
  }
}

/* =====================================================================
   ICONE RUVIDASTAMPA (al posto di quelle di Astra/WordPress)
   Disegnate come set: tratto tondo 1.8, griglia 24. Usate come maschere,
   quindi prendono il colore del testo (currentColor) e i suoi hover.
   ===================================================================== */
:root {
  --rs-ico-search: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2210.5%22 cy=%2210.5%22 r=%226.75%22/%3E%3Cpath d=%22M15.6 15.6 20.25 20.25%22/%3E%3Cpath d=%22M7.4 9.2a3.4 3.4 0 0 1 2.6-2.3%22/%3E%3C/svg%3E");
  --rs-ico-bag: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4.9 8.25h14.2l-1.15 11.1a1.75 1.75 0 0 1-1.74 1.57H7.79a1.75 1.75 0 0 1-1.74-1.57Z%22/%3E%3Cpath d=%22M8.75 8.25V7a3.25 3.25 0 0 1 6.5 0v1.25%22/%3E%3Cpath d=%22M9.4 13.1a2.6 2.6 0 0 0 5.2 0%22/%3E%3C/svg%3E");
  --rs-ico-user: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%223.9%22/%3E%3Cpath d=%22M4.5 20.6c.6-4.1 3.7-6.6 7.5-6.6s6.9 2.5 7.5 6.6%22/%3E%3C/svg%3E");
  --rs-ico-menu: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.75 9h16.5%22/%3E%3Cpath d=%22M9.75 15h10.5%22/%3E%3C/svg%3E");
  --rs-ico-up: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 19.5V5%22/%3E%3Cpath d=%22m6 11 6-6 6 6%22/%3E%3C/svg%3E");
}

.ast-search-icon .ast-icon,
.ast-header-woo-cart .ast-icon-shopping-cart .ast-icon,
.ast-header-account-link .ahfb-svg-iconset,
.ast-header-account-wrap > a > .ahfb-svg-iconset,
.menu-toggle .mobile-menu-toggle-icon .ahfb-svg-iconset,
#ast-scroll-top .ast-icon {
  position: relative;
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 0 !important;
  vertical-align: middle;
}

.ast-search-icon .ast-icon svg,
.ast-header-woo-cart .ast-icon-shopping-cart .ast-icon svg,
.ast-header-account-link .ahfb-svg-iconset svg,
.ast-header-account-wrap > a > .ahfb-svg-iconset svg,
.menu-toggle .mobile-menu-toggle-icon .ahfb-svg-iconset svg,
#ast-scroll-top .ast-icon svg {
  display: none !important;
}

.ast-search-icon .ast-icon::before,
.ast-header-woo-cart .ast-icon-shopping-cart .ast-icon::before,
.ast-header-account-link .ahfb-svg-iconset::before,
.ast-header-account-wrap > a > .ahfb-svg-iconset::before,
.menu-toggle .mobile-menu-toggle-icon .ahfb-svg-iconset::before,
#ast-scroll-top .ast-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--rs-ico) center / contain no-repeat;
  mask: var(--rs-ico) center / contain no-repeat;
  transition: transform 0.35s var(--rs-ease);
}

.ast-search-icon .ast-icon { --rs-ico: var(--rs-ico-search); }
.ast-header-woo-cart .ast-icon-shopping-cart .ast-icon { --rs-ico: var(--rs-ico-bag); }
.ast-header-account-link .ahfb-svg-iconset,
.ast-header-account-wrap > a > .ahfb-svg-iconset { --rs-ico: var(--rs-ico-user); }
.menu-toggle .mobile-menu-toggle-icon .ahfb-svg-iconset { --rs-ico: var(--rs-ico-menu); width: 34px !important; height: 34px !important; }
#ast-scroll-top .ast-icon { --rs-ico: var(--rs-ico-up); width: 24px !important; height: 24px !important; }

/* Piccoli gesti al passaggio del mouse */
@media (hover: hover) {
  .ast-search-icon:hover .ast-icon::before { transform: rotate(-12deg) scale(1.08); }
  .ast-header-woo-cart:hover .ast-icon-shopping-cart .ast-icon::before { transform: translateY(-2px) rotate(-6deg); }
  .ast-header-account-wrap:hover .ahfb-svg-iconset::before { transform: scale(1.08); }
  .menu-toggle:hover .mobile-menu-toggle-icon .ahfb-svg-iconset::before { transform: scaleX(-1); }
  #ast-scroll-top:hover .ast-icon::before { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .ast-search-icon .ast-icon::before,
  .ast-header-woo-cart .ast-icon-shopping-cart .ast-icon::before,
  .ast-header-account-wrap .ahfb-svg-iconset::before,
  .menu-toggle .mobile-menu-toggle-icon .ahfb-svg-iconset::before,
  #ast-scroll-top .ast-icon::before { transition: none; }
}


/* =====================================================================
   HEADER: logo staccato dal bordo su tablet e telefono (stesso margine del contenuto)
   ===================================================================== */
@media (max-width: 921px) {
  #ast-mobile-header .site-branding {
    margin-left: 20px !important;
  }
}

/* =====================================================================
   HEADER DESKTOP: riempimento lime che sale (e scende uscendo) su tutte le celle
   Astra colorava lo sfondo di colpo in hover, così si vedeva solo lo svuotamento.
   ===================================================================== */
@media (min-width: 922px) {
  #ast-desktop-header .main-header-menu > .menu-item > .menu-link:hover,
  #ast-desktop-header .main-header-menu > .menu-item > .menu-link:focus-visible {
    background-color: transparent !important;
  }

  #ast-desktop-header .ast-header-search,
  #ast-desktop-header .ast-header-woo-cart,
  #ast-desktop-header .ast-header-account {
    background-image: linear-gradient(var(--rs-lime), var(--rs-lime));
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 0;
    transition: background-size 0.4s var(--rs-ease);
  }

  #ast-desktop-header .ast-header-search:hover,
  #ast-desktop-header .ast-header-woo-cart:hover,
  #ast-desktop-header .ast-header-account:hover,
  #ast-desktop-header .ast-header-search:focus-within,
  #ast-desktop-header .ast-header-account:focus-within {
    background-size: 100% 100%;
  }
}

