@font-face {
  font-family: "Adobe Garamond Pro - Regular";
  src: url(../fonts/AGaramondPro-Regular.otf);
  font-weight: 400;
}

@font-face {
  font-family: "Adobe Garamond Pro - Italic";
  src: url(../fonts/AGaramondPro-Italic.otf);
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Adobe Garamond Pro - Bold";
  src: url(../fonts/AGaramondPro-Bold.otf);
  font-weight: 800;
}

* {
  font-display: auto;
}

.layout-container * {
  font-family: "Adobe Garamond Pro - Regular";
}

a {
  color: #000;
  transition: 0.2s ease;
}

.text-formatted a {
  color: var(--p);
  transition: 0.2s ease;
  text-decoration: none;
}

.text-formatted a:hover {
  color: #ffbb8e;
  text-decoration: underline;
}

li {
  list-style: none;
}

strong {
  font-weight: 800;
}


/* liste numerate */
ol li {
  list-style: decimal;
}
ol li::marker { 
  color: var(--p); 
  font-weight: 700;
  font-size: .85em;
}



/*titoli dentro articoli*/
.text-formatted h2 {
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  font-size: 24px;
  line-height: 2.25rem;
}

.text-formatted h3 {
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  color: var(--p);
  display: block;
  font-size: 1.25rem;
  line-height: 1.875rem;
}

@media (min-width:1200px) {
  .text-formatted h2 {
    font-size: 2.375rem;
  }

  .text-formatted h3 {
    font-size: 1.75rem;
  }
}



/*paragrafo dentro articoli*/

.page-node-type-page .field--name-body p,
.text-formatted p,
.text-formatted li {
  font-size: 1.25rem;
  line-height: 1.875rem;
}

.text-formatted ol li li,
.text-formatted ul li li {
  font-size: 1.125rem;
  line-height: 1.5rem;
}



@media (min-width: 1200px) {

  .page-node-type-page .field--name-body p,
  .text-formatted p,
  .text-formatted li {
    font-size: 1.5rem;
    line-height: 2.25rem;
  }

  .text-formatted ol li li,
  .text-formatted ul li li {
    font-size: 1.3rem;
    line-height: 1.875rem;
  }

}



/*liste dentro articoli*/

.text-formatted ol,
.text-formatted ul {
  padding-left: 36px;
}

.text-formatted ol li,
.text-formatted ul li {
  position: relative;
  margin: 1rem 0;
}

.text-formatted ol li li:last-child,
.text-formatted ul li li:last-child {
  margin-bottom: 2rem;
}

.text-formatted ul li::before {
  content: "";
  background-color: var(--p);
  width: 8px;
  height: 8px;
  position: relative;
  top: 10px;
  right: 0;
  border-radius: 20px;
  display: block;
  position: absolute;
  left: -20px;
}

.text-formatted ul li ul li::before {
  background-color: #ffffff;
  box-shadow: 0px 0px 0px 2px var(--p) inset;
}

@media (min-width:1200px) {
  .text-formatted ol li,
  .text-formatted ul li {
    margin: 1.5rem 0;
  }

  .text-formatted ul li::before {
    top: 15px
  }

  .text-formatted ul li li::before {
    top: 9px
  }
}






/*quote dentro articoli*/

blockquote {
  position: relative;
  padding: 2rem 1rem;
  margin: 0;
}

body .field blockquote p {
  font-style: italic;
  font-size: 22px;
  margin: 0;
  font-family: "Adobe Garamond Pro - Italic";
  line-height: 2.0625rem;
  position: relative;
  text-align: center;
  z-index: 1;
  color: var(--p);
}

blockquote:before,
blockquote:after {
  content: "";
  position: absolute;
  width: 50px;
  background: url(../images/icon-quote.svg);
  background-size: contain;
  background-repeat: no-repeat;
  height: 50px;
  z-index: 0;
}

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

blockquote:before {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}


@media (min-width:1024px) {
  body .field blockquote p {
    font-size: 24px;
    line-height: 2.25rem;
  }
}


@media (min-width:1200px) {
  blockquote {
    padding: 3rem 3rem;
  }

  blockquote:after {
    top: 50px;
  }

  blockquote:before {
    bottom: 50px;
  }

  body .field blockquote p {
    font-size: 2.125rem;
    line-height: 2.5rem;
  }
}




/* TABELLE */

table {
  width: 100%;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* table, tr, th, td {
  border: 1px inset var(--lightGray);
  border-collapse: collapse;
  border-spacing: 0;
} */

table th,
table td {
  padding: .5em;
}

table th {
  text-align: left;
  font-size: 1.2rem;
}

@media (min-width: 1200px) {
  table th {
    font-size: 1.5rem;
  }
}

table td > p:first-child  {
  margin-top: 0;
}
table td > p:last-child  {
  margin-bottom: 0;
}

table tr:nth-child(2n+1) td {
  background-color: rgba(245, 160, 105, .1);
}

