.elementor-55787 .elementor-element.elementor-element-2f0a5d77{--display:flex;--margin-top:200px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}/* Start custom CSS for container, class: .elementor-element-2f0a5d77 *//* ===== Modern look – YITH Request a Quote ===== */
#yith-ywraq-form{
  --raq-primary:#0f3b66;      /* blu titoli */
  --raq-muted:#6b7280;        /* testo secondario */
  --raq-border:#e9ecef;       /* divisori */
  --raq-bg:#ffffff;
  --raq-bg-hover:#f8fafc;
  --raq-radius:12px;
}

/* no header e no vertical lines */
#yith-ywraq-form table.shop_table thead{display:none;}
#yith-ywraq-form table.shop_table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

/* righe “a card” (solo bordo basso, hover morbido) */
#yith-ywraq-form table.shop_table tr{transition:background .2s ease;}
#yith-ywraq-form table.shop_table td,
#yith-ywraq-form table.shop_table th{
  border-width:0 0 1px 0 !important;
  border-style:solid !important;
  border-color:var(--raq-border) !important;
  background:var(--raq-bg);
  padding:24px 16px;
  vertical-align:middle;
}
#yith-ywraq-form table.shop_table tr:hover td{ background:var(--raq-bg-hover); }

/* prime/ultime celle leggermente arrotondate */
#yith-ywraq-form table.shop_table tr td:first-child{
  border-top-left-radius:var(--raq-radius);
  border-bottom-left-radius:var(--raq-radius);
}
#yith-ywraq-form table.shop_table tr td:last-child{
  border-top-right-radius:var(--raq-radius);
  border-bottom-right-radius:var(--raq-radius);
}

/* colonne */
#yith-ywraq-form table.shop_table td.product-thumbnail{ width:120px; }
#yith-ywraq-form table.shop_table td.product-thumbnail img{
  width:110px; height:auto; display:block;
  border-radius:8px; object-fit:contain;
}
#yith-ywraq-form table.shop_table td.product-name{ width:auto; }

/* quantità: pill, focus chiaro */
#yith-ywraq-form table.shop_table td.product-quantity{ width:110px; text-align:center; }
#yith-ywraq-form table.shop_table td.product-quantity .quantity input.qty{
  width:64px; height:38px; padding:0 8px; text-align:center;
  border:1px solid #d1d5db; border-radius:10px; background:#fff;
  transition:box-shadow .15s ease, transform .05s ease;
}
#yith-ywraq-form table.shop_table td.product-quantity .quantity input.qty:focus{
  outline:0; box-shadow:0 0 0 3px rgba(15,59,102,.15);
}

/* bottone rimuovi (x) con micro-animazione */
#yith-ywraq-form table.shop_table td.product-remove{ width:40px; text-align:center; }
#yith-ywraq-form table.shop_table td.product-remove a.remove{
  color:#e11d48; text-decoration:none; font-size:20px; line-height:1;
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%;
  transition:transform .15s ease, background .15s ease;
}
#yith-ywraq-form table.shop_table td.product-remove a.remove:hover{
  background:rgba(225,29,72,.08); transform:scale(1.08);
}

/* titolo & meta (es. variante, SKU) */
#yith-ywraq-form table.shop_table td.product-name a{
  display:block; margin-bottom:6px; text-decoration:none;
  font-weight:800; letter-spacing:.2px; color:var(--raq-primary);
  text-transform:uppercase;
}
#yith-ywraq-form table.shop_table td.product-name .variation,
#yith-ywraq-form table.shop_table td.product-name .ywraq-item-meta,
#yith-ywraq-form table.shop_table td.product-name .sku_wrapper{
  display:block; margin-top:6px; color:var(--raq-muted); font-size:14px;
}
#yith-ywraq-form table.shop_table td.product-name .sku_wrapper .sku{ font-weight:600; }

/* nessun prezzo/subtotale */
#yith-ywraq-form table.shop_table .product-price,
#yith-ywraq-form table.shop_table .product-subtotal{ display:none !important; }

/* togli la riga finale */
#yith-ywraq-form table.shop_table tr:last-child td{ border-bottom:0; }

/* Nascondi esclusivamente il <tr> che contiene <td class="actions"> */
#yith-ywraq-form table.shop_table tr:has(> td.actions) {
  display: none !important;
}

/* Togli la riga orizzontale rimasta sull'ultimo item (border-bottom) */
#yith-ywraq-form table.shop_table tr:nth-last-child(2) td {
  border-bottom: 0 !important;
}

