:root {
  --color: #233e5f;
  --dark: #03172f;
  --light: #a9d9ef;
  --color1: #16a910;
  --color1b: #b5ecb2;
  --color2: #1d96cd;
  --color2b: #96dcfd;
  --hover: rgb(34, 60, 104);

  --menuheight: 100px;
  --menuheight-scrolled: 66px;

  --italic: "Playfair Display", serif;
  --title: "Oswald", sans-serif;
}

section {
  clear: both;
}

.entry-content .alignwide {
  margin-left: -160px;
  margin-right: -160px;
  max-width: 100vw;
}

.entry-content .alignfull {
  margin: 32px calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.wp-block-media-text {
  margin: 32px 0;
}

.logo a {
  background-image: url(../img/logo.svg);
  background-size: contain;
  background-position: 0 50%;
  background-repeat: no-repeat;
  width: 100%;
  height: 60% !important;
}

.home .logo a,
.page-template-page-open-day.has_thumbnail .logo a,
.page-template-page-scuola .logo a {
  background-image: url(../img/logo-w.svg);
}

.scrolled .logo a,
.nav-open .logo a {
  background-image: url(../img/logo.svg);
}

.logo a span,
.logo a h1 {
  display: none;
}

.home .main-container,
.page-template-page-scuola .main-container,
.page-template-page-open-day.has_thumbnail .main-container {
  top: calc(-1 * var(--menuheight));
  position: relative;
  margin-bottom: calc(-1 * var(--menuheight));
}

.service-menu {
  position: absolute;
  top: 0px;
  right: 30px;
  font-size: 15px;
  line-height: 1;
  padding: 10px 0;
}

.service-menu>a,
.service-menu>div {
  display: inline;
  margin-left: 10px;
  padding: 10px 0 !important;
  font-weight: 400;
  color: #555;
}

.service-menu>div>span {
  cursor: pointer;
  padding: 10px 0;
}

/* .scrolled .service-menu {
  display: none;
}
 */
.home .main-navigation a,
.home .mobile-toggle,
.page-template-page-open-day.has_thumbnail .main-navigation a,
.page-template-page-open-day.has_thumbnail .mobile-toggle,
.page-template-page-scuola .main-navigation a,
.page-template-page-scuola .mobile-toggle {
  color: #fff;
}

.main-navigation.scrolled a,
.nav-open a,
.scrolled .mobile-toggle,
.scrolled .menu .sub,
.nav-open .mobile-toggle,
.home .main-navigation li li a,
.page-template-page-open-day.has_thumbnail .main-navigation li li a,
.page-template-page-scuola li li a {
  color: #444 !important;
}

.text-center {
  text-align: center;
}

.top-news {
  padding: 0 20px 40px !important;
}

.top-news_item {
  float: left;
  padding: 0 10px;
}

.top-news_item:first-child {
  width: 60%;
}

.top-news_item:nth-child(2) {
  width: 40%;
}

.top-news_item .size-featured-big,
.entry-header .featured {
  object-fit: cover;
  width: 100%;
  height: 50vh;
}

.page-template-page-scuola .featured,
.page-template-page-open-day.has_thumbnail .featured {
  height: 65vh;
  width: 100vw;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 480px;
  z-index: -2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured h1 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0;
}

.featured h2 {
  color: #fff;
  text-transform: uppercase;
}

.page-template-page-open-day.has_thumbnail .featured h2{
  text-transform: unset;
}

.scuola-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 100px;
}

.scuola-header img {
  width: 20%;
  margin-right: 40px;
}

.top-news-text {
  padding: 10px 25px;
}

.date {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #999;
}

.date a {
  color: #111;
}

.date a:hover {
  text-decoration: underline;
}

.label,
.readmore {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #999;
  background: none !important;
  white-space: nowrap;
}

.readmore::after,
.arrowed::after {
  content: " \27f6";
  font-size: 1.4em;
  line-height: 0.6;
  position: relative;
  left: 0;
  transition: all 0.3s;
}

.readmore:hover::after,
.arrowed:hover::after {
  left: 5px;
}

.underline {
  background-image: linear-gradient(transparent 90%, var(--light) 0%);
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
}

a:hover .underline,
a:hover+.top-news-text .underline,
a:hover+.news-text .underline,
.cover:hover+a .underline {
  background-size: 100% 100%;
}

.news-text {
  padding: 10px 15px;
}

.news-image {
  object-fit: cover;
  height: 360px;
}

.top-news-text p,
.news-item p {
  display: inline;
  margin-right: 5px;
}

.addtoany_content {
  text-align: center;
  margin: 36px 0 !important;
}

.addtoany_content a {
  background-image: none;
}

.wp-block-media-text {
  align-items: flex-start;
}

