/*
Theme Name: Francesca La Russa
Description: Modern academic child theme for Activello.
Author: Francesca La Russa
Template: activello
Version: 1.12.0
Text Domain: activello-francesca
*/

@font-face {
  font-family: "Montserrat Local";
  src: url("/cefr-vocabulary-checker/fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* CEFR project card and academic content components. */
.menu-item-cefr-checker > a { color: #653178 !important; font-weight: 700 !important; }
.cefr-nav-badge { display: inline-block; margin-left: 4px; padding: 2px 5px; border-radius: 999px; background: #653178; color: #fff; font-size: 9px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.cefr-promo { position: relative; margin: 0 0 38px; padding: 32px 34px; border: 1px solid #dfd5e2; border-left: 4px solid #653178; border-radius: 3px; background: #fbf9fc; }
.cefr-promo-eyebrow { margin: 0 0 9px !important; color: #653178; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cefr-promo h2 { position: relative; z-index: 1; margin: 0 0 14px; color: #302335; font-size: 30px; line-height: 1.2; }
.cefr-promo p, .cefr-promo ul { position: relative; z-index: 1; max-width: 680px; }
.cefr-promo ul { margin: 18px 0 22px 20px; }
.cefr-promo li { margin-bottom: 5px; }
.cefr-promo-button { display: inline-block; padding-bottom: 3px; border-bottom: 2px solid #653178; color: #653178 !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.cefr-promo-button:hover, .cefr-promo-button:focus { color: #3f1d4c !important; border-color: #3f1d4c; }
.cefr-promo-compact { margin-top: 32px; padding: 28px 30px; }
.cefr-promo-compact h2 { font-size: 24px; }
.flr-profile-intro { margin-bottom: 32px; font-size: 17px; line-height: 1.75; }
.flr-timeline { margin: 8px 0 38px; border-left: 2px solid #e5dfe7; }
.flr-entry { position: relative; margin: 0 0 28px; padding: 0 0 0 24px; }
.flr-entry:before { position: absolute; top: 7px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: #653178; content: ''; }
.flr-entry h3 { margin: 0 0 4px; color: #302335; font-size: 18px; line-height: 1.4; }
.flr-entry p { margin: 5px 0 0; }
.flr-entry-meta { color: #6f6672; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.flr-timeline-compact .flr-entry { margin-bottom: 20px; }
.flr-publication-list { margin-bottom: 34px; }
.flr-publication-list li, .flr-conferences li { margin-bottom: 13px; }
.flr-research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0 38px; }
.flr-research-grid section { padding: 22px 24px; border: 1px solid #e5dfe7; background: #fbfafb; }
.flr-research-grid h2 { margin: 0 0 8px; font-size: 20px; }
.flr-research-grid p { margin: 0; }

:root {
  --flr-ink: #211c26;
  --flr-muted: #6f6872;
  --flr-purple: #653178;
  --flr-purple-dark: #43204f;
  --flr-lilac: #d8c6df;
  --flr-paper: #fffefd;
  --flr-canvas: #f5f2f6;
  --flr-line: #ddd6e0;
  --flr-font: "Montserrat Local", Montserrat, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body,
body.custom-background {
  color: var(--flr-ink);
  background-color: var(--flr-canvas) !important;
  background-image:
    linear-gradient(rgba(101, 49, 120, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 49, 120, .035) 1px, transparent 1px) !important;
  background-position: 0 0 !important;
  background-size: 36px 36px !important;
  font-family: var(--flr-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.entry-title,
.navbar-brand,
.navbar.navbar-default,
.tagline,
.copyright,
.read-more a,
.post-navigation a,
.paging-navigation a,
.cefr-promo-eyebrow,
.cefr-promo-button,
.flr-entry-meta {
  font-family: var(--flr-font) !important;
}

a { color: var(--flr-purple); }
a:hover, a:focus { color: var(--flr-purple-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(101, 49, 120, .42);
  outline-offset: 3px;
}

#page { overflow: hidden; background: transparent; }

.navbar.navbar-default {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--flr-line);
  background: rgba(255, 254, 253, .96);
  box-shadow: none;
}

/* Four primary pages do not require a site-search control in the navigation. */
.nav-search { display: none !important; }

.navbar-default .navbar-nav > li { margin-right: 30px; }
.navbar-default .navbar-nav > li > a {
  position: relative;
  color: var(--flr-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
}
.navbar-default .navbar-nav > li > a:after {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  height: 2px;
  background: var(--flr-purple);
  content: "";
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .2s ease, transform .2s ease;
}
.navbar-default .navbar-nav > .current_page_item > a:after,
.navbar-default .navbar-nav > li > a:hover:after,
.navbar-default .navbar-nav > li > a:focus:after {
  opacity: 1;
  transform: scaleX(1);
}

#masthead { position: relative; background: var(--flr-paper); }
#masthead:before,
#masthead:after {
  position: absolute;
  pointer-events: none;
  content: "";
}
#masthead:before {
  right: -52px;
  bottom: 18px;
  width: 190px;
  height: 88px;
  border: 1px solid var(--flr-lilac);
  transform: rotate(-12deg);
}
#masthead:after {
  right: 86px;
  bottom: 34px;
  width: 54px;
  height: 54px;
  background: var(--flr-purple);
  opacity: .09;
  transform: rotate(45deg);
}
#logo {
  position: relative;
  z-index: 1;
  padding: 54px 0 50px;
  text-align: left;
}
.site-name .navbar-brand {
  color: var(--flr-ink);
  font-size: clamp(30px, 4vw, 47px);
  font-weight: 700;
  letter-spacing: -.045em;
}
.tagline {
  max-width: 650px;
  margin-top: 13px;
  color: var(--flr-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
#line { display: none; }

.main-content-area {
  margin-top: 48px;
  margin-bottom: 64px;
}
.main-content-inner {
  min-width: 0;
  padding: 46px 50px;
  border: 1px solid var(--flr-line);
  background: var(--flr-paper);
  box-shadow: 12px 12px 0 rgba(101, 49, 120, .07);
}
.post-inner-content { padding: 0; }
.entry-header { text-align: left; }
.entry-title {
  margin: 0 0 30px;
  color: var(--flr-ink);
  font-size: clamp(32px, 4vw, 47px);
  font-style: normal;
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.entry-content { margin-top: 0; }
.entry-content h2 {
  margin: 48px 0 18px;
  color: var(--flr-ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.entry-content h2:before {
  display: inline-block;
  width: 18px;
  height: 5px;
  margin: 0 10px 4px 0;
  background: var(--flr-purple);
  content: "";
}
.entry-content h3 { color: var(--flr-ink); font-weight: 700; }
.entry-content p, .entry-content li { color: #4e4851; }
.entry-content a {
  overflow-wrap: anywhere;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#secondary { padding-left: 36px; }
#secondary .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#secondary .widget {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--flr-line);
  background: rgba(255, 254, 253, .9);
}
#secondary .widget_media_image { padding: 0; border: 0; background: transparent; }
#secondary .widget_media_image,
#secondary .wpcw-widget-contact { grid-column: 1 / -1; }
#secondary .widget_media_image img {
  display: block;
  width: 100%;
  max-width: none !important;
  filter: saturate(.78) contrast(1.04);
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 12% 100%, 0 88%);
}
#secondary .widget > h3,
#secondary .widget-title {
  margin: 0 0 14px;
  padding: 0;
  color: var(--flr-ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
}
#secondary .widget-title:after { display: none; }
#secondary .widget ul li { margin: 0; padding: 0; border: 0; }
#secondary .wpcw-widget-social { min-width: 0; }
#secondary .wpcw-widget-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f3edf5;
}
.navbar-toggle {
  min-width: 44px;
  min-height: 44px;
}

.cefr-promo {
  overflow: hidden;
  border: 1px solid var(--flr-line);
  border-left: 0;
  background: #f7f1f8;
  box-shadow: none;
}
.cefr-promo:after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border: 18px solid rgba(101, 49, 120, .08);
  content: "";
  transform: rotate(18deg);
}
.cefr-promo:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--flr-purple);
  content: "";
}
.cefr-promo h2 { font-weight: 750; letter-spacing: -.03em; }

.flr-research-grid section {
  border-color: var(--flr-line);
  border-radius: 0;
  background: #faf8fa;
}
.flr-entry:before { box-shadow: 0 0 0 4px var(--flr-paper); }

#footer-area {
  border-top: 1px solid var(--flr-line);
  background: var(--flr-ink);
}
#colophon { padding: 34px 0; }
#footer-area .copyright,
#footer-area .copyright a,
#footer-area .site-info,
#footer-area .site-info a { color: #d8d1da; }
.scroll-to-top { border-radius: 0; background: var(--flr-purple); }

/* Hedgehog easter egg */
.site-footer .row { position: relative; }
.flr-hedgehog-trigger {
  position: absolute;
  right: 24px;
  bottom: -33px;
  width: 88px;
  height: 68px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .24));
  transition: transform .22s ease, filter .22s ease;
}
.flr-hedgehog-trigger:hover,
.flr-hedgehog-trigger:focus { background: transparent; transform: translateY(-5px) rotate(-2deg); filter: drop-shadow(0 10px 9px rgba(0, 0, 0, .3)); }
.flr-hedgehog-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.flr-hedgehog-trigger:after {
  position: absolute;
  top: -22px;
  left: 50%;
  color: #d8d1da;
  content: "psst…";
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .08em;
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity .2s ease, transform .2s ease;
}
.flr-hedgehog-trigger:hover:after,
.flr-hedgehog-trigger:focus:after { opacity: 1; transform: translate(-50%, 0); }

body.flr-hh-open { overflow: hidden; overscroll-behavior: none; }
.flr-hh-modal[hidden] { display: none; }
.flr-hh-modal { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 16px; overscroll-behavior: contain; }
.flr-hh-backdrop { position: absolute; inset: 0; background: rgba(25, 18, 29, .84); backdrop-filter: blur(6px); }
.flr-hh-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 20vw, 260px);
  grid-template-rows: auto auto 1fr auto;
  gap: 14px clamp(16px, 1.6vw, 24px);
  width: min(1600px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-height: none;
  overflow: hidden;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, .18);
  background: #221a2a;
  box-shadow: 18px 18px 0 rgba(101, 49, 120, .35);
  color: #f8f1f5;
}
.flr-hh-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.flr-hh-close:hover, .flr-hh-close:focus { background: #653178; color: #fff; }
.flr-hh-header { grid-column: 2; grid-row: 1; align-self: end; padding-right: 48px; }
.flr-hh-kicker { margin: 0 0 6px; color: #d7b7e2; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.flr-hh-header h2 { margin: 0 0 8px; color: #fff; font-size: clamp(24px, 2.2vw, 31px); font-weight: 750; line-height: 1.08; letter-spacing: -.035em; }
.flr-hh-header p:last-child { max-width: 650px; margin: 0; color: #d9cfdc; line-height: 1.55; }
.flr-hh-scorebar { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: 1fr; gap: 5px; padding: 11px 14px; background: #30243a; color: #d9cfdc; font-size: 11px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.flr-hh-scorebar span,
.flr-hh-scorebar span:first-child,
.flr-hh-scorebar span:last-child { display: flex; justify-content: space-between; text-align: left; }
.flr-hh-scorebar strong { color: #fff; }
.flr-hh-stage-wrap { position: relative; grid-column: 1; grid-row: 1 / 5; align-self: center; justify-self: center; width: min(100%, 145vh); overflow: hidden; border: 1px solid #685372; background: #15291f; box-shadow: 0 18px 40px rgba(0, 0, 0, .24); aspect-ratio: 12 / 7; }
.flr-hh-stage { display: block; width: 100%; height: 100%; touch-action: none; }
.flr-hh-start-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  background: rgba(15, 27, 22, .74);
  text-align: center;
}
.flr-hh-start-card[hidden] { display: none; }
.flr-hh-start-card p { max-width: 440px; margin: 0 0 18px; color: #f7edf4; font-size: 16px; }
.flr-hh-start {
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid #e8d4ef;
  border-radius: 0;
  background: #f3eaf5;
  color: #382241;
  font-weight: 750;
}
.flr-hh-start:hover, .flr-hh-start:focus { background: #d9bde3; color: #25182a; }
.flr-hh-controls { display: grid; grid-column: 2; grid-row: 3; align-self: center; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 48px); justify-content: center; gap: 8px; margin: 0; }
.flr-hh-controls button {
  width: 58px;
  height: 48px;
  padding: 0;
  border: 1px solid #796884;
  border-radius: 0;
  background: #30243a;
  color: #fff;
  font-size: 22px;
  touch-action: none;
  user-select: none;
}
.flr-hh-up { grid-column: 2; grid-row: 1; }
.flr-hh-left { grid-column: 1; grid-row: 2; }
.flr-hh-down { grid-column: 2; grid-row: 2; }
.flr-hh-right { grid-column: 3; grid-row: 2; }
.flr-hh-controls .flr-hh-sniff {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.flr-hh-sniff span { color: #d7b7e2; font-size: 9px; }
.flr-hh-sniff:disabled { opacity: .58; cursor: wait; }
.flr-hh-controls button:hover, .flr-hh-controls button:focus, .flr-hh-controls button.is-pressed { background: #653178; color: #fff; }
.flr-hh-hint { grid-column: 2; grid-row: 4; margin: 0; color: #9e91a3; font-size: 10px; text-align: center; }

@media (max-width: 991px) {
  .main-content-inner { padding: 38px; }
  #secondary { padding: 34px 15px 0; }
  #secondary .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #secondary .widget_media_image { grid-row: span 2; }
  #secondary .wpcw-widget-social { display: block; width: auto; }
}

@media (max-width: 767px) {
  body { background-size: 28px 28px !important; }
  .navbar-default .navbar-nav > li { margin-right: 0; }
  .navbar-default .navbar-nav > li > a { padding: 14px 2px; }
  .navbar-default .navbar-nav > li > a:after { bottom: 8px; }
  .navbar-collapse { border-bottom: 1px solid var(--flr-line); box-shadow: 0 12px 24px rgba(33, 28, 38, .1); }
  #masthead:before { right: -105px; }
  #masthead:after { right: 24px; }
  #logo { padding: 38px 0 36px; }
  .tagline { max-width: 80%; font-size: 10px; line-height: 1.6; }
  .main-content-area { margin-top: 24px; margin-bottom: 38px; }
  .main-content-inner { margin: 0 15px; padding: 28px 24px; box-shadow: 7px 7px 0 rgba(101, 49, 120, .07); }
  .entry-title { font-size: 34px; }
  .entry-content h2 { margin-top: 38px; }
  #secondary .inner { display: grid; grid-template-columns: 1fr 1fr; }
  #secondary .widget_media_image { grid-column: 1 / -1; grid-row: auto; }
  .cefr-promo { padding: 28px 24px; }
  .cefr-promo h2 { font-size: 25px; }
  .cefr-nav-badge { float: none; }
  .flr-research-grid { grid-template-columns: 1fr; }
  #colophon { padding-bottom: 50px; }
  .flr-hedgehog-trigger { right: 50%; bottom: -43px; transform: translateX(50%); }
  .flr-hedgehog-trigger:hover, .flr-hedgehog-trigger:focus { transform: translate(50%, -4px) rotate(-2deg); }
  .flr-hh-modal { width: 100vw; height: 100vh; height: 100dvh; padding: 0; background: #221a2a; }
  .flr-hh-backdrop { display: none; }
  .flr-hh-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    overflow: hidden;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border: 0;
    box-shadow: none;
  }
  .flr-hh-close {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    background: rgba(34, 26, 42, .74);
  }
  .flr-hh-header { flex: 0 0 auto; padding-right: 48px; }
  .flr-hh-kicker { display: none; }
  .flr-hh-header h2 { margin-bottom: 4px; font-size: clamp(21px, 6vw, 28px); line-height: 1.1; }
  .flr-hh-header p:last-child { margin-bottom: 9px; font-size: 11px; line-height: 1.35; }
  .flr-hh-scorebar { flex: 0 0 auto; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 10px; font-size: 10px; text-align: center; }
  .flr-hh-scorebar span { display: block; }
  .flr-hh-scorebar span:first-child { display: block; text-align: left; }
  .flr-hh-scorebar span:last-child { display: block; text-align: right; }
  .flr-hh-stage-wrap { flex: 0 0 auto; width: 100%; box-shadow: none; }
  .flr-hh-start-card { padding: 18px; }
  .flr-hh-start-card p { margin-bottom: 12px; font-size: 13px; }
  .flr-hh-controls {
    flex: 0 0 auto;
    grid-template-columns: repeat(4, minmax(50px, 64px));
    grid-template-rows: repeat(2, 54px);
    gap: 7px;
    margin-top: 10px;
  }
  .flr-hh-controls button { width: 100%; height: 54px; }
  .flr-hh-up { grid-column: 2; grid-row: 1; }
  .flr-hh-left { grid-column: 1; grid-row: 2; }
  .flr-hh-down { grid-column: 2; grid-row: 2; }
  .flr-hh-right { grid-column: 3; grid-row: 2; }
  .flr-hh-controls .flr-hh-sniff { grid-column: 4; grid-row: 1 / 3; width: 100%; height: 100%; }
  .flr-hh-hint { display: none; }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 600px) {
  .flr-hh-modal { width: 100vw; height: 100vh; height: 100dvh; padding: 0; background: #221a2a; }
  .flr-hh-backdrop { display: none; }
  .flr-hh-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: auto auto 1fr;
    justify-content: stretch;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    overflow: hidden;
    gap: 8px 12px;
    padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border: 0;
    box-shadow: none;
  }
  .flr-hh-header { grid-column: 2; grid-row: 1; align-self: end; padding-right: 42px; }
  .flr-hh-header h2 { margin: 0; font-size: 18px; line-height: 1.05; }
  .flr-hh-header p { display: none; }
  .flr-hh-scorebar { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; gap: 3px; padding: 7px 9px; text-align: left; }
  .flr-hh-scorebar span,
  .flr-hh-scorebar span:first-child,
  .flr-hh-scorebar span:last-child { display: flex; justify-content: space-between; text-align: left; }
  .flr-hh-stage-wrap { grid-column: 1; grid-row: 1 / 4; align-self: center; width: 100%; max-height: calc(100dvh - 16px); }
  .flr-hh-controls {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    grid-template-columns: repeat(4, 46px);
    grid-template-rows: repeat(2, 48px);
    margin: 0;
  }
  .flr-hh-controls button { height: 48px; }
  .flr-hh-up { grid-column: 2; grid-row: 1; }
  .flr-hh-left { grid-column: 1; grid-row: 2; }
  .flr-hh-down { grid-column: 2; grid-row: 2; }
  .flr-hh-right { grid-column: 3; grid-row: 2; }
  .flr-hh-controls .flr-hh-sniff { grid-column: 4; grid-row: 1 / 3; width: 100%; height: 100%; }
  .flr-hh-close { position: fixed; top: max(6px, env(safe-area-inset-top)); right: max(6px, env(safe-area-inset-right)); width: 44px; height: 44px; background: rgba(34, 26, 42, .74); }
  .flr-hh-hint { display: none; }
}

@media (max-width: 480px) {
  #secondary .inner { grid-template-columns: 1fr; }
  .cefr-promo { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
