/*
 Theme Name:   Astra Child
 Theme URI:    https://example.com
 Description:  Tema child di Astra
 Author:       Gianluca Contessa
 Author URI:   https://example.com
 Template:     astra
 Version:      1.0.0
*/

/* Qui aggiungi le tue modifiche CSS */
p {
    font-size: 20px !important;
    line-height: 1.2;
}

.MsoFootnoteReference span {
    font-size: 12px !important;
}

h1, h2, h3, h4, h5 {
    margin-top: 50px !important;
}

h1, h2, h3, h4, h5, h6 .entry-content :where(h1,h2,h3,h4,h5,h6) {
        line-height: normal !important;
    }

h2, h3, h4, h5 {
    margin-bottom: 20px !important;
}

a {
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .ast-header-break-point .site-header .main-header-bar-wrap .site-branding {
        flex-direction: column;
        text-align: center;
    }
}

.blocco-html p {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji", Times, serif !important;
}
/* Rimuove tutti i font-family inline */
span[style*="font-family"],
h3[style*="font-family"],
a[style*="font-family"] {
    font-family: inherit !important; /* o metti il font che vuoi tu */
}
.entry-content {
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji"
}
 .entry-content h3 {
    line-height: normal !important;
	text-indent: 0 !important;
    padding-left: 14.2pt !important;
} 
.entry-content img {
  border: 4px solid rgb(255, 255, 255);
  border-radius: 12px;
}

/* Stile per immagini nella pagina "cenacolo del mistero dello Spirito" */

        .image-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .image-item {
            text-align: center;
            flex: 0 1 calc(50% - 10px); /* Due per riga su desktop */
        }

        .image-item img {
            width: 100%;
            max-width: 300px;
            height: auto;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .image-item h4 {
            margin: 15px 0 5px 0;
            color: #333;
            font-size: 1.2em;
        }

        .image-item p {
            margin: 0;
            color: #666;
            font-size: 0.9em;
            line-height: 1.4;
        }

        /* Riga 1: 2 immagini */
        .image-item:nth-child(1),
        .image-item:nth-child(2) {
            flex: 0 1 calc(50% - 10px);
        }

        /* Riga 2: 1 immagine centrata - occupa tutta la larghezza */
        .image-item:nth-child(3) {
            flex: 0 1 100%;
        }

        /* Riga 3: 2 immagini */
        .image-item:nth-child(4),
        .image-item:nth-child(5) {
            flex: 0 1 calc(50% - 10px);
        }

        /* Mobile: tutte le immagini in colonna singola */
        @media (max-width: 768px) {
            .image-item {
                flex: 0 1 100% !important;
                margin: 0 !important;
            }
            
            .image-grid {
                gap: 30px;
            }
        }

/* Fine stile immagini cenacolo */