/*!
Theme Name: giboli
Theme URI: http://underscores.me/
Author: Marketing Therapy
Author URI: https://marketingtherapy.eu/
Description: Tema Custom creato per lo Studio Dentistico Giboli
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: giboli
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

giboli is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
  - Variables
  - Gutenberg Resets
## Layouts
# Components
	- Navigation
  - Footer
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
  - Buttons
  - Form
  - Smile Section
  - Accordion
  - Box CTA
# plugins
	- Jetpack infinite scroll
# Utilities
	- Heading
	- Margin
	- Accessibility
	- Alignments
  - Colors
# Site Style
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/** 
	 * Install Locally Google Fonts
	 */

@font-face {
  font-family: "Ubuntu";
  src: url("./fonts/ubuntu/ubuntu-light.woff2") format("woff2"),
    url("./fonts/ubuntu/ubuntu-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Ubuntu";
  src: url("./fonts/ubuntu/ubuntu-light-italic.woff2") format("woff2"),
    url("./fonts/ubuntu/ubuntu-light-italic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Ubuntu";
  src: url("./fonts/ubuntu/ubuntu-regular.woff2") format("woff2"),
    url("./fonts/ubuntu/ubuntu-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Ubuntu";
  src: url("./fonts/ubuntu/ubuntu-italic.woff2") format("woff2"),
    url("./fonts/ubuntu/ubuntu-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Ubuntu";
  src: url("./fonts/ubuntu/ubuntu-bold.woff2") format("woff2"),
    url("./fonts/ubuntu/ubuntu-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Ubuntu";
  src: url("./fonts/ubuntu/ubuntu-bold-italic.woff2") format("woff2"),
    url("./fonts/ubuntu/ubuntu-bold-italic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
}

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1.6rem;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.75rem;
}

sup {
  top: -1rem;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35rem 0.75rem 0.625rem;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Smile Section
	 ========================================================================== */
.smile-section {
  position: relative;
}

.smile-section::before {
  content: "";
  width: 30%;
  height: 200px;
  position: absolute;
  top: 0;
  left: 0;
  background: url(static/img/giboli-smile-section-left.png) top left no-repeat;
  background-size: contain;
  opacity: 0.3;
}
.smile-section::after {
  content: "";
  width: 30%;
  height: 200px;
  position: absolute;
  bottom: 0;
  right: 0;
  background: url(static/img/giboli-smile-section-right.png) top right no-repeat;
  background-size: contain;
  opacity: 0.3;
}

/* Accordion
	 ========================================================================== */

.schema-faq-section {
  position: relative;
  background: #fff;
  padding: 15px 30px;
  margin-bottom: 24px;
  border: 1px solid #000;
  cursor: pointer;
  max-width: 960px;
  margin-inline: auto;
}

.schema-faq-section::before,
.schema-faq-section::after {
  content: "";
  width: 15px;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  margin-right: 15px;
  position: absolute;
  right: 20px;
  top: 25px;
}

.schema-faq-section::after {
  transform: rotate(90deg);
}

.schema-faq-section.active::after {
  transform: none;
}

.schema-faq-answer {
  display: none;
}

/* Box CTA
	 ========================================================================== */
.box-cta {
  width: 90%;
  max-width: 767px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
}

@media screen and (min-width: 1024px) {
  .box-cta {
    padding: 5rem;
  }
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
/* body,
button,
input,
select,
optgroup,
textarea {
  color: #404040;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
} */

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  margin: 0;
  line-height: 1;
}

p {
  margin-bottom: 1.5rem;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5rem;
}

address {
  margin: 0 0 1.5rem;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  max-width: 100%;
  overflow: auto;
  padding: 1.6rem;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

h1 {
  font-size: 3.6rem;
}
h2 {
  font-size: 3rem;
}
h3 {
  font-size: 2.4rem;
}
h4 {
  font-size: 2.2rem;
}
h5 {
  font-size: 2rem;
}
h6 {
  font-size: 1.6rem;
}

@media screen and (min-width: 769px) {
  h1 {
    font-size: 6rem;
  }
  h2 {
    font-size: 4.8rem;
  }
  h3 {
    font-size: 3.6rem;
  }
  h4 {
    font-size: 3rem;
  }
  h5 {
    font-size: 2.4rem;
  }
  h6 {
    font-size: 1.8rem;
  }
}

/* Elements
--------------------------------------------- */
body {
  background: #fff;
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin-block: 1rem;
  padding: 0;
}

ul.reset,
ol.reset {
  margin: 0 0 1.5rem 1rem;
}

main ul li {
  margin-block: 5px;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

li > .wp-submenu {
  margin-left: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

img {
  height: auto;
  max-width: 100%;
}

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: var(--black);
}

a:visited {
  color: inherit;
}

a:hover,
a:focus,
a:active {
  color: var(--primary-color);
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/* Variables
--------------------------------------------- */
:root {
  --white: ##fff;
  --grey: #757575;
  --black: #000;
  /* --link-color: #007eb7; */
  /* --link-color-hover: #ffa516; */
  --primary-color: #007eb7;
  --secondary-color: #4ec4d2;
  --tertiary-color: #089ba3;
}

@media screen and (max-width: 600px) {
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    padding: 0;
  }
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
.focus-card {
  padding: 2rem;
  border: 2px solid var(--primary-color);
}

.focus-card > .icon {
  max-width: 7rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.focus-card > h3 {
  font-size: 2rem;
  font-weight: 700;
}

/* Grid Cars */
.grid-cards > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-cards > .wp-block-group__inner-container > * {
  background-color: rgba(255, 255, 255, 0.5);
  position: relative;
  padding: 3rem;
}

.grid-cards > .wp-block-group__inner-container > *::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1rem;
  width: 5px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 10px;
}

@media screen and (min-width: 1024px) {
  .grid-cards > .wp-block-group__inner-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-cards.grid-cards--3fr > .wp-block-group__inner-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-cards.grid-cards--2fr > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Altre Terapie */

.altre-terapie {
  padding-block: 3rem;
}

.altre-terapie__spacer {
  width: 100%;
  height: 1px;
  background: var(--primary-color);
  display: block;
}

.altre-terapie .altre-terapie__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 3rem;
}

.altre-terapie .altre-terapie__inner > * {
  width: 100%;
}

.altre-terapie h3 {
  font-weight: 400;
}

.altre-terapie p {
  font-weight: 700;
}

.altre-terapie__button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.altre-terapie__separator {
  width: 15%;
  display: block;
  height: 5px;
  background-color: var(--primary-color);
  border-radius: 1rem;
}

.altre-terapie__link {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  .altre-terapie {
    padding-block: 7rem;
  }

  .altre-terapie .altre-terapie__inner {
    flex-direction: row;
  }

  .altre-terapie .altre-terapie__inner > * {
    width: 50%;
  }

  .altre-terapie__button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
  }

  .altre-terapie__link {
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
  }
}

/* Invisalign Card
------------------------*/

.invisalign-card {
  background: #fff;
}

.invisalign-card__content {
  padding: 2rem;
}

/* Navigation
--------------------------------------------- */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  min-height: 7rem;
}
.header__inner {
  width: 120rem;
  max-width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  max-width: 20rem;
}

/* .main-navigation .menu-main-menu-container {
  position: fixed;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100vh;
  background: #fff;
  box-shadow: 10px 10px 100px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
} */

.main-navigation.toggled .menu-main-menu-container {
  left: 0;
}

/* Menu Resets */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-navigation ul li a {
  text-decoration: none;
  color: #000;
}

.main-navigation #primary-menu li {
  font-size: 1.8rem;
  margin-inline: 1rem;
  position: relative;
}

.main-navigation .current-menu-item {
  position: relative;
}

@media screen and (min-width: 1024px) {
  .main-navigation #primary-menu li {
    padding-block: 2.2rem;
  }

  /*Line under Menu Item */
  .main-navigation #primary-menu li::after {
    content: "";
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .main-navigation #primary-menu .current-menu-item::after {
    content: "";
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
  }
  .main-navigation #primary-menu .sub-menu .current-menu-item::after {
    bottom: 5px;
  }

  /* Hovered and active menu item */
  .main-navigation #primary-menu li:hover::after {
    width: 100%;
  }

  /* Menu Item With Children */
  .menu-item-has-children .sub-menu {
    display: none;
  }

  .menu-item-has-children {
    position: relative;
  }

  .menu-item-has-children:hover .sub-menu {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
  }
  .main-navigation #primary-menu .sub-menu li::after {
    bottom: 0;
  }
}

.menu-item-has-children .sub-menu {
  display: block;
  visibility: hidden;
  position: absolute;
  top: 7rem;
  left: 0;
  width: 26rem;
  transform: translateY(5%);
  z-index: 999999;
  background: #fff;
  padding: 2rem;
  box-shadow: 1rem 1rem 3rem rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  opacity: 0;
}

ul.sub-menu::before {
  content: "";
  display: block;
  position: absolute;
  left: 20%;
  top: -1.9rem;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  border-left: 10px solid transparent;
}

.main-navigation #primary-menu .menu-item-has-children .sub-menu li {
  padding-block: 1rem;
  font-size: 1.6rem;
  display: inline-block;
}

