
* { font-family: 'Ubuntu'; }

/* ---------- TITLES AND SUBTITLES ---------- */
h1 {
  font-weight: 400;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text_color);
}

h2 { font-weight: 400; }

h3 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7rem;
  margin: 1rem 0;
}

/* sottotitolo pagine */
.view-custom-title .views-field-field-subtitle,
.views-field-field-page-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7rem;
  margin: 0.5rem 0rem;
}


/* ---------- LINKS AND LISTS ---------- */

.summary .field--name-body,
p, li,
p+ul li,
p+ol li,
table td,
.field__item ul li {
  font-size: 1rem;
  line-height: 1.6rem;
  margin: 1rem 0;
  position: relative;
}

a {
  color: var(--main_blue);
  text-decoration: none;
}
a:hover { color: var(--main_blue_hover); }
a.section--link:hover { color: var(--main_blue); }
p a:hover { text-decoration: underline; }
p a.button:hover { text-decoration: none; }

a[href=""] { cursor: default; }

p+ul,
.field__item ul,
ol {
  margin: 2rem 0;
  padding-left: 50px;
  position: relative;
}

.view-topics ol { margin: 0; }

p + ul li ul,
.field__item ul li ul,
ol li ol {
  margin: 1em 0;
  padding-left: 30px;
}

