/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

strong.strong2 {
   color: rgb(233, 231, 231)!important;
}

.hiddenCustomFied {
   display: none !important;
}

.woocommerce-checkout #billing_last_name_field,
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #billing_address_2_field {
   display: none !important;
}

/* Billing — solo i campi full-width forzati */
.woocommerce-checkout #billing_applicant_field,
.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #billing_email_field {
   width: 100% !important;
   float: none !important;
   clear: both !important;
}

/* Sezione "Dati partecipante" — campi full-width */
#my_custom_checkout_field .form-row-wide {
   width: 100% !important;
   float: none !important;
   clear: both !important;
   margin-left: 0 !important;
   margin-right: 0 !important;
}

/* Input e select sempre a larghezza piena dentro il campo */
#my_custom_checkout_field .form-row .input-text,
#my_custom_checkout_field .form-row select,
.woocommerce-checkout .woocommerce-billing-fields .form-row .input-text,
.woocommerce-checkout .woocommerce-billing-fields .form-row select {
   width: 100% !important;
   box-sizing: border-box;
}

/* Label semibold e leggermente più grandi */
.woocommerce-checkout #my_custom_checkout_field .form-row label,
.woocommerce-checkout .woocommerce-billing-fields .form-row label {
   display: block !important;
   font-weight: 600 !important;
   font-size: 0.9rem !important;
   margin-bottom: 5px !important;
   color: #1e293b !important;
}

/* Intestazioni di sezione */
#my_custom_checkout_field > h3,
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 {
   font-size: 1rem;
   font-weight: 700;
   color: #1e293b;
   padding-bottom: 0.5rem;
   border-bottom: 2px solid #e2e8f0;
   margin-top: 1.75rem;
   margin-bottom: 1.25rem;
   letter-spacing: 0.01em;
   text-transform: uppercase;
}

/* Layout due colonne — colonna sinistra */
#my_custom_checkout_field .form-row-first,
.woocommerce-checkout .woocommerce-billing-fields .form-row-first {
   float: left !important;
   width: 48% !important;
   margin-right: 4% !important;
   clear: none !important;
}

/* Layout due colonne — colonna destra */
#my_custom_checkout_field .form-row-last,
.woocommerce-checkout .woocommerce-billing-fields .form-row-last {
   float: right !important;
   width: 48% !important;
   margin-right: 0 !important;
   clear: none !important;
}

/* Clearfix dopo ogni coppia di colonne */
#my_custom_checkout_field::after,
.woocommerce-checkout .woocommerce-billing-fields::after {
   content: '';
   display: table;
   clear: both;
}

/* Responsive: una colonna su schermi piccoli */
@media ( max-width: 767px ) {
   #my_custom_checkout_field .form-row-first,
   #my_custom_checkout_field .form-row-last,
   .woocommerce-checkout .woocommerce-billing-fields .form-row-first,
   .woocommerce-checkout .woocommerce-billing-fields .form-row-last {
      float: none !important;
      width: 100% !important;
      margin-right: 0 !important;
      clear: both !important;
   }
}
