/* 
 Theme Name:   Fondazione Palmisano
 Theme URI:    
 Description:  
 Author:       mirko
 Author URI:   http://fondazionepalmisano.it
 Template:     Divi
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/
//* Sfondo arancione del contenitore */
.custom-newsletter-form {
    background-color:transparent;
    padding: 25px;
    border-radius: 4px;
    color: white;
    font-family: sans-serif;
}

/* Rimuove margini extra dai paragrafi automatici di CF7 */
.custom-newsletter-form p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Rimuove i <br> inutili */
.custom-newsletter-form br {
    display: none !important;
}

/* Allineamento orizzontale della riga */
.custom-newsletter-form .form-row p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Stile dei campi input */
.custom-newsletter-form .wpcf7-form-control-wrap {
    flex: 1; /* Fa crescere i campi per occupare lo spazio */
}

.custom-newsletter-form input[type="text"],
.custom-newsletter-form input[type="email"] {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    background-color: #f2f2f2;
    box-sizing: border-box;
}

/* Stile pulsante */
.custom-newsletter-form .wpcf7-submit {
    background-color: #2c2c2c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: bold;
    min-width: 120px;
}

/* Spazio per la checkbox */
.custom-newsletter-form .form-acceptance {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.3;
}

.custom-newsletter-form input[type="checkbox"] {
    margin-right: 8px;
}

.wpcf7-list-item-label {color:white}
body .wpcf7-list-item {margin:0}

body .wpcf7-not-valid-tip {color:white}

body .wpcf7 form.invalid .wpcf7-response-output, body .wpcf7 form.unaccepted .wpcf7-response-output, 
body .wpcf7 form.payment-required .wpcf7-response-output,body .wpcf7 form .wpcf7-response-output {
  border-color: white;
  color:white;
}

/* Pagina attività */

.blog_attivita .et_pb_post {border:0 !important;padding:0}
.blog_attivita .et_pb_image_container {margin: 0;}

.lista-freccia {
  padding: 20px 0;
}

/* Ogni voce */
.lista-freccia .et_pb_text {
  position: relative;
  padding: 20px 60px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* Testo */
.lista-freccia .et_pb_text p {
  color: #fff;
  font-size: 2rem;
  line-height: 2rem;
  margin: 0;
}

/* Freccia */
.lista-freccia .et_pb_text::after {
  content: "↗"; /* puoi cambiare simbolo */
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 28px;
}

/* Rimuove linea dall’ultima */
.lista-freccia .et_pb_text:last-child {
  border-bottom: none;
}

.lista-freccia .et_pb_text_inner {top:-20px}

/* fine pagina attività */

@media (max-width: 981px) {
body #logo {max-height: 70%;}
body .et_mobile_menu {border-top:1px solid black} 
}

/* Responsive per cellulari */
@media (max-width: 780px) {
body .mobile_menu_bar::before, .mobile_menu_bar::after, #top-menu li.current-menu-ancestor > a, #top-menu li.current-menu-item > a {color:black !important}


    .custom-newsletter-form .form-row p {
        flex-direction: column; /* Campi uno sopra l'altro */
        align-items: stretch;
    }

    .custom-newsletter-form .wpcf7-form-control-wrap {
        width: 100%;
        min-width: 100%;
    }

    .custom-newsletter-form .wpcf7-submit {
        width: 100%; /* Pulsante largo quanto il form su mobile */
        margin-top: 10px;
    }

     .head_mobile {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px !important; /* Dà respiro al contenuto */
    }

    /* Regola il logo per farlo leggere bene */
    .head_mobile .et_pb_column_2_tb_header {
        width: 60% !important; /* Più spazio al logo */
    }

    .head_mobile .et_pb_image_wrap img {
        width: 220px !important; /* Forza una dimensione leggibile */
        height: auto !important;
    }

    /* Regola il menu hamburger */
    .head_mobile .et_pb_column_3_tb_header {
        width: 20% !important; /* Spazio sufficiente per l'icona */
    }

    /* Ingrandisce l'icona hamburger se troppo piccola */
    .mobile_menu_bar:before {
        font-size: 35px !important;
        color: #007aff !important; /* Colore azzurro come in foto */
    }
}

