/*
Theme Name: Zero Medical Center Theme
Theme URI: https://farmerbit.com/
Description: Zero Medical Center Theme created by Farmerbit.
Version: 2.1.1
Author: Farmerbit <info@farmerbit.com>
Author URI: https://farmerbit.com/
Text Domain: fb
Requires PHP: 8.1
License: MIT
*/


[is="header"] .nav-menuDesktop .menu-item.--mega-menu .sub-menu {
  background-color: #faffff;
}

[name="WidgetSearch"] .widget-search-result-type, [is="header"] .header-search-result-type, 
[name="HeroSlider"] .hero-slide-search .search-result-item .search-result-type {
  padding: 6px 10px;
  font-size: 14px;
  text-transform: unset;
}

.mega-menu {
  background-color: #faffff;
}

[name="WidgetSearch"] .widget-search-result-title {
  line-height: 22px; font-size: 17px;
}

.mega-menu__title {
  font-size: 17px;
  font-weight: normal;
  margin-bottom: 30px; margin-top: 20px;
  color: #013739;
  text-transform: uppercase;
  position: relative;   font-family: DMSans Medium;
}


.mega-menu__links li:not(:last-child) {
  margin-bottom: 2.5rem;
}

.mega-menu__link-avatar {
  width: 50px;
  height: 50px;
}

.mega-menu__links li a {
  color: #013739;
  font-family: DMSans Medium; font-size: 17px;
}

.mega-menu .mega-menu__links .mega-menu__link--staff .mega-menu__link-label {
  font-size: 17px;
  font-family: DMSans Medium;
  line-height: 1.5;
}

.mega-menu .mega-menu__links .mega-menu__link--staff .mega-menu__link-service {
  font-size: 14px;
  font-family: DMSans Medium;
  line-height: 1.5;
  opacity: .7;
}

[data-post-type="patologie"] [name="ServiziListItem"] article {
  padding: 20px 30px;
}

#prestazioni 

.mega-menu__title {
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 15px;
  color: #013739;
  text-transform: uppercase;
  position: relative;
}

[name="Footer"] .footer-newsletter .newsletter-content__description {
  font-size: 17px;
  line-height: 30px;
}

[name="ServiziListItem"] article {
    padding: 20px;
  }

[name="HeroSlider"] .hero-slide-content {
  max-width: 900px;
}

[name="Footer"] {
  font-size: 17px;
}

[name="HeroSlider"] .hero-slide-search .search-result-item .search-result-title {
  font-size: 17px;
  line-height: 27px;
}


.hero-slide-title.font-56.font-semibold {
  font-family: DMSans medium;
}


[name="WidgetSearch"] .widget-search-result-type {
  font-weight: normal;
}

.query-post-grid  .row {
    --bs-gutter-x: 30px;
    --bs-gutter-y: 30px;
  }

[is="header"] .content-search__panel {
  border-radius: 20px;
}

[name="QueryPost"][data-template="ServiziListItem"]:not([data-post-type="patologie"]) .query-post-grid .row.ajax-wrapper {
  --bs-gutter-y: 20px;
}

[is="header"] .header-search-result-title {
  font-size: 17px; font-family: DMSans;
}

[is="header"] .nav-search input[type="text"] {
  font-size: 1.5rem;
}

[is="header"] .header-search-result-item {
  padding-bottom: 8px;
  padding-top: 8px;
}

*{
  -webkit-tap-highlight-color: transparent;
}

[name="StaffItem"] .staff-item-pill {
  padding: 10px 14px;
  line-height: 1;
  border-radius: 40px;
  font-size: 13px;
  font-family: DMSans Medium;
  white-space: nowrap;
  margin-top: 5px;
  margin-bottom: 5px;
}

[is='header'] .header__wrapper > .container-xl {
  padding-block: 20px;
}

[is="header"] .nav-search .header-search-result-title {
  font-size: 15px;
  line-height: 20px;
}

#category-description-content .h3,
#category-description-content h3 {
  font-family: var(--font-body-medium);
  font-size: 26px;
  line-height: 36px;
  margin-bottom: 15px;
}

