/*
Theme Name: IT Theme
Theme URI: https://www.consorzionova.it
Author: Luigi Vangi
Author URI: https://www.luigivangi.it
Description: Tema FSE
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 5.9
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: it_theme
Tags: TODO
*/

:root {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  --scrollbar-color-thumb: var(--wp--preset--color--secondary);
  --scrollbar-color-track: var(--wp--preset--color--gray-100);
  --scrollbar-width: auto;
  --scrollbar-width-legacy: 10px;
}

/* Modern browsers with `scrollbar-*` support */
@supports (scrollbar-width: auto) {
  :root {
    scrollbar-color: var(--scrollbar-color-thumb) var(--scrollbar-color-track);
    scrollbar-width: var(--scrollbar-width);
  }
}

/* Legacy browsers with `::-webkit-scrollbar-*` support */
@supports selector(::-webkit-scrollbar) {
  :root::-webkit-scrollbar-thumb {
    background: var(--scrollbar-color-thumb);
  }
  :root::-webkit-scrollbar-track {
    background: var(--scrollbar-color-track);
  }
  :root::-webkit-scrollbar {
    max-width: var(--scrollbar-width-legacy);
    max-height: var(--scrollbar-width-legacy);
  }
}

a {
  text-underline-offset: 0.2em;
}

/* Input styles */

input,
textarea,
select,
button {
  background-color: inherit;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  margin: 0;
}

input,
textarea,
select {
  background-color: var(--wp--preset--color--background);
  border: 0.1rem solid var(--wp--preset--color--accent);
  border-radius: 0.4rem;
  box-sizing: border-box;
  color: var(--wp--preset--color--text);
  max-width: 100%;
  padding: 0.5em;
}

label {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 500;
}

/* Block: Separator -------------------------- */

:root hr[class*="is-style-angled-separator"] {
  background-color: transparent !important;
  background-image: linear-gradient(
    -45deg,
    currentColor 25%,
    transparent 25%,
    transparent 50%,
    currentColor 50%,
    currentColor 75%,
    transparent 75%,
    transparent
  );
  background-size: 5px 5px;
  border: none;
  height: 10px !important;
  width: auto;
  opacity: 0.2;
}

:root hr.is-style-angled-separator-wide {
  max-width: 100% !important;
}

/* Block: Post Comments Form ----------------- */

ol.wp-block-comment-template {
  margin: 0;
}

/* .wp-block-post-comments-form input:not([type=submit]), 
.wp-block-post-comments-form textarea {
	border-color: var( --wp--preset--color--gray-300 );
} */

.required-field-message,
.comment-notes {
  display: none;
}

.logged-in-as {
  color: var(--wp--preset--color--secondary);
}

.comment-reply-title {
  margin: 0;
}

/* MISC ----------------- */

