/* ==========================
   Aste Dario Moschetta
   Versione completa 1:1 inline → esterno
   Include: single-art_auction.php + single-auction_lot.php
========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Forza Poppins su tutte le sezioni delle pagine d’asta e lotto */
body.single-art_auction *,
body.single-auction_lot * {
  font-family: 'Poppins', sans-serif !important;
  color: #222;
  background: none;
  font-weight: 400;
  line-height: 1.5;
}


/* --------------------------
   SEZIONE PRINCIPALE ASTA
--------------------------- */

.dm-auction-page {
  font-family: 'Poppins', sans-serif;
}

.dm-auction-page h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dm-auction-page p {
  font-size: 15px;
  color: #444;
}

.dm-auction-page .subtitle {
  font-size: 18px;
  color: #555;
  margin: 0 0 25px 0;
}

.dm-auction-header {
  max-width: 1600px;
  margin: auto;
  padding: 0 60px 20px;
}

.dm-auction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  font-size: 15px;
}

.dm-auction-meta a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
}
.dm-auction-meta a:hover { opacity: 0.7; }

/* --------------------------
   LISTA LOTTI
--------------------------- */

.dm-lot-list {
  max-width: 1600px;
  margin: auto;
  padding: 0 60px 80px;
}

.dm-lot-item {
  border-top: 1px solid #000;
  padding: 25px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.dm-lot-item img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #eee;
}

.dm-lot-img {
  flex: 0 0 28%;
  max-width: 380px;
}

.dm-lot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dm-lot-info small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  font-size: 13px;
}

.dm-lot-info h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0 4px;
}

.dm-lot-info p {
  margin: 0 0 10px;
  font-size: 15px;
  color: #333;
}

.dm-lot-info dl {
  margin-top: 8px;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.dm-lot-info dt {
  display: inline;
  font-weight: 400;
}

.dm-lot-info dd {
  display: inline;
  margin: 0;
}

.dm-lot-follow a {
  display: inline-block;
  border: 1px solid #000;
  padding: 8px 28px;
  text-transform: uppercase;
  font-size: 13px;
  color: #000;
  text-decoration: none;
  transition: 0.25s ease;
}
.dm-lot-follow a:hover {
  background: #000;
  color: #fff;
}

/* --------------------------
   PAGINA SINGOLO LOTTO
--------------------------- */

.dm-lot-hero {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0px 40px 80px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
  justify-content: center;
}
@media (max-width: 900px) {
  .dm-lot-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }
}

.dm-lot-hero__media img {
  width: 88%;
  height: auto;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  display: block;
  margin: 0 auto;
}

.dm-breadcrumb {
  color:#777;
  font-size:14px;
  margin: 0 0 10px;
}
.dm-breadcrumb a { color:#777; text-decoration:none; }
.dm-breadcrumb a:hover { text-decoration:underline; }

.dm-title {
  color:#000;
  font-size:34px;
  font-weight:600;
  margin: 10px 0 5px;
  line-height:1.2;
}
.dm-artist {
  font-size:18px;
  color:#333;
  margin: 0 0 22px;
}

.dm-specs {
  width:100%;
  border-collapse:collapse;
  margin: 0 0 22px;
}
.dm-specs td {
  padding:12px 16px;
  border-top:1px solid #111;
  border-bottom:1px solid #111;
  font-size:15px;
  font-weight:600;
}
.dm-specs td:first-child {
  width:45%;
  text-transform:uppercase;
  color:#555;
}

/* === BOTTONI LOTTO - stile finale === */

.dm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0 30px;
}

.dm-btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #111;
  transition: all 0.25s ease;
  cursor: pointer;
}

/* 1️⃣ "Fai un'offerta" - nero pieno */
.dm-btn--primary {
  background: #111;
  color: #fff;
}
.dm-btn--primary:hover {
  background: #fff;
  color: #111;
}

/* 2️⃣ "Segui" e "Fai una domanda" - bordo nero */
.dm-btn--ghost {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}
.dm-btn--ghost:hover {
  background: #111;
  color: #fff;
}

.dm-desc {
  font-size:15px;
  color:#222;
  line-height:1.55;
}

/* --------------------------
   GALLERY
--------------------------- */
.dm-gallery {
  max-width: 1200px;
  margin: 20px auto 80px;
  padding: 0 24px;
  text-align:center;
}
.dm-gallery h2 {
  font-size:26px;
  font-weight:600;
  color:#000;
  margin-bottom:18px;
}
.dm-grid {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  justify-content:center;
}
.dm-grid img {
  width:300px;
  max-width:100%;
  height:auto;
  background:#fafafa;
  border:1px solid #eee;
  padding:8px;
  transition: transform .18s ease;
}
.dm-grid img:hover { transform: scale(1.03); }