[is='header'] .nav-menuDesktop > ul > li.--lvl-0 {
  font-family: DMSans medium;
}

[name='MenuBarProduct'] .wrapper .menu-items a {
  font-family: DMSans medium;
}

[name='Footer'] .footer-newsletter .newsletter-content__title {
  font-family: var(--font-body-medium);
}

[name='ServiziListSimpleItem'] article h4 {
  font-family: DMSans medium;
}

[name='ServiziListSimpleItem'] article {
  padding: 10px 24px;
}

[is='popup'] .popup__body {
  padding: 30px;
  padding-top: 80px;
}

[name='FixedCta'].fixed-cta--icon_buttons .fixed-cta-icon-buttons,
[name='FixedCta'].fixed-cta--icon_buttons .wrapper-cta-collapsed {
  gap: 20px;
}

 .hero-slide-title .font-56 {
    font-size: 50px;
    line-height: 60px;
  }

[name='FixedCta'].fixed-cta--icon_buttons .fixed-cta-icon-btn {
  width: 45px;
  height: 45px;
}

[name='WidgetSearch'] .widget-search-input-wrapper {
  max-width: 410px;
}

body .fb-twwfgfmg.row,
body .fb-twwfgfmg .row {
  --bs-gutter-x: 30px !important;
  --bs-gutter-y: 30px !important;
}
[is='query-post'] .filters {
  margin-bottom: 50px;
}

.description h3 {
  font-family: DMSans medium;
  font-size: 24px;
  line-height: 34px;
  margin-bottom: 10px;
}

[name='MenuBarProduct'] .wrapper {
  padding: 1rem 1rem 1rem 3rem;
}

[name='MenuBarProduct'] .wrapper a[is='Button'] {
  --button-py: 12px;
}

[name='WidgetSearch'] .widget-search-button .fb-button.--filled.with-icon img {
  height: 16px;
  width: 16px;
}

[name='WidgetSearch'] .widget-search-field {
  padding-right: 140px;
}
.fb-button.--filled.with-icon[icon-position='right'] {
  --button-px-start: 20px;
  --button-px-end: 10px;
}

[name='WidgetSearch'] .widget-search-button .fb-button.--filled.with-icon {
  --button-py: 10px;
}

[name='WidgetSearch'] .widget-search-button {
  position: absolute;
  right: 0px;
}

[name='QueryPost'][data-template='ServiziListItem']:not(
    [data-post-type='patologie']
  )
  .query-post-grid
  .row.ajax-wrapper
  .ajax-item:nth-child(2n)
  [name='ServiziListItem'] {
  background-color: #f3f7f8;
}

.accordion-item .accordion-header {
  padding: 15px 20px;
}

[name='ServiziListItem'] article .short-description {
  font-size: 17px;
  line-height: 27px;
}
[name='ServiziListItem'] article {
  gap: 25px;
}

.accordion-item .accordion-content {
  padding-inline: 10px;
}

[name='ServiziListItem'] article h4 {
  font-family: DMSans medium;
}

[name='ServiziListItem'] article figure {
  border-radius: 10px;
}

[name='ServiziListItem'] article h4:not(:last-child) {
  margin-bottom: 5px;
}

b,
strong {
  font-family: DMSans semibold;
  font-weight: normal;
}

[is='header'] .header {
  padding-top: 20px;
}

[name='Footer'] {
  border-radius: 20px 20px 0px 0;
  max-width: 100%;
  background-color: #153a42;
}

[name='Footer'] {
  border-radius: 20px 20px 0px 0;
  max-width: 100%;
  background-color: #edf7fa;
}

[name='Footer'] .border-footer {
  -webkit-border-before: 1px solid #000;
  border-block-start: 1px solid #000;
  width: 100%;
}

.mainFooter {
  padding-bottom: 0px;
}

[name='GridCards'] .card-description {
  font-size: 16px;
  line-height: 26px;
}

[name='StaffItem'] article {
  padding: 30px;
}

