:root {
  --primary-color: #b1a718;
  --second-color: #262626;
}

@font-face {
  font-family: "Roboto 100";
  src: url("../fonts/robotocondensed-light-webfont.eot");
  src: url("../fonts/robotocondensed-light-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/robotocondensed-light-webfont.woff2") format("woff2"),
    url("../fonts/robotocondensed-light-webfont.woff") format("woff"),
    url("../fonts/robotocondensed-light-webfont.ttf") format("truetype"),
    url("../fonts/robotocondensed-light-webfont.svg#roboto_condensedlight")
      format("svg");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Roboto 200";
  src: url("../fonts/robotocondensed-regular-webfont.eot");
  src: url("../fonts/robotocondensed-regular-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/robotocondensed-regular-webfont.woff2") format("woff2"),
    url("../fonts/robotocondensed-regular-webfont.woff") format("woff"),
    url("../fonts/robotocondensed-regular-webfont.ttf") format("truetype"),
    url("../fonts/robotocondensed-regular-webfont.svg#roboto_condensedregular")
      format("svg");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Roboto 300";
  src: url("../fonts/robotocondensed-bold-webfont.eot");
  src: url("../fonts/robotocondensed-bold-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/robotocondensed-bold-webfont.woff2") format("woff2"),
    url("../fonts/robotocondensed-bold-webfont.woff") format("woff"),
    url("../fonts/robotocondensed-bold-webfont.ttf") format("truetype"),
    url("../fonts/robotocondensed-bold-webfont.svg#roboto_condensedbold")
      format("svg");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0px !important;
  padding: 0px !important;
  box-sizing: border-box !important;
  width: 100%;
  height: 100%;
  font-family: "Roboto 200", sans-serif;
  position: relative;
  color: white;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
}
a,
button,
li,
.form-group span .fa {
  -webkit-transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  -moz-transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  -o-transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
a,
a:focus,
a:visited,
a:hover {
  text-decoration: none;
  font-style: normal;
  color: #888;
}
section {
  position: relative;
}
section h1 {
  margin: 0 0 40px 0;
  font-size: 40px;
  text-align: center;
  color: #666;
}
.form-group span {
  display: inline-block;
  width: 100%;
  position: relative;
}
.form-group span input[type="password"] {
  padding-right: 30px;
}
.form-group span .fa-eye-slash,
.form-group span .fa-eye {
  position: absolute;
  cursor: pointer;
  right: 0px;
  top: 0px;
  padding: 14px;
  font-size: 20px;
  color: #fff;
}

body {
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
}

h1,
h2 {
  font-family: "Roboto 300", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1rem;
}

p, ul {
  font-size: 1.75rem;
  line-height: 2.5rem;
  letter-spacing: 0.25rem;
  padding: 10px 0;
}

#background-carousel {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: black;
}
.carousel,
.carousel-inner {
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  opacity: 0.7;
}
.item {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  z-index: 0;
}

#content-wrapper {
  position: absolute;
  z-index: 1 !important;
  min-width: 100%;
  min-height: 100%;
}
.well {
  opacity: 0.85;
}

.block {
  display: flex;
  position: absolute;
  background: #a1aa20ef; /* #da1311 */
  overflow: hidden;
  transition: height 0.5s ease-in-out, width 0.5s ease-in-out; /* Changed to specify properties */
  z-index: 99;
}

/*.block div { border: 1px solid black; }*/

/* BLOCK TOP STYLES */
.block-top {
  flex-direction: column;
  height: 0;
  width: 100%;
  left: 0;
  padding: 0;
}

.block-top-open {
  color: white;
  height: 50vh;
  transition: all 0.5s ease-in-out;
}