/* responsive */
@media (max-width:768px){
  #yith-ywraq-form table.shop_table td{ padding:16px 12px; }
  #yith-ywraq-form table.shop_table td.product-thumbnail{ width:88px; }
  #yith-ywraq-form table.shop_table td.product-thumbnail img{ width:78px; }
  #yith-ywraq-form table.shop_table td.product-quantity{ width:90px; }
}

/* === RAQ: etichetta SOPRA il campo (solo Nome, Email, Messaggio) === */
#rqa_name_row,
#rqa_email_row,
#rqa_message_row{
  display: grid !important;
  grid-template-columns: 1fr !important;   /* una colonna */
  grid-template-rows: auto auto;           /* riga 1: label, riga 2: campo */
  row-gap: 8px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;        /* separatore tenue come screenshot */
}

/* --- Markup a TABELLA (tr > th + td) --- */
#rqa_name_row > th, #rqa_email_row > th, #rqa_message_row > th{
  grid-row: 1; grid-column: 1;
  text-align: left; padding: 0 0 2px 0;
  font-weight: 700;
}
#rqa_name_row > td, #rqa_email_row > td, #rqa_message_row > td{
  grid-row: 2; grid-column: 1; padding: 0;
}

/* --- Markup a .form-row (label + wrapper) --- */
#rqa_name_row.form-row, #rqa_email_row.form-row, #rqa_message_row.form-row{
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto;
}
#rqa_name_row.form-row > label,
#rqa_email_row.form-row > label,
#rqa_message_row.form-row > label{
  grid-row: 1; grid-column: 1;
  margin: 0 0 2px 0; font-weight: 700; text-align: left;
}
#rqa_name_row.form-row .woocommerce-input-wrapper,
#rqa_email_row.form-row .woocommerce-input-wrapper,
#rqa_message_row.form-row .woocommerce-input-wrapper{
  grid-row: 2; grid-column: 1;
}

/* Campi */
#rqa_name_row input[type="text"],
#rqa_email_row input[type="email"],
#rqa_message_row textarea{
  width: 100%;
}
#rqa_message_row textarea{ min-height: 120px; resize: vertical; }

/* Note/optional/description: sotto al campo, allineate a sinistra */
#rqa_name_row .optional, #rqa_email_row .optional, #rqa_message_row .optional,
#rqa_name_row .description, #rqa_email_row .description, #rqa_message_row .description,
#rqa_name_row small, #rqa_email_row small, #rqa_message_row small{
  grid-column: 1; grid-row: 3;
  color: #6b7280; font-size: 13px; margin-top: 4px;
}

/* Niente cambi per mobile: è già a colonna singola */

/* === PATCH: ripristina stile campi testo per Nome/Email/Messaggio === */
#rqa_name_row input[type="text"],
#rqa_email_row input[type="email"],
#rqa_message_row textarea{
  background: #f6f7f8 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  color: #111827 !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none;              /* elimina stile nativo */
  -webkit-appearance: none;
  box-shadow: none !important;   /* niente ombre/bordi extra */
  outline: 0 !important;
  height: 44px;
}
#rqa_message_row textarea{
  min-height: 120px;             /* come prima */
  resize: vertical;
}
#rqa_name_row input::placeholder,
#rqa_email_row input::placeholder,
#rqa_message_row textarea::placeholder{
  color: #9ca3af;
}
/* Focus “soft” come prima */
#rqa_name_row input:focus,
#rqa_email_row input:focus,
#rqa_message_row textarea:focus{
  border-color: #b6c2cf !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(15,59,102,.12) !important;
}

