/* variables */

@property --bg-color {
  syntax: "<color>";
  inherits: false;
  initial-value: #f1f6fb;
}

@property --evidence-color {
  syntax: "<color>";
  inherits: false;
  initial-value: #40b7be;
}

@property --banner-color {
  syntax: "<color>";
  inherits: false;
  initial-value: #45858f;
}

@property --gray-color {
  syntax: "<color>";
  inherits: false;
  initial-value: #edf3f3;
}


body {
}

/*EU cookie Compliance*/

.eu-cookie-compliance-buttons .decline-button {
  background-color: white;
}

.section-margin {
  margin: 4rem auto;
}

.top-r-rounded img {
  border-radius: 0 4rem 0 4rem;
}

body.toolbar-fixed {
  padding-top: 0 !important;
}


h1 {
  font-family: ZCOOL XiaoWei, 'Georgia', 'Times New Roman', 'serif';
  font-size: 3rem;
}

h2 {
  font-family: ZCOOL XiaoWei, 'Georgia', 'Times New Roman', 'serif';
  font-size: 2rem;
}

h3 {
  margin: 0 1rem;
  @media all and (min-width: 780px) {
    margin: 0;
  }
}

/* text-formatted */

.text-formatted a {
  color: var(--evidence-color);
  padding: 0;
  margin: 0;

  &:hover {
    color: blue;
  }
}

/* formatted-text*/

.formatted-text {
  margin: 2rem auto;
}

.formatted-text p {
  margin: 0 1rem 1rem 1rem;
}

.formatted-text h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 1rem auto;
}

.formatted-text h2 {
  font-family: ZCOOL XiaoWei, 'Georgia', 'Times New Roman', 'serif';
  font-size: 3rem;
}

.formatted-text a {
  color: var(--evidence-color);
  background-color: whitesmoke;
  padding: 0;
  margin: 0;
}

.formatted-text p.bluebanner {
  padding: 0.5rem 2rem;
}

.formatted-text ul {
  font-style: italic;
  padding: 0 2rem;
  list-style-image: url("/themes/custom/tailwindcss_ena/images/icons/checkmark24.png");
}


/* SUPERFISH */


/*.sf-accordion-toggle.sf-style-white {*/
/*  position: absolute;*/
/*  right: 1rem;*/
/*  top: -4rem;*/
/*}*/

/* SECONDARY MENU */

.no-marker::marker {
  display: none;
}

.menu-main ul {
  background-color: var(--bg-color);
  list-style-image: url("/themes/custom/tailwindcss_ena/images/icons/checkmark24.png");

  & li a {
    font-family: "Josefin Sans", sans-serif;
    background-color: var(--bg-color);
  }

  & li {
    font-family: "Josefin Sans", sans-serif;
    background-color: var(--bg-color);
  }

}

.secondary {
  border-top: 1px solid gainsboro;
  background-color: whitesmoke;
  position: fixed;
  bottom: 1px;
  padding: 1rem;
  font-size: 0.875rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  z-index: 10;
}


.language-switcher-language-content-entity {
  font-size: 0.875rem;

  color: #666;
  @media all and (min-width: 780px) {
    position: unset;
    padding: 0.7em 2px 0 0;
  }
}

/* BREADCRUMB */

div#block-tailwindcss-breadcrumbs {
  margin-top: 3rem;
}

/* BLUEBANNER */

.bluebanner {
  margin-top: 1rem;
  background-color: var(--banner-color);
  padding: 1rem 0;

}

p.bluebanner {
  max-width: 1024px;
  margin: 0 1rem;
  text-align: center;
  color: #eae7df;
  font-size: 1.4rem;
  font-family: "Josefin Sans", sans-serif;
  @media all and (min-width: 780px) {
    margin: 0 auto;
  }
}

h3.bluebanner {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
  font-family: Josefin Sans, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.625;
  color: #eae7df;
}

/* CONTACT */

#block-tailwindcss-contactblock form label {
  display: none;
}

#block-tailwindcss-contactblock form input {
  border: none;
  margin: 1rem;
  padding: 0.5rem;
  width: 17rem;
}