.top-content,
.top-close-area {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.top-content {
  height: 90%;
}
.top-content div {
  max-width: 60%;
}
.top-close-area {
  height: 10%;
}

/* BLOCK LEFT STYLES */
.block-left {
  flex-direction: row;
  height: 100%;
  width: 0;
  left: 0;
}

.block-left-open {
  color: white;
  width: 850px;
  transition: all 0.5s ease-in-out;
}

.left-content,
.left-close-area,
.right-content,
.right-close-area {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.left-content,
.right-content {
  width: 90%;
}
.left-content div {
  max-width: 60%;
}
.right-content div {
  max-width: 70%;
}
.left-close-area,
.right-close-area {
  width: 10%;
}

/* BLOCK RIGHT STYLES */
.block-right {
  flex-direction: row;
  height: 100%;
  width: 0;
  right: 0;
  /*background: white;*/
}

.block-right-open {
  color: white;
  /* width: 850px; */
  width: 100vw;
  transition: all 0.5s ease-in-out;
}

.content-head,
.content-body,
.content-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  margin: 0;
}

.content-head div,
.content-footer div {
  display: flex;
  /*border: 1px solid black; */
}

.menu {
  justify-content: center;
}

.menu a,
.close-block {
  color: white;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  cursor: pointer;
  display: block !important;
  visibility: visible !important;
}

form div {
  display: flex;
  flex-direction: column;
  padding: 5px 0 !important;
}

.form-control {
  min-height: 55px;
  color: #262626;
}

.form-control,
label,
input,
textarea,
form button {
  font-size: 1.75rem;
  line-height: 2.5rem;
  letter-spacing: 0.25rem;
  font-weight: normal;
}

.form-control,
input,
textarea,
form button {
  padding: 15px;
  border-radius: 0;
  /* border-radius: 20px; */
  /* border: 0px; */
  border: solid 1px transparent;
  background: white;
  width: 100%;
}

.form-control,
textarea:focus,
input:focus,
form button:focus {
  outline: none;
}

form button {
  background: var(--second-color);
  color: var(--primary-color);
  text-transform: uppercase;
}

.close-block {
  border: none;
  background: transparent;
  font-size: 2rem;
}

/* CONTENT HEAD STYLES */
.content-head {
  height: 25vh;
}

.menu-top,
.social {
  padding: 20px;
}

/* Repositioned button */
.menu-top {
  position: absolute;
  top: 20px; /* 'pequeninissimo respiro' */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.menu-left-column { /* New style for the container */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
  justify-content: center;
  align-items: center;
}

.social {
  justify-content: flex-end;
  align-items: flex-start;
}

.social svg,
.social-mobile svg {
  margin: 5px;
}

.social a svg,
.social a img {
  transform: rotate3d(0, 1, 0, 0deg);
  -webkit-transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  -moz-transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  -o-transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.social a:hover svg,
.social a:hover img {
  transform: rotate3d(0, 1, 0, 360deg);
}

/* CONTENT BODY STYLES */
.content-body {
  height: 60vh;
  position: relative;
}

.main-content {
  padding: 0;
}

.slogan {
  text-align: center;
  margin-bottom: 5px;
  margin-top: 80px; /* Push down to avoid overlap */
}

.slogan p:nth-child(2) {
  font-size: 1.75rem;
  line-height: 1.2rem;
  padding: 0 !important;
  margin: 0 !important;
}

.slogan p:last-child {
  margin-bottom: 20px;
}

.slogan button {
  background: var(--primary-color);
  color: #fff;
  padding: 15px;
  margin-bottom: 20px;
  margin: 0 auto !important;
  border: 0;
  font-weight: bold;
  left: 250px !important;
  text-transform: uppercase;
}

.slogan button:hover {
  color: var(--primary-color);
  background: #fff;
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
}

.menu-left a,
.menu-right a {
  text-align: center;
  white-space: nowrap;
}

.menu-left a,
.left-close-area > button {
  -ms-transform: rotate(-90deg); /* IE 9 */
  -webkit-transform: rotate(-90deg); /* Safari 3-8 */
  transform: rotate(-90deg);
  height: 80px; /* Adjusted height */
}

.menu-top a { /* Apply rotation to menu-top a */
  transform: none;
  height: auto;
}
.menu-right a,
.right-close-area > button {
  -ms-transform: rotate(90deg); /* IE 9 */
  -webkit-transform: rotate(90deg); /* Safari 3-8 */
  transform: rotate(90deg);
  height: 80px; /* Adjusted height */
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: -7% !important;
}

/* CONTENT FOOTER STYLES */
.content-footer,
.content-footer-mobile {
  height: 15vh;
}

.signature,
.menu-bottom,
.create-logo {
  align-items: flex-end;
}

.signature,
.create-logo {
  padding: 20px;
}

.signature {
  justify-content: flex-start;
}

.menu-bottom {
  justify-content: center;
}

.content-footer .menu-bottom p {
  white-space: nowrap;
}

.create-logo {
  justify-content: flex-end;
}

.create-logo img {
  max-width: 70px;
}

#fale-conosco {
  color: white;
  text-decoration: underline;
}

#submit {
  -webkit-transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  -moz-transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  -o-transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

#submit:hover {
  background: var(--primary-color);
  color: var(--second-color);
}

/* Mobile overrides for close button alignment - added to definitively fix persistent issues */

@media (max-width: 992px) {

    .top-close-area .close-block,

    .left-close-area .close-block,

    .right-close-area .close-block {

        transform: none !important;

        transform-origin: center center !important;

        left: 0 !important;

        right: 0 !important;

        margin-left: auto !important;

        margin-right: auto !important;

        /* Ensure display and box model are conducive to centering */

        display: block !important;

        width: auto !important;

        max-width: 100% !important;

        box-sizing: border-box !important;

    }

    .top-close-area .close-block i,

    .left-close-area .close-block i,

    .right-close-area .close-block i {

        transform: none !important;

    }

    /* Explicitly set height for consistency on mobile */

    .top-close-area,

    .left-close-area {

        height: auto !important;

    }

}