/* ===== RAQ list — MOBILE FIX & COMPACT ===== */
@media (max-width: 768px){

  /* alcuni temi nascondono la thumb su mobile: forziamo visibile */
  #yith-ywraq-form table.shop_table td.product-thumbnail,
  #yith-ywraq-form table.shop_table td.product-thumbnail a,
  #yith-ywraq-form table.shop_table td.product-thumbnail img{
    display: block !important;
  }

  /* niente etichette "Prodotto:", "Quantità:" auto-inserite dal tema */
  #yith-ywraq-form table.shop_table td::before{ display:none !important; }

  /* ogni riga diventa una card compatta: thumb | testo | qty/remove */
  #yith-ywraq-form table.shop_table tr{
    display: grid !important;
    grid-template-columns: 64px 1fr 58px;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
  }

  /* reset bordi/padding delle celle */
  #yith-ywraq-form table.shop_table td{
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    vertical-align: middle;
  }

  /* THUMBNAIL: mostra davvero l'immagine e rimuovi eventuale cornice del tema */
  #yith-ywraq-form table.shop_table td.product-thumbnail{ 
    grid-column: 1; grid-row: 1 / span 2; align-self: start;
  }
  #yith-ywraq-form table.shop_table td.product-thumbnail a{
    border: 0 !important; background: transparent !important;
    padding: 0 !important; box-shadow: none !important;
  }
  #yith-ywraq-form table.shop_table td.product-thumbnail img{
    width: 64px !important; height: 64px !important;
    object-fit: contain; border-radius: 8px;
  }

  /* TITOLO + META (variazioni/SKU) */
  #yith-ywraq-form table.shop_table td.product-name{ grid-column: 2; grid-row: 1; }
  #yith-ywraq-form table.shop_table td.product-name a{
    text-decoration: none; font-weight: 800; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0;
  }
  #yith-ywraq-form table.shop_table td.product-name .variation,
  #yith-ywraq-form table.shop_table td.product-name .ywraq-item-meta,
  #yith-ywraq-form table.shop_table td.product-name .sku_wrapper{
    display: block; margin-top: 4px; font-size: 13px; color: #6b7280;
  }

  /* QUANTITÀ in alto a destra (piccola) */
  #yith-ywraq-form table.shop_table td.product-quantity{
    grid-column: 3; grid-row: 1; justify-self: end; align-self: start;
  }
  #yith-ywraq-form table.shop_table td.product-quantity .quantity input.qty{
    width: 52px; height: 36px; text-align: center;
    border: 1px solid #d1d5db; border-radius: 10px; padding: 0 6px;
  }

  /* RIMUOVI in basso a destra */
  #yith-ywraq-form table.shop_table td.product-remove{
    grid-column: 3; grid-row: 2; justify-self: end; align-self: end;
  }
  #yith-ywraq-form table.shop_table td.product-remove a.remove{
    width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 18px; color:#e11d48; text-decoration:none;
  }

  /* nascondi eventuali colonne prezzo/subtotale */
  #yith-ywraq-form table.shop_table .product-price,
  #yith-ywraq-form table.shop_table .product-subtotal{ display: none !important; }
}

/* Etichetta sopra, campo sotto: SOLO per il nuovo telefono */
#rqa_phone_row{
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto;
  row-gap: 8px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}
#rqa_phone_row > th{ grid-row:1; grid-column:1; text-align:left; padding:0 0 2px 0; font-weight:700; }
#rqa_phone_row > td{ grid-row:2; grid-column:1; padding:0; }

#rqa_phone_row.form-row{ grid-template-columns:1fr !important; grid-template-rows:auto auto; }
#rqa_phone_row.form-row > label{ grid-row:1; grid-column:1; margin:0 0 2px 0; font-weight:700; }
#rqa_phone_row.form-row .woocommerce-input-wrapper{ grid-row:2; grid-column:1; }

/* Stile del campo come gli altri */
#rqa_phone_row input[type="tel"],
#rqa_phone_row input[type="text"]{
  width:100%;
  background:#f6f7f8 !important;
  border:1px solid #e5e7eb !important;
  border-radius:10px !important;
  height:44px; padding:10px 12px;
  color:#111827 !important;
  box-shadow:none !important; outline:0 !important;
  transition:border-color .15s, box-shadow .15s, background .15s;
}
#rqa_phone_row input[type="tel"]:focus,
#rqa_phone_row input[type="text"]:focus{
  border-color:#b6c2cf !important;
  background:#fff !important;
  box-shadow:0 0 0 3px rgba(15,59,102,.12) !important;
}


/* ===== Mobile: rimuovi il contorno esterno della tabella RAQ ===== */
@media (max-width: 768px){
  /* Contenitore tabella */
  #yith-ywraq-form table.shop_table,
  #yith-ywraq-form .shop_table.shop_table_responsive,
  #yith-ywraq-form .shop_table_responsive {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
  }

  /* Nel dubbio, anche tbody/tfoot */
  #yith-ywraq-form table.shop_table tbody,
  #yith-ywraq-form table.shop_table tfoot {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
  }

  /* Le celle non devono avere bordi di default */
  #yith-ywraq-form table.shop_table td {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
  }
}


/* --- Responsive (una colonna sotto 768px per i soli 3 campi) --- */
@media (max-width:768px){
  #rqa_name_row:not(tr),
  #rqa_email_row:not(tr),
  #rqa_message_row:not(tr){
    grid-template-columns:1fr;
    gap:8px;
    align-items:start;
  }
}/* End custom CSS */