
/*
Theme Name: New Horizon
Author: Activart Srl
Author URI: https://www.activart.it/
Description: Theme for New Horizon
Version: 1.0
License: GNU General Public License
*/

* {
  box-sizing: border-box;
}

:root {
  --primary-color: #205189;
  --secondary-color: #ed7237;
  font-family: sans-serif;
  font-size: 16px;
}

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

.site-header {
  position: fixed;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: var(--primary-color);
  z-index: 10001;
}

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

.site-header .logo {
  margin-left: 16px;
}

.hamburger-menu {
  width: 1em;
  height: 1em;
  font-size: 1.5rem;
  color: #ffffff;
  background-color: transparent;
  border: 0;
  margin-right: 16px;
  padding: 0;
  cursor: pointer;
}

.site-navigation {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
}

body.site-menu-open .site-navigation {
  display: block;
  background-color: var(--primary-color);
}

.site-navigation ul.menu,
.site-navigation ul.languages-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.site-navigation ul.languages-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.site-navigation ul.menu li.menu-item>a {
  display: block;
  width: 200px;
  padding: 1em 2em;
  max-width: 100%;
  color: #ffffff;
  text-decoration: none;
}

.site-navigation ul.languages-menu li.menu-item>a {
  padding: 0.5em 1em;
  display: block;
}

.site-navigation li.menu-item>a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

main {
  margin-top: 64px;
}

.site-footer {
  background-color: #303030;
  color: #808080;
}

.site-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer h4 {
  color: #ffffff;
}

.site-footer a {
  color: #808080;
  text-decoration: none;
  font-weight: bold;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-column {
  width: 100%;
  padding: 1rem 2rem;
}

.footer-column .menu {
  list-style-type: none;
  padding-left: 1rem;
}

.footer-column .menu a {
  font-size: 0.75rem;
}

.oc-home-box {
  position: relative;
  margin: 2em;
  padding: 1em 4em;
  border: 2px solid var(--primary-color);
  border-bottom: 0;
}

.oc-home-box::before {
  content: attr(oc-title);
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  background-color: #ffffff;
  padding: 0.5em 1em;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.5rem;
}

.oc-home-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 30%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 1rem;
}

.oc-home-image-wrapper::before {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 2rem;
  height: 90%;
  background-color: var(--secondary-color);
  z-index: 1;
}

.oc-home-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 60%;
  height: 2rem;
  background-color: var(--secondary-color);
  z-index: 1;
}

.oc-home-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  .site-footer .footer-column {
    width: 25%;
  }

  .hamburger-menu {
    display: none;
  }

  .site-navigation {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    position: static;
  }

  .site-navigation ul.menu {
    display: flex;
    flex-direction: row;
    margin-right: 16px;
  }

  .site-navigation ul.menu li.menu-item>a {
    width: unset;
  }

}