input#edit-field-accept-value {
  width: 1rem !important;
}

div#edit-field-accept-value--description {
  color: white;
  width: 18rem;
  margin-left: 2rem;
}


form.contact-message-contactame-form label {
  display: none;
}

form.contact-message-contactame-form input {
  border: none;
  margin: 1rem;
  padding: 0.5rem;
  width: 20rem;
}

form.contact-message-contactame-form .form-item-field-telefono-0-phone input {
  border: none;
  margin: 1rem;
  padding: 0.5rem;
  width: 20rem;
}

.contact-page h1 {
  color: white;
  text-align: left !important;
  margin-left: 1rem;
}

/* FLEX VIEWS */

.flex-views {
  margin: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;


  @media all and (min-width: 768px) {
    border: none;
    gap: 1rem;
    flex-direction: row;
    margin: 2rem auto;
    justify-content: right;
    &.even-row-class {
      flex-direction: row-reverse;
    }
  }

}

.odd-row-class .views-field-fieldset, .odd-row-class .views-field-fieldset-1 {
  display: block;
  position: relative;
  background-color: white;
  max-height: 35rem;
  @media all and (min-width: 768px) {
    padding: 1rem;
    width: 70%;
    border-radius: 0 2rem 0 0;
    border: 1px solid var(--gray-color);
  }

  &.views-field-view-node {
    background-color: white;
  }
}

.even-row-class .views-field-fieldset, .even-row-class .views-field-fieldset-1 {
  display: block;
  position: relative;
  background-color: white;
  max-height: 35rem;
  @media all and (min-width: 768px) {
    padding: 1rem;
    width: 70%;
    border-radius: 2rem 0 0 0;
    border: 1px solid var(--gray-color);
  }
}

/*
.even-row-class .views-field-view-node {
  width: 10rem;
  padding: 1rem;
  background-color: var(--gray-color);
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: Josefin Sans, sans-serif;
  text-align: center;
}
*/

.even-row-class .views-field-view-node {
  width: 7rem;
  padding: 0.2rem;
  position: absolute;
  bottom: 0;
  right: 0;
  font-family: Josefin Sans, sans-serif;
  color: white;
  text-align: center;
  background-color: var(--banner-color);
  font-size: 0.8rem;
  border: 1px solid orange;
  border-radius: 20px;
  margin: 1rem 0.3rem 1rem 0;
  @media all and (min-width: 768px) {
    padding: 1rem;
    background-color: var(--gray-color);
    font-size: 1rem;
    width: 10rem;
    color: black;
    border: none;
    border-radius: 0;
    margin: 0;
  }
}


.odd-row-class .views-field-view-node {
  width: 7rem;
  padding: 0.2rem;
  position: absolute;
  bottom: 0;
  right: 0;
  font-family: Josefin Sans, sans-serif;
  color: white;
  text-align: center;
  background-color: var(--banner-color);
  font-size: 0.8rem;
  border: 1px solid orange;
  border-radius: 20px;
  margin: 1rem 0.3rem 1rem 0;
  @media all and (min-width: 768px) {
    padding: 1rem;
    background-color: var(--gray-color);
    font-size: 1rem;
    width: 10rem;
    color: black;
    border: none;
    border-radius: 0;
    margin: 0;
  }
}


/*.flex-views .views-field-field-media-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
  @media all and (min-width: 780px) {
    width: 60%;
  }
}*/


.views-field .views-field-field-image, .flex-views .views-field-field-image {
  max-height: 35rem;
  box-shadow: none;
  text-align: -webkit-center;
  /*background-color: var(--gray-color);*/

  padding: 0 0.3rem;

  /*padding: 1rem 0;*/

}

.views-field-field-image .field-content img, .views-field-field-image .field-content img {
  width: 295px;
  height: 150px;
  object-fit: cover;
  display: block;
  object-position: top;
  margin: 0 auto;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  /*height: revert-layer;*/
  /*border-radius: 2rem 2rem 0 0;*/

}

