/*
 Theme Name:   Revonet Cars
 Theme URI:    https://marcobrughi.com
 Description:  Revonet Cars theme w/custom functions.
 Author:       Marco Brughi
 Author URI:   https://marcobrughi.com
 Template:     generatepress
 Version:      1.0
*/


/* Utilities */
.custom-text-center {
   text-align: center;	
}


/* Contact Form 7 Styling */

/* Hide Contact Form 7 text field with this class */
.backback{padding:0px !important;margin:0px !important;width:0px !important;background-color:transparent !important;border:0px solid transparent !important;display:none !important;visibility:hidden !important;}

.bordoform{-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;}

 
/* Contact Form 7 - Custom Alert Messages */
/* error */
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output {
	border-color: #fff;
	color: #fff;
	background-color: #c40000;
	font-weight: 600;
	padding: 15px;
	width: 55%;
	margin: auto;
}
/* Message Sent */
.wpcf7 form.sent .wpcf7-response-output {
   	border-color: #fff;
	color: #fff;
	background-color: green;
	font-weight: 600;
	padding: 15px;
	width: 55%;
	margin: auto;
}

/* end CF7 Styling */



/* Back to top */
.top-link {
  transition: all 0.25s ease-in-out;
  position: fixed;
  bottom: 0;
  right: 0;
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  /*margin: 0 3em 3em 0; */
  margin: 0 .5em 1.0em 0;
  border-radius: 50%;
  padding: 0.25em;
  width: 60px; /* 80px */
  height: 60px;  /* 80px */
  background-color: #F8F8F8;
}
.top-link.show {
  visibility: visible;
  opacity: 1;
}
.top-link.hide {
  visibility: hidden;
  opacity: 0;
}
.top-link svg {
  fill: #000;
  width: 24px;
  height: 12px;
}
.top-link:hover {
  background-color: #E8E8E8;
}
.top-link:hover svg {
  fill: #000000;
}
.screen-reader-text {
  position: absolute;
  clip-path: inset(50%);
  margin: -1px;
  border: 0;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
  clip: rect(1px, 1px, 1px, 1px);
}
.screen-reader-text:focus {
  display: block;
  top: 5px;
  left: 5px;
  z-index: 100000;
  clip-path: none;
  background-color: #eee;
  padding: 15px 23px 14px;
  width: auto;
  height: auto;
  text-decoration: none;
  line-height: normal;
  color: #444;
  font-size: 1em;
  clip: auto !important;
}

/* Car Flex Grid */

.car-container {
  display: flex;
  
  /* flex-flow: wrap; */  
  flex-wrap: wrap; 

  height: 100%;
  padding: 15px;
  gap: 5px;

}

.car-container > div{
  border: 1px solid #ffcc80;
  /*border: 1px solid var(--contrast-3);*/
  border-radius: 5px;
  padding: 8px;
}


.car-btn-container {
  text-align: center;
}

.car-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 14px;
  border-radius: 4px;
  background-color: var(--accent);
  color: var(--base-2) !important;
}
.car-button :hover{
  background-color: var(--accent-2) !important;
  color: var(--base-2);
}
.car-box {
 background-color: #EDF5FF;

}
.car-img-list img {
  border-radius: 4px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.car-box-data {
 padding-top: 15px;
}
.car-title {
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  max-width: 300px;
}
.car-label-price { font-size: 18px; font-weight: 700;}
.car-price {
  font-family: Nunito, sans-serif;
  text-align: center;
  font-size: 25px;
  font-weight: 900;
  line-height: 8px;
  color: rgb(102, 102, 102);
}
.car-txt-desc {
  text-align: right;
  line-height: 8px;
  padding-right: 28px;
  font-size: 12px;
  font-weight: bold;
}
.car-txt-data {
  font-weight: normal;
}

/* Pag. Veicolo */
.page-template-single-auto .gb-container-510ba7c {

}
.gb-container-510ba7cf {
  background-color: var(--contrast);
}
h1.gb-headline-913083f2 {
  text-transform: capitalize;
  text-align: center;
  margin-bottom: 40px;
  color: var(--base-2);
}
h2.gb-headline-2631b7bd .gb-icon {
  line-height: 0;
  color: var(--base-2);
}
p.gb-headline-95d8a367 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0px;
  color: var(--base);
}
p.gb-headline-e0ef44f8 {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0em;
  color: var(--base-2);
}