/* --------------------------
   BLOCCO BIOGRAFIA NERO
--------------------------- */
.dm-artist-block-full {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: #111;
  color: #fff;
  padding: 80px 10%;
}
.dm-artist-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.dm-artist-left h3 {
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 8px;
}
.dm-years {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 20px;
  display: block;
}
.dm-btn-white {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 26px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
}
.dm-btn-white:hover {
  background: #fff;
  color: #111;
}
.dm-artist-right p {
  font-size: 16px;
  line-height: 1.7;
  opacity: .95;
}
@media (max-width: 900px) {
  .dm-artist-block-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --------------------------
   LIGHTBOX
--------------------------- */
.dm-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.35s ease, transform 0.35s ease;
  padding: 60px 0;
}
.dm-lightbox.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}
.dm-lightbox-img {
  max-width: 88%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.dm-lightbox.active .dm-lightbox-img {
  opacity: 1;
  transform: scale(1);
}
.dm-lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  transition: opacity .2s;
}
.dm-lightbox-close:hover { opacity: 0.7; }
.dm-lightbox-prev,
.dm-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  padding: 10px 20px;
  transition: opacity .2s;
}
.dm-lightbox-prev:hover,
.dm-lightbox-next:hover { opacity: .7; }
.dm-lightbox-prev { left: 40px; }
.dm-lightbox-next { right: 40px; }

@media (max-width: 768px) {
  .dm-lightbox-prev,
  .dm-lightbox-next {
    font-size: 32px;
    left: 20px;
    right: 20px;
  }
  .dm-lightbox-close { top: 20px; right: 25px; font-size: 28px; }
}

/* === FIX BIOGRAFIA E LIGHTBOX – versione pulita === */

/* Blocchi biografia neri */
body.single-auction_lot .dm-artist-block-full {
  background: #111;
  color: #fff;
}
body.single-auction_lot .dm-artist-block-full a,
body.single-auction_lot .dm-artist-block-full p,
body.single-auction_lot .dm-artist-block-full h3,
body.single-auction_lot .dm-artist-block-full span {
  color: #fff;
}

/* Lightbox */
body.single-auction_lot .dm-lightbox {
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 9999;
}

body.single-auction_lot .dm-lightbox.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

