/**
 * www.stefanato.com
 */
 
.btn {
    display: inline-block;
    padding: 8px 16px!important;
    margin-bottom: 0;
    font-size: 20px!important;
	}
/*---------- HOME -----------------*/
.bluebox {
    background: transparent linear-gradient(11deg, #153259 50%, #173863 50%) repeat scroll 0 0 / 100% auto;
    border-radius: 9px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    float: left;
    height: 57px;
    margin: 0 0 20px 1%;
    min-height: 40px;
    padding: 18px 0 15px;
    position: relative;
    width: 48%;
}
.redbox {
    background: transparent linear-gradient(11deg, #cb1f07 50%, #e22208 50%) repeat scroll 0 0 / 100% auto;
    border-radius: 9px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    float: left;
    height: 57px;
    margin: 0 0 20px 19px;
    min-height: 40px;
    padding: 18px 0 15px;
    width: 48%;
}
/*-----*/
.pagination {
    text-align: center;
    height: 60px;
}

.pagination {
    margin: 20px 0;
}
.pagination {
    display: block;
    overflow: visible;
    height: auto!important;
}
.pagination ul li {
    list-style: none;
    float: left;
	display: inline;
}
/*-----*/
.cerca {
    margin: -1px;
	padding: 15px;
	background-color: #2f71b3;
	border: 1px;
	border-style: solid;
	color:#fff;
	text-align: center;
}
div.cerca span {
    font-size: 150px;
    color: #FFF;
    position: absolute;
    opacity: 0.2;
    margin-left: -90px;
    top: -30px;
}
.logo-image {
    height: auto!important;
}
#sp-header  {
    border-bottom-color:#D6D6D6 ;
	border-bottom-style: solid;
	border-bottom-width: 1px;
  border-top-color:#D6D6D6 ;
	border-top-style: none;
	border-top-width: 0px;
	height: 90px;
  
}

#sp-top-bar  {
    border-bottom-color:#fefefe ;
	border-bottom-style: solid;
	border-bottom-width: 1px;
  color:#ccc;
     height: 35px;
    padding: 7px 0;
    font-size: 12px;
}
#sp-top-bar a  {
 
  color:rgba(0,0,0,0.60);
 
}

#sp-logo  {
 
	padding-bottom: 10px;
	padding-top: 15px;
}
#sp-top3  {
 
	text-align: right;
}
/*------heading--------*/
.sp-page-title .sp-page-title-heading {
    font-size: 50px;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #fff;
}
.sp-page-title .sp-page-title-sub-heading {
    font-size: 24px;
    font-weight: normal;
    line-height: 1.3;
    margin-top: 10px;
	color: #fff;
    opacity: 1;
}
.sp-page-title .breadcrumb {
 font-size: 14px;
}
 
.header-sticky {
box-shadow: 0px 2px 5px rgba(0,0,0,0.5);
}
/*------footer------*/

#sp-footer2 {
 font-size: 11px!important;
	text-align: center;
	 text-transform:uppercase;
}
#sp-footer ul.menu li  {
    margin-right: 20px!important;

	 text-transform:uppercase;
}
#sp-footer1  {
	text-align: center;
}
#sp-bottom .sp-module ul > li {
     margin-bottom: 5px;
}
/*----------------Riquadro Right -----------*/
div.sp-module.rightsquare {
    border: #ddd;
        border-top-style: none;
        border-top-width: medium;
        border-right-style: none;
        border-right-width: medium;
        border-bottom-style: none;
        border-bottom-width: medium;
        border-left-style: none;
        border-left-width: medium;
    border-style: solid;
    border-width: 1px;
    padding: 15px;
	margin-bottom: 15px;
	font-size: 14px;
}
div.sp-module.rightsquare h3{
    font-size: 1.55rem
}
#sp-main-body {
    padding: 50px 0;
}
ul.pagination .page-item:first-child, ul.pagination .page-item {
    display: inline-flex;
}
div.itemBackToTop {
    display: none;
}

/* css joomlafreaks for immobili list and detail page */

.immobili-detail-wrap .main-image{
    margin-bottom:20px;
    border:1px solid #f3f3f3;
    padding:2px;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    justify-self: center;
}

.immobili-detail-wrap .com-content-article__body{
    margin-bottom:30px;
}

.immobili-custom-field-wrap:after{
    content:"";
    clear:both;
}

.immobili-custom-field-wrap{
    border:1px solid #f3f3f3;
}

.immobili-custom-field-wrap ul{
    padding:0px!important;
    margin-left:0px!important;
    border:1px solid #f3f3f3
}

.immobili-custom-field-wrap ul li{
    list-style:none;
padding:10px 10px;
}