.wp-block-gallery .blocks-gallery-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption {
  line-height: 1.3;
}

figure.is-type-video {
  margin: 0 0 2em 0;
}

.wp-block-embed__wrapper {
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
  padding-top: 30px;
  position: relative;
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper object,
.wp-block-embed__wrapper embed {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.videotop {
  height: 80vh;
  min-height: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bckgd-video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  z-index: -2;
}

.overlay::before {
  content: "";
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.05) 25%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.1) 100%);
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}

.payoff {
  position: absolute;
  bottom: 10%;
  width: 100%;
}

.payoff h1 {
  color: #fff;
  font-size: clamp(50px, 5vw, 90px);
  text-align: center;
  font-family: var(--italic);
}

.color {
  color: var(--color);
}

.section-title,
.subsection-title {
  color: var(--color);
  margin-bottom: 42px;
  text-align: center;
  font-size: clamp(50px, 5vw, 90px);
  text-transform: uppercase;
}

.subsection-title {
  font-size: 34px;
}

.bg-primary .section-title,
.bg-primary .subsection-title {
  color: #fff;
}

.bg-primary .section-title:after {
  border-bottom: 2px solid #fff;
}

.icon {
  border-radius: 50%;
  background: #fff;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  bottom: 0;
  transition: all 0.3s;
}

a:hover .icon {
  bottom: 10px;
}

.bigger {
  font-size: 1.24rem;
}

.boxtitle {
  margin-bottom: 16px;
  font-family: var(--title);
  font-size: 30px;
}

.entry-title {
  font-size: clamp(40px, 5vw, 80px);
}

.servizio {
  padding: 36px 0 10px;
}

.servizi {
  background: var(--color);
  color: #fff;
  column-count: 2;
  margin: 40px -9999rem;
  padding: 3rem 9999rem;
}

.servizi li {
  list-style: none;
  padding-right: 40px;
}

.servizi li::before {
  content: "►";
  font-size: 15px;
  line-height: 1;
  padding-right: 12px;
  color: #65a6f7;
}

.message-bar {
  border: 1px solid;
  padding: 24px;
  background: #f1f1f1;
}

.vertical-line-after:after,
.vertical-line-before:before {
  content: "";
  display: block;
  width: 1px;
  height: 5vw;
  margin: 20px auto;
  background: var(--color);
}

.videotop .vertical-line-after:after,
.videotop .vertical-line-before:before,
.home-scuola .vertical-line-after:after,
.home-scuola .vertical-line-before:before {
  background: #fff;
}

.huge {
  font-size: clamp(85px, 7vw, 120px);
  font-style: italic;
  text-transform: lowercase;
  margin-bottom: 0;
}

.huge.small {
  font-size: clamp(36px, 2.8vw, 50px);
  text-transform: unset;
  margin-bottom: 12px;
}

.page-chi-siamo .huge.small {
  font-size: clamp(65px, 6vw, 100px);
}

.huge-subtitle {
  color: #777;
}

.huge-et::after {
  content: "&";
  position: absolute;
  width: 100%;
  right: 0;
  top: 0;
  transform: translate(50%, -29%);
  z-index: -1;
  font-size: 3em;
  opacity: 0.16;
}

.appears {
  transform: translateY(120px);
  opacity: 0;
}

.come-in {
  animation: come-in 0.65s ease 0.1s forwards;
}

.come-in:nth-child(even) {
  animation-delay: 0.45s;
}

.already-visible {
  animation: come-in 0.65s ease 0.45s forwards;
}

@keyframes come-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.news-item {
  margin-bottom: 1.5em;
}

.news-item .underline {
  background-image: linear-gradient(transparent 90%, #ccc 0%);
  background-size: 100% 100%;
}

.news-item.category-infanzia .underline,
.event.category-infanzia .underline,
.news-item.category-primaria .underline,
.event.category-primaria .underline,
.news-item.category-secondaria .underline,
.event.category-secondaria .underline {
  background-image: linear-gradient(transparent 90%, var(--color1) 0%);
}

.news-item.category-liceo-shakespeare .underline,
.event.category-liceo-shakespeare .underline {
  background-image: linear-gradient(transparent 90%, var(--color2) 0%);
}

.home-scuola {
  height: 30vw;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: 100%;
  background-position: center;
  transition: all 0.75s ease-out;
}

.home-scuola:hover {
  background-size: 105%;
}

.home-scuola h2 {
  color: white;
  text-transform: uppercase;
  font-size: max(4vw, 36px);
}

.canossa .btn {
  background: var(--color1);
  color: white;
}

.shakespeare .btn {
  background: var(--color2);
  color: white;
}

.membri-list {
  display: flex;
  flex-wrap: wrap;
}

.membro {
  display: flex;
}

.membro img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  float: left;
  object-fit: cover;
  margin: 0 12px 12px 0;
}

