/*
Theme Name:   Divi Child
Theme URI:    http://example.com/twenty-fifteen-child/
Description:  mio Child Theme
Author:       Daniele Carnelli
Author URI:   http://example.com
Template:     Divi
Version:      1.0.3
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  twentyfifteenchild
*/

/* Aggiungi qui gli stili CSS personalizzati */

/* mostra menu custom in barra admin */

	@media screen and (max-width: 782px) {
#wpadminbar li#wp-admin-bar-custom-admin-menu{
    display: block;
}
}


#logo {
    width: auto;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    margin-bottom: 0;
    max-height: 100%;
    display: inline-block;
    float: none;
    vertical-align: middle;
    -webkit-transform: translate3d(0, 0, 0);
}


/* Stili per la tabella */

.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table thead tr {
    background-color: #000763;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}


.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}
.entry-content thead th,.entry-content tr th {
      color:#fff;
      font-weight: 700;
      padding: 9px 24px
}

.table-container {
  overflow-x: auto;
}

.table-container table {
  width: 100%;
}

.table-container th,
.table-container td {
  white-space: nowrap;
}


.stato-publish {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
}

.sticky-col {
    position: sticky;
    left: 0;
    background-color: #000763; /* Puoi personalizzare il colore di sfondo */
    z-index: 1; /* Assicura che le colonne rimangano sopra il resto della tabella */
}

.sticky-col-row {
    position: sticky;
    left: 0;
    background-color: #f8f9fa; /* Puoi personalizzare il colore di sfondo */
    z-index: 1; /* Assicura che le colonne rimangano sopra il resto della tabella */
}


/* Personalizza lo stile del form di donazione */
.donazioni-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.donazioni-form-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.donazioni-form-wrapper input[type="text"],
.donazioni-form-wrapper input[type="number"],
.donazioni-form-wrapper textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.donazioni-form-wrapper input[type="submit"] {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.donazioni-form-wrapper input[type="submit"]:hover {
    background-color: #0057a3;
}

/*barra avanzamento missioni*/
#countdown-wrap {
  width: 100%;
  height: 50px;
}

#goal {
  text-align: right;
  width: 80%;
}

@media only screen and (max-width : 640px) {
  #goal {
    text-align: center;  
  }
}

#glass {
  width: 80%;
  height: 20px;
  background: #c7c7c7;
  border-radius: 10px;
  float: left;
  overflow: hidden;
}

#progress {
  float: left;
  width: 16%;
  height: 20px;
  background: #AB2430;
  z-index: 333;
}

.goal-stat {
  width: 20%;
  height: 30px;
  padding: 10px;
  float: left;
  margin: 0;
}

@media only screen and (max-width : 640px) {
  .goal-stat {
    width: 40%;
    text-align: center;
  }
}

.goal-number, .goal-label {
  display: block;
}

.goal-number {
  font-weight: bold;
}

/* POPUP DONAZIONI */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 999999999; /* Sit on top */
  padding-top: 0px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgb(0 0 0 / 90%); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {

}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


/* Stili per il container del popup */
#popup-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Stili per il titolo del popup base */
#popup-container h2 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

/* Stili per il form all'interno del popup */
#edit-form {
    margin-top: 10px;
}

/* Stili per le etichette e gli input nel form */
#edit-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

#edit-form input[type="text"],
#edit-form input[type="date"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
}

/* Stili per il pulsante "Salva" e "Annulla" */
#save-button,
#cancel-button {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
}

#save-button {
    background-color: #0073aa;
    color: white;
    border: none;
}

#cancel-button {
    background-color: #ccc;
    border: none;
    color: #333;
}


/* da rivedere, mettere dei contenitori unici per i popup per gestire apertura e chiusura senza fare stili differenti */

#popup-notifiche {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
	min-width: 70%;
    max-width: 80%; /* Limita la larghezza massima del popup */
	
	}
/* stili popup orari chiese, da ottimizzare Limita la larghezza massima del popup */


#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 90%; /* Limita la larghezza massima del popup */
}

#popup h2 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    font-size: 1.5em; /* Imposta un font-size leggibile per titolo */
}

#popup form {
    margin-top: 10px;
}

#popup label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#popup textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    resize: vertical; /* Permette il ridimensionamento verticale del campo di testo */
}

#popup input[type="submit"],
#popup button {
    margin-top: 10px;
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

#popup button#cancelButton {
    margin-left: 10px;
    background-color: #ccc;
}

/*stile sezione comunicazioni e orari*/
@media (max-width: 980px){
.et_pb_bottom_divider .et_pb_row:nth-last-child(2) .et_pb_column:last-child, .et_pb_row .et_pb_column.et-last-child, .et_pb_row .et_pb_column:last-child {
    margin-bottom: 0;
}}
.et_pb_row .et_pb_column.et-last-child, .et_pb_row .et_pb_column:last-child, .et_pb_row_inner .et_pb_column.et-last-child, .et_pb_row_inner .et_pb_column:last-child {
    margin-right: 0!important;
}
@media (max-width: 980px){
.et_pb_column {
    width: 100%;
    margin-bottom: 30px;
}}
.et_pb_column, .et_pb_row, .et_pb_row_inner {
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}
.et_pb_column {
    float: left;
    background-size: cover;
    background-position: 50%;
    position: relative;
    z-index: 2;
    min-height: 1px;
}
.et_pb_css_mix_blend_mode_passthrough {
    mix-blend-mode: unset!important;
}


@media (max-width: 980px){
.et_pb_row .et_pb_column .et_pb_module.et-last-child, .et_pb_row .et_pb_column .et_pb_module:last-child, .et_section_specialty .et_pb_row .et_pb_column .et_pb_module.et-last-child, .et_section_specialty .et_pb_row .et_pb_column .et_pb_module:last-child {
    margin-bottom: 0;
}}

@media (max-width: 980px){
.et_pb_column .et_pb_module {
    margin-bottom: 30px;
}}
.et_pb_module.et_pb_text_align_center {
    text-align: center;
}
.et_pb_text_6_mio, .et_pb_text_7_mio {
    line-height: 1.5em;
    font-size: 18px;
    line-height: 1.5em;
    background-image: linear-gradient(160deg,rgba(160,190,239,0.54) 0%,#a0beef 100%);
    background-color: rgba(255,255,255,0.9);
    padding-top: 80px!important;
    padding-right: 30px!important;
    padding-bottom: 80px!important;
    padding-left: 30px!important;
    box-shadow: 0px 20px 45px -15px rgba(0,0,0,0.5);
}
.et_had_animation {
    position: relative;
}
.et_pb_text {
    word-wrap: break-word;
}
.et_pb_module {
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-duration: .2s;
    animation-duration: .2s;
}
.et_pb_all_tabs, .et_pb_module, .et_pb_posts_nav a, .et_pb_tab, .et_pb_with_background {
    position: relative;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}
.et_pb_bg_layout_dark, .et_pb_bg_layout_dark h1, .et_pb_bg_layout_dark h2, .et_pb_bg_layout_dark h3, .et_pb_bg_layout_dark h4, .et_pb_bg_layout_dark h5, .et_pb_bg_layout_dark h6 {
    color: #fff!important;
}
.et_had_animation {
    position: relative;
}

