@font-face {
  font-family: "Tinos";
  src: url("assets/Tinos.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "FontAwesome";
  src: url("assets/fontawesome-webfont.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
  font-display: block;
}

:root {
  --green: #4bad33;
  --footer: #e9e7e4;
  --muted: #878787;
  --container: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: #000;
  background: #fff;
  font: 14px/20px Arial, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #000033;
  outline: none;
}

button,
input {
  font: inherit;
}

.container {
  width: var(--container);
  max-width: calc(100% - 30px);
  margin-inline: auto;
}

.fa {
  font-family: "FontAwesome";
  font-style: normal;
  font-weight: normal;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-only,
.mobile-tools,
.mobile-search,
.menu-close,
.mobile-arrow {
  display: none;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 200px;
  background: #fff;
}

.holding-bar {
  height: 60px;
  padding: 17px 0;
  background: var(--green);
}

.holding-bar a {
  color: #fff;
  font-size: 18px;
  line-height: 26px;
}

.holding-bar a:hover {
  color: #fff;
  text-decoration: underline;
}

.header-shell {
  height: 140px;
}

a.active{
    border-bottom: 2px solid #4bad33 !important;
}


.utility-row {
  position: relative;
  height: 70px;
}

.utility-inner {
  position: relative;
  height: 100%;
}

.utility {
  position: absolute;
  top: 20px;
  right: -5px;
  display: flex;
  align-items: center;
  height: 28px;
}

.languages {
  display: flex;
  gap: 4px;
  align-items: center;
  padding-left: 6px;
  margin-right: 10px;
  border-left: 2px solid #acacac;
  line-height: 20px;
}

.languages a {
  color: #acacac;
  font-weight: 700;
}

.languages a.is-current,
.languages a:hover {
  color: #000;
}

.languages span {
  color: #acacac;
}

.desktop-search {
  display: flex;
  height: 28px;
}

.desktop-search input {
  width: 55px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #b2b2b2;
  border-right-color: transparent;
  border-radius: 7px 0 0 7px;
  background: #cdcccc;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
  transition: width .5s ease-in;
}

.desktop-search input:focus {
  width: 200px;
  outline: none;
}

.desktop-search button {
  width: 30px;
  height: 28px;
  padding: 0;
  color: var(--muted);
  background: #cdcccc;
  border: 1px solid #b2b2b2;
  border-left-color: transparent;
  border-radius: 0 7px 7px 0;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
  cursor: pointer;
}

.desktop-search .fa {
  font-size: 18px;
}

.main-nav {
  position: relative;
  height: 50px;
}

.nav-inner {
  position: static;
  height: 50px;
}

.brand {
  position: relative;
  z-index: 2;
  top: -45px;
  float: left;
  width: 255px;
  height: 50px;
  padding: 15px 0;
}

.brand img {
  display: block;
  width: 255px;
  height: 114px;
}

.navigation-panel {
  height: 50px;
}

.primary-menu {
  float: right;
  display: flex;
  height: 42px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu > li {
  position: static;
  height: 42px;
}

.primary-menu > li > a {
  position: relative;
  display: block;
  height: 42px;
  padding: 15px 0 5px;
  margin: 0 28px;
  color: #000;
  border-bottom: 2px solid #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.primary-menu > li:last-child > a {
  margin-right: 0;
}

.primary-menu > li > a:hover,
.primary-menu > li > a:focus,
.primary-menu > li.is-open > a {
  color: #000;
  border-bottom-color: var(--green);
}

.mega-menu {
  position: absolute;
  z-index: 10;
  top: 42px;
  right: 0;
  left: 0;
  display: none;
  min-height: 230px;
  padding: 65px 0 30px;
  background: rgb(255 255 255 / 90%);
}

.has-submenu:hover > .mega-menu,
.has-submenu:focus-within > .mega-menu,
.has-submenu.is-open > .mega-menu {
  display: block;
}

.mega-menu ul {
  width: var(--container);
  max-width: calc(100% - 30px);
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.mega-menu li {
  display: block;
  width: 34%;
  margin-left: auto;
}

.submenu-about .mega-menu li {
  margin-right: 25%;
}

.submenu-activities .mega-menu li {
  margin-right: 0;
}

.submenu-media .mega-menu li {
  width: 25%;
  margin-right: 0;
}

.mega-menu a {
  display: inline-block;
  padding: 0;
  margin: 0;
  color: #000;
  border-bottom: 2px solid transparent;
  font: 400 22px/31px "Tinos", serif;
  text-transform: none;
}

.mega-menu a:hover,
.mega-menu a:focus {
  color: var(--green);
  border-bottom-color: var(--green);
}

.empty-content {
  min-height: calc(100vh - 266px);
  padding-top: 250px;
  padding-bottom: 100px;
}

.empty-content section {
  margin-bottom: 80px;
}

.empty-content h1,
.empty-content h2,
.empty-content h3,
.empty-content h4 {
  color: inherit;
  font-family: Arial, sans-serif;
  font-weight: 500;
}

.empty-content h1 {
  margin: 20px 0 10px;
  font-size: 32px;
  line-height: 32px;
}

.empty-content h2 {
  margin: 20px 0 10px;
  font-size: 24px;
  line-height: 24px;
  scroll-margin-top: 220px;
}

.empty-content h3 {
  margin: 80px 0 20px;
  font-size: 25px;
  font-weight: bold;
}

.empty-content h4 {
  margin: 10px 0;
  font-size: 16px;
  line-height: 16px;
}

.empty-content p {
  margin: 0 0 10px;
}

.empty-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  margin-top: 50px;
  margin-bottom: 50px;
  border: 0;
  vertical-align: middle;
  border-radius: 8px;
}

.empty-content img.img-fullwidth {
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  margin-top: 50px;
  margin-bottom: 50px;
  border-radius: 0;
}

/*
 * Classi usate dalle fasce editoriali del sito Tampieri.
 * Permettono di riprodurre titoli e testi introduttivi in formato originale.
 */
.empty-content .title {
  margin: 20px 0 50px;
  color: #4dad33;
  font: 400 57px/62px "Tinos", serif;
}


.empty-content  p, .empty-content  li {
  margin-bottom: 25px;
  font-size: 25px;
  line-height: 34px;
}

.empty-content li {
  margin-bottom: 10px;
}

.site-footer {
  min-height: 266px;
  padding: 48px 0;
  background: var(--footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 166px 233px 267px 333px;
  min-height: 170px;
}

.footer-column ul {
  padding: 0;
  margin: 0 0 10px;
  list-style: none;
}

.footer-column li {
  display: block;
  min-height: 20px;
  color: var(--muted);
}

.footer-column a {
  color: var(--muted);
  font-size: 14px;
}

.footer-column a:hover {
  color: var(--muted);
  text-decoration: underline;
}

.footer-column .separator {
  height: 40px;
}

.footer-company {
  padding-left: 0;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 50px !important;
}

.social li {
  min-height: 20px;
}

.social a {
  font-size: 16px;
}

@media (max-width: 999px) {
  .container {
    width: 100%;
    max-width: none;
    padding-inline: 10px;
  }

  .desktop-search,
  .utility-row,
  .footer-main,
  .footer-companies {
    display: none;
  }

  .mobile-only,
  .mobile-tools,
  .mobile-search,
  .menu-close,
  .mobile-arrow {
    display: block;
  }

  .site-header {
    height: 154px;
  }

  .holding-bar {
    height: 60px;
    padding-inline: 0;
  }

  .header-shell,
  .main-nav,
  .nav-inner {
    height: 94px;
  }

  .main-nav {
    padding: 20px 10px;
    box-shadow: 0 9px 25px #636363;
  }

  .nav-inner {
    padding: 0;
  }

  .brand {
    top: -15px;
    width: 120px;
    height: 50px;
  }

  .brand img {
    width: 120px;
    height: auto;
  }

  .mobile-tools {
    position: relative;
    z-index: 3;
    float: right;
    height: 60px;
  }

  .mobile-languages {
    position: relative;
    top: 17px;
    float: left;
    display: flex;
    gap: 4px;
    padding-right: 10px;
    margin-right: 12px;
    border-right: 1px solid #292827;
  }

  .mobile-languages a {
    color: #acacac;
  }

  .mobile-languages .is-current {
    color: #292827;
  }

  .mobile-languages span {
    color: #acacac;
  }

  .menu-toggle {
    position: relative;
    top: 8px;
    width: 42px;
    height: 38px;
    padding: 9px 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-lines,
  .menu-lines::before,
  .menu-lines::after {
    position: absolute;
    left: 10px;
    display: block;
    width: 22px;
    height: 4px;
    content: "";
    background: #888;
    border-radius: 1px;
  }

  .menu-lines {
    top: 17px;
  }

  .menu-lines::before {
    top: -7px;
    left: 0;
  }

  .menu-lines::after {
    top: 7px;
    left: 0;
  }

  .navigation-panel {
    position: fixed;
    z-index: 110;
    inset: 0 15px 0 0;
    display: none;
    height: 100vh;
    overflow-y: auto;
    background: var(--green);
  }

  .menu-open {
    overflow: hidden;
  }

  .menu-open .navigation-panel {
    display: block;
  }

  .menu-open .holding-bar,
  .menu-open .brand,
  .menu-open .mobile-tools {
    visibility: hidden;
  }

  .menu-close {
    float: right;
    width: 54px;
    height: 82px;
    padding: 20px 30px 25px 0;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 30px;
    cursor: pointer;
  }

  .primary-menu {
    clear: both;
    float: none;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
  }

  .primary-menu > li {
    height: 45px;
  }

  .primary-menu > li > a,
  .primary-menu > li:last-child > a {
    display: block;
    height: 45px;
    padding: 12px 33px;
    margin: 0;
    color: #fff;
    border-bottom: 1px solid #fff;
    font-size: 20px;
    line-height: 20px;
  }

  .primary-menu > li > a:hover,
  .primary-menu > li > a:focus {
    color: #fff;
    border-bottom-color: #fff;
  }

  .mobile-arrow {
    position: relative;
    top: -1px;
    display: inline;
    font-size: 26px;
    font-weight: 400;
    line-height: 16px;
  }

  .mega-menu {
    display: none !important;
  }

  .mobile-search {
    position: relative;
    width: 100%;
    padding: 40px 20px 20px 35px;
  }

  .mobile-search input {
    display: inline-block;
    width: 80%;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 20px;
    font-weight: 700;
    outline: 0;
  }

  .mobile-search input::placeholder {
    color: #fff;
    opacity: 1;
  }

  .mobile-search button {
    float: right;
    width: 20%;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
  }

  .empty-content {
    min-height: calc(100vh - 414px);
    padding-top: 154px;
  }

  .empty-content h2 {
    scroll-margin-top: 174px;
  }

  .empty-content .title {
    margin: 20px 0 50px;
    line-height: 32px;
    font: 400 50px "Tinos", serif;
  }

  .empty-content .description,
  .empty-content .description p {
    font-size: 16px;
    line-height: 22px;
  }

  .site-footer {
    min-height: 414px;
    padding: 48px 0;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    min-height: 318px;
    padding-inline: 30px;
  }

  .footer-company {
    display: flex;
    flex-direction: column;
    order: 1;
  }

  .social {
    order: -1;
    margin: 0 0 25px !important;
  }

  .social a {
    font-size: 25px;
  }

  .copyright {
    margin-bottom: 25px !important;
  }

  .footer-legal {
    order: 2;
  }

  .footer-column .separator {
    height: 40px;
  }

}