/* Menu Mobile */

@media screen and (max-width: 1023px) {
  .main-navigation .menu-main-menu-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    box-shadow: 10px 10px 100px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    overflow-y: scroll;
  }

  /* Hide scrollbar for Chrome, Safari and Opera */
  .main-navigation .menu-main-menu-container::-webkit-scrollbar {
    display: none;
  }

  /* Hide scrollbar for IE, Edge and Firefox */
  .main-navigation .menu-main-menu-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  .main-navigation .current-menu-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1rem;
    width: 1px;
    height: 100%;
    background: #000;
  }
  .main-navigation .current-menu-item a {
    font-weight: 600;
  }

  .main-navigation #primary-menu {
    padding: 7rem 3rem;
  }

  .main-navigation #primary-menu li:not(:last-child) {
    margin-bottom: 2rem;
  }

  .menu-item-has-children .sub-menu {
    position: static;
    height: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: unset;
    width: 100%;
    transform: translate(0);
    padding: 0;
  }

  .menu-item-has-children .sub-menu.open {
    height: auto;
    visibility: visible;
    opacity: 1;
    padding-top: 1rem;
  }

  ul.sub-menu::before {
    display: none;
  }

  .main-navigation #primary-menu .menu-item-has-children .sub-menu li {
    display: block;
    margin-block: 0.5rem;
  }
}