body.single-auction_lot .dm-lightbox-img {
  max-width: 88%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.single-auction_lot .dm-lightbox.active .dm-lightbox-img {
  opacity: 1;
  transform: scale(1);
}

html, body { overflow-x: hidden; }

/* --- Fix stile pulsanti azioni lotto (override tema) --- */
body.single-auction_lot .dm-actions .dm-btn.dm-btn--primary,
body.single-art_auction .dm-actions .dm-btn.dm-btn--primary{
  background:#111;
  color:#fff;
  border-color:#111;
}
body.single-auction_lot .dm-actions .dm-btn.dm-btn--primary:hover,
body.single-art_auction .dm-actions .dm-btn.dm-btn--primary:hover{
  background:#fff;
  color:#111;
}

/* “Segui” e “Fai una domanda”: bordo nero, fondo bianco; hover invertito */
body.single-auction_lot .dm-actions .dm-btn.dm-btn--ghost,
body.single-art_auction .dm-actions .dm-btn.dm-btn--ghost{
  background:#fff;
  color:#111;
  border-color:#111;
}
body.single-auction_lot .dm-actions .dm-btn.dm-btn--ghost:hover,
body.single-art_auction .dm-actions .dm-btn.dm-btn--ghost:hover{
  background:#111;
  color:#fff;
}

/* --- Fix pulsante "Scopri artista" nel blocco nero --- */
body.single-auction_lot .dm-btn-white,
body.single-art_auction .dm-btn-white {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 26px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
}

body.single-auction_lot .dm-btn-white:hover,
body.single-art_auction .dm-btn-white:hover {
  background: #fff;
  color: #111; /* 👈 testo diventa nero, visibile sul bianco */
}

/* ==========================
   FIX MENU TRASPARENTE SU PAGINE ASTA
   Deve restare bianco anche in sticky
========================== */

/* Forza sfondo bianco al menu sempre */
body.single-art_auction .site-header,
body.single-auction_lot .site-header {
  background-color: #fff !important;
  box-shadow: none !important;
  position: sticky !important;
  top: 0;
  z-index: 9999;
  transition: none !important;
}

/* Quando scrolla (sticky), resta identico */
body.single-art_auction .site-header.is_stuck,
body.single-auction_lot .site-header.is_stuck {
  background-color: #fff !important;
  box-shadow: none !important;
}

/* Evita qualsiasi overlay o trasparenza del tema GeneratePress */
body.single-art_auction .main-navigation,
body.single-auction_lot .main-navigation {
  background: #fff !important;
}

body.single-art_auction .inside-header,
body.single-auction_lot .inside-header {
  background: #fff !important;
  box-shadow: none !important;
}

/* Correzione eventuale ombra sotto menu (rimuove shadow globale) */
body.single-art_auction .site-header::after,
body.single-auction_lot .site-header::after {
  display: none !important;
  box-shadow: none !important;
}

/* Testo, link e logo sempre visibili (nero su bianco) */
body.single-art_auction .main-navigation a,
body.single-auction_lot .main-navigation a {
  color: #000 !important;
}
body.single-art_auction .main-navigation a:hover,
body.single-auction_lot .main-navigation a:hover {
  opacity: 0.7;
}

/* === BID SYSTEM (AJAX) === */
.dm-bid-box { 
  margin-top: 20px; 
  display: flex; 
  gap: 10px; 
  align-items: center; 
}
.dm-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}
.dm-bid-message {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}
.dm-bid-message.success { color: #2e7d32; }
.dm-bid-message.error { color: #c62828; }
.dm-bid-message.lower { color: #ff9800; }

.dm-bid-green {
  color: #1aa600 !important;
  font-weight: 600;
  transition: color 0.4s ease;
}

/* === Sposta DM User Menu accanto al carrello === */
.dm-user-menu {
  position: absolute !important;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  z-index: 999;
}

/* === Fix per pagine Aste (header più basso) === */
body.single-auction_lot .dm-user-menu,
body.single-art_auction .dm-user-menu,
body.post-type-archive-art_auction .dm-user-menu {
  top: 40%; /* più alto del 50%, adattato al menu aste */
  transform: translateY(-40%);
}

/* === Mobile === */
@media(max-width: 1024px) {
  .dm-user-menu {
    position: static !important;
    transform: none;
    margin-top: 10px;
    display: block;
    text-align: right;
  }
}

/* === Posiziona il menu utente dopo il carrello === */
.dm-user-menu {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  right: -100px; /* sposta più a destra del carrello */
  z-index: 9999;
}

/* === Adatta su pagine Aste (header più basso) === */
body.single-auction_lot .dm-user-menu,
body.single-art_auction .dm-user-menu,
body.post-type-archive-art_auction .dm-user-menu {
  top: 45%;
  transform: translateY(-45%);
}

/* === Mobile: torna normale === */
@media(max-width: 1024px) {
  .dm-user-menu {
    position: static !important;
    transform: none;
    margin-top: 10px;
    display: block;
    text-align: right;
  }
}

.dm-user-icon svg {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  transition: all 0.25s ease;
}

.dm-user-icon svg:hover {
  transform: scale(1.08);
  stroke-width: 1.8;
}

.dm-closed-banner {
  background: #fce8e6;
  color: #b71c1c;
  border: 1px solid #e57373;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  margin: 20px 0;
  font-family: "Poppins", sans-serif;
}


/* === FORM STYLE PULITO E COERENTE === */
.dm-form {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #333;
  letter-spacing: 0.02em;
}

.dm-row {
  margin-bottom: 18px;
}

.dm-label {
  display: block;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.dm-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: all 0.2s ease;
}

.dm-input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* === BOTTONI === */
.dm-btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.dm-btn-primary:hover {
  background: #222;
}

/* === OCCHIO === */
.dm-pass-wrap {
  position: relative;
}

.dm-pass-wrap .dm-input {
  padding-right: 44px !important; /* margine per l’icona */
}

.dm-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  border: none !important;
  background: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  outline: none !important;
  box-shadow: none !important;

  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.dm-pass-toggle:hover {
  opacity: 1;
  background: none !important;
}
.dm-pass-toggle:focus {
  outline: none !important;
  background: none !important;
  box-shadow: none !important;
}

.dm-pass-toggle svg {
  stroke: #444;
  fill: none;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* === ALERT === */
.dm-alert {
  margin: 10px 0 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: "Poppins", sans-serif;
}

.dm-alert.success {
  background: #e9f8ef;
  color: #156a36;
}

.dm-alert.error {
  background: #fde8e7;
  color: #a12222;
}


/* === DM TABLE MARTINI STYLE – refined === */
.Table--martini {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
  font-size: 16px; /* testo leggermente più grande */
  margin: 28px 0;
  color: #111;
  border-top: 2px solid #111; /* riga superiore più spessa */
}

.Table--martini tr {
  border-bottom: 1px solid #111;
}

/* === FIX FONT SIZE TABLE MARTINI === */
.Table--martini td {
  font-size: 17px !important;
  line-height: 1.6;
}
.Table--martini td:first-child {
  font-weight: 600 !important;
}
.Table--martini td:last-child {
  font-weight: 600 !important;
}

.Table--martini .bg-grey {
  background: #f3f3f3;
}

.Table--martini .bg-grey td:first-child,
.Table--martini .bg-grey td:last-child {
  font-weight: 700;
}

.dm-bid-green {
  color: #3aaa35;
}

.dm-offers {
  font-size: 15px;
  font-weight: 400;
  color: #555;
}

.dm-lot-number {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  margin-bottom: 6px;
  letter-spacing: 1px;
}







/* ==========================
   RESPONSIVE FIX – PAGINA ASTA MOBILE (SPAZIO RIDOTTO)
========================== */

@media (max-width: 768px) {

  /* Intestazione più compatta */
.dm-auction-header {
  padding-top: 20px !important; /* riduce lo spazio sopra */
}

.dm-auction-header h1 {
  font-size: 36px;
  margin-bottom: 6px;
}

  .dm-auction-header .subtitle {
    font-size: 16px;
    margin-bottom: 10px;
  }

  /* Lista lotti – meno spazio sopra e sotto */
  .dm-lot-list {
    padding: 0 18px 40px !important;
    margin-top: 6px;
  }

  .dm-lot-item {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 0;
  }

  /* Immagine centrata e proporzionata */
  .dm-lot-img {
    flex: none;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .dm-lot-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* Info compatte */
  .dm-lot-info {
    width: 100%;
  }

  .dm-lot-info h3 {
    font-size: 19px;
    margin: 4px 0;
  }

  .dm-lot-info p {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .dm-lot-info dl {
    margin-top: 4px;
    font-size: 14px;
  }

  /* Pulsante "Watch" centrato */
  .dm-lot-follow {
    margin-top: 8px;
    text-align: center;
    width: 100%;
  }

  .dm-lot-follow a {
    display: inline-block;
    padding: 9px 26px;
    font-size: 13px;
  }

  /* Rimuove spazio bianco tra i lotti */
  .dm-lot-item + .dm-lot-item {
    margin-top: 4px;
  }

  /* Blocca qualsiasi overflow */
  html, body {
    overflow-x: hidden !important;
  }
}

/* ==========================
   FIX HEADER MOBILE – ASTE
   Spazio ridotto + allineamento sinistro
========================== */
@media (max-width: 768px) {
  .dm-auction-header {
    padding: 0 18px 12px !important; /* elimina spazio in alto */
    margin-top: 0 !important;
    text-align: left; /* niente centratura */
  }

  .dm-auction-header h1 {
    font-size: 32px;
    line-height: 1.1;
    margin-top: 8px !important; /* leggero margine sotto il menu */
    margin-bottom: 4px;
    text-align: left;
  }

  .dm-auction-header .subtitle,
  .dm-auction-meta,
  .dm-auction-header p {
    text-align: left !important;
  }

  /* evita spazio extra introdotto dal tema */
  main#dm-auction {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* --- PAY ALL: identico a Paga ora, allineato a destra --- */
.dm-auction-table tr.dm-payall-row {
  display: flex !important;
  justify-content: flex-end !important;
  background: #fafafa;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 6px;
}

.dm-auction-table tr.dm-payall-row td {
  border: none !important;
  padding: 0 !important;
}

.dm-payall-cell {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Pulsante identico ai "Paga ora" */
.dm-payall-btn {
  display: inline-block;
  background: #000;
  color: #fff !important;
  font-weight: 500;
  font-size: 10.5px; /* stesso font mobile */
  padding: 4px 9px;  /* stesso padding */
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid #000;
  transition: all 0.25s ease;
  line-height: 1.1;
  text-align: center;
  min-width: 74px;
}

.dm-payall-btn:hover {
  background: #fff !important;
  color: #000 !important;
  border-color: #000;
}




/* === FAVORITES SECTION – CARD SHOP STYLE === */
#favorites ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px 20px !important;  /* Minor gap per allineare meglio */
  padding: 10px 0;
  margin: 0 !important;
  list-style: none;
  box-sizing: border-box;
}

/* Allineamento e ridimensionamento card per evitare sovrapposizioni */
#favorites ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  flex: 0 1 auto; /* Disabilita flex per allineamento coerente */
}

/* La card deve essere allineata correttamente */
#favorites .product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;  /* Impedisce che le card abbiano altezza variabile */
}

/* Impostazioni per il titolo e il prezzo */
#favorites .product-info .price {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 3px;
}

#favorites .product-info .title {
  font-size: 14.5px;
  color: #111;
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;  /* Impedisce che il testo fuoriesca dalla card */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #favorites ul.products {
    grid-template-columns: 1fr 1fr !important; /* Due colonne per i dispositivi mobili */
    gap: 14px 14px !important;
  }

  #favorites .product-info .price {
    font-size: 13px !important;
  }

  #favorites .product-info .title {
    font-size: 12.5px !important;
  }
}