/* MEDIA REMOTE*/
.media-oembed-content {
  max-width: 100%;
  margin: 2rem auto;
}

/* DRUPAL MEDIA */
div[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

img[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* guida */
.guida {
  background-color: whitesmoke;
  border: 1px solid gainsboro;
  padding-bottom: 2rem;

  & p {
    font-style: italic;
    font-size: 0.8rem;
  }
}

/* Footer */

#block-tailwindcss-footer img {
  width: 128px;
  height: auto;
  margin: 0 auto;
  @media all and (min-width: 780px) {
    width: 128px;
  }
}

.views-element-container footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.views-element-container footer button {
  cursor: pointer;
  color: white;
  background-color: var(--banner-color);
  padding: 0.5rem 1.5rem;
  width: 6rem;
  margin: 0 auto 2rem auto;
  border-radius: 0.6rem;

  &:hover {
    background-color: var(--evidence-color);
  }
}

/* CONTENT */

.btn-eta {
  cursor: pointer;
  color: white;
  background-color: var(--banner-color);
  padding: 0.5rem 1.5rem;
  width: 19rem;
  margin: 0 auto 2rem auto;
  border-radius: 0.6rem;
  @media all and (min-width: 720px) {
    width: 25rem;
  }

  &:hover {
    background-color: var(--evidence-color);
  }
}

.node-content {
  margin: 2rem auto;

  & ul {
    font-style: italic;
    @media all and (min-width: 768px) {
      padding: 0 2rem;
    }

    & li {
      margin: 0.4rem auto;
    }
  }

  & h3 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--banner-color);
    border-bottom: 1px solid whitesmoke;
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

.media-center {
  width: 320px;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  overflow: hidden;
  @media all and (min-width: 780px) {
    width: fit-content;
  }
}


/* TAO LIST */

.list-box {
  background-color: #fff3e4;
  padding: 1rem;
  border-radius: 2rem;
}


.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.tao-list ul,
ul.tao-list {
  list-style: none;
}

ul.tao-list {
  max-width: 1024px;
  margin: 2rem auto;
  padding: 2rem 0;
}
ul.tao-list li {
  color: white;
}

.tao-list ul li::before {
  content: '\e7cd';
  font-family: 'Material Symbols Outlined';
  font-size: 1.5rem;
  margin-right: 10px;
  color: white;
}

ul.tao-list li::before {
  content: '\e7cd';
  font-family: 'Material Symbols Outlined';
  font-size: 1.5rem;
  margin-right: 10px;
  color: white;
}

.wp-block-quote {
  border-left: none;
}


.sidebar .block {
  border-bottom: 1px solid #ced4da;
  margin: 0;
}

div#block-tailwindcss-leggerelamusicablocco a, .sidebar_first .storia-della-musica a, .sidebar_first .microcosmo a, .site-footer__top .leggere-la-musica a, .site-footer__top .storia-della-musica a, .site-footer__top .microcosmo a {
  color: #005283;
  font-size: 0.9rem;
}
.div#block-tailwindcss-leggerelamusicablocco a:hover, .sidebar_first .storia-della-musica a:hover, .sidebar_first .microcosmo a:hover, .site-footer__top .leggere-la-musica a:hover, .site-footer__top .storia-della-musica a:hover, .site-footer__top .microcosmo a:hover {
  color: #17988e;
  text-decoration: none;
}
.sidebar_first .index, .site-footer__top .index {
  margin-top: 2rem;
  margin-left: 1.1rem;
}
.sidebar_first .index a, .site-footer__top .index a {
  font-size: 1.2em !important;
  font-variant: small-caps;
  line-height: 1em;
}

.featured-top {
  margin-left: 0.625rem;
}
@media (min-width: 62rem) {
  .featured-top {
    display: none;
  }
}
.featured-top .menu-toggle {
  display: none;
}

