/*
 Theme Name:   The7 Child
 Theme URI:    https://the7.io/
 Description:  CSSp personalization for the7
 Author:       Vic
 Author URI:   https://spiritanroma.org
 Template:     dt-the7
 Version:      1.0.0
*/

/* O teu CSS personalizado começa abaixo desta linha */
.table-history table
{ border: none;
} 
.table-history th
{ border: none;
vertical-align: text-top;
margin: 0px 10px 15px 0px;
padding: 5px 5px 5px 5px;
color: #800000;
} 
.table-history td 
{ border: none;
vertical-align: text-top;
margin: 0px 10px 15px 0px;
padding: 5px 5px 5px 5px;
}

.table-history tr:hover {
background-color: #FFF5EE;
}

.mini-wpml .wpml-ls-current-language > a {
color: #dd9933;
}

.feedzy-rss {
font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
line-height: 1.3;
}

.feedzy-rss .title {
font-size: 16px;
}

.feedzy-rss .title > a{
font-size: 16px;
text-decoration: none;
color: black;
}

.feedzy-rss .title > a:hover{
color: #dd3333;
}


.feedzy-rss .rss_content {
font-size: 13px;
}

.wpml-ls-statics-post_translations {
margin-top: 50px;
}

        #login h1 a, .login h1 a {
            background-image: url(https://spiritanroma.org/wp-content/uploads/2017/09/cssp-logo-120.png);
		height:65px;
		width:320px;
		background-size: 320px 65px;
		background-repeat: no-repeat;
        	padding-bottom: 30px;
        }

.wpb_wrapper h3 {
	margin-top: 30px;
}

/* Contentor da imagem */
.ex_post_header {
    position: relative; /* Necessário para o overlay se posicionar em relação a isto */
    width: 100%;
    height: 450px;
    overflow: hidden;
    display: block;
}

/* A imagem em si */
.ex_post_header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* O Overlay de 50% */
.ex_post_header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Garante que podes clicar na imagem se houver um link por baixo */
}

.ex_post_title {
    position: absolute;
    bottom: 30px;        /* Distância do fundo */
    left: 50%;           /* Move para o meio */
    transform: translateX(-50%); /* Garante que o centro do texto é o centro da imagem */
    
    width: 90%;          /* Dá margem nas laterais para não bater nas bordas */
    margin: 0;
    padding: 0;
    
    color: #ffffff;      /* Branco */
    text-align: center;  /* Centra o texto */
    font-size: 2rem;   /* Ajusta conforme o teu gosto */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para ler melhor */
    
    z-index: 2;          /* Acima da imagem (0) e do overlay (1) */
}

.ex_post_container {
    /* Ajusta o max-width para o valor que definiste no WP */
    max-width: 1200px; 
    margin: 40px auto; /* Centra horizontalmente */
    padding: 0 50px;   /* Ajusta este valor para igualar as tuas margens do WP */
    
    display: flex;
    gap: 40px;         /* Espaço entre as duas colunas */
}

/* Coluna do texto (66% de largura) */
.ex_post_main {
    flex: 2;
}

/* Coluna de info extra (33% de largura) */
.ex_post_side {
    flex: 1;
    background-color: #f9f9f9; /* Exemplo: um fundo leve para destacar */
    padding: 20px;
    border-radius: 8px;
}

/* Responsividade: No telemóvel as colunas ficam uma por cima da outra */
@media (max-width: 991px) {
    .ex_post_container {
        flex-direction: column;
        padding: 0 20px; /* Margens menores em ecrãs pequenos */
    }
    
    .ex_post_main, .ex_post_side {
        width: 100%;
    }
}