@media screen and (min-width: 1024px) {
  .main-navigation .menu-main-menu-container {
    position: relative;
    left: 0;
    height: auto;
  }
  .menu-toggle {
    display: none;
  }

  .main-navigation ul {
    display: flex;
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* Burger Menu */
.burger {
  position: relative;
  width: 30px;
  height: 49px;
  background: none;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
}

.burger__line {
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #000;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform: rotate(0deg);
}

.burger__line:first-child {
  top: 18px;
  left: 0;
}
.burger__line:last-child {
  top: 27px;
  left: 0;
}
.toggled .burger__line {
  top: 23px;
}

.toggled .burger__line:last-child {
  transform: rotate(-45deg);
}
.toggled .burger__line:first-child {
  transform: rotate(45deg);
}

/* Footer
--------------------------------------------- */
.footer__columns {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #2a2a2a;
  color: #efefef;
  font-size: 1.6rem;
}
.footer__columns > .widget {
  width: 80%;
  max-width: 120rem;
  margin-inline: auto;
}

.footer__columns figure {
  max-width: 20rem;
  margin-bottom: 2rem;
}

.footer__columns .fal {
  font-size: 2rem;
  margin-right: 1rem;
  color: #fff;
  width: 2rem;
}

.footer__columns a {
  color: var(--secondary-color);
  font-weight: 700;
  text-decoration: none;
}

.footer__columns .footer__title {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer__columns .social {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed #fff;
}

.footer__columns .social a {
  display: inline-block;
}

.footer__credit {
  text-align: center;
  font-size: 1.2rem;
  background: #222;
  color: #999;
  padding-block: 0.5rem;
  margin: 0;
}
.footer__credit a {
  color: #fff;
}

/* Posts and pages
--------------------------------------------- */
main {
  padding-top: 7rem;
}

#wpadminbar {
  z-index: 99999999999999999999;
}

/* Header Logged In */
.admin-bar .header {
  top: 32px;
}

.sticky {
  display: block;
}

.post,
.page {
  margin: 0;
}

.updated:not(.published) {
  display: none;
}

/* .page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
} */

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Custom Media Text */
.wp-block-columns > .wp-block-column > figure > img {
  width: 100%;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

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

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

.wp-block-gallery.wp-block-gallery-is-layout-flex {
  margin: 0;
  gap: 0 !important;
}

/*--------------------------------------------------------------
- Buttons
--------------------------------------------------------------*/
.btn,
.form .btn,
.wp-block-buttons .wp-block-button a.wp-block-button__link,
input[type="submit"] {
  font-size: 16px;
  font-weight: bold;
  display: inline-block;
  color: #ffffff;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-color);
  border-radius: 30px;
  border: 2px solid transparent;
  padding: 1rem 3rem;
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.btn--read-more {
  font-size: 1.2rem;
  padding: 0.7rem 1.4rem;
}
.btn--read-more::after {
  content: "\f178";
  display: inline-block;
  font-family: "Font Awesome 5 Pro";
  position: relative;
  font-weight: 300;
  top: 0px;
  margin-left: 10px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  left: 0;
}

.btn:visited {
  color: #fff;
}

.btn:hover,
.form .btn:hover,
.wp-block-buttons .wp-block-button a.wp-block-button__link:hover,
input[type="submit"]:hover {
  background-color: var(--secondary-color);
}

.wp-block-buttons .wp-block-button.is-style-outline a.wp-block-button__link {
  background-color: transparent;
  color: var(--primary-color);
  border-color: inherit;
}
.wp-block-buttons
  .wp-block-button.is-style-outline
  a.wp-block-button__link:hover {
  background-color: var(--primary-color);
  color: #fff !important;
  border-color: var(--primary-color);
}

.wp-block-buttons
  .wp-block-button.is-style-outline.btn-white
  a.wp-block-button__link {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}
.wp-block-buttons
  .wp-block-button.is-style-outline.btn-white
  a.wp-block-button__link:hover {
  background-color: #fff;
  color: var(--primary-color) !important;
  border-color: #fff;
}

/* Form
--------------------------------------------------------------*/
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  color: #fff;
}

.form > .field {
  grid-column: span 2;
}

@media screen and (min-width: 768px) {
  .form > .field {
    grid-column: unset;
  }
}

.form .field > p,
.form .textarea > p {
  margin: 0;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #fff;
  width: 100%;
}

.form .textarea-container {
  grid-column: span 2;
  width: 100%;
  max-width: 100%;
}

.form .textarea > p {
  align-items: flex-start;
}

.form .field svg > g {
  stroke: #fff;
}

.form .field input,
.form .field input:focus,
.form .field input:active,
.form .field input::placeholder,
.form .textarea textarea,
.form .textarea textarea:focus,
.form .textarea textarea:active,
.form .textarea textarea::placeholder {
  background-color: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-weight: 300;
  width: 100%;
  display: block;
  max-width: 100% !important;
}

[data-name="your-message"] {
  width: 100%;
}
[data-name="privacy"] {
  font-size: 1.4rem;
}
span.wpcf7-not-valid-tip {
  font-size: 1.2rem;
}

.form-btn p {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
}

.form-btn input[type="submit"] {
  border: none;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Typography */

.heading-xl {
  font-size: 3.6rem;
}
.heading-lg {
  font-size: 3rem;
}
.heading-md {
  font-size: 2.4rem;
}
.heading-sm {
  font-size: 2.2rem;
}
.heading-xs {
  font-size: 2rem;
}
.heading-xxs {
  font-size: 1.6rem;
}
p[class*="heading-"] {
  margin-block: 1rem;
}

@media screen and (min-width: 769px) {
  .heading-xl {
    font-size: 6rem;
  }
  .heading-lg {
    font-size: 4.8rem;
  }
  .heading-md {
    font-size: 3.6rem;
  }
  .heading-sm {
    font-size: 3rem;
  }
  .heading-xs {
    font-size: 2.4rem;
  }
  .heading-xxs {
    font-size: 1.8rem;
  }
}

/*Fonts*/
.text-light {
  font-weight: 300;
}
.text-normal {
  font-weight: 400;
}
.text-bold {
  font-weight: 700;
}
.text-black {
  font-weight: 900;
}

.italic {
  font-style: italic;
}

/* Gap */
.gap-30 {
  gap: 30px;
}

/* Background */
.bg-grey {
  background-color: #f2f2f2;
}

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/* Colors
--------------------------------------------- */
.primary-color {
  color: #147eb7;
}
/*
--site-bg: ##fff;
--site-text-color: #757575;
--site-title-color: #000;
*/
/* Gutenberg Text Color */
.has-black-color {
  color: var(--black);
}
.has-white-color {
  color: var(--white);
}
.has-grey-color {
  color: var(--grey);
}
.has-primary-color {
  color: var(--primary-color);
}
.has-secondary-color {
  color: var(--secondary-color);
}
.has-tertiary-color {
  color: var(--tertiary-color);
}

/* Gutenberg Background Color */
.has-black-background-color {
  background-color: var(--black);
}
.has-white-background-color {
  background-color: var(--white);
}
.has-grey-background-color {
  background-color: var(--grey);
}
.has-primary-background-color {
  background-color: var(--primary-color);
}
.has-secondary-background-color {
  background-color: var(--secondary-color);
}
.has-tertiary-background-color {
  background-color: var(--tertiary-color);
}

/* -------------------------------------------------------------------------------- */
/* # Site Style */
/* -------------------------------------------------------------------------------- */

/* Site Reset */
:root {
  font-size: 62.5%;
}
body {
  font-size: 1.6rem;
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
}

/* Main Layout */
.entry-content {
  width: 100%;
  display: grid;
  grid-template-columns:
    [full-width-start] 1fr [breakout-start] 1fr [content-start] min(120rem, 80%)
    [content-end] 1fr [breakout-end] 1fr [full-width-end];
  justify-content: center;
}

.entry-content > * {
  grid-column: content;
}

.entry-content > .alignwide {
  grid-column: breakout;
}

.entry-content > .alignfull {
  grid-column: full-width;
}

.wp-block-cover.alignfull .wp-block-cover__inner-container,
.alignfull.boxed-inner > * {
  width: 80%;
  max-width: 1200px;
  margin-inline: auto;
}

.wp-block-cover.alignfull.wide-inner .wp-block-cover__inner-container {
  width: 100%;
  max-width: 100%;
}

.wp-block-cover.alignfull.wide-inner
  .wp-block-cover__inner-container
  > .alignwide {
  width: 80%;
  max-width: 80%;
  margin-inline: auto;
}

.alignfull.wide-inner > * {
  max-width: 80%;
  width: 80%;
  margin-inline: auto;
}

.wp-block-cover .wp-block-cover__background,
.wp-block-cover > img {
  width: 100% !important;
  max-width: 100% !important;
}

.wp-block-cover.alignfull .wp-block-cover__background.has-background-dim {
  width: 100%;
  max-width: 100%;
}

#scroll {
  scroll-margin-top: 9rem;
}

/* -------------------------------------------------------------------------------- */
/* ! Pages */
/* -------------------------------------------------------------------------------- */

/* - Hero */

@media screen and (min-width: 1024px) {
  #hero-home > .wp-block-cover__inner-container {
    padding-right: 25%;
  }
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70vh;
  position: relative;
}

.hero * {
  color: #000 !important;
}

.hero > .wp-block-cover__background {
  position: absolute;
  display: block;
}

.hero > .wp-block-cover__background::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
      to bottom,
      var(--primary-color),
      rgba(0, 126, 183, 0.3)
    ),
    url(static/img/face-pattern-white.webp) right center no-repeat;
  background: url(static/img/giboli-pattern-hero-section.png) right center
    no-repeat;
  background-size: contain;
  opacity: 1;
}