p+ul:before,
.field__item ul::before,
ol:before {
  content: '';
  width: 2px;
  background-color: var(--main_blue);
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.section-hecap p+ul:before,
.section-hecap .field__item ul::before,
.section-hecap ol:before { background-color: var(--hecap); }
.section-cmsp p+ul:before,
.section-cmsp .field__item ul::before,
.section-cmsp ol:before { background-color: var(--cmsp); }
.section-math p+ul:before,
.section-math .field__item ul::before,
.section-math ol:before { background-color: var(--math); }
.section-esp p+ul:before,
.section-esp .field__item ul::before,
.section-esp ol:before { background-color: var(--esp); }
.section-sti p+ul:before,
.section-sti .field__item ul::before,
.section-sti ol:before { background-color: var(--sti); }
.section-qls p+ul:before,
.section-qls .field__item ul::before,
.section-qls ol:before { background-color: var(--qls); }



p+ul li ul:before,
.field__item ul li ul::before,
ol li ol:before { display: none; }

p+ul li:before,
.field__item ul li::before,
ol li:before {
  content: '';
  width: 11px;
  background-color: var(--border_gray);
  display: block;
  border-radius: 20px;
  height: 11px;
  position: absolute;
  top: .5em;
  left: -26px;
  z-index: 1;
}

/* SPECIAL LINKS */
a.special_link {
  font-size: 1rem;
  text-decoration: none;
  padding: .5em 3em .5em 1em;
  margin: 1em 0;
  display: block;
  position: relative;
  width: 100%;
  font-weight: 400;
  color: var(--text_color);
  border-bottom: var(--light_gray) 2px solid;
  border-top: var(--light_gray) 2px solid;
  transition: all 300ms ease;
  line-height: 1.2em;
}
@media (min-width: 1024px) {
  a.special_link {
    font-size: 1.25rem;
    margin: 1.5em 0;
    line-height: 1.8em;
  }
}

a.special_link::after {
  content: '';
  position: absolute;
  display: block;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  height: 1em;
  width: 1em;
  background-image: url(../../assets/icons/icon_arrow_right.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

a.special_link:hover {
  transition: all 300ms ease;
  background-color: var(--light_gray);
}


/* ---------- STILE WYSIWYG WARNING MESSAGE ---------- */
p.warning,
p.notice {
  padding: 0;
  display: inline-block;
  position: relative;
  margin: 3em auto;
}

p.warning::after,
p.notice::after {
  content: '';
  background-color: var(--light_gray);
  display: block;
  z-index: -1;
  position: absolute;
  top: -2rem;
  left: -1rem;
  width: calc(100% + 2rem);
  height: calc(100% + 4rem);
}

p.warning::before,
p.notice::before {
  content: 'WARNING:';
  display: inline-block;
  font-size: 1em;
  color: var(--main_blue);
  font-weight: 700;
  margin-right: .5em;
}
p.notice::before { content: 'NOTICE:' };


/* ---------- STILE TITOLI WYSIWYG ---------- */
.titolo_2 {
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.5em;
  margin: 1em 0 1.25em 0;
}

.titolo_3{
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.5em;
  margin: 1em 0 1.25em 0;
}

/* ---------- STILE TABELLA ---------- */
table {
  width: 100%;
  margin: 3rem 0;
}

table caption {
  width: 100%;
  text-align: left;
  margin-bottom: 1em;
}

table thead th {
  padding: 1rem .5rem;
  border-left: 1px solid var(--border_gray);
  border-right: 1px solid var(--border_gray);
  border-top: 1px solid var(--border_gray);
  background-color: var(--light_gray);
}

table thead th,
table thead th p {
  font-weight: 400;
  margin: 0;
  text-align: left;
  font-size: 16px;
  color: var(--text_color);
}

table thead th p {
  padding: 0;
  line-height: 1em;
  margin-bottom: .25rem;
}

table td {
  color: #666;
  font-size: 14px;
  line-height: 1.5em;
}
table td:not(:first-child) {
  border-left: 1px solid var(--border_gray);
}

table tbody td {
  padding: .5rem;
  text-align: left;
}

table tbody tr {
  border: 1px #EDEDED solid;
}

table tbody tr:nth-child(2n + 1) {
  background-color: #fff;
}

table tbody tr:nth-child(2n) {
  background-color: var(--light_gray);
}


/* ---------- STILE QUOTE ---------- */
blockquote {
  display: inline-block;
  position: relative;
  font-style: italic;
  font-weight: 300;
  max-width: 800px;
  display: block;
  padding: 3rem 3rem;
  margin: 1em auto 2em auto;
}

blockquote::after,
blockquote::before {
  transform: scale(0.8);
  transform-origin: center;
  position: absolute;
  content: url("../../assets/icons/icon-quote-mark.svg");
}

blockquote::before {
  top: 0;
  left: 0;
}

blockquote::after {
  right: 0;
  bottom: 0;
  transform: scale(0.8) rotate(180deg);
}
blockquote p { padding: 0; }


/*------------------------*/

@media (min-width: 768px){

  /*title page*/
  h1 {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
    margin-top: 0;
  }

  /*sottotitolo pagine*/
  .view-custom-title .views-field-field-subtitle,
  .views-field-field-page-subtitle {
    font-size:20px;
    font-weight: 300;
    line-height: 1.7rem;
    margin: 0.5rem 0rem;
  }

  p.warning,
  p.notice { padding: 0 4rem; }
  blockquote { padding: 1rem 5rem; }

  blockquote p {
    font-size: 22px;
    line-height: 32px;
  }
}


@media (min-width: 992px) {

  ol li:before,
  p + ul li:before,
  .field__item ul li::before {
    width: 14px;
    height: 14px;
    top: .5em;
    left: -26px;
  }

  p + ul li ul li:before,
  .field__item ul li ul li::before {
    width: 12px;
    height: 12px;
  }

  p + ul li ul li ul li:before,
  .field__item ul li ul li ul li::before {
    width: 10px;
    height: 10px;
  }

}


@media (min-width: 1024px) {
  p.warning,
  p.notice { padding: 0; }

  p.warning::after,
  p.notice::after  {
    width: calc(100% + 4rem);
    height: calc(100% + 4rem);
    top: -2em;
    left: -2em;
  }

  blockquote {
    padding: 3rem 4rem;
    width: calc(100% + 4rem);
    left: -2rem;
    max-width: 1000px;
  }
  blockquote p { font-size: 1.5rem; }

  .page-member p.notice,
  .page-member p.warning,
  .page-announcement p.notice,
  .page-announcement p.warning,
  .page-member blockquote,
  .page-announcement blockquote { left: 0; }
}


@media (min-width: 1300px) {

  h1 { font-size: 3.75rem; }

  .view-custom-title .views-field-field-subtitle,
  .views-field-field-page-subtitle {
    font-size: 30px;
    line-height: 2.4rem;
    margin: 1rem 0rem;
  }

  .summary .field--name-body,
  p, p+ul li, .field__item ul li {
    color: var(--text_color);
    /* font-size: 1.125rem;
    line-height: 2rem; */
    font-size: 16px;
    line-height: 1.5em;
  }

  ol li,
  ol li a {
    font-size: 1.125rem;
  }

  p.warning,
  p.notice {
    width: calc(100% + 4rem);
    height: calc(100% + 4rem);
    left: -2rem;
    margin: 4em auto;
  }

  p.warning::after,
  p.notice::after {
    width: calc(100% + 6rem);
    height: calc(100% + 6rem);
    top: -3rem;
    left: -3rem;
  }

  .titolo_2 { font-size: 2rem; }
  .titolo_3, table caption { font-size: 1.5rem; } /* 1.7rem ?? */

  blockquote {
    padding: 2.5rem 4rem;
    width: calc(100% + 8rem);
    left: -4rem;
  }

  .page-member p.notice,
  .page-member p.warning,
  .page-announcement p.notice,
  .page-announcement p.warning,
  .page-member blockquote,
  .page-announcement blockquote { left: 0; }

}