:root :is(.is-style-heading-gradient) span {
  background: linear-gradient(
    45deg,
    var(--wp--preset--color--primary),
    var(--wp--preset--color--accent)
  );
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

:root :is(.is-style-heading-has-sign) mark {
  position: relative;
  background-color: transparent !important;
  color: inherit;
}

:root :is(.is-style-heading-has-sign) mark::after {
  content: " ";
  display: block;
  width: 100%;
  height: 22px;
  background-image: url("assets/images/underline.svg");
  background-repeat: no-repeat;
  background-size: 100%;
  position: absolute;
  bottom: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

/* .text-gradient {
    -webkit-text-fill-color: transparent;
    background: -webkit-linear-gradient(45deg,#4D35FA,#FF4AC2);
    -webkit-background-clip: text;
    -webkit-box-decoration-break: clone;
    color: #4D35FA;
	display: inline;
} */

/* BUTTONS ---------------- */
:root :where(.wp-element-button) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

:root :where(.wp-element-button)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: all 500ms ease;
  top: 0;
  left: 0;
  transform: translate3d(0, -50%, 0);
  top: 50%;
  height: 0;
}

:root :where(.wp-element-button):hover::before {
  background: color-mix(in srgb, currentColor, transparent 80%);
  height: 200%;
}

:root :is(.is-style-background-blur) {
  backdrop-filter: blur(20px);
}

:root :is(.is-style-background-blur) > .wp-block-cover__image-background {
  filter: blur(20px);
}

/* TAGS ---------------- */
:root :where(.wp-block-post-terms a) {
  --term--color--text: var(--wp--preset--color--surface);
  --term--color--bg: var(--wp--preset--color--primary);
  --term--color--text--hover: var(--wp--preset--color--surface);
  --term--color--bg--hover: var(--wp--preset--color--accent);

  --term--border-width: 0.5em;

  position: relative;
  padding: 0.25em 0.5em;
  margin-bottom: var(--term--border-width);
  margin-right: var(--wp--preset--spacing--1);
  display: inline-block;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  background: var(--term--color--bg);
  color: var(--term--color--text);
  transition: all 250ms ease;
}

:root :where(.wp-block-post-terms a)::after {
  content: "";
  width: 0;
  height: 0;
  border-top: var(--term--border-width) solid var(--term--color--bg);
  border-right: var(--term--border-width) solid transparent;
  position: absolute;
  bottom: calc(var(--term--border-width) * -1 + 1px);
  left: 0;
  transition: all 250ms ease;
}

:root :where(.wp-block-post-terms a):hover {
  background-color: var(--term--color--bg--hover);
  color: var(--term--color--text--hover);
}

:root :where(.wp-block-post-terms a):hover::after {
  border-top-color: var(--term--color--bg--hover);
}

.wp-block-post-terms .wp-block-post-terms__separator {
  display: none;
}

/* GROUPS ---------------- */
:root :where(.wp-block-group.is-style-pattern-01) {
  background: url("assets/images/web_pattern_01.svg") no-repeat bottom right;
  background-size: 80%;
  background-position: center right;
  background-blend-mode: multiply;
  background-attachment: fixed;
}

:root :where(.wp-block-group.is-style-pattern-02) {
  background: url("assets/images/web_pattern_02.svg") no-repeat bottom right;
  background-size: 80%;
  background-position: center right;
  background-blend-mode: multiply;
  background-attachment: fixed;
}

:root :where(.wp-block-group.is-style-pattern-03) {
  background: url("assets/images/web_pattern_03.svg") no-repeat bottom right;
  background-size: 80%;
  background-position: center right;
  background-blend-mode: multiply;
  background-attachment: fixed;
}

:root :where(.wp-block-group.is-style-pattern-04) {
  background: url("assets/images/web_pattern_04.svg") no-repeat bottom right;
  background-size: 80%;
  background-position: center right;
  background-blend-mode: multiply;
  background-attachment: fixed;
}

:root :where(.wp-block-group.is-style-pattern-05) {
  background: url("assets/images/web_pattern_05.svg") no-repeat bottom right;
  background-size: 80%;
  background-position: center right;
  background-blend-mode: multiply;
  background-attachment: fixed;
}

:root :where(.wp-block-group.is-style-pattern-06) {
  background: url("assets/images/web_pattern_06.svg") no-repeat bottom right;
  background-size: 80%;
  background-position: center right;
  background-blend-mode: multiply;
  background-attachment: fixed;
}

.wp-block-navigation.is-style-bubble .wp-block-navigation-item {
  --navigation-bg-color: var(--wp--preset--color--secondary);
  --navigation-bg-transparency: 100%;
  padding: 0.5em 0.5em;
  background: color-mix(
    in srgb,
    var(--navigation-bg-color),
    transparent var(--navigation-bg-transparency)
  );
  border-radius: 8px;
  line-height: 1;
  /* border: solid 1px var(--navigation-bg-color); */
  transition: all 250ms ease;
}

.wp-block-navigation.is-style-bubble .wp-block-navigation-item:hover,
.wp-block-navigation.is-style-bubble
  .wp-block-navigation-item.current-menu-item {
  --navigation-bg-transparency: 80%;
}

.wp-block-navigation.is-style-bubble .wp-block-navigation-item a:hover {
  text-decoration: none;
}

/* POST IMAGES ---------------- */
/* Da sistemare perchè il border-radius è applicato all'immagine */
/* :root :where(.wp-block-post-featured-image){
	overflow: hidden;
}
:root :where(.wp-block-post-featured-image) img{
	transition: transform 250ms ease;
}
:root :where(.wp-block-post-featured-image):hover img {
	transform: scale(1.1);
} */

.wp-site-blocks {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: calc(100dvw - var(--wp--style--root--padding-right));
}
@media (max-width: 759px) {
  .wp-site-blocks {
    grid-template-columns: calc(100dvw);
  }
}

/* .sticky-header {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	z-index: 1000;
	background: #fff;
	transform: translateY(0);
	transition: transform .6s cubic-bezier(.21, .49, .33, .87)
}

.sticky-header__hidden {
	transform: translateY(-175%);
}

.sticky-header__show {
	transform: translateY(0);
	box-shadow: 0px 2px 6px -2px rgba(0, 0, 0, .2);
}

.mega-menu-fix {
	transform: translateX(-8px);
}

.wp-block-ollie-mega-menu__menu-container .menu-container__close-button{
	right: 24px;
} */

/* .mega-menu-fix .wp-block-ollie-mega-menu__menu-container {
  transform: translateX(-8px);
} */
@media (max-width: 759px) {
  body .is-layout-grid.stack-on-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  body .is-layout-grid.stack-on-mobile > * {
    flex-basis: 100%;
  }
}

div#mega-menu-1-dropdown {
  transform: translateX(-16px);
}
