/* --------------------------------------------------------
Variables globali
-------------------------------------------------------- */
/*Theme color
-------------------------------------------------------- */
/* Fonts
-----------------------------------------------------------*/
/* Tipografy color
-------------------------------------------------------- */
/* Sidebar color
-------------------------------------------------------- */
/* Button theme & gutenberg
-----------------------------------------------------------*/
/* Element color
-----------------------------------------------------------*/
/* Content width
-----------------------------------------------------------*/
/* --------------------------------------------------------
Mixin
-------------------------------------------------------- */
/* Button - GLOBAL
-----------------------------------------*/
.wp-block-buttons.alignright {
  text-align: right;
}

.wp-block-buttons.aligncenter {
  text-align: center;
}

.wp-block-buttons .wp-block-button:first-child {
  margin-left: 0;
}

.wp-block-buttons .wp-block-button:last-child {
  margin-right: 0;
}

/* Button - DEFAULT
-----------------------------------------*/
.wp-block-button .wp-block-button__link {
  display: inline-block;
  padding: 12px 22px;
  background: var(--wp--preset--color--accent);
  border: 1px solid var(--wp--preset--color--accent);
  color: white;
  border-radius: 4px;
  transition: all 0.4s ease;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
}
.wp-block-button .wp-block-button__link:hover {
  text-decoration: none;
  color: var(--wp--preset--color--accent);
}
.wp-block-button .wp-block-button__link:not(.has-text-color) {
  color: white;
}
.wp-block-button .wp-block-button__link:not(.has-text-color):hover {
  color: var(--wp--preset--color--titolo);
}
.wp-block-button .wp-block-button__link:not(.has-background) {
  border: 1px solid var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--primary);
}
.wp-block-button .wp-block-button__link:not(.has-background):hover,
.wp-block-button .wp-block-button__link:not(.has-background):focus {
  background-color: transparent;
}

/* BUTTON - Outline Contorno
----------------------------------------------------------*/
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
  color: var(--wp--preset--color--primary);
}
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) {
  background-color: transparent;
}
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover,
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):focus {
  background-color: var(--wp--preset--color--primary);
}
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover,
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):focus {
  color: white;
}

/* BUTTON - Outline White
----------------------------------------------------------*/
.wp-block-button.is-style-btn-outline-white .wp-block-button__link:not(.has-text-color) {
  color: #fff;
}
.wp-block-button.is-style-btn-outline-white .wp-block-button__link:not(.has-background) {
  background-color: transparent;
  border: 1px solid #fff;
}
.wp-block-button.is-style-btn-outline-white .wp-block-button__link:not(.has-background):hover,
.wp-block-button.is-style-btn-outline-white .wp-block-button__link:not(.has-background):focus {
  background-color: #fff;
}
.wp-block-button.is-style-btn-outline-white .wp-block-button__link:not(.has-text-color):hover,
.wp-block-button.is-style-btn-outline-white .wp-block-button__link:not(.has-text-color):focus {
  color: var(--wp--preset--color--titolo);
}

/* BUTTON - Bianco
----------------------------------------------------------*/
.wp-block-button.is-style-btn-white .wp-block-button__link:not(.has-text-color) {
  color: var(--wp--preset--color--titolo);
}
.wp-block-button.is-style-btn-white .wp-block-button__link:not(.has-background) {
  border: 1px solid #fff;
  background-color: #fff;
}
.wp-block-button.is-style-btn-white .wp-block-button__link:not(.has-background):hover,
.wp-block-button.is-style-btn-white .wp-block-button__link:not(.has-background):focus {
  background-color: transparent;
}
.wp-block-button.is-style-btn-white .wp-block-button__link:not(.has-text-color):hover,
.wp-block-button.is-style-btn-white .wp-block-button__link:not(.has-text-color):focus {
  color: #fff;
}

/* BLOCCO: Blockquote - Default
-----------------------------------------*/
.wp-block-quote {
  border-left: 4px solid var(--wp--preset--color--primary);
  padding: 25px;
  margin-left: 20px;
  background: #f5f7f8;
}
.wp-block-quote p {
  margin-bottom: 15px;
}

.wp-block-quote__citation,
.wp-block-quote cite,
.wp-block-quote footer {
  color: #6c7781;
  font-size: 0.9em;
  margin-top: 1em;
}