[name='StaffItem'] .cta-button {
  text-align: center;
  font-family: DMSans Medium;
  font-size: 18px;
  line-height: 28px;
  margin-top: 20px;
}

[name='StaffItem'] .name {
  font-family: DMSans medium;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 10px;
}

[name='GridCards'] figure::after {
  top: 10%;
  height: 100%;
}

[name='GridCards'] .card-title {
  font-family: DMSans medium;
}

[name='WidgetSearch'] .widget-search-title {
  font-family: var(--font-body-medium); font-weight: normal; font-size: 16px;
}

[name='Form'] form input,
[name='Form'] form textarea,
[name='Form'] form .--select {
  font-size: 16px;
  line-height: 26px;
  border-radius: 25px;
}

.home [is='query-post'] .filters {
  display: flex;
  margin-bottom: 50px;
}
.home [is='query-post'] .filters[data-post-type='servizi'] .filters-wrapper {
  margin: 0 auto;
  text-align: center;
}

.query-post-grid:has(.ajax-item.col-xl-3) [name='ServiziItem'] .content,
.query-post-grid:has(.ajax-item.col-xxl-3) [name='ServiziItem'] .content {
  padding: 25px;
}
[name='HeroSlider'] .hero-slide-content {
  row-gap: 25px;
}

body,
.paragraph {
  font-size: 18px;
  line-height: 30px;
}

[name='ServiziItem'] .content {
  padding: 30px;
}

/* Link informativi */
[name='Description'] a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  position: relative;
}

