/* General */
:root {
  --blue: #000099;
  --blue-transparent: rgb(0, 0, 153, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}
#wraper {
  min-height: 100%;
  position: relative;
}


body {
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
  color: white;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  color: white;
}

a {
  color: white;
  text-decoration: none;
}

p {
  margin: 0.5rem 0;
}

img {
  width: 100%;
}

/* Header */
.topnav {
  display: none;
}

header {
  background-color: var(--blue);
  display: flex;
  width: 100%;
  height: 80px;
  align-content: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0px 10px 25px 1px #000;
  transition: 0.3s;
}

.scrolled {
  background-color: var(--blue-transparent);
  transition: 0.3s;
}

header a {
  width: 450px;
  height: auto;
  margin: auto;
}

header div a {
  font-size: 18px;
  padding: 20px 20px;
}

.mynavbar {
  width: 100%;
  height: 80px;
  padding: 30px 30px;
}

.mynavbar i {
  padding-right: 5px;
}

.topnav i {
  padding-right: 5px;
}

.menu-left {
  text-align: right;
}

.menu-right {
  text-align: left;
}

.mynavbar a:hover, .mynavbar a:active {
  text-decoration: underline;
  color: white;
}

/* Language Menu */
.lang {
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 15px;
  top: 15px;
}

.lang a {
  font-size: 16px;
  padding: 0;
}

.lang a:active, .lang a:hover {
  color: white;
  text-decoration: underline;
}


/* Carousel Caption */
.carousel-caption {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
  top: 20px;
}

.carousel-caption h3 {
  font-size: 34px;
}

.carousel-caption p {
  font-size: 22px;
}


/* Container */
.container {
  display: block;
  max-width: 1200px;
  /* height: auto; */
  margin: auto;
  padding: 0;
}

/* Centered */
.centered {
  width: 80%;
  margin: auto;
}

/* Sections */
section {
  height: 600px;
  box-shadow: 0px 10px 25px 1px #000;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
  background-color: var(--blue);
  padding: 20px 20px;
}

section p {
  font-size: 20px;
  width: auto;
  height: 290px;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

section button {
  word-wrap:
}

#servizi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-right: 50px;
  background-image: url("../img/servizi.png");
  background-size: cover;
  background-position: center;
}

#chi-siamo {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px;
  background-image: url("../img/chi-siamo.png");
  background-size: cover;
  background-position: center;
}

.shorter {
  height: 400px;
}

/* Contact Us Form */
form {
  width: 80%;

}

form h3 {
  color: black;
  margin-bottom: 20px;
}

form label {
  color: black;
}

form .button {
  margin-top: 15px;
  margin-left: 0px;
  background-color: var(--blue);
  color: white;
}

.form-control {
  border: 1.5px solid var(--blue);
}

.black-text {
  color: black;
}

.text-align-center {
  text-align: center;
}

/* Paddings */

.padding-40px {
  padding: 40px;
}

/* Buttons */
.button {
  font-size: 20px;
  color: white;
  background-color: var(--blue-transparent);
  padding: 5px 20px;
  border: 2px solid white;
  border-radius: 15px;
  margin: 20px;
  transition: background-color 0.5s, border 0.5s, color 0.5s;
}

.button:hover {
  background-color: white;
  color: var(--blue);
  border: 2px solid var(--blue);
}

button i {
  margin-left: 5px;
}

/* Gallery */
.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  flex: 33%;
  max-width: 33%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

.full-width {
  width: 100%;
}

.button-center{
  width: 30%
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#gallery-btn {
  width: 30%;
  background-color: var(--blue);
}

#gallery-btn:hover {
  background-color: white;
}



/* Footer */
footer {
  position: absolute;

  background-color: var(--blue);
  width: 100%;
  height: 50px;
  bottom: 0px;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer a {
  width: 100px;
  line-height: 10px;
  position: absolute;
  left: 7px;
}

footer p {
  font-size: 14px;
}

/* Contact Page */
.contact {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.contact>div {
  width: 45%;
  margin: 0px 1%;
}

.contact form {
  width: 100%;
}

.contact-info a {
  color: var(--blue);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info a {
  margin-left: 10px;
}


/* Media Queries */
/* @media (min-height: 890px) {
    .servizi-page footer {
    position: absolute;
  }
}

@media (min-height: 1300px) {
    .chi-siamo-page footer {
    position: absolute;
  }
} */

@media (max-width: 1024px) {
  .mynavbar i {
    display: none;
  }

  .contact>div {
    width: 90%;
  }

  .contact>div:first-child {
    margin-bottom: 40px;
  }

  .contact div iframe {
    height: 300px;
  }
}

@media (max-width: 850px) {
  /* .mynavbar {
    display: none;
  }

  .lang {
    display: none;
  } */

  /* header a {
    width: 200px;
    height: auto;
  } */



  header {
    display: none;
  }

  .carousel-caption {
    top: 7px;
  }

  .carousel-caption h3 {
    font-size: 28px;
  }

  .carousel-caption p {
    font-size: 18px;
  }

  #gallery-btn {
    width: 40%;
  }

  #rowmobile .column {
      flex: 49%;
      max-width: 49%;
  }

  /* Mobile Menu */
  /* Style the navigation menu */
  .topnav {
    display: block;
    z-index: 100;
    top: 0px;
    overflow: hidden;
    background-color: var(--blue);
    position: sticky;
  }

  /* Hide the links inside the navigation menu (except for logo/home) */
  .topnav #myLinks {
    display: none;
  }

  /* Style navigation menu links */
  .topnav a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
  }

  /* Style the hamburger menu */
  .topnav a.icon {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }

  /* Add a grey background color on mouse-over */
  .topnav a:hover {
    /* background-color: white;
    color: var(--blue); */
    text-decoration: underline;
  }

  /* Style the active link (or home/logo) */
  .topnav .active {
    background-color: var(--blue);
    color: white;
  }

  .topnav>a:first-child {
    width: 150px;
    height: auto;
  }

  .topnav div:last-child {
    display: flex;
    align-items: center;
    padding: 0px 16px;
  }

}

@media (max-width: 600px) {
  h2 {
    font-size: 24px;
  }

  section p {
    font-size: 18px;
  }

  footer {
    padding-top: 10px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  footer a {
    width: 120px;
    position: initial;
  }

  .carousel-caption {
    top: 2px;
  }

  .carousel-caption h3 {
    font-size: 20px;
  }

  .carousel-caption p {
    font-size: 16px;
  }

  /* .column {
    flex: 100%;
    max-width: 100%;
  } */

  #myCarousel2 .carousel-indicators {
    display: none;
  }

  .lang {
    display: none;
  }

  #gallery-btn {
    width: inherit;
  }

  .hide {
    display: none;
  }

  #servizi {
    grid-template-columns: 1fr;
    padding-right: 20px;
  }

  #chi-siamo {
    padding: 20px;
    padding-top: 50px;
  }
}

@media (max-width: 480px) {
  .contact-info {
    text-align: center;

  }

  .contact-info a {
    display: block;
    margin-top: 5px;
  }
}

@media (max-width: 410px) {
  section p {
    font-size: 16px;
  }

  #myCarousel h3, #myCarousel p, #myCarousel .carousel-indicators {
    display: none;
  }
}