/* BLOCCO: Blockquote - Grande is-style-large
-----------------------------------------*/
.is-style-large {
  background: transparent;
}

/* BLOCCO: Citazione evidenziata
-----------------------------------------*/
.wp-block-pullquote,
.wp-block-pullquote.is-style-solid-color {
  border: none;
  padding: 0px;
  position: relative;
  margin-left: 0;
}
.wp-block-pullquote blockquote,
.wp-block-pullquote.is-style-solid-color blockquote {
  margin-left: 0;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  position: relative;
  background: var(--wp--preset--color--primary);
  color: #fff;
  border: none;
  padding: 20px 20px 20px 55px;
  text-align: left;
}
.wp-block-pullquote blockquote p,
.wp-block-pullquote.is-style-solid-color blockquote p {
  font-size: 18px;
  position: relative;
}
.wp-block-pullquote blockquote p:before,
.wp-block-pullquote.is-style-solid-color blockquote p:before {
  content: "\e813";
  font-family: "fontello";
  position: absolute;
  color: #fff;
  left: -38px;
  top: -8px;
  font-size: 28px;
  opacity: 1;
}
.wp-block-pullquote blockquote:after,
.wp-block-pullquote.is-style-solid-color blockquote:after {
  content: "";
  z-index: -1;
  width: 40px;
  height: 40px;
  background: var(--wp--preset--color--primary);
  position: absolute;
  bottom: -13px;
  left: 10%;
  transform: rotate(39deg);
}
.wp-block-pullquote cite,
.wp-block-pullquote.is-style-solid-color cite {
  color: #fff;
}

ul.is-style-check {
  list-style: none;
}
ul.is-style-check li {
  position: relative;
}
ul.is-style-check li:before {
  font-family: "fontello";
  content: "\e800";
  position: absolute;
  left: -25px;
  top: 0px;
  color: inherit;
}

/* Heading custom styles
-----------------------------------------*/
.is-style-underline:after {
  content: "";
  position: relative !important;
  display: block;
  margin-top: 10px;
  height: 4px;
  width: 40px;
  background: var(--wp--preset--color--primary);
}

.is-style-overline:before {
  content: "";
  position: relative !important;
  display: block;
  margin-bottom: 10px;
  width: 40px;
  height: 4px;
  background: var(--wp--preset--color--primary);
}

.has-text-align-center.is-style-overline:before, .has-text-align-center.is-style-underline:before {
  margin: 0 auto;
  margin-bottom: 10px;
}
.has-text-align-center.is-style-overline:after, .has-text-align-center.is-style-underline:after {
  margin: 0 auto;
  margin-top: 10px;
}

/* ! Alignwide
-------------------------------------------------------- */
.alignwide {
  width: auto !important;
  max-width: 1000%;
  margin-left: calc(25% - 25vw);
  margin-right: calc(25% - 25vw);
}

/* ! BLOCCO: Table
-------------------------------------------------------- */
.wp-block-table table td:before {
  content: "";
  display: inline-block;
  min-height: 20px;
}

.wp-block-table {
  overflow-x: auto;
}

/* ! BLOCCO: Paragrafo background
-------------------------------------------------------- */
/* ! BLOCCO: Colonne
-------------------------------------------------------- */
/* ! BLOCCO: Group
-------------------------------------------------------- */
/* ! BLOCCO: Media Text
  -------------------------------------------------------- */
.wp-block-media-text > .wp-block-media-text__content {
  padding: 0;
}

.wp-block-media-text {
  gap: 0 50px;
}