.immobili-custom-field-wrap ul > li:nth-of-type(odd) {
    background-color: #eee ;
}
/* ------- CUSTOM GALLERY DEFAULT -------*/
/*.custom-gallery-wrap{
 margin-top:30px;
}

.custom-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content:center;
  gap: 10px;
  margin-top: 20px;
}
.custom-gallery a img {
  width: 230px;
  max-height:230px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.custom-gallery a:hover img {
  transform: scale(1.05);
}*/
/* ------- END CUSTOM GALLERY DEFAULT -------*/
@media only screen and (max-width: 600px) {
	.logo-image {
    padding-top: 10px;
    height: auto;
}
	}

.table.table-bordered > tbody > tr > td {

vertical-align: middle;

}
#searchome .btn {
    
    background: #CF1C2C!important;
	color:#fff!important;
}
#searchome {
 
    padding: 20px 0 20px 0!important;
    width: 100%!important;
}

@media only screen and (max-width: 850px) {
	#sp-header {
    display: inherit;
}
	}
	
@media only screen and (min-width: 1200px) {
h4.nspHeader  {

font-size: 20px!important;
padding-bottom: 10px!important;
	letter-spacing: -1px;
}
	}
@media only screen and (max-width: 1199px) {
h4.nspHeader  {

font-size: 18px!important;
padding-bottom: 10px;
	letter-spacing: -1px;
}
	.nspArt p.nspText
	{

font-size: 14px!important;

}
	}
@media only screen and (max-width: 609px) {
 div.form-row div.col-4 { 
 
    -ms-flex: 0 0 100%!important;
    flex: 0 0 100%!important;
    max-width: 100%!important;
}}
.rsform-block-prestazione-energetica, .rsform-block-planimetrie-catastali, .rsform-block-foto
{
background-color: #eee;
	padding: 15px;
}

/*@media only screen and (max-width: 1200px) {
 .maximenuck {
 font-size: 13px!important
}
}*/
#sp-right ul.menu li  {
    list-style: none;
    padding: 8px 0px 8px 0px;
    margin-left: 0px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #ddd;
}
#sp-right ul.menu  {
   padding-inline-start: 0px;

}
.article-list .article-header h2{

    font-size: 20px!important;


}
.article-list .article-header {
   text-align: center;
    margin: auto;

}
.cbp-ready .cbp-item {

    background: #000;
}
.su-portfolio-style10 .sup-img-wrap img {
opacity: 0.6;
}
#carousel {
    display: none;
}

#joodbForm select {
height: 65px!important;
    margin: 5px!important;
    border: none;
    font-family: 'Roboto Condensed';
    font-size: 20px;
    font-weight: 600;
}
 #joodbForm input  {
    height: 35px!important;
    margin: 5px!important;
      border: none;
}
.flex-direction-nav .flex-next {
    right: -0px!important;
     opacity: 1!important;
}
.flex-direction-nav .flex-prev {
    left: -0px!important; 
    opacity: 1!important;
}
.slider {
    margin-bottom: 20px!important;
}
 
.itemid-1115 #sp-logo, .itemid-1115 #sp-top-bar, .itemid-1115 #sp-header, .itemid-1115 #sp-bottom, .itemid-1115 #sp-footer, .itemid-11152 .itemNavigation
{
    display: none;
}
.itemid-1113 #sp-logo, .itemid-1113 #sp-top-bar, .itemid-1113 #sp-header, .itemid-1113 #sp-bottom, .itemid-1113 #sp-footer, .itemid-1113 .itemNavigation
{
    display: none;
}
.itemid-1114 #sp-logo, .itemid-1114 #sp-top-bar, .itemid-1114 #sp-header, .itemid-1114 #sp-bottom, .itemid-1114 #sp-footer, .itemid-1114 .itemNavigation
{
    display: none;
}
.itemid-1116 #sp-logo, .itemid-1116 #sp-top-bar, .itemid-1116 #sp-header, .itemid-1116 #sp-bottom, .itemid-1116 #sp-footer, .itemid-1116 .itemNavigation
{
    display: none;
}
 
.itemid-1115 .itemImageGallery, .itemid-1116 .itemImageGallery{
    display: none;
}

.sp-page-title {
    padding: 120px 0;
    background-attachment: scroll!important;
	background-size: cover!important;
	background-position: center center!important;
}
.sp-page-title h1, .sp-page-title h2 {
text-shadow: 0px 0px 8px rgba(0, 0, 0, 1);
	}
.justify-content-end {
  
    justify-content: inherit!important;
}
@media only screen and (max-width: 1199px) {
#sp-header {
  
    /*display:none!important;*/
}}
/*@media only screen and (min-width: 1000px) {
.riquadro   {
  
    background-image: url("https://www.grimaldi.casa/templates/finatic/images/bordo.png");
	background-repeat:no-repeat;
	background-position-y: 47%;
}}*/
.right-module {
border: solid #dee2e6 1px;
	padding:20px;
}
.right-module .mod-articles-category-date {
display:block;
	font-size: 90%!important;
	font-style: italic!important;
}


 .right-module ul {
list-style-type: none!important;
	padding-left: 0px!important;
	 }