.hero .gb-toptitle {
  margin-bottom: 1rem;
}

.hero .wp-block-buttons {
  margin-top: 2rem;
}

/* - First Section */

.transparent-bg {
  position: relative;
  background-color: transparent !important;
}
.transparent-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #868686, rgba(255, 255, 255, 0.3)),
    url(./static/img/giboli-pattern-repeater-spaced.png) center center repeat;
  background-size: 15rem;
  opacity: 0.1;
  z-index: -1;
}

/* - Focus */

.therapies-section {
  padding-block: 10rem !important;
}

.focus-therapies {
  padding-block: 15rem;
}

.focus-therapies__therapy {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.focus-therapies__therapy figure {
  padding: 0;
  margin: 0;
}

.focus-therapies__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.focus-therapies__content .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.focus-therapies__content h3 {
  font-size: 2rem;
}

.focus-therapies__content .wp-block-buttons {
  margin-top: auto !important;
}

.focus-therapies
  .focus-therapies__content
  .wp-block-button
  a.wp-block-button__link {
  padding: 1rem 2rem;
  font-size: 1.4rem;
}

@media screen and (min-width: 782px) and (max-width: 1023px) {
  .focus-therapies .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* - Technology */

.technology-section {
  position: relative;
}
.technology-section > * {
  z-index: 10;
}

.technology-section figure {
  margin-top: -7rem;
}
.technology-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
      to left,
      rgba(255, 255, 255, 0),
      var(--primary-color)
    ),
    url(./static/img/face-pattern-white.webp) center center no-repeat;
  background-size: cover;
  opacity: 0.1;
}

