/*
Theme Name: MyHome Child
Theme URI: https://tangiblewp.com/myhome
Author: TangibleWP
Author URI: https://tangiblewp.com
Description: MyHome
Template: myhome
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: translation-ready
Text Domain: myhome
*/

/* # ELEMENTI COMUNI
 * # RICERCA
 * # BLOG 
 * # CONTATTI */

/* # ELEMENTI COMUNI */
/* Se l'annuncio contiene un'immagine con alt che inizia per "Protetto" */
div:has(img[alt^="Protetto"]) .myhome-image-placeholder {
    background-color: #024388 !important;
    background-image:     radial-gradient(circle, #879ac3 0%, #024388 80%, #024388 100%) !important
} 

/* Nascondi l'icona SVG standard solo nei protetti */
div:has(img[alt^="Protetto"]) .myhome-image-placeholder__icon svg {
    display: none !important;
}

/* Inserisci la tua PNG personalizzata */
div:has(img[alt^="Protetto"]) .myhome-image-placeholder__icon {
    width: 70px !important;
    height: 70px !important;
    background-image: url('https://urbis.rufinelli.dev/wp-content/uploads/urbis-pittogramma.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

/* Modifica il testo solo nei protetti */
div:has(img[alt^="Protetto"]) .myhome-image-placeholder__text {
	visibility: hidden;
}

div:has(img[alt^="Protetto"]) .myhome-image-placeholder__text::after {
    content: "Luxury & Business";
	color: #879ac3;
	visibility: visible;
	display: block;
	margin-top: -20px;
}

/* # RICERCA */
.myhome-listing-card__icon-label {
	z-index: 99;
}

/* # BLOG */

.elementor.elementor-6062 .myhome-blog-post-card-v5__image {
	display: none;
}


/* Forza la visualizzazione del form al centro della pagina anche se il tema lo rompe */
body.post-password-required {
    background-color: #f8f9fa !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
}

.post-password-form {
    background: white !important;
    padding: 50px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    max-width: 500px !important;
    text-align: center !important;
}

/* Se l'header è nascosto, proviamo a forzarlo via CSS (se presente nel codice) */
header, #header, .mh-header {
    display: block !important;
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
}

/* # CONTATTI */
.feather.feather-map-pin,
.icon-phone svg,
.feather.feather-mail {
	stroke: #024586;
}