/*
Theme Name: AF Lyrium Theme
Theme URI: https://lyrium.net/
Author: Lyrium
Description: Lightweight AF Lyrium shell built to replace Enfold on public runtime while preserving the AF Lyrium frontend.
Version: 0.1.0
Text Domain: af-lyrium-theme
*/

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-ext-400-900.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin-400-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lyrium-accent: #e97100;
  --lyrium-text: #111111;
  --lyrium-muted: #666666;
  --lyrium-border: #e7e2dc;
  --lyrium-header-height: 70px;
  --lyrium-container: min(1800px, calc(100vw - 100px));
  --af-lyrium-title-max-weight: 700;
  --af-lyrium-paragraph-max-weight: 400;
  --af-lyrium-control-max-weight: 400;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--lyrium-text);
  background: #ffffff;
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

#top form {
  margin-bottom: 20px;
}

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

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

#wrap_all {
  min-height: 100vh;
  overflow-x: clip;
}

.container_wrap {
  clear: both;
  width: 100%;
}

.container {
  width: var(--lyrium-container);
  margin-right: auto;
  margin-left: auto;
}

.main_color {
  background: #ffffff;
}

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--lyrium-header-height);
  min-height: var(--lyrium-header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#header .header_bg {
  pointer-events: none;
}

#header_main {
  min-height: var(--lyrium-header-height);
}

.av-logo-container,
.inner-container {
  min-height: var(--lyrium-header-height);
}

.inner-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 205px;
  max-width: 34vw;
  height: auto;
}

.main_menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.av-main-nav-wrap {
  width: 100%;
}

.av-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.av-main-nav > li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.av-main-nav > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  color: #111111;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.avia-menu-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avia-bullet,
.avia-menu-fx {
  display: none;
}

.af-lyrium-theme-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  margin-left: auto;
  color: #111111;
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 999px;
  cursor: pointer;
}

.af-lyrium-theme-menu-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.af-lyrium-theme-menu-toggle span::before,
.af-lyrium-theme-menu-toggle span::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
}

.af-lyrium-theme-menu-toggle span::before {
  top: -6px;
}

.af-lyrium-theme-menu-toggle span::after {
  top: 6px;
}

.template-page,
.content {
  width: 100%;
}

.entry-content::after {
  display: block;
  clear: both;
  content: "";
}

.af-lyrium-theme-page-wrap {
  padding: 0;
}

.af-lyrium-theme-page-wrap h1,
.af-lyrium-theme-post-wrap h1 {
  margin-top: 0;
}

#top #wrap_all .af-lyrium-news-hero h1 {
  color: #e9994e;
  font-weight: 700;
}

#top #wrap_all .af-lyrium-news-card h2 {
  font-weight: 900;
}

#top #wrap_all .af-lyrium-search-results-toolbar h1 {
  color: #e9994e;
}

#top #wrap_all .af-lyrium-search-filter-block[hidden] {
  display: block;
}

#top #wrap_all .af-lyrium-search-live-fields label {
  font-size: 13.8px;
  line-height: 15.18px;
}

#top #wrap_all .af-lyrium-search-live-fields label > span {
  font-size: 13px;
  line-height: 14.3px;
}

#top #wrap_all .af-lyrium-search-live-fields input[type="search"],
#top #wrap_all .af-lyrium-search-live-fields input[type="text"] {
  height: 34px;
  min-height: 34px;
  padding: 8px 6px;
  margin-bottom: 20px;
  font-size: 13.8px;
  line-height: normal;
}

#footer {
  padding: 44px 0 34px;
  color: #f7f1eb;
  background: #171717;
}

#footer .container {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

#top #footer.footer_color {
  color: #d8d3cc;
}

#top #footer.footer_color .container::after {
  display: block;
  height: 0;
  clear: both;
  content: " ";
}

#top #footer.footer_color .af-lyrium-footer-contact a {
  color: #f2a65c !important;
}

#footer .widget {
  margin: 0;
}

#footer .widgettitle {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

#footer a {
  color: inherit;
  text-decoration: none;
}

#footer a:hover,
#footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

#footer .seperator {
  display: none;
}

.flex_column {
  min-width: 0;
}

