/*
 Theme Name:   Villa Theme
 Theme URI:    http://it2b.es
 Description:  Villa Theme based on Divi from Elegant Themes
 Author:       it2b, Fiona Marí, Ángela Russi, Alejo Palacio, Luis Mas
 Author URI:   http://it2b.es
 Template:     Divi
 Version:      1.0.0
 Text Domain:  villa
*/

/*
# Typography
# General styles
# Buttons
# Forms
# Header
# Footer
# Contact Form Module
# Blurb Module
# Rates table
# Calendar
# Contact row
*/

/* Typography */
h1, h2, h3 {
	color: #bb6c48;
}
h4, h5, h6 {
	color: #666;
}
h1, h2 {
	font-size: 50px;
}
h3 {
	font-size: 25px;
}
.entry-content ul {
	line-height: 2;
}

/* General styles */
.et_pb_row,
.container {
	width: 90%;
	max-width: 1920px;
}
.et_pb_text_inner a:not(.icon-link) {
	border-bottom: 1px solid;
}
.center-items .et_pb_column {
	display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
@media screen and ( min-width: 981px ) {
	.fullheight-row {
		min-height: 75vh;
		max-height: 1000px;
	}
	.et_pb_column_1_2 .et_pb_text {
		max-width: 700px;
		margin: 0 auto;
	}
}
@media screen and ( min-height: 1441px ) {
	.fullheight-row {
		min-height: 1080px;
	}
}
@media screen and ( max-width: 980px ) {
	body p {
		font-size: 18px;
	}
}
/* Buttons */
.et_pb_contact p input[type="submit"] {
	width: auto;
	padding: .3em 1em;
	border: 2px solid transparent;
	font-size: 20px;
	background-color: #bb6c48;
}
.et_pb_contact p input[type="submit"]:hover {
	padding: .3em 1em;
}
/* # Forms */
p.et_pb_contact_field {
	margin-bottom: 0;
}
.et_pb_contact_field a {
	text-decoration: none;
}
label {
	font-size: 14px;
	line-height: 1;
}
span.wpcf7-list-item {
	margin: 0;
}
.et_pb_contact p input[type=checkbox] + .wpcf7-list-item-label i {
	content: "";
	position: relative;
	display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 2px;
	vertical-align: middle;
    font-style: normal;
	background-color: #eee;
}
.et_pb_contact p input[type=checkbox]:checked + .wpcf7-list-item-label i:before {
	content: '\f147';
	position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    font-family: dashicons;
    color: #336b6d;
    width: 17px;
    height: 17px;
    font-size: 17px;
    line-height: 17px;
}
span.wpcf7-not-valid-tip {
	font-size: 15px;
}
div.wpcf7-response-output {
	margin: 2em 0 1em;
}
div.wpcf7-mail-sent-ok {
    border: 2px solid #4d898a;
}
.et_pb_contact_field[data-type=select]::after {
	top: calc(50% + 19px);
}
@media screen and ( min-width: 768px ) {
	#main-content .et_pb_contact .et_pb_contact_field_third {
	    width: 33.33%;
	    float: left;
		clear: none;
	}
}
@media screen and ( max-width: 980px ) {
	input[type="date"] {
		min-height: 53px;
	}
}

/* # Header */
#main-header,
#main-header.et-fixed-header {
	-webkit-box-shadow: none !important;
            box-shadow: none !important;
}
#top-menu .wpml-ls-item {
	padding-right: 10px;
	opacity: .5;
	-webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
#top-menu .wpml-ls-item:hover {
	opacity: 1;
}
@media screen and ( max-width: 980px ) {
	.et_header_style_left #logo {
	    max-width: 80%;
	}
	.et_mobile_menu {
		border-top-width: 1px;
		-webkit-box-shadow: none;
            box-shadow: none;
	}
	#logo {
		vertical-align: sub;
	}
	li.wpml-ls-item {
		display: inline-block;
    	padding: 0 5%;
	}
}

/* # Footer */
.credits {
	display: inline-block;
	line-height: 1em;
}
.credits::before {
	content: '';
	display: inline-block;
	height: 1em;
	width: 17px;
	margin-right: 3px;
	background: url(images/it2b.png) center/contain no-repeat;
	vertical-align: bottom;
}

/* # Contact Form Module */
.et_pb_contact_field[data-id="acceptance"] .et_pb_contact_field_options_title {
	display: none;
}