.icon-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.icon-item {
  width: 120px;
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.1;
}

.icon-item img {
  width: 70px;
  border-radius: 0;
  background: transparent;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.icon-item:hover img,
.icon-item:active img,
.icon-item:focus img {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
}

.icon-item.active img {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

.slider-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.slick-arrow {
  padding: 0;
  opacity: 1;
  transition: all 0.2s;
}

.slick-disabled {
  opacity: 0;
  visibility: hidden;
}

.slider-previous:after {
  content: " \27f5";
  font-size: 40px;
}

.slider-next:after {
  content: " \27f6";
  font-size: 40px;
}

.quote {
  font-family: var(--italic);
  font-size: 30px;
  font-style: italic;
  margin-bottom: 30px;
}

.info {
  font-size: 0.9em;
}

.info .col-md-3 {
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq_container {
  border: 1px solid #e5e5e5;
  margin-bottom: 10px;
  padding: 10px 15px;
}

.faq_question {
  margin: 0px;
  padding: 0px 0px 5px 0px;
  display: inline-block;
  cursor: pointer;
  font-weight: bold;
  display: table;
}

.faq_question h4 {
  margin: 0;
}

.question {
  margin-bottom: 5px;
  display: table-cell;
  width: 100%;
}

.faq_answer_container {
  height: 0px;
  overflow: hidden;
  padding: 0px;
}

.accordion-button-icon {
  display: table-cell;
  line-height: inherit;
  opacity: .5;
  filter: alpha(opacity=50);
  padding-left: 15px;
  vertical-align: middle;
}

.slider-spazi {
  width: 100vw;
}

.spazio {
  width: clamp(280px, 90vw, 400px);
  margin-right: 20px;
  position: relative;
}

.spazio img {
  height: 500px;
  width: 100%;
  object-fit: cover;
}

.spazio .description {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 80px 20px 20px;
  color: #FFF;
  font-size: 14px;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.9) 100%);
  transform: translateY(calc(100% - 165px));
  transition: all .5s cubic-bezier(0.19, 1, 0.22, 1);
}

.spazio:hover .description {
  transform: translateY(0);
}

.spazio h3 {
  color: #fff;
  margin-bottom: 30px;
  display: flex;
  height: 2em;
}

.spazio h3 span {
  align-self: flex-end;
}

.spazio .description p {
  overflow: hidden;
}

.eccellenze {
  display: flex;
}

.eccellenza {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.eccellenza h4 {
  color: #777;
}

.step {
  display: flex;
}

.number {
  background: var(--color);
  font-family: var(--italic);
  color: white;
  line-height: 60px;
  border-radius: 50%;
  height: 100px;
  width: 100px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 120px;
  font-style: italic;
}

.step-text {
  width: calc(100% - 150px);
}

.event {
  padding: 20px;
}

.eventdate {
  background: var(--color);
  float: left;
  width: 80px;
  margin: 0px 20px 0 0;
  text-align: center;
  color: #fff;
  padding: 10px;
}

.event.category-infanzia .eventdate,
.event.category-primaria .eventdate,
.event.category-secondaria .eventdate {
  background: var(--color1);
}

.event.category-liceo-shakespeare .eventdate {
  background: var(--color2);
}

.day {
  line-height: 1;
  font-size: 30px;
  font-weight: 900;
}

.month {
  font-size: 10px;
  text-transform: uppercase;
}

.anno {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
}

.event-desc {
  float: left;
  width: calc(100% - 110px);
  font-size: 12px;
}

.single-date .eventdate {
  width: 100%;
  margin: 0;
  padding: 20px 5px 5px;
  max-width: 130px;
}

.single-date .day {
  font-size: 42px;
}

.single-date .anno {
  border-top: solid 1px;
  font-size: 16px;
  margin: 5px;
  padding-top: 5px;
}

.wpcf7-list-item-label a {
  text-decoration: underline;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1em 0;
	padding: 2em 1em;
	border: 3px solid #00a0d2;
	font-weight: 600;
}

a.anchor {
  display: block;
  position: relative;
  top: calc(-1 * var(--menuheight-scrolled));
  visibility: hidden;
}

.img-substitute {
  height: 360px;
  background: #ccc;
  padding: 5%;
}

.img-substitute h2 {
  color: var(--color);
  font-size: 48px;
}

.blob {
  float: left;
  border-radius: 50%;
  margin: 5px 10px 0 -10px;
  height: 10px;
  width: 10px;
  transform: scale(1);
  background: white;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
  animation: pulse-white 2s infinite;
}

.addtoany-container {
  display: none;
}

.cmplz-status-marketing .addtoany-container {
  display: block;
}

@keyframes pulse-white {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}