/* H2 più piccolo nella descrizione del lotto */
.dm-desc h2 {
  font-size: 20px !important;
  font-weight: 500;
  margin-top: 25px;     /* meno spazio dall’alto */
  margin-bottom: 10px;  /* meno spazio dal paragrafo sotto */
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Riduce leggermente anche la spaziatura dei paragrafi */
.dm-desc p {
	font-size: 14px;
	font-weight: 200;
	
  margin-top: 10px;
  margin-bottom: 6px;
}

.dm-title {
  font-weight: 600 !important; /* oppure 800 per ancora più bold */
}

.dm-lot-hero__media img {
  width: 100%;
  max-width: 750px; /* aumentalo a piacere */
}



/* ===============================
   HOME — Current Auction Block
================================= */

.dm-home-auction-block {
  width: 100%;
  background: #f7f7f7;
  padding: 60px 0;
  margin: 40px 0 80px 0;
  border-radius: 14px;
}

.dm-auction-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 0 20px;
}

.dm-auction-left img {
  width: 380px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.dm-auction-right {
  flex: 1;
}

.dm-auction-title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

.dm-auction-subtitle {
  font-size: 20px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.dm-auction-date {
  font-size: 16px;
  margin-bottom: 28px;
  color: #555;
}

.dm-auction-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #111;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dm-auction-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

/* === Mobile === */
@media (max-width: 768px) {
  .dm-auction-inner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .dm-auction-left img {
    width: 90%;
    max-width: 350px;
  }
}

/* ===============================
   Pagina Asta – Stile Tipografia
================================= */

.dm-auction-text {
  margin-top: 25px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0px;
}

/* H2 nella pagina asta */
.dm-auction-text h2 {
  font-size: 22px;
  font-weight: 500;
  margin-top: 35px;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #111;
}

/* Paragrafi */
.dm-auction-text p {
  font-size: 16px;
  font-weight: 200;
  line-height: 1.55;
  margin-bottom: 10px;
  color: #333;
}

/* Link */
.dm-auction-text a {
  color: #0e0e0e;
  text-decoration: underline;
  font-weight: 400;
}

.dm-auction-text a:hover {
  opacity: .7;
}

/* ==========================
   Spazio sopra titolo asta - MOBILE
========================== */
@media (max-width: 768px) {

  /* Tira su tutta la pagina asta */
  body.single-art_auction .dm-auction-page {
    margin-top: -25px;   /* se è troppo / troppo poco, prova -15 o -30 */
  }

  /* Compatta ancora header e titolo */
  body.single-art_auction .dm-auction-header {
    padding-top: 0px !important;
  }

  body.single-art_auction .dm-auction-header h1 {
    margin-top: 0px !important;
  }
}

/* Risoluzione per il blocco centrale */
body.single-auction_lot .site-content {
  max-width: 1200px; /* Imposta la larghezza massima */
  margin: 0 auto; /* Centra il contenuto */
  padding-left: 0 !important; /* Rimuove il padding sinistro */
  padding-right: 0 !important; /* Rimuove il padding destro */
}

/* Allinea input e bottone alla larghezza della tabella */
.dm-actions {
  margin-top: 25px;
}

.dm-bid-box {
  display: flex;
  align-items: center;
  width: 100%; /* Assicura che il contenitore sia largo come la tabella */
  gap: 20px;
}

/* L’input prende tutto lo spazio disponibile con una larghezza pari alla tabella */
.dm-bid-box .dm-input {
  flex-grow: 1;            /* Aggiunge espansione per occupare tutto lo spazio disponibile */
  max-width: 100%;         /* Fissa la larghezza al 100% */
  height: 48px;            /* Imposta l'altezza per uniformità */
  padding: 0 14px;
  box-sizing: border-box;
}

/* Il bottone mantiene una larghezza naturale e si allinea con l'input */
.dm-bid-box .dm-btn--primary {
  height: 48px;
  padding: 0 28px;
  white-space: nowrap;     /* Evita che vada a capo */
  box-sizing: border-box;
  flex-shrink: 0;          /* Impedisce al bottone di ridursi */
}