/*
Theme Name: San Pio Child
Template: twentytwentyone
Version: 1.0.0
Text Domain: sanpio-child
*/

main.site-main {
  padding-top: 0;
}

body {
  padding-bottom: 0;
}

body.has-sticky-contact-bar {
  padding-bottom: 56px;
}

.pg-sheet-rebuild {
  position: relative;
}

[hidden] {
  display: none !important;
}

.top-gallery__thumbnail,
.photo-gallery__thumbnail,
.static-button-link,
.faq-v2-accordion__item-header,
.static-modal__close,
.static-modal__nav {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.top-gallery__thumbnail {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
}

.photo-gallery__thumbnail img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-gallery__wrapper {
  grid-auto-rows: clamp(132px, 18vw, 154px);
}

.photo-gallery__thumbnail {
  aspect-ratio: auto;
  height: 100%;
}

.scheda-azienda__companyImage img {
  height: auto;
  object-fit: contain;
  width: 100%;
}

.scheda-azienda__ctas-wrapper {
  position: relative;
}

.scheda-azienda__companyLead {
  color: var(--color-on-surface-variant);
  line-height: 1.5;
  margin-top: 0.75rem;
  max-width: 44rem;
}

.scheda-azienda__pay-methods-item img {
  display: block;
  height: auto;
  max-width: 100%;
}

.scheda-azienda__pay-methods-item--wide {
  max-width: 64px;
  padding: 0.125rem 0.25rem;
}

.phone-dialog__link {
  align-items: center;
  color: var(--color-primary-container);
  display: flex;
  min-height: 42px;
  padding: 0.5rem 1rem;
  width: 100%;
}

.phone-dialog__link:hover {
  background-color: color-mix(in srgb, var(--color-primary-container) 10%, transparent);
}

.scheda-azienda__cta_phoneCnt.hidden {
  display: none !important;
}

.simple-slider {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.simple-slider__viewport {
  overflow: hidden;
}

.simple-slider__track {
  display: flex;
  transition: transform 220ms ease-in-out;
  will-change: transform;
}

.simple-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.simple-slider__dots {
  margin-top: 0;
}

.simple-slider__dots button {
  align-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.simple-slider__dots button::before {
  background: var(--color-outline-variant);
  border-radius: 100%;
  content: "";
  display: block;
  height: 12px;
  width: 12px;
}

.simple-slider__dots button.is-active::before {
  background: var(--color-on-surface-variant);
}

.js-slider-prev[disabled],
.js-slider-next[disabled],
.bttn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.news-card__full.hidden {
  display: none !important;
}

.faq-v2-accordion__item-header {
  text-align: left;
  width: 100%;
}

.faq-v2-accordion__item-header .bttn-icon {
  pointer-events: none;
}

.faq-v2-accordion__item-content {
  overflow: hidden;
}

.static-modal {
  inset: 0;
  position: fixed;
  z-index: 500;
}

.static-modal__backdrop {
  background: rgba(0, 0, 0, 0.68);
  inset: 0;
  position: absolute;
}

.static-modal__dialog {
  background: var(--color-surface-container-lowest);
  border-radius: 0.75rem;
  box-shadow: var(--elevation-4);
  color: var(--color-on-surface-variant);
  left: 50%;
  max-height: calc(100dvh - 2rem);
  max-width: min(960px, calc(100vw - 2rem));
  overflow: auto;
  position: relative;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.static-modal__dialog--gallery {
  max-width: min(1120px, calc(100vw - 2rem));
}

.static-modal__header {
  border-bottom: 1px solid var(--color-outline-variant);
  padding: 1rem 1rem 0.875rem;
}

.static-modal__close {
  align-items: center;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  width: 2.5rem;
  z-index: 2;
}

.static-modal__gallery {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  padding: 1rem;
}

.static-modal__figure {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.static-modal__figure img {
  background: #fff;
  border-radius: 0.5rem;
  display: block;
  max-height: min(72dvh, 720px);
  object-fit: contain;
  width: 100%;
}

.static-modal__caption,
.static-modal__footer {
  color: var(--color-on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

.static-modal__footer {
  padding: 0 1rem 1rem;
}

.static-modal__nav {
  align-items: center;
  background: var(--color-surface-container-low);
  border-radius: 999px;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  display: inline-flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.static-modal__nav[disabled] {
  cursor: not-allowed;
  opacity: 0.4;
}

.static-modal__news {
  display: flex;
  flex-direction: column;
}

.static-modal__news .scheda-azienda__newswall-modal__description {
  padding-top: 1rem;
}

.static-modal__news .scheda-azienda__newswall-modal__description p + p {
  margin-top: 1rem;
}

.scheda-azienda__other-info-wrap {
  color: var(--color-on-surface-variant);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scheda-azienda__contact-quick-content {
  color: var(--color-on-surface-variant);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scheda-azienda__contact-quick-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scheda-azienda__contact-quick-list li {
  line-height: 1.5;
}

.scheda-azienda__contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-bar #ctasScheda {
  gap: 1rem;
}

.contact-bar .scheda-azienda__ctas {
  flex-wrap: nowrap;
  margin-left: auto;
}

.contact-bar .scheda-azienda__cta_phoneButton_wrapper {
  flex-shrink: 0;
}

.contact-bar .bttn {
  white-space: nowrap;
}

.static-button-link {
  color: var(--color-primary-container);
  cursor: pointer;
  font: inherit;
}

.static-button-link:hover {
  text-decoration: underline;
}

.sanpio-legal-footer {
  background: var(--color-surface-container-lowest);
  border-top: 1px solid var(--color-outline-variant);
  padding: 1.25rem 1rem 5rem;
}

.sanpio-legal-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  justify-content: center;
  margin: 0;
  max-width: none;
  text-align: center;
  padding: 0;
  width: 100%;
}

.sanpio-legal-footer__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.25rem;
  justify-content: center;
}

.sanpio-legal-footer__links .link-text {
  align-items: center;
  display: inline-flex;
  font-size: 0.95rem;
  line-height: 1.4;
}

.sanpio-legal-footer__text {
  color: var(--color-on-surface-variant);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1024px) {
  .layoutScheda--topgallery .layoutScheda__header,
  .layoutScheda--topgallery .top-gallery {
    aspect-ratio: 70 / 45;
    height: auto !important;
  }

  .layoutScheda--topgallery .layoutScheda__content {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0 !important;
  }

}

@media (max-width: 767px) and (orientation: portrait) {
  .layoutScheda--topgallery .layoutScheda__header,
  .layoutScheda--topgallery .top-gallery {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape), (min-width: 1025px) {
  .layoutScheda--topgallery .top-gallery {
    align-items: center;
  }

  .layoutScheda--topgallery .top-gallery__thumbnail {
    background-position: center center;
  }
}

@media (min-width: 1025px) {
  .layoutScheda--topgallery .layoutScheda__header,
  .layoutScheda--topgallery .top-gallery {
    height: 270px !important;
  }

  .layoutScheda--topgallery .layoutScheda__content {
    margin: -40px auto auto !important;
  }
}

@media (max-width: 767px), (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  body.has-sticky-contact-bar {
    padding-bottom: 64px;
  }

  .sanpio-legal-footer {
    padding-bottom: 5.5rem;
  }

  .sanpio-legal-footer__inner {
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .sanpio-legal-footer__links {
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
  }

  .contact-bar {
    height: 64px;
  }

  .contact-bar #ctasScheda {
    overflow-x: auto;
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
  }

  .contact-bar .contact-bar--rgs {
    display: none !important;
  }

  .contact-bar .scheda-azienda__ctas {
    gap: 0.375rem;
  }

  .contact-bar .bttn {
    min-width: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .contact-bar #ctasScheda .dialogTel-dskt {
    bottom: calc(64px + 0.5rem);
    left: 0.5rem;
    position: fixed;
    z-index: 450;
  }

  .scheda-azienda__contact-quick-actions {
    flex-direction: column;
  }

  .static-modal__dialog {
    border-radius: 0.75rem 0.75rem 0 0;
    left: 0;
    max-height: calc(100dvh - 1rem);
    max-width: 100vw;
    top: auto;
    transform: none;
    width: 100%;
  }

  .static-modal {
    align-items: flex-end;
    display: flex;
  }

  .static-modal__gallery {
    gap: 0.25rem;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding: 0.75rem;
  }

  .static-modal__nav {
    height: 2.5rem;
    width: 2.5rem;
  }
}
