/*
Theme Name:  Istituti Leonardo Milano
Theme URI:   https://www.omnicron.it/
Author:      Omnicron di Dany Thach
Author URI:  https://www.omnicron.it/
Description: Tema personalizzato per Istituti Leonardo Milano
Version:     0.20
License:     GPLv2
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Sura&family=Roboto:wght@300;500&display=swap');

:root {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 300;
}

* {
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sura', sans-serif;
}

h1 {
  font-size: 3.5rem;
  font-weight: 1000;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: normal;
  text-transform: none;
  margin: 0;
  margin-bottom: 1rem;
}

p {
  margin: 0;
}

b, strong {
  font-weight: bold;
}

a {
	text-decoration: none;
	color: #333333;
	font-weight: bold;
}

a:hover {
	color: #777777;
}

strong {
  font-weight: 500;
}

img {
  width: auto;
  max-width: 100%;
}

iframe {
  border: 0;
}

header,
.header-space {
  height: 120px;
}

header {
  position: fixed;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--leonardo-background-menu-color);
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14),
              0 2px 1px 0 rgba(0, 0, 0, 0.12),
              0 1px 3px 0 rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.admin-bar header {
  top: 32px;
}

img.logo {
	margin-left: 20px;
  max-height: 100%;
  object-fit: contain;
  object-position: left;
}
  
.menus-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.social-menu {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin: 0.25em 0.5em;
  font-size: 1.5rem;
}

.social-menu li {
  margin-left: 0.5em;
}

.social-menu a {
  color: #ffffff;
}

.social-menu a:hover {
  color: #dddddd;
}

.menu {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  padding: 0.5em 1em;
}

.menu-item a {
  padding: 1em;
  font-weight: bold;
  color: var(--leonardo-text-menu-color);
  background-color: transparent;
  text-decoration: none;
}

.menu-item a:hover {
  background-color: rgba(0, 0, 0, 0.2);
	color: var(--leonardo-text-menu-color);
}

.menu-item-cta a {
  margin-left: 1.5em;
  padding: 1em 2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0.25em;
  background-color: #333333;
  color: #ffffff;
}

.menu-item-cta a:hover {
  background-color: #777777;
  color: #ffffff;
}
.menu-item-cta-outline a {
  color: #333333;
	background-color: #ffffff;
	border: 0.125rem solid #333333;
	box-sizing: border-box;
}

.menu-item-cta-outline a:hover {
	background-color: #dddddd;
  color: #000000;
}

.menu-item-cta-phone a::before {
	content: '\f095';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	margin-right: 0.5rem
}

.hamburger-menu-button {
  display: none;
  justify-content: center;
  align-items: center;
  width: 2em;
  height: 2em;
  border-radius: 5px;
  margin: 0.5rem;
  text-align: center;
  border: 1px solid var(--leonardo-text-menu-color);
  color: var(--leonardo-text-menu-color);
  background-color: transparent;
  font-size: 1.5rem;
}

.hamburger-menu-button::before {
  content: '\f0c9';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

body.menu-open .hamburger-menu-button {
  background-color: #333333;
  color: #ffffff;
}

.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.container-flex {
  display: flex;
  flex-direction: row;
  justify-content: stretch;
  align-items: stretch;
  flex-wrap: wrap;
}

.atf {
  width: 100%;
  background-color: #eeeeee;
}

.atf-text,
.atf-image {
  float: left;
  margin: 0;
}

.atf-text {
  width: 60%;
  padding: 4rem 2rem;
  z-index: 1;
}

.atf-text .payoff {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.atf-text p {
  font-size: 1.5rem;
}

.atf-image {
  position: relative;
  width: 40%;
}

.atf-image img {
  display: block;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150%;
  height: 100%;
  object-fit: contain;
	object-position: center;
}

.container-title {
  padding: 1rem;
}

.about-left,
.about-right {
  width: 50%;
  padding: 0 1rem;
}

.services-left,
.services-right {
  width: 50%;
  padding: 0 1rem;
}

.services-right ul {
  list-style-type: none;
}

.services-right li {
  position: relative;
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}

.services-right li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: -2rem;
  color: #de0025;
}

.courses h2,
.feedback h2,
.where-we-are h2 {
  text-align: center;
}

.course-wrapper {
  width: 33.333333%;
  padding: 1rem 2rem;
}

.course-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 1em;
  height: 4em;
  background-color: #de0025;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  box-shadow:
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 2px 1px 0 rgba(0, 0, 0, 0.12),
    0 1px 3px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.course-button:hover {
  box-shadow: none;
  color: #ffffff;
}

.course-text {
  line-height: 1.25em;
  padding: 1em;
  text-align: center;
}

.course-modal-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100001;
}

.course-open .course-modal-wrapper {
  display: block;
}

.course-modal {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  margin: 100px auto 0;
  width: 600px;
  max-width: 100%;
  background-color: #ffffff;
}

.course-modal-header {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
}

.course-modal-close {
  font-size: 2rem;
  line-height: 1em;
  width: 1em;
  height: 1em;
  background-color: transparent;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.course-modal-close::before {
  content: "\f00d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.course-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.course-modal-body {
  padding: 1rem;
}

.course-modal h4 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.video-container {
  width: 560px;
  max-width: 100%;
  margin: 0 auto;
}

.video-placeholder .image-wrap img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.feedback-video {
  margin-left: auto;
  margin-right: auto;
}

.text-feedbacks p {
  font-size: 1.5rem;
}

.where-we-are-left,
.where-we-are-right {
  width: 50%;
  padding: 0 1rem;
}

.where-we-are-intro {
  font-size: 1.5rem;
  margin: 1em 0;
  text-align: center;
}

.module-leonardo-address::before {
  content: '\f3c5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1em;
  position: absolute;
  top: 0;
  left: 0;
  width: 2em;
  height: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  border-radius: 1em;
  background-color: #de0025;
}

.module-leonardo-address {
  position: relative;
  display: table;
  font-size: 1.25rem;
  margin: 2em auto;
  padding-left: 3em;
}

.module-leonardo-contacts {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-top: 4em;
}

.module-leonardo-contacts::after {
  display: none;
}

.module-leonardo-contacts a {
  color: #333333;
  text-decoration: none;
}

.module-leonardo-contacts a:hover {
  color: #de0025;
}

.module-leonardo-contacts .contact a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-weight: bold;
}

.module-leonardo-contacts .contact a::before {
  content: '\f095';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 2em;
  line-height: 1em;
  box-sizing: border-box;
  padding: 0.5em;
  width: 2em;
  height: 2em;
  text-align: center;
  background-color: #de0025;
  border-radius: 1em;
  color: #ffffff;
  margin-bottom: 0.5em;
}

.module-leonardo-contacts .contact a:hover::before {
  opacity: 0.7;
}

.module-leonardo-contacts .contact a.contact-phone::before {
  content: '\f095';
}

.module-leonardo-contacts .contact a.contact-mobile::before {
  content: '\f3ce';
}

.module-leonardo-contacts .contact a.contact-email::before {
  content: '\f0e0';
}

.where-we-are-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 2em;
}

.contact-us-left,
.contact-us-right {
  width: 50%;
  padding: 1rem;
}

.contact-us-intro {
  margin: 2em 0;
}

.contact-us-form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.form-field-full {
  width: 100%;
}

.form-field-half {
  width: 50%;
}

.form-field-text {
  position: relative;
  display: block;
  padding: 0.5em;
  font-size: 1rem;
}

.form-field-text input[type="text"],
.form-field-text input[type="email"],
.form-field-text input[type="tel"] {
  width: 100%;
  font-size: inherit;
  padding: 1.3em 1em 0.7em;
  line-height: 1em;
  border-radius: 0.25em;
  border: 0;
}
.form-field-text input[type="text"].wpcf7-not-valid,
.form-field-text input[type="email"].wpcf7-not-valid,
.form-field-text input[type="tel"].wpcf7-not-valid {
  outline: 2px solid #ff0000;
}

.form-field-text .label {
  position: absolute;
  font-size: 0.8em;
  top: 1em;
  left: 1.5em;
  color: #444444;
}

.form-field-text .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-field-checkbox {
  padding: 0.5rem;
}

.form-field-checkbox input[type="checkbox"] {
  margin-right: 0.5em;
}

.form-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin: 1em 0;
}

.form-buttons button {
  background-color: #777777;
  color: #ffffff;
  padding: 0.5em 1em;
  border: 0;
  border-radius: 0.25em;
  width: 6em;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
}

footer {
  width: 100%;
  background-color: #333333;
  color: #ffffff;
}

footer p {
  color: inherit;
  text-align: center;
  padding: 1em 2em;
}

@media screen and (max-width: 1200px) {

  :root {
    font-size: 14px;
  }
  
  .container {
    width: 960px;
  }

  .menu {
    padding: 0.25em 0.5em;
  }

  .menu-item-cta a {
    margin-left: 1em;
    padding: 0.6em 1.2em;
  }

  .atf-text {
    padding: 5rem 2rem;
  }

  .about,
  .services,
  .courses,
  .feedback,
  .where-we-are,
  .contact-us {
    padding: 4rem 0;
  }

  .where-we-are-contacts {
    flex-direction: column;
    align-items: center;
    margin-top: 2em;
  }

  .where-we-are-contacts .contact {
    padding: 1em;
  }

}

@media screen and (max-width: 960px) {
  
  .container {
    width: 760px;
  }

  .hamburger-menu-button {
    display: flex;
  }

  .menu-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--leonardo-background-menu-color);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14),
                0 2px 1px 0 rgba(0, 0, 0, 0.12),
                0 1px 3px 0 rgba(0, 0, 0, 0.2);
  }

  body.menu-open .menu-wrapper {
    display: block;
  }

  .menu {
    flex-direction: column;
  }

  .menu-item a,
  .menu-item-cta a {
    display: block;
    text-align: center;
    margin: 0;
  }

  .atf-image img {
    bottom: 0;
    object-position: center;
  }

}

@media screen and (max-width: 768px) {

  h1 {
    font-size: 3rem;
  }

  .atf-text {
    padding: 2rem;
  }

  .atf-text .payoff {
    font-size: 1.5rem
  }

  .container {
    width: 100%;
    padding: 1rem;
  }

  .container-flex {
    flex-direction: column;
  }

  .atf-text, .atf-image {
    width: 100%;
  }

  .atf-image img {
    position: relative;
  }

  .module-leonardo-contacts {
    flex-direction: column;
    align-items: center;
  }

  .module-leonardo-contacts .contact {
    margin-bottom: 2rem;
  }

  .form-field-half {
    width: 100%;
  }

}