/* Freccetta ↗ */
[name='Description'] a::after {
  content: '↗';
  font-size: 0.85em;
  margin-left: 6px;
  display: inline-block;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* Hover */
[name='Description'] a:hover::after {
  transform: translate(2px, -2px);
}

[name='ServiziItem'] h4 {
  font-family: DMSans medium;
}

.button.--outline.with-icon,
[is='header'] .nav-text a.--outline.with-icon,
.button.--filled.with-icon,
[is='header'] .nav-text a.--filled.with-icon,
.fb-button.--outline.with-icon,
.fb-button.--filled.with-icon {
  --button-py: 8px;
}
/* 
[name="ServiziItem"] figure::after {
  background: linear-gradient(to top,#000000D4,#0000 60%);
} */

[name='GridCards'] .card[data-overlay='scuro'] figure::after {
  background: linear-gradient(to top, #091b20, #0000 100%);
  opacity: 1;
}

[name='ServiziItem'] .category {
  background-color: #fff;
  padding: 1px 10px;
  font-size: 14px;
  color: #000;
}

[name='WidgetSearch'] .widget-search {
  border-radius: 50px;
  padding: 15px 20px;
  gap: 20px;
}

[name='WidgetSearch'] .widget-search-field {
  padding-block: 10px;
}

@media (max-width: 1300px) {
  .nav-button {
    display: none !important;
  }
}

@media (max-width: 1199px) {

  [is="header"] .content-hamburger__menu li.open .sub-menu {
  -webkit-padding-before: 2rem;
    -webkit-padding-after: 2rem;
  padding-block-start: 2rem;
  padding-block-end: 2rem;
}

[is="header"].multi-lvl .content-hamburger__menu .arrow-left__icon {
  background: unset; width: 20px;
  height: 20px;
}

[is="header"].multi-lvl .content-hamburger__menu .arrow-left__icon img {
  filter: unset; width: 13px;
}



  [is="header"].multi-lvl .content-hamburger__menu .arrow-left {
    padding: 0;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-bottom: 10px;
  }

 .hero-slide-title .font-56 {
    font-size: 40px;
    line-height: 50px;
  }

  .nav-button {
    display: block !important;
  }
  body,
  .paragraph {
    font-size: 18px;
    line-height: 30px;
  }


  [is="header"].multi-lvl .content-hamburger__menu .arrow-right {
background: #fff;
  width: 35px;
  height: 35px; margin-left: 0px;
}

[is="header"].multi-lvl .content-hamburger__menu .arrow-right img {
  filter: unset;
}

.sub-menu.submenu--lvl1 .menu-item {
  margin-bottom: 10px;
}
[is="header"] .content-hamburger__menu .submenu--lvl1 li a {
  font-size: 1.7rem;
  line-height: 1.4;
  padding-bottom: 0px;
}

[is="header"].multi-lvl .content-hamburger__menu .arrow-left {
  gap: 5px;
  font-size: 15px; padding-top: 15px !important;
}

  [is='header'] .content-hamburger__menu {
    margin-right: 1rem;
  }

  body .wp-block-fb-blocks-widget-search {
    max-width: 800px !important;
  }

  [name='Footer'] {
    max-width: 100%;
  }

  [is='header'] .content-hamburger__menu li a {
    font-family: DMSans medium;
    font-size: 20px;
    line-height: 30px;
  }

  [is='header'].multi-lvl .content-hamburger__menu .arrow-right img {
    block-size: 20px;
    padding: 1px;
    top: 1px;
    margin-left: 15px;
  }
}

@media (max-width: 991px) {
  [is='header'] .header__wrapper > .container-xl {
    padding-block: 15px;
  }

  [name='MenuBarProduct'] .wrapper {
    padding-block: 0px;
    padding-inline: 0px 20px;
  }

  [name='WidgetSearch'] .widget-search-title {
    font-size: 16px;
    text-align: left;
  }

  .home [is='query-post'] .filters {
    display: block;
    margin-bottom: 50px;
  }
  [is='header'] .spaceMenu {
    /*height: 0;*/
    margin-bottom: 0px;
  }

  [name='WidgetSearch'] .widget-search-input-wrapper {
    margin-bottom: 0px;
  }

  [name='WidgetSearch'] .widget-search {
    gap: 20px 20px;
    justify-content: flex-start;
  }

  [name='ServiziListItem'] article {
    padding: 20px;
  }



  .query-post-grid  .row   {
  --bs-gutter-y: 20px; --bs-gutter-x: 20px;
}
}

@media (max-width: 767px) {
  [name='WidgetSearch'] .widget-search {
    padding: 3px;
  }

.query-post-carousel [name="ServiziItem"] h4 {
    font-size: 18px;
    line-height: 28px;
  }

  [name="ServiziItem"] h4 {
  font-size: 17px;
  line-height: 25px;
}

  [name='WidgetSearch'] .widget-search-input-wrapper {
    max-width: 100%;
  }

  [is='query-post'] .filters {
    margin-bottom: 30px;
  }

  .description h3 {
    font-family: DMSans medium;
    font-size: 22px;
    line-height: 32px;
  }

  body .fb-twwfgfmg.row,
  body .fb-twwfgfmg .row {
    --bs-gutter-x: 20px !important;
    --bs-gutter-y: 20px !important;
  }

  [name='ServiziListSimpleItem'] article {
    padding: 15px 0px;
    gap: 20px;
  }

  [is='header'] .header__wrapper > .container-xl {
    padding-block: 10px;
  }

  body,
  .paragraph {
    font-size: 17px;
    line-height: 30px;
  }

  [is='header'] .header__wrapper > .container-xl {
    max-width: calc(100% - 20px);
  }
  .font-40 {
    font-size: 26px;
    line-height: 36px;
  }

  [name='WidgetSearch'] .widget-search-title {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: left;
  }
  [name='WidgetSearch'] .widget-search {
    display: block;
  }

  [name='Title'] img {
    display: none;
  }

  .accordion-item .accordion-header {
    gap: 12px;
    padding: 12px 20px;
  }

  .query-post-grid:has(.ajax-item.col-xl-3) [name='ServiziItem'] .content,
  .query-post-grid:has(.ajax-item.col-xxl-3) [name='ServiziItem'] .content {
    padding: 15px;
    padding-bottom: 15px;
  }

  [name='ServiziItem'] figure {
    border-radius: 10px;
  }

  [name='ServiziItem'] .category {
    padding: 1px 9px;
    font-size: 12px;
  }

  [is='query-post'] .pagination.pagination--load-more .button,
  [is='query-post'] .pagination.pagination--load-more a {
    padding: 6px 20px;
    font-size: 15px;
  }

  .home [is='query-post'] .filters {
    margin-bottom: 30px;
  }

  [name='GridCards'] .card[data-text-color='chiaro'] .card-content,
  [name='GridCards'] .card[data-text-color='chiaro'] .card-description {
    font-size: 16px;
    line-height: 26px;
  }

  [name='GridCards'] .card[data-text-color='chiaro'] .card-title {
    color: #fff;
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 10px;
  }

  [name='Footer'] {
    max-width: 100%;
  }

  .wp-block-cover__image-background {
    background: linear-gradient(
      88deg,
      rgba(1, 14, 22, 0.75) 6%,
      rgba(91, 91, 91, 0.87) 83%
    ) !important;
  }

  [is='query-post'] .filters[data-post-type='servizi'] .filter-btn {
    padding: 8px 8px 8px 18px;
    font-size: 15px;
    line-height: 26px;
  }

  .accordion-item .accordion-title {
    font-size: 16px;
    line-height: 24px;
  }

  [name='ServiziListItem'] article {
    padding: 25px;
  }

  [name='QueryPost'][data-template='ServiziListItem']:not(
      [data-post-type='patologie']
    )
    .query-post-grid
    .row.ajax-wrapper {
    --bs-gutter-y: 20px;
  }

  [name='ServiziListItem'] article figure {
    border-radius: 50px;
    width: 100px;
    height: 100px; 
    display: block;
  }

  [name='ServiziListItem'] article h4:not(:last-child) {
    margin-bottom: 10px;
  }

  [name='ServiziListItem'] article h4 {
    font-size: 18px;
    line-height: 28px;
  }

  [is='query-post'] .query-post-alphabetical .alphabet-section .alphabet-item {
    padding: 5px 0;
  }


[name="WidgetSearch"] .widget-search-result-title {
    font-size: 16px;
    line-height: 21px;
  }

  [name="HeroSlider"] .hero-slide-search .search-result-item .search-result-title {
  font-size: 16px;
  line-height: 21px;
}

[is="header"] .header-search-result-title {
  font-size: 16px;     line-height: 21px;
}


.font-56 {
  font-size: 32px;
  line-height: 42px;
}

  .nav-button {
    display: none !important;
  }

  [name="ServiziListItem"] article .short-description {
  font-size: 16px;
  line-height: 26px;
}

  #category-description-content .h3,
  #category-description-content h3 {
    font-family: var(--font-body-medium);
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 15px;
  }
  .link .fb-button.--filled {
    --button-px-start: 22px;
    --button-px-end: 18px;
    --button-py: 7px;
  }

  [name="ServiziListSimpleItem"] article .link a.--is-icon .link__arrow-icon {
  width: 15px;
  height: 15px;
}

[name="ServiziListSimpleItem"] article .link a.--is-icon {
  width: 40px;
  height: 40px;
}

  [name="HeroSlider"] .hero-slide-search .search-result-item .search-result-type {
    font-size: 14px;
    padding: 3px 10px;
    margin-top: 3px; text-transform: unset;
  }

  [is="header"] .header-search-result-type {

    text-transform: unset;
    font-size: 14px;
    margin-top: 3px;
  }

  [name="WidgetSearch"] .widget-search-result-type {
   text-transform: unset;
    font-size: 14px;
    margin-top: 3px;
}

[name="WidgetSearch"] .widget-search-result-type, [is="header"] .header-search-result-type, 
[name="HeroSlider"] .hero-slide-search .search-result-item .search-result-type {
  padding: 0;
}


}


html.single-esami,
html.single-prestazioni,
html.single-visite,
html.single-patologie,
html.single-servizi {
  [name='HeroSlider'] {
    .hero-slide,
    .hero-slide.with-overlay:before,
    .hero-slide-mobile-image {
      border-top-left-radius: 0;
      border-top-right-radius: 0;
    }
  }
}

.grecaptcha-badge { 
  visibility: hidden;
}