/* Adjust to fix template 01/02/24 */
.new-car-container {
  padding-bottom: 30px;
  border: 1px solid var(--contrast-3);
  margin-bottom: 40px;
}


/* ---------------------- */

/* Car Single Flex Grid */

.car-single-container {
  display: flex;
  
  /* flex-flow: wrap; */  
  flex-wrap: wrap; 

  height: 100%;
  padding: 15px;
  gap: 5px;

}

.car-single-container > div{
  border: 3px solid #ffcc80;
  border-radius: 5px;
  padding: 8px;
}


/* Slider */
.car-slide-container {
  width: 50%;
}
.car-single-box-data {
  width: 49%;
}
.splide {
   margin: 0 auto;
}

.splide__slide img {
  width: 100%; 
  height: auto;
  border-radius: 3px;
}

.splide__slide {
  opacity: 0.6;
}

.splide__slide.is-active {
  opacity: 1;
}

.thumbnails {
  display: grid;
  margin: 1rem auto 0;
  padding: 0;
  justify-content: center;
  grid-gap: 2px;
  grid-template-columns: repeat(6, 85px);
}

.thumbnail {
  /*width: 120px;*/
  /*height: 120px;*/
  overflow: hidden;
  list-style: none;
  margin: 0 0.2rem;
  cursor: pointer;
}

.thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

/* -------------- */

.page-template-single-auto .site-content {
  display: block;
}
.car-single-title-container {
  text-align: center;
}

/* Car box feature */
.car-box-feature-container {
  display: flex;
  
  /* flex-flow: wrap; */  
  flex-wrap: wrap; 

  /*height: 100%;*/
  padding: 15px;
  gap: 5px;

}
.car-box-feature-container > div{
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  padding: 10px;
}
/* Flex Table */
.tbl {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
}
.row {
  display: flex;
  /* min-height: 50px;*/
  height: 25px;
}
.cell {
  flex: 4;
  flex: 0 0 33%;
}
.cell:nth-child(1) {
  flex: 1;
}
.cell:nth-child(2) {
  flex: 2;
}
.cell.span4-5 {
  flex: 8 24px;                    /*  col 4,5 flex-grow/border/padding  */
}
.cell.span3-4 {
  flex: 8 24px;                    /*  col 3,4 flex-grow/border/padding  */
}
.cell.span3-5 {
  flex: 12 36px;                   /*  col 3,4,5 flex-grow/border/padding  */
}
.row:first-child .cell {
  display: flex;
  justify-content: center;         /*  center horiz. */
  align-items: center;             /*  center vert. */
}
.row .cell {
  /* padding: 5px; */
  box-sizing: border-box;
}

.feature-head {
  font-size: 11px; 
  padding-left: 10px;
}
.feature-txt {
  font-weight: bold;
  font-size: 12px; 
}

.car-single-btn {
  text-align: right;
  padding-right: 25px;
  padding-bottom: 50px;
}

.car-box-optionals-container {}
.car-box-optionals-container ul {
  display: inline;
  margin:5px;
}
.car-box-optionals-container li {
    float: left;
    list-style: none;
    padding: 0 2px;
}
.car-optional { 
  border: 1px solid #d1d1d1; 
  font-size: 10px;  
  padding: 4px 8px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0,0,0,.25);
}
.car-box-description-container {
  margin-left: 15px;
}




/* 
 * Media Queries for smartphones - tablets ecc. 
 */
@media (min-width: 320px) and (max-width: 480px) {
  .car-slide-container {
    width: 100%;
  }
  .car-single-box-data {
    width: 100%;
  }
  .car-container > div {
    padding: 2px;
  }  
  .car-box-feature-container { padding: 0px; }
  .car-box-feature-container > div {padding: 2px;}
  .car-box-feature-container .fa-solid { font-size:8px; }
  .car-box-feature-container .fa-regular { font-size:8px; }
  .feature-head {
    font-size: 8px; 
    padding-left: 2px;
  }
  .feature-txt {
    font-weight: bold;
    font-size: 11px; 
  }
  .car-price { text-align: center !important; } 
  .car-label-price {
    display:block;
    line-height: 45px;
  }
  .car-single-btn { text-align: center !important; padding-bottom: 20px;} 
  .car-box-optionals-container {margin:20px;}
  .car-box-description-container { font-size:15px }
  .car-single-title-container h1 { font-size: 28px !important; }

  /* Thumbnail grid responsive */
  .thumbnails {
    grid-template-columns: repeat(4, 70px);
  }


}

