
/* AUNOVA – Grafica Offerte DEFINITIVA v2.0
   Mantiene immagini e contenuti esistenti. Solo presentazione. */

body:has(.aunova-offerte-page),
body.page-id-0 {
  --aunova-blue:#008CFF;
  --aunova-blue2:#006FD6;
  --aunova-bg:#061019;
  --aunova-card:#07131d;
  --aunova-line:rgba(255,255,255,.20);
}

/* Sfondo pagina */
body.page-offerte,
body:has(.aunova-offerte-marker) {
  background:
    radial-gradient(circle at 78% 8%, rgba(0,140,255,.16), transparent 28%),
    linear-gradient(135deg,#07131d 0%,#02070b 62%,#07131d 100%) !important;
}

/* Contenitore principale */
.aunova-offerte-page,
body.page-offerte .elementor,
body.page-offerte .site-main {
  color:#fff;
}

/* Griglia: 3 colonne */
.aunova-offerte-page .products,
.aunova-offerte-page .woocommerce-loop-product__items,
body.page-offerte ul.products,
body.page-offerte .products {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  margin:0 !important;
}

/* Card */
body.page-offerte .product,
body.page-offerte li.product,
body.page-offerte .offer-card,
.aunova-offerte-page .product,
.aunova-offerte-page .offer-card {
  position:relative !important;
  overflow:hidden !important;
  background:linear-gradient(180deg,#0a1823,#061019) !important;
  border:1px solid rgba(255,255,255,.22) !important;
  border-radius:16px !important;
  box-shadow:0 12px 34px rgba(0,0,0,.22) !important;
  padding:0 !important;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

body.page-offerte .product:hover,
body.page-offerte li.product:hover,
.aunova-offerte-page .product:hover {
  transform:translateY(-3px);
  border-color:rgba(0,140,255,.65) !important;
  box-shadow:0 18px 45px rgba(0,0,0,.32) !important;
}

/* Foto: NON sostituita */
body.page-offerte .product img,
body.page-offerte li.product img,
.aunova-offerte-page .product img,
.aunova-offerte-page .offer-image img {
  width:100% !important;
  height:270px !important;
  object-fit:cover !important;
  display:block !important;
}

/* Fascia superiore blu */
body.page-offerte .product::before,
body.page-offerte li.product::before,
.aunova-offerte-page .product::before {
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:4px;
  background:linear-gradient(90deg,var(--aunova-blue2),var(--aunova-blue));
  z-index:3;
}

/* Badge noleggio */
body.page-offerte .product .badge,
body.page-offerte .product .onsale,
body.page-offerte .product .offer-badge,
.aunova-offerte-page .offer-badge {
  background:linear-gradient(135deg,#174d8f,#006fd6) !important;
  color:#fff !important;
  border-radius:9px !important;
  font-weight:800 !important;
  letter-spacing:.5px !important;
}

/* Titoli */
body.page-offerte .product .woocommerce-loop-product__title,
body.page-offerte .product h2,
body.page-offerte .product h3,
body.page-offerte .product .offer-title,
.aunova-offerte-page .offer-title {
  color:#fff !important;
  font-weight:800 !important;
}

/* Prezzi */
body.page-offerte .product .price,
body.page-offerte .product .offer-price,
.aunova-offerte-page .offer-price {
  color:var(--aunova-blue) !important;
  font-weight:900 !important;
}

/* Pulsanti */
body.page-offerte .product a.button,
body.page-offerte .product .button,
body.page-offerte .product .offer-button,
.aunova-offerte-page .offer-button {
  background:linear-gradient(135deg,#0098ff,#006fd6) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:10px !important;
  font-weight:800 !important;
  letter-spacing:.3px !important;
  text-transform:uppercase !important;
  box-shadow:none !important;
}

/* Separatore e dati */
body.page-offerte .offer-meta,
body.page-offerte .offer-specs,
.aunova-offerte-page .offer-meta,
.aunova-offerte-page .offer-specs {
  border-top:1px solid rgba(255,255,255,.20);
}

/* Header/hero se presenti */
body.page-offerte h1 {
  color:#fff !important;
  font-weight:900 !important;
}
body.page-offerte p {
  color:rgba(255,255,255,.84);
}

/* Responsivo */
@media (max-width: 900px){
  .aunova-offerte-page .products,
  body.page-offerte ul.products,
  body.page-offerte .products {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width: 620px){
  .aunova-offerte-page .products,
  body.page-offerte ul.products,
  body.page-offerte .products {
    grid-template-columns:1fr !important;
  }
  body.page-offerte .product img,
  body.page-offerte li.product img,
  .aunova-offerte-page .product img {
    height:230px !important;
  }
}