.featured-bottom {
  border-top: 1px solid #e9ecef;
  padding-top: 1.25rem;
}
@media (min-width: 62rem) {
  .featured-bottom {
    display: none;
  }
}
.featured-bottom .leggere-la-musica, .featured-bottom .storia-della-musica, .featured-bottom .microcosmo {
  min-width: 319px;
  border-bottom: 1px solid #e9ecef;
  margin-left: 2rem;
}
.featured-bottom .leggere-la-musica a, .featured-bottom .storia-della-musica a, .featured-bottom .microcosmo a {
  color: #777;
}
.featured-bottom .leggere-la-musica a:hover, .featured-bottom .storia-della-musica a:hover, .featured-bottom .microcosmo a:hover {
  color: #17988e;
  text-decoration: none;
}
.featured-bottom .leggere-la-musica a, .featured-bottom .storia-della-musica a, .featured-bottom .microcosmo a {
  line-height: 2em;
}
.featured-bottom .index, .featured-bottom .user {
  padding-top: 1.25rem;
  margin-left: 2.1rem;
}
.featured-bottom .index a, .featured-bottom .user a {
  font-size: 1.2em !important;
  font-variant: small-caps;
  line-height: 2em;
}

.blog {
  ul {
    list-style: none;
    max-width: 1024px;
    margin: 2rem auto;
    padding: 2rem;
  }

  ul li::before {
    content: '\e7cd';
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    margin-right: 10px;
    color: #45858f;
  }
}

/* CAPTCHA MATH (provisional */
fieldset.captcha.captcha-type-challenge--math {
  color: white;
  margin: 0 2rem;

  & .form-item {
    width: 10rem;
  }

  & input {
    width: 10rem;
    color: black;
  }
}

fieldset.captcha.captcha-type-challenge--recaptcha {
  margin-left: 1rem;

  & legend.captcha__title.js-form-required.form-required {
    color: white;
  }

  & .captcha__description {
    position: relative;
    left: 0;
    color: white;
    width: 18rem;
  }
}

/* USER LOGIN*/
.user-login-form fieldset.captcha {
  margin-left: 0;
}

.user-login-form fieldset legend.captcha__title,
.user-login-form .captcha__description {
  color: black !important;
}

/* Articles */

.articles .flex-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  @media all and (max-width: 780px) {
    flex-direction: row;
    justify-content: center;
  }
}

.articles .column {
  @media all and (min-width: 780px) {
    width: 250px;
  }
}


.flex-gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  /*max-width: 320px;*/

  @media all and (min-width: 768px) {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 1320px;
  }
}

.flex-gallery .tassonomia {
  padding: 0.2rem 0 0.2rem 0.2rem;
}

.flex-gallery .tassonomia a {
  color: #17988e;
  font-size: 0.7rem;
  font-style: italic;
  margin-left: 1rem;

}
.flex-gallery .tassonomia a:hover {
  color: #005283;
  text-decoration: none;
}

.flex-views .views-field-field-cover, .flex-views .views-field-field-media-image {
  max-height: 35rem;
  box-shadow: none;
  text-align: -webkit-center;
  /*background-color: var(--gray-color);*/
  border-radius: 2rem 2rem 0 0;

  /*padding: 1rem 0;*/
  @media all and (min-width: 768px) {
    width: 30%;
    border-radius: unset;

  }
}

.views-field-field-cover .field-content img, .views-field-field-media-image .field-content img {
  width: 295px;
  height: 150px;
  object-fit: cover;
  display: block;
  object-position: top;
  margin: 0 auto;
  /*height: revert-layer;*/
  /*border-radius: 2rem 2rem 0 0;*/

}

.views-field.views-field-title p {
  margin: 0.5rem;
  line-height: 1.2rem;
  padding-bottom: 1rem;
}


.flex-gallery .views-field-title a {
  font-size: 0.9rem;
  color: black;
  padding-bottom: 1rem;
  font-weight: bold;
}

@media all and (min-width: 768px) {
  .even-row-class img {
    border-radius: 0 0 3rem 0 !important;
  }

  .odd-row-class img {
    border-radius: 0 0 0 3rem !important;
  }
}

.text-align-center {
  text-align: center;
}

/* opzionale per un più sicuro centramento */
.text-align-center img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