#socket {
  padding: 0;
  margin-top: -1px;
  color: #ffffff;
  background: #000000;
  font-size: 11px;
  line-height: 24.75px;
}

#socket .container {
  display: block;
  width: 100%;
  max-width: none;
  padding: 15px 50px;
  margin: 0;
}

.copyright a {
  color: #ffffff;
  text-decoration: none;
}

/* AF_TITLE_WEIGHT_CAP: body class marks it; flip AF_LYRIUM_TITLE_WEIGHT_CAP_ENABLED to disable. */
html.af-lyrium-title-weight-cap-on #top#top#top #wrap_all#wrap_all#wrap_all :is(h1, h2, h3, h4, h5, h6):not(.af-lyrium-title-weight-free, .af-lyrium-title-weight-free *),
#top.af-lyrium-title-weight-cap-on#top#top #wrap_all#wrap_all#wrap_all :is(h1, h2, h3, h4, h5, h6):not(.af-lyrium-title-weight-free, .af-lyrium-title-weight-free *) {
  font-weight: var(--af-lyrium-title-max-weight) !important;
}

/* AF_PARAGRAPH_WEIGHT_CAP: body class marks it; flip AF_LYRIUM_PARAGRAPH_WEIGHT_CAP_ENABLED to disable. */
html.af-lyrium-paragraph-weight-cap-on #top#top#top #wrap_all#wrap_all#wrap_all p:not(.af-lyrium-paragraph-weight-free, .af-lyrium-paragraph-weight-free *),
#top.af-lyrium-paragraph-weight-cap-on#top#top #wrap_all#wrap_all#wrap_all p:not(.af-lyrium-paragraph-weight-free, .af-lyrium-paragraph-weight-free *) {
  font-weight: var(--af-lyrium-paragraph-max-weight) !important;
}

html.af-lyrium-paragraph-weight-cap-on #top#top#top #wrap_all#wrap_all#wrap_all p :is(strong, b),
#top.af-lyrium-paragraph-weight-cap-on#top#top #wrap_all#wrap_all#wrap_all p :is(strong, b) {
  font-weight: var(--af-lyrium-title-max-weight) !important;
}

/* AF_CONTROL_WEIGHT_CAP: buttons and form fields stay regular; flip AF_LYRIUM_CONTROL_WEIGHT_CAP_ENABLED to disable. */
html.af-lyrium-control-weight-cap-on #top#top#top #wrap_all#wrap_all#wrap_all :is(button, input, select, textarea, [role="button"], .button, .avia-button, a[class*="button"], a[class*="btn"], .af-lyrium-home-actions a, .af-lyrium-home-guided-request-cta):not(.af-lyrium-control-weight-free, .af-lyrium-control-weight-free *),
html.af-lyrium-control-weight-cap-on #top#top#top #wrap_all#wrap_all#wrap_all :is(button, [role="button"], .button, .avia-button, a[class*="button"], a[class*="btn"], .af-lyrium-home-actions a, .af-lyrium-home-guided-request-cta):not(.af-lyrium-control-weight-free, .af-lyrium-control-weight-free *) *,
#top.af-lyrium-control-weight-cap-on#top#top #wrap_all#wrap_all#wrap_all :is(button, input, select, textarea, [role="button"], .button, .avia-button, a[class*="button"], a[class*="btn"], .af-lyrium-home-actions a, .af-lyrium-home-guided-request-cta):not(.af-lyrium-control-weight-free, .af-lyrium-control-weight-free *),
#top.af-lyrium-control-weight-cap-on#top#top #wrap_all#wrap_all#wrap_all :is(button, [role="button"], .button, .avia-button, a[class*="button"], a[class*="btn"], .af-lyrium-home-actions a, .af-lyrium-home-guided-request-cta):not(.af-lyrium-control-weight-free, .af-lyrium-control-weight-free *) * {
  font-weight: var(--af-lyrium-control-max-weight) !important;
}