/* Fullwidth header */
.et_pb_fullwidth_header .et_pb_fullwidth_header_container.center .header-content {
	width: 100%;
}
/* Gallery Module */
.et_pb_gallery_image:not(.ie-edge) {
    padding-top: 100%;
}
.et_pb_gallery_image:not(.ie-edge) img {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	-o-object-fit: cover;
       object-fit: cover;
}
.et_pb_filterable_portfolio_grid .et_pb_portfolio_item .et_pb_module_header,
.et_pb_filterable_portfolio_grid .et_pb_portfolio_item h2,
.et_pb_gallery_grid .et_pb_gallery_item .et_pb_gallery_title,
.et_pb_gallery_grid .et_pb_gallery_item h3,
.et_pb_portfolio_grid .et_pb_portfolio_item .et_pb_module_header,
.et_pb_portfolio_grid .et_pb_portfolio_item h2 {
    margin: 15px 0 0;
}
.et_pb_gutters2.et_pb_row .et_pb_column_4_4 .et_pb_grid_item {
	margin-bottom: 2%;
}
.mfp-bg {
    background: #fff;
}
.mfp-fade.mfp-bg.mfp-ready {
	opacity: .9;
}
.mfp-figure::after {
	-webkit-box-shadow: none;
		   box-shadow: none;
}
.mfp-bottom-bar {
    padding-top: 10px;
}
.mfp-iframe-holder .mfp-close,
.mfp-image-holder .mfp-close,
.mfp-arrow-left .mfp-a,
.mfp-arrow-left:after,
.mfp-arrow-right .mfp-a,
.mfp-arrow-right:after,
.mfp-title,
.mfp-counter {
    color: #bb6c48;
}
.mfp-iframe-holder .mfp-close,
.mfp-image-holder .mfp-close {
    opacity: .5;
}
.et_pb_gallery .et_pb_gallery_pagination {
	margin-top: 30px;
	padding-top: 5px;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
}
.et_pb_gallery .et_pb_gallery_pagination ul li a {
	font-size: 20px;
}
.et_pb_gallery_pagination ul::after {
	height: 10px;
    display: block;
}
.et_pb_gallery .et_pb_gallery_pagination ul li.page a.active {
	color: #bb6c48;
}
@media screen and ( max-width: 767px ) {
	.et_pb_column .et_pb_grid_item {
		width: 100%;
	}
	.et_pb_gallery_item:not(.et_pb_gallery_item_0_0),
	.et_pb_gallery_pagination {
		display: none !important;
	}
	.et_pb_gallery .et_pb_gallery_item_0_0 .et_overlay {
		background-color: rgba(248, 242, 237, 0);
		opacity: 1;
    	z-index: 1;
	}
	.et_pb_gallery_image .et_overlay:before {
		top: 50%;
	}
}
/* # Blurb Module */
.et_pb_blurb_position_left .et_pb_main_blurb_image,
.et_pb_blurb_position_right .et_pb_main_blurb_image {
	width: 60px;
}
.et_pb_blurb_position_left .et_pb_blurb_container,
.et_pb_blurb_position_right .et_pb_blurb_container {
	vertical-align: middle;
}
.et_pb_column_1_4 .et_pb_module_header {
	font-size: 20px;
}

/* # Rates table */
.entry-content .rates-table table {
	border-color: #fff;
	background-color: #fff;
}
.entry-content .rates-table thead th {
	color: #8bb3c0;
	padding: 0 5px;
}
.entry-content .rates-table tr td {
	padding: 0 5px;
	border-color: #fff;
	vertical-align: top;
}
.rates-table td:first-child {
	color: #336b6d;
}
.rates-table td:last-child {
	font-size: 15px;
	text-align: right;
}
.rates-table td:last-child strong {
	font-size: 20px;
}
@media screen and ( min-width: 981px ) {
	.rates-table {
		padding-top: 59px;
	}
}
@media screen and ( max-width: 1151px ) and ( min-width: 981px ) {
	.rates-table td:last-child strong {
		display: block;
	}
}
@media screen and ( max-width: 520px ){
	.entry-content .rates-table tr td {
		padding: 0;
		line-height: 2;
	}
	.entry-content .rates-table thead th {
		padding: 9px 0;
	}
	.entry-content .rates-table tbody,
	.rates-table td:last-child,
	.rates-table td:last-child strong {
		font-size: 14px;
	}
}

/* # Calendar */
.wpsbc-container[data-columns] .wpsbc-calendars .wpsbc-calendar {
	max-width: 100% !important;
}
.wpsbc-container .wpsbc-calendars .wpsbc-calendar .wpsbc-calendar-header {
	background-color: #fff;
}
.wpsbc-container .wpsbc-calendars .wpsbc-calendar .wpsbc-calendar-header .wpsbc-select-container select {
	height: 40px;
	line-height: 40px;
	font-size: 18px;
}
.wpsbc-container .wpsbc-calendars .wpsbc-calendar .wpsbc-calendar-header .wpsbc-calendar-header-navigation .wpsbc-next,
.wpsbc-container .wpsbc-calendars .wpsbc-calendar .wpsbc-calendar-header .wpsbc-calendar-header-navigation .wpsbc-prev {
	height: 40px;
	margin-top: -20px;
	border-radius: 0;
	background-color: #bb6c48;
}
#main-content .wpsbc-container.wpsbc-calendar-1 .wpsbc-legend-item-icon-1 div:first-of-type {
    background-color: #d5e7e7;
}
#main-content .wpsbc-container.wpsbc-calendar-1 .wpsbc-legend-item-icon-2 div:first-of-type {
    background-color: #e8ccc0;
}
.wpsbc-legend {
	border: none;
}
@media screen and ( min-width: 521px ) {
	.wpsbc-container .wpsbc-calendars .wpsbc-calendar .wpsbc-calendar-header {
		padding: 34px;
	}
	.wpsbc-container .wpsbc-calendars .wpsbc-calendar-wrapper {
		padding: 0 34px 34px;
	}
	.wpsbc-legend {
		padding: 0 34px;
	}
}

/* # Contact row */
@media screen and ( min-width: 981px ) {
	.contact-row .et_pb_column.et-last-child {
		margin-top: 56px;
	}
}