#sp-bottom1 span.category-date {
display:none!important;
}
 .right-module a.mod-articles-category-title{
font-weight: 500;}

.right-module li {
	padding-bottom: 10px!important;
	 }

/*#slider
 {max-height: 700px;
    overflow: hidden;}
*/
#sp-top2 ul.mod-list
{
	display:inline-flex!important;
}
#sp-top2 ul.mod-list li 
{
	list-style: none!important;
	padding-right: 15px!important;
}
/*-------------------HEADER DELLE PAGINE--------------------*/
/*.sp-page-title {
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.32);
}*/

/* joomlafreaks */

/* Same height and width - Griglia base (puoi adattare come preferisci) */
div.custom-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

/* Ogni link diventa una “card” immagine */
div.custom-gallery a {
  display: block;
  width: 100%;
  height: 200px;      /* altezza uniforme per tutte le immagini */
  overflow: hidden;
  border-radius: 4px; /* opzionale */
}

/* Immagini tutte uguali senza deformarsi */
div.custom-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* riempie il box ritagliando, ma senza distorcere */
  display: block;
}

li.result__item-property-search table{
    margin-bottom:0px;
    padding-bottom:0px;
}

li.result__item-property-search:nth-of-type(odd) table td{
    background:rgba(0,0,0,0.05)!important;
    padding:10px;
}

li.result__item-property-search:nth-of-type(even) table td{
    background:transparent!important;
    padding:10px;
}

.custom-gallery-wrap {
padding-top:30px;
}
#sp-bottom {
    background-color: RGBA(64, 52, 153, 0.26)!important;
    color: #000000!important;
}
#sp-bottom a {
    color: #000000!important;
}
#sp-footer{
  color: #ffffff;
	background:#40349a;
}
#sp-footer, #sp-footer a{
  color: #ffffff!important;

}
#sp-menu  {
    justify-items: flex-end;
}

.header-sticky {
  background: #40349a!important;

}
.header-sticky .logo img {
filter: brightness(100)!important;
}
.header-sticky li.sp-menu-item a, .header-sticky .sp-menu-separator {
filter: brightness(100)!important;
}
.header-sticky .sp-dropdown-inner {
 background: #40349a!important;
}
.header-sticky  .burger-icon > span {
 
    background-color: #ffffff;
 
}
.btn-primary.reqinfo
 {
    border-color: #ea3558;
    background-color: #ea3558;
	 width: 100%;
	}
.logogrim {
  position: relative;
  padding-left: 44px;   /* spazio per il logo, regola a piacere */
  line-height: 1.2;
}
.logogrim::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;          /* dimensioni logo */
  height: 38px;
  background-image: url(/favicon.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

.sp-page-title .breadcrumb {
    background: none;
    padding: 0;
    margin: 50px 0 0 0;
}
.mod-breadcrumbs.breadcrumb.px-3.py-2 {
    padding-left: 0rem !important;
}
.sp-page-title {
    /*background-color: rgba(64, 52, 154, 0.10)!important;*/
}
#sp-left .sp-module ul > li > a, #sp-right .sp-module ul > li > a {
    line-height: 26px!important;
    
}
.btn-primary.reqinfo:hover {
    border-color: #d6163b;
    background-color: #d6163b;
    width: 100%;
}
/*gallery scroll button*/
.scroll-btn {
    position: absolute;
    /* text-align: right; */
    background-color: #ffffff;
    margin-top: -40px;
  border: none;
    margin: -49px 0 0 2px;
}
.custom-gallery-wrap {
    /* Se vuoi fermarti 30px prima */
    scroll-margin-top: 48px;}
.contattagenzia {
    /* Se vuoi fermarti 30px prima */
    scroll-margin-top: 48px;}
.showall {
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 12px;
}
#jf_results ul.fields-container[style*="padding"] {
padding:0px!important;
}
ul.fields-container li::marker   {
display:none!important;
}
@media only screen and (max-width: 1040px) {
#sp-top-bar {
 display: none!important;
}}
.com-content-category.category-list.default-override {
  width: 100%;
  overflow-x: auto; /* Attiva lo scroll orizzontale se necessario */
  -webkit-overflow-scrolling: touch; /* Rende lo scroll fluido su iOS */
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px; /* Forza la tabella a non restringersi troppo */
}
div[itemprop="articleBody"] img {
    width:100%;
}
.offcanvas-menu.border-menu .offcanvas-inner ul.menu>li>a:hover {
    background:#eeeeee;
}
.offcanvas-menu .offcanvas-inner ul.menu>li>ul li {
    padding: 6px 0px!important;
}
.offcanvas-menu .offcanvas-inner ul.menu>li>ul li:hover {
    background:#eeeeee;
}
.custom-gallery .gallery-items.grid img {
    border-radius: 6px;
}