/* ! BLOCCO: File - Download
-------------------------------------------------------- */
.wp-block-file {
  margin-bottom: 30px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.wp-block-file a {
  margin-bottom: 5px;
  font-size: 12px;
}
.wp-block-file a.wp-block-file__button {
  flex-shrink: none;
  border-radius: 0;
  border: 1px solid var(--wp--preset--color--primary);
  font-size: 11px;
  margin-left: 0;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  background: var(--wp--preset--color--primary);
  display: inline-block;
}
.wp-block-file a.wp-block-file__button:before {
  content: "\e80f";
  font-family: "fontello";
  position: relative;
  margin-right: 10px;
  top: -1px;
  font-size: 13px;
}
.wp-block-file a.wp-block-file__button:hover {
  text-decoration: none !important;
  opacity: 1;
  background: transparent;
  color: var(--wp--preset--color--primary);
}

/* ! BLOCCO: image con Link
-------------------------------------------------------- */
.wp-block-image {
  border-radius: 4px;
  overflow: hidden;
}
.wp-block-image a {
  display: inline-block;
  position: relative;
}
.wp-block-image a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: #ececec;
  transition: all 0.3s ease-out;
  pointer-events: none;
}
.wp-block-image a:after {
  content: "\e803";
  content: url("/wp-content/themes/sccitalia/img/scc-logo-h.svg");
  font-family: "fontello";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -50%) scale(1);
  transform-origin: center;
  color: var(--wp--preset--color--accent);
  opacity: 0;
  font-size: 30px;
  transition: all 0.3s ease-out;
  pointer-events: none;
}
.wp-block-image a:hover:before {
  opacity: 0.4;
}
.wp-block-image a:hover:after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  font-size: 30px;
}

/* ! BLOCCO: Separatore
-------------------------------------------------------- */
.wp-block-separator {
  border-color: #d8d8d8;
}

.wp-block-separator.is-style-dots:before {
  color: var(--wp--preset--color--primary);
  font-size: 4rem;
  letter-spacing: 1.5rem;
  padding-left: 1.5rem;
}

/* --------------------------------------------------------
Desktop-small
-------------------------------------------------------- */
@media (max-width: 991px) {
  /* Stack Helper
  -----------------------------------------------------------*/
  .is-layout-flex.stack-lg {
    flex-wrap: wrap !important;
  }
  .is-layout-flex.stack-lg > div {
    flex-basis: 100% !important;
  }
  .wp-block-media-text.stack-lg {
    grid-template-columns: 100% !important;
  }
  /* Alignwide 
  -------------------------------------------------------- */
  .alignwide {
    width: auto !important;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .alignwide img {
    display: block;
    margin: 0 auto;
  }
}
/* --------------------------------------------------------
Tablet
-------------------------------------------------------- */
@media (max-width: 767px) {
  /* Stack Helper
  -----------------------------------------------------------*/
  .is-layout-flex.stack-md {
    flex-wrap: wrap !important;
  }
  .is-layout-flex.stack-md > div {
    flex-basis: 100% !important;
  }
  /* Stack element wordpress in lg
  -----------------------------------------------------------*/
  .is-layout-flex.stack-md {
    flex-wrap: wrap !important;
  }
  .is-layout-flex.stack-md > div {
    flex-basis: 100% !important;
  }
  /* BLOCCO: Cover
  -------------------------------------------------------- */
  .wp-block-cover-image .wp-block-cover__inner-container,
  .wp-block-cover .wp-block-cover__inner-container {
    width: calc(100% - 15px);
  }
  /* BLOCCO: Media Text
  -------------------------------------------------------- */
  .wp-block-media-text .wp-block-media-text__content {
    padding: 30px 15px 0 15px;
  }
  /* BLOCCO: Gallery
  -------------------------------------------------------- */
  .wp-block-gallery .blocks-gallery-item {
    width: calc(50% - 5px);
  }
  .wp-block-gallery .blocks-gallery-item:nth-of-type(even) {
    margin-right: 0px;
    margin-left: 5px;
  }
  .wp-block-gallery .blocks-gallery-item:nth-of-type(odd) {
    margin-left: 0px;
    margin-right: 5px;
  }
  .wp-block-gallery.columns-3 .blocks-gallery-item:last-child {
    margin-right: 0;
  }
  .wp-block-gallery.columns-7 .blocks-gallery-item:last-child {
    margin-right: 0;
  }
}
/* --------------------------------------------------------
Smartphone
-------------------------------------------------------- */
@media (max-width: 575px) {
  /* Stack Helper
  -----------------------------------------------------------*/
  .is-layout-flex.stack-sm {
    flex-wrap: wrap !important;
  }
  .is-layout-flex.stack-sm > div {
    flex-basis: 100% !important;
  }
  /* BLOCCO: Media Text
  -------------------------------------------------------- */
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media,
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    padding: 0;
    margin-bottom: 20px;
  }
}