/*!
 * Start Bootstrap - Modern Business (https://startbootstrap.com/template-overviews/modern-business)
 * Copyright 2013-2017 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-logomodern-business-nav/blob/master/LICENSE)
 */

:root {
  --primary-color: rgb(255, 140, 20);
  --primary-dark-color: #c26424;
  --second-color: #ffff8c;
}

body {
  padding-top: 54px;
  font-family: "Raleway" !important;
}

@media (min-width: 992px) {
  body {
    padding-top: 56px;
  }
}

a {
  color: var(--primary-color);
}

h2 {
  display: block;
  width: 100%;
  text-align: center;
}

section.row h2 {
  margin-top: 12px;
}

section.row p {
  margin-top: 20px;
}

footer {
  margin-top: 20px;
}

/* <TITLE ROW> */

.title-row {
  position: relative;
  color: white;
  text-align: center;
  margin-bottom: 48px;
  /* top: 60px; */
  z-index: 10;
}

.title-row .bg-image {
  background-image: url("../assets/images/risanamenti.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 0.5s ease;
  z-index: -2;
  position: absolute;
  width: 100%;
  height: 100%;
}

.title-row .bg-image:hover {
  transform: scale(1.2);
}

.title-row .overlay {
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 155, 48, 0.7);
}

.title-row .title {
  padding-top: 40px;
  padding-bottom: 0px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 45px;
}

.title-row .subtitle {
  padding-bottom: 40px;
  font-weight: 500;
}

/* </TITLE ROW> */

.md-form input[type="text"]:focus:not([readonly]) + label,
.md-form input[type="email"]:focus:not([readonly]) + label,
.md-form textarea.md-textarea:focus:not([readonly]) + label {
  color: var(--primary-color);
}

.md-form input[type="text"]:focus:not([readonly]),
.md-form input[type="email"]:focus:not([readonly]),
.md-form input[type="text"].valid,
.md-form input[type="email"].valid,
.md-form textarea.md-textarea:focus:not([readonly]) {
  border-bottom: 1px solid var(--primary-color);
  box-shadow: 0 1px 0 0 var(--primary-color);
}

.md-form textarea ~ label.active {
  color: #757575;
}

.md-form textarea.md-textarea.invalid + label:after {
  width: 100px;
}

.md-form input.invalid + label:after {
  width: 100px;
}

section.home-title {
  background-color: var(--primary-color);
  min-height: 100px;
  padding: 10px 100px;
  text-align: center;
  color: #343a40;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

section.home-title h1 {
  font-weight: 600;
  position: relative;
}

section.home-title p {
  font-size: 20px;
  font-weight: 300;
  position: relative;
}

section.home-title .divider {
  border-bottom: 1px solid black;
}

.top-text {
  animation: fadeFromTop 1s;
  display: none;
}

.bottom-text {
  animation: fadeFromBottom 1s;
  display: none;
}

@keyframes fadeFromTop {
  /* from 0 to full opacity */
  from {
    opacity: 0;
    top: -40px;
  }
  to {
    opacity: 1;
    top: 0;
  }
}

@keyframes fadeFromBottom {
  /* from 0 to full opacity */
  from {
    opacity: 0;
    bottom: -40px;
  }
  to {
    opacity: 1;
    bottom: 0;
  }
}

.main-container {
  padding-top: 40px;
}

header {
  height: 85vh;
}

.carousel,
.carousel-inner {
  height: 100%;
}

.carousel-inner .carousel-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding-top: 20px;
  padding-bottom: 35px;
  color: #fff;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.carousel-item {
  height: 100%;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.portfolio-item {
  margin-bottom: 30px;
}

.navbar-brand {
  background-image: url("../assets/images/logo-new-white.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  width: 200px;
  height: 50px;
}

.carousel-control-next .carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}

.carousel-control-prev .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}

.estimate .form {
  display: flex;
  flex-direction: row;
}

.estimate .form .column {
  flex-grow: 1;
}

.estimate .form .column.first-column {
  margin-right: 8px;
}

.estimate .form .column.second-column {
  margin-left: 8px;
}

section.who-we-are {
  width: 100%;
  text-align: justify;
}

section.who-we-are p {
  padding: 0 60px;
}

/* CONTACTS */

.contact-item {
  display: flex;
  margin: 14px 0px;
  white-space: pre-line;
  cursor: pointer;
}

.contact-item.mail {
  margin: 8px 0px;
}

.contact-item .icon {
  font-size: 32px;
  color: var(--primary-color);
  width: 40px;
}

.contact-item .text {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
}

.contact-item .label {
  font-size: 14px;
  height: 18px;
  color: #707070;
}

.contact-item .value {
  font-size: 14px;
  font-weight: bold;
  line-height: 17px;
}

.elem img {
  height: 300px;
  object-fit: cover;
}

.title {
  padding-bottom: 32px;
}

.service {
}

.service-image {
  height: 0;
  width: 100%;
  padding-top: 55%;
  /* margin-top: 10%; */
  background-position: center;
  background-size: cover;
  border-radius: 4px;
}

@media (max-device-width: 480px) {
  .estimate .form {
    flex-direction: column;
  }
  .estimate .form .column.first-column {
    margin-right: 0px;
  }
  .estimate .form .column.second-column {
    margin-left: 0px;
  }
  section.home-title {
    padding: 10px 40px;
  }
}

.sale {
  width: 25%;
  height: 300px;
  float: left;
  display: flex;
  flex-direction: column;
  padding: 2px;
}

.sale a {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sale a img {
  object-fit: cover;
  flex-grow: 1;
}