.has-side-smiles {
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
}
.has-side-smiles::before {
  content: "";
  width: 30%;
  height: 300px;
  position: absolute;
  top: 0;
  left: -3rem;
  background: url(static/img/gb-left.png) top left no-repeat;
  background-size: contain;
  transform: scale(1.1);
}
.has-side-smiles::after {
  content: "";
  width: 30%;
  height: 300px;
  position: absolute;
  right: -3rem;
  bottom: 0;
  background: url(static/img/gb-right.png) bottom right no-repeat;
  background-size: contain;
  transform: scale(1.1);
}

.has-side-smiles.has-plain-text::before,
.has-side-smiles.has-plain-text::after {
  z-index: -1;
  opacity: 0.3;
}

/* -------------------------------------------------------------------------------- */
/* ! Temporary CSS */
/* -------------------------------------------------------------------------------- */
.hide {
  display: none !important;
}

/* Archive */
.page-hero {
  padding: 280px 0 140px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
}

.pagina.articolo {
  display: flex;
}

.contenuto {
  width: 75%;
}
.sidebar {
  width: 25%;
}

/* -------------------------------------------------------------------------------- */
/* ! Blog */
/* -------------------------------------------------------------------------------- */
.blog-hero {
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blog-hero__inner {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-hero__overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.blog-hero h1 {
  position: relative;
  z-index: 10;
  color: #fff;
  /* width: 70%; */
}

/* .blog-hero__overlay::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url(static/img/giboli-pattern-hero-section.png) right center
    no-repeat;
  background-size: contain;
  opacity: 1;
} */

.blog-contents {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  padding-block: 6rem;
  position: relative;
}

.blog-contents__content {
  width: 75%;
}
.blog-contents__sidebar {
  width: 25%;
  position: sticky;
  top: 10rem;
  align-self: flex-start;
  height: auto;
}

.blog-contents__archive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-contents__content .blog-item {
  background-color: #f5f5f5;
  text-decoration: none;
}

.blog-contents__content .blog-item.blog-item--single {
  background-color: transparent;
}
.blog-contents__content .blog-item .blog-item__image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.blog-contents__content .blog-item .blog-item__text {
  padding: 3rem 2.5rem;
}

.blog-contents__content .blog-item .blog-item__text--single {
  padding: 0;
  padding-top: 3rem;
}

.blog-contents__content .blog-item .blog-item__title {
  line-height: 1.2;
  color: var(--black);
  font-weight: 600;
  position: relative;
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 700;
}

.blog-contents__content .blog-item a:not(.btn) {
  color: var(--black);
  text-decoration: none;
}
.blog-contents__content .blog-item .btn {
  text-decoration: none;
}

.blog-contents__content .blog-item .post-meta {
  font-size: 14px;
  color: rgb(180, 181, 187);
  margin: 0 0 11px;
}
.blog-contents__content .blog-item .post-meta a {
  color: rgb(180, 181, 187);
}

.blog-contents__content .blog-item .intro {
  color: #757575;
}

.blog-contents__content .blog-item:first-child {
  grid-column: span 2;
}

.blog-contents__content .blog-item:first-child .blog-item__title {
  font-size: 3rem;
}

.pagination {
  margin-top: 20px;
  margin-left: 20px;
}

.pagination .page-numbers {
  background: #f5f5f5;
  width: 40px;
  height: 40px;
  display: inline-block;
  overflow: hidden;
  color: #000;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3 cubic-bezier(0.215, 0.61, 0.355, 1);
}

.pagination .page-numbers:hover {
  background: var(--primary-color);
  color: #fff;
}

.pagination .page-numbers.current {
  background: var(--primary-color);
  color: #fff;
}

.prev.page-numbers,
.next.page-numbers {
  font-size: 0;
  position: relative;
}
.next.page-numbers:after {
  content: "»";
  font-size: 1.5rem;
}

.prev.page-numbers:before {
  content: "«";
  font-size: 1.7rem;
}

/*Replace ul reset*/
.blog-item__text--single ul,
.blog-item__text--single ol {
  margin: 0 0 1.5em 1em;
}

/* Sidebar */

.blog-contents__sidebar h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.wp-block-categories-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.wp-block-categories-list li {
  margin: 5px 0 0;
  display: flex;
  justify-content: space-between;
  color: rgba(133, 134, 140, 0.7);
  font-size: 1.5rem;
}

.wp-block-categories-list li a {
  color: rgba(133, 134, 140, 0.7);
  text-decoration: none;
}

.wp-block-latest-posts__list {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.wp-block-latest-posts__post-date {
  display: block;
  margin-block: 5px;
  font-size: 1.5rem;
  color: rgba(133, 134, 140, 0.7);
}

.wp-block-latest-posts__list li a {
  font-size: 1.6rem;
  display: block;
  color: var(--black);
  text-decoration: none;
}

.wp-block-search__inside-wrapper {
  border: none;
}

.blog-contents__sidebar input[type="search"] {
  border: 1px solid #000;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0 10px 0 38px;
  line-height: 40px;
  height: 40px;
  box-sizing: border-box;
  width: 100%;
  color: #000;
  font-size: 13.5px;
  border-radius: 0px;
  font-weight: 300;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.wp-block-search__button-inside {
  position: relative;
}

.blog-contents__sidebar .wp-block-search__button {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media screen and (max-width: 767px) {
  .blog-contents {
    display: block;
  }

  .blog-contents__content {
    width: 100%;
  }
  .blog-contents__sidebar {
    width: 100%;
    position: relative;
    top: 0;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f2f2f2;
  }

  .blog-contents__archive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-contents__content .blog-item:first-child {
    grid-column: 1;
  }
}

.single-post .blog-hero__overlay {
  display: none;
}

@media screen and (max-width: 767px) {
  .single-post .blog-item__image {
    display: block;
  }

  .single-post .blog-hero {
    aspect-ratio: 4/3;
    height: auto;
    min-height: auto;
  }

  .single-post .blog-item__text {
    padding-top: 0 !important;
  }
}

/*
Single Terapia
*/

.hero-therapy {
  display: flex;
  align-items: center;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

.hero-therapy .hero__inner {
  padding-right: 30%;
}

.hero-therapy .hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.51) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 5;
}

.hero-therapy .hero__overlay::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
      to bottom,
      var(--primary-color),
      rgba(0, 126, 183, 0.3)
    ),
    url(static/img/face-pattern-white.webp) right center no-repeat;
  background: url(static/img/giboli-pattern-hero-section.png) right center
    no-repeat;
  background-size: contain;
  opacity: 1;
}

/* Remove Overlay in homepage */
.home .hero-therapy .hero__overlay::before {
  display: none;
}

.hero-therapy .hero__content {
  position: relative;
  z-index: 10;
}

.hero-therapy .hero__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 767px) {
  .hero-therapy {
    padding-block: 3rem;
  }

  .hero-therapy .hero__inner {
    padding-right: 0;
  }

  .hero-therapy .hero__img-container {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: 50%;
    transform: translate3d(-50%, 0, 0);
  }

  .hero-therapy .hero__overlay {
    height: 98%;
  }

  /* Invert overlay on homepage */
  .home .hero-therapy .hero__overlay::before {
    display: block;
    transform: rotateY(180deg);
    right: auto;
    left: 0;
  }

  .hero-therapy .hero__img {
    position: relative;
    aspect-ratio: 16/9;
    object-fit: cover;
  }

  .hero-therapy .hero__content {
    margin-top: 3rem;
  }
}

/* Chi Siamo */

.bio-section {
  background: #f2f2f2;
}

@media screen and (min-width: 1024px) {
  .bio-section > .wp-block-group__inner-container {
    display: flex;
    gap: 3rem;
    align-items: center;
  }
  .bio-section__photo img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}
.bio-section > .wp-block-group__inner-container > * {
  flex: 1;
}

.bio-section figure {
  margin: 0;
}

.bio-section__content {
  padding: 3rem;
}

/* Team Member List */
.giboli-team,
.therapies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (min-width: 768px) {
  .giboli-team,
  .therapies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.giboli-team__member,
.therapies-grid__therapy {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.giboli-team__member img,
.therapies-grid__therapy img {
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 2rem;
}

.giboli-team__content,
.therapies-grid__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.giboli-team__name,
.therapies-grid__name {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.giboli-team__role {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 2rem;
}
.giboli-team .btn,
.therapies-grid .btn {
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  margin-top: auto;
}

/* Naturopatia pagina terapie */
.box-naturopatia {
  background: #fff;
}

.box-naturopatia .box-naturopatia__content {
  padding: 3rem;
}

@media screen and (min-width: 768px) {
  .box-naturopatia {
    display: flex;
    align-items: center;
    grid-column: span 3;
    gap: 3rem;
  }
  .box-naturopatia > * {
    width: 50%;
  }
}

/* Curriculum popup */
.curriculum-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000000;
  padding: 3rem;
}

.curriculum-popup[data-active="true"] {
  display: block;
}

.curriculum-popup-content-wrapper {
  position: relative;
}

.icon-close {
  position: absolute;
  top: 0rem;
  right: 0rem;
  font-size: 20px;
  cursor: pointer;
}

.scrollable-cv {
  overflow-y: scroll;
  scrollbar-width: none;
}
.scrollable-cv::-webkit-scrollbar {
  display: none;
}

.curriculum-popup__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  z-index: 100000;
  background: #fff;
  padding: 3rem;
}

.curriculum-popup__overlay {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
  z-index: 10000;
}

/* Pagina ricerca */
section.not-found {
  grid-column: span 2;
}

/* 404 Page */
.not-found-container {
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.not-found-container h1 {
  font-size: 22rem;
}
@media screen and (max-width: 767px) {
  .not-found-container h1 {
    font-size: 15rem;
  }
}

.not-found-container p {
  margin: 0;
}

.not-found-container a {
  margin-top: 2rem;
}