#top #wrap_all .af-lyrium-home .af-lyrium-home-panel[data-af-lyrium-home-panel="artisti"] .af-lyrium-home-copy p.af-lyrium-home-artist-banner-subtitle,
#top #wrap_all .af-lyrium-home .af-lyrium-home-panel[data-af-lyrium-home-panel="artisti"] .af-lyrium-home-copy p:not(.af-lyrium-home-kicker) {
  display: block !important;
  white-space: nowrap !important;
}

@media (min-width: 768px) {
  #top #wrap_all .af-lyrium-home .af-lyrium-home-panel[data-af-lyrium-home-panel="organizzatori"] .af-lyrium-home-kicker {
    font-size: calc(var(--af-d-kicker, 18px) + 3px) !important;
  }

  #top #wrap_all .af-lyrium-home .af-lyrium-home-panel[data-af-lyrium-home-panel="organizzatori"] .af-lyrium-home-copy p:not(.af-lyrium-home-kicker),
  #top #wrap_all .af-lyrium-home .af-lyrium-home-panel[data-af-lyrium-home-panel="artisti"] .af-lyrium-home-copy p:not(.af-lyrium-home-kicker) {
    font-size: calc(var(--af-d-sub, 18px) + 3px) !important;
  }
}

@media (max-width: 767px) {
  #top #wrap_all input[type="search"]::placeholder,
  #top #wrap_all input[type="text"]::placeholder {
    font-size: 10.5px;
    letter-spacing: 0;
    opacity: 0.74;
  }

  #top #wrap_all .af-lyrium-home .af-lyrium-home-panel[data-af-lyrium-home-panel="organizzatori"] .af-lyrium-home-kicker {
    font-size: calc(clamp(14px, 4.2vw, 18px) + 2px) !important;
  }

  #top #wrap_all .af-lyrium-home .af-lyrium-home-panel[data-af-lyrium-home-panel="organizzatori"] .af-lyrium-home-copy p:not(.af-lyrium-home-kicker),
  #top #wrap_all .af-lyrium-home .af-lyrium-home-panel[data-af-lyrium-home-panel="artisti"] .af-lyrium-home-copy p:not(.af-lyrium-home-kicker) {
    font-size: calc(clamp(14px, 4.1vw, 18px) + 2px) !important;
  }
}

@media (max-width: 1180px) {
  :root {
    --lyrium-container: min(100vw - 28px, 1800px);
  }

  .inner-container {
    gap: 16px;
  }

  .logo img {
    width: 170px;
  }

  .av-main-nav {
    gap: 5px;
  }

  .av-main-nav > li > a {
    font-size: 12px;
  }
}

@media (max-width: 929px) {
  :root {
    --lyrium-header-height: 72px;
  }

  body.admin-bar #header {
    top: 46px;
  }

  .af-lyrium-theme-menu-toggle {
    display: inline-flex;
  }

  .main_menu {
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    display: none;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--lyrium-border);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16);
  }

  #top #wrap_all #header.is-menu-open .main_menu {
    display: block !important;
    top: 100% !important;
    bottom: auto !important;
    height: auto !important;
    max-height: calc(100vh - var(--lyrium-header-height) - 20px);
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  #top #wrap_all #header.is-menu-open .main_menu .av-main-nav-wrap {
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  #top #wrap_all #header.is-menu-open .main_menu .av-main-nav {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    justify-content: stretch;
    align-items: stretch;
    overflow: visible;
  }

  #top #wrap_all #header.is-menu-open .main_menu .av-main-nav > li,
  #top #wrap_all #header.is-menu-open .main_menu .av-main-nav > li:not(.av-burger-menu-main):not(.menu-item-search-dropdown),
  #top #wrap_all #header.is-menu-open .main_menu .av-main-nav > li > a,
  #top #wrap_all #header.is-menu-open .main_menu .av-main-nav > li > a .avia-menu-text {
    display: flex !important;
    width: 100%;
    height: auto !important;
    line-height: 1.2 !important;
  }

  #top #wrap_all #header.is-menu-open .main_menu .av-main-nav > li > a {
    justify-content: flex-start;
    min-height: 42px;
  }

  #footer .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --lyrium-container: min(100vw - 22px, 1800px);
  }

  .logo img {
    width: 132px;
  }

  #footer .container {
    grid-template-columns: 1fr;
  }

  #socket .container {
    display: block;
  }
}
