/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/


/* ------------------------- personalizzazione FORM */
#formrichiesta {
  /* Nessun background, solo padding per distanziare dal resto della pagina */
  color: #000;
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
}

/* Etichette e testo */
#formrichiesta p,
#formrichiesta label {
  color: #000000;
}

/* Layout dei campi */
#formrichiesta .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 2%;
  margin-bottom: 20px;
}

#formrichiesta .one-third {
  flex: 1 1 48%;
  min-width: 48%;
  box-sizing: border-box;
}

#formrichiesta .one-third:nth-child(3) {
  flex-basis: 48%;
  min-width: 48%;
}

@media (max-width: 600px) {
  #formrichiesta .row {
    flex-direction: column;
    gap: 10px 0;
  }
  #formrichiesta .one-third,
  #formrichiesta .one-third:nth-child(3) {
    min-width: 100%;
    flex-basis: 100%;
  }
}

/* Stile degli input e textarea */
#formrichiesta input[type="text"],
#formrichiesta input[type="email"],
#formrichiesta textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 100%;
  background: #1270b6;
  color: #fff;
  margin-bottom: 10px;
  font-size: 1em;
  box-sizing: border-box;
  resize: none;
}

/* Placeholder bianchi */
#formrichiesta input[type="text"]::placeholder,
#formrichiesta input[type="email"]::placeholder,
#formrichiesta textarea::placeholder {
  color: #fff;
  opacity: 0.9;
}

/* Stile textarea */
#formrichiesta textarea {
  min-height: 100px;
}

/* Bottone invio */
#formpreventivi input[type="submit"],
#formpreventivi button[type="submit"] {
  background: #1270b6;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s, color 0.2s;
}

#formrichiesta input[type="submit"]:hover,
#formrichiesta button[type="submit"]:hover {
  background: #0c5085;
  color: #fff;
}

/* Privacy */
#formrichiesta #privacy {
  color: #e6e6e6 !important;
  margin-bottom: 12px;
}

#formrichiesta a {
  color: #000;
  text-decoration: underline;
}

/* Messaggio di risposta */
#formrichiesta .wpcf7-response-output {
  color: #fff;
  margin-top: 16px;
}

/* Checkbox */
#formrichiesta input[type="checkbox"] {
  accent-color: #1270b6;
  margin-right: 6px;
}

/* ----------- form preventivi custom */
#formpreventivi {
  color: #000;
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

/* Label e testo */
#formpreventivi p,
#formpreventivi label,
#formpreventivi .wpcf7-list-item-label {
  color: #000 !important;
}

/* Layout dei primi due campi */
#formpreventivi .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 2%;
  margin-bottom: 20px;
}

#formpreventivi .one-third {
  box-sizing: border-box;
}

/* Nome ed email: 50% sulla stessa riga */
#formpreventivi .one-third:nth-child(1),
#formpreventivi .one-third:nth-child(2) {
  flex: 1 1 48%;
  min-width: 48%;
}

/* Telefono: 48% sotto, allineato a sinistra */
#formpreventivi .one-third:nth-child(3) {
  flex-basis: 48%;
  min-width: 48%;
  margin-left: 0;
  margin-top: 20px;
}

/* Responsive: tutti i campi in colonna su mobile */
@media (max-width: 800px) {
  #formpreventivi .row {
    flex-direction: column;
    gap: 10px 0;
  }
  #formpreventivi .one-third {
    min-width: 100% !important;
    flex-basis: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
}

/* Stile degli input e textarea */
#formpreventivi input[type="text"],
#formpreventivi input[type="email"],
#formpreventivi textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 100%;
  background: #1270b6;
  color: #fff;
  margin-bottom: 10px;
  font-size: 1em;
  box-sizing: border-box;
  resize: none;
}

/* Placeholder bianchi */
#formpreventivi input[type="text"]::placeholder,
#formpreventivi input[type="email"]::placeholder,
#formpreventivi textarea::placeholder {
  color: #fff;
  opacity: 0.9;
}

/* Stile textarea */
#formpreventivi textarea {
  min-height: 100px;
}

/* Radio button e testo */
#formpreventivi input[type="radio"] + .wpcf7-list-item-label {
  color: #000;
}
#formpreventivi .wpcf7-list-item-label {
  color: #000;
  margin-left: 3px;
}
#formpreventivi input[type="radio"] {
  accent-color: #1270b6;
}

/* Bottone invio */
#formpreventivi input[type="submit"],
#formpreventivi button[type="submit"] {
  background: #1270b6;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s, color 0.2s;
}

#formpreventivi input[type="submit"]:hover,
#formpreventivi button[type="submit"]:hover {
  background: #0c5085;
  color: #fff;
}

/* Privacy */
#formpreventivi #privacy {
  color: #666 !important;
  margin-bottom: 12px;
}

#formpreventivi a {
  color: #000;
  text-decoration: underline;
}

/* Messaggio di risposta */
#formpreventivi .wpcf7-response-output {
  color: #000;
  margin-top: 16px;
}

/* Checkbox */
#formpreventivi input[type="checkbox"] {
  accent-color: #1270b6;
  margin-right: 6px;
}