/* 
Theme Name: PIDMed Theme
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

.display-none{display:none !important;}
/*HEADER*/
.search-button .ysm-search-widget .search-field[type=search]{width:0 !important; padding:10px 20px; border: none;}
.search-button .ysm-search-widget .search-submit:hover{background-color:#1e73be;}
.dialog-type-lightbox{z-index: 9999999999999999 !important;}

/*SERVIZI*/
.servizi{position:relative;}
.servizi:after{content:"";    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);}
.servizi > .e-con-inner > div.elementor-element:last-child,
.servizi > div.elementor-element:last-child{    height: 100%;   object-fit: cover;    object-position: center;    transition: all .4s ease-in-out;     position: absolute;    left: 50% !important;
    top: 50%;    transform: translate(-50%, -50%) scale(1);	width: 100%;}
.servizi:hover > .e-con-inner > div.elementor-element:last-child,
.servizi:hover > div.elementor-element:last-child{ transform: translate(-50%, -50%) scale(1.1);}


/*FORM*/
.pidmed-form { font-family: 'Lexend';color: #fff; font-weight: bold;}
.pidmed-form .full {display: flex;flex-wrap: wrap; gap: 20px;}
.pidmed-form .mid { flex: 1 1 calc(50% - 10px);}
.pidmed-form label,
.newsletter .sib-form #sib-container .sib-form-block .entry__label{  display: block; font-size: 14px; text-transform: uppercase; margin-bottom: 6px;  color: #fff;  letter-spacing: 0.5px;}
.pidmed-form .full p{position:relative; width: 100%;}
.pidmed-form .full:not(.checkbox):not(.accept) label,
.newsletter .sib-form #sib-container .sib-form-block .entry__label{position: absolute;   left: 13px;   top: 10px;}
.pidmed-form input[type="text"],
.pidmed-form input[type="email"],
.pidmed-form input[type="tel"],
.pidmed-form textarea,
.newsletter .sib-form #sib-container .sib-form-block .entry__field{ width: 100%; padding: 20px 13px 10px; border: 2px solid #fff; border-radius: 12px; background: transparent; color: #fff;  font-size: 16px;  box-sizing: border-box;}
.pidmed-form select{padding: 13px; width: 100%; border: 2px solid #fff; border-radius: 12px; background: transparent; color: #fff;  font-size: 16px;  box-sizing: border-box;}
.pidmed-form textarea {  height: 90px;  resize: none;}
.pidmed-form select {  appearance: none;  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='white' viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");  background-repeat: no-repeat;  background-position: right 20px center;  background-size: 16px;}
.pidmed-form .accept {  display: flex;  align-items: center;  font-size: 16px;  gap: 10px;}
.pidmed-form .accept input[type="checkbox"] {  width: 20px;  height: 20px;  border: 2px solid #fff;  background: #000;}
.pidmed-form .sub input[type="submit"] {  background: #ffe600;  color: #000;  border: none;  padding: 10px 30px;  border-radius: 40px;  font-size: 16px;  font-weight: bold;  text-transform: uppercase;  cursor: pointer;  transition: background 0.3s ease;}
.pidmed-form .sub input[type="submit"]:hover {  background: #fff000;}

.dark .pidmed-form,
.dark .pidmed-form label {color: #64AFE1;}
.dark .pidmed-form input[type="text"],
.dark .pidmed-form input[type="email"],
.dark .pidmed-form input[type="tel"],
.dark .pidmed-form textarea,
.dark .pidmed-form select,
.dark .pidmed-form .accept input[type="checkbox"]{border: 2px solid #64AFE1; color: #64AFE1;}
.dark .pidmed-form .sub input[type="submit"]:hover{ background: #64AFE1;}

/*SERVIZI DIGITALI*/
body.home a.servizi-digitali { width:100%;}
.servizi-digitali img{transition:all .4s ease-in-out;}
.servizi-digitali:hover img{transform:scale(1.2);}


/*SMART SEARCH*/
.smart-search-results-inner .smart-search-post{    display: flex;  flex-direction: row;  flex-wrap: nowrap;   align-content: stretch;   justify-content: flex-start;   align-items: flex-start;}
.smart-search-results-inner .smart-search-post .smart-search-post-icon{width:100px;}
.smart-search-results-inner .smart-search-post .smart-search-post-icon img{border-radius:10px;}
.smart-search-results-inner .smart-search-post .smart-search-post-holder{width: calc(100% - 120px);}
.smart-search-results-inner .smart-search-post  .smart-search-post-category {  color: #64AFE1;  font-weight: 900;}
.smart-search-results-inner .smart-search-post .smart-search-post-title {  color: #64AFE1; font-size: 19px; margin:0;}
.smart-search-results-inner .smart-search-post .smart-search-post-excerpt{margin:5px 0;}
.smart-search-results-inner .smart-search-post  .smart-search-post-price{color: #64AFE1;}
.ysm-search-widget-1 .smart-search-view-all{background-color: #64AFE1; border-radius:10px; text-transform: uppercase; color: #fff !important;}

/*NEWLETTER*/
.newsletter .sib-form{    background: none;   padding: 0; font-family: 'Lexend';}
.newsletter .sib-form #sib-container{background: transparent !important;    border: none !important;    padding: 0; max-width: unset;}
.newsletter .sib-form #sib-container .sib-form-block{    padding: 0;}
.newsletter .sib-form .input:not(textarea), .newsletter .sib-form .input__button{height:auto !important;}
.newsletter .sib-form .entry__choice label p{font-size: 12px;   color: #fff;}
