/*
Theme Name: Astra Pescara Pattini
Theme URI: https://www.pescarapattini.it
Description: Child theme di Astra per prestazioni, responsive e hardening. I contenuti restano Gutenberg.
Author: Pescara Pattini
Template: astra
Version: 1.4.8
Text Domain: astra-pepa
*/

html,
body.pepa-site {
  overflow-x: clip;
}

.site-header .custom-logo-link img,
header .custom-logo-link img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
}

/* Header solido sopra lo slider, non sopra le slide. */
#masthead,
.ast-theme-transparent-header #masthead,
.ast-theme-transparent-header .main-header-bar-wrap {
  position: relative !important;
  z-index: 30;
  background-color: #fff;
}

.main-header-bar,
.ast-primary-header-bar {
  background-color: #fff;
}

.home .site-content,
.home #content,
.page-id-27200 #content,
.page-id-19379 #content,
.page-id-18443 #content,
.page-id-18820 #content,
.postid-18492 #content,
.page-id-19379.ast-separate-container,
.page-id-18443.ast-separate-container,
.page-id-18820.ast-separate-container,
.postid-18492.ast-separate-container {
  background: #e8eef5 !important;
}

.home .entry-content {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.pepa-home-section {
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 0.4rem;
}

.pepa-home-cards.wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem !important;
  align-items: stretch;
}

.pepa-home-cards > .wp-block-column {
  width: 100% !important;
  max-width: none !important;
  flex-basis: auto !important;
  margin: 0 !important;
}

.wp-block-column.pepa-home-card {
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
  padding: 0 0 1.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pepa-home-card figure {
  margin: 0 !important;
  overflow: hidden;
  border-radius: 16.5px 16.5px 0 0;
}

.pepa-home-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.pepa-home-card h3 {
  margin: 0.95rem 1.1rem 0.4rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.pepa-home-card p {
  margin: 0 1.1rem 0.55rem;
  color: #4a4a4a;
  font-size: 0.98rem;
}

.pepa-home-card a {
  font-weight: 600;
}

.pepa-home-intro {
  max-width: 42rem;
  margin: 1.5rem auto 2.5rem;
  padding: 2rem 1.5rem 2.4rem;
  text-align: center;
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
}

.pepa-home-intro .pepa-kicker {
  margin: 0 0 0.55rem;
  color: #0274be;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pepa-home-intro h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0a2540;
}

.pepa-home-intro p {
  margin: 0 auto 0.9rem;
  max-width: 36rem;
  color: #4b5563;
}

.pepa-home-intro a {
  color: #0a2540;
  font-weight: 600;
}

.pepa-home-intro .wp-block-buttons {
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.55rem;
}

.pepa-home-intro .wp-block-button__link {
  border-radius: 999px !important;
  padding: 0.78rem 1.35rem !important;
  font-weight: 700;
  text-decoration: none;
}

.pepa-home-intro .pepa-btn-primary .wp-block-button__link {
  background: #0a2540 !important;
  color: #fff !important;
  border: 2px solid #0a2540 !important;
}

.pepa-home-intro .pepa-btn-secondary .wp-block-button__link {
  background: #fff !important;
  color: #0a2540 !important;
  border: 2px solid #0a2540 !important;
}

.pepa-telegram {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.1rem, 4vw, 2.5rem);
  background: linear-gradient(160deg, #0ea5e9 0%, #0369a1 100%);
  color: #fff;
}

.pepa-telegram .wp-block-columns {
  margin: 0;
  align-items: center;
}

.pepa-telegram h2,
.pepa-telegram p {
  color: #fff;
}

.pepa-telegram h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.pepa-telegram p {
  margin: 0 0 0.85rem;
  max-width: 36rem;
}

.pepa-telegram a:not(.wp-block-button__link) {
  color: #fff;
}

.pepa-telegram .wp-block-button__link {
  border-radius: 999px;
}

.pepa-telegram .pepa-telegram-art,
.pepa-telegram .pepa-telegram-art img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  margin: 0;
  border-radius: 12px;
}


.pepa-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0.35rem 0 0;
}

.pepa-footer-social a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pepa-articoli {
  max-width: 70rem;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem 2rem;
}

.page-id-19379 .entry-content > .wp-block-heading,
.page-id-18443 .entry-content > .wp-block-heading {
  margin: 1.4rem auto 0.4rem;
  max-width: 70rem;
  padding: 0 1.25rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  color: #0a2540;
}

.pepa-articoli-toolbar {
  margin: 0 0 1.5rem;
  padding: 1.2rem 1.25rem 1.1rem;
  background: #eaf3fb;
  border: 1.5px solid #6f8eaa;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(10, 37, 64, 0.12);
}

.pepa-articoli .pepa-kicker {
  margin: 0 0 0.7rem;
  color: #0274be;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pepa-articoli .pepa-kicker + .pepa-kicker,
.pepa-articoli .pepa-cat-filters + .pepa-kicker {
  margin-top: 1.15rem;
}

.pepa-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pepa-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #c5d7ea;
  border-radius: 999px;
  background: #fff;
  color: #0a2540;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.pepa-chip span {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.8rem;
}

.pepa-site .pepa-chip.is-active,
.pepa-site .pepa-chip.is-active:visited,
.pepa-site .pepa-chip.is-active:hover,
.pepa-site .pepa-chip.is-active:focus {
  background: #0a2540 !important;
  border-color: #0a2540 !important;
  color: #fff !important;
}

.pepa-chip.is-active span {
  color: #dbeafe !important;
}

.pepa-wordcloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  line-height: 1.35;
}

.pepa-wordcloud a {
  color: var(--pepa-tag, #334155);
  text-decoration: none;
  font-weight: 700;
}

.pepa-wordcloud a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pepa-wordcloud a.is-active {
  background: color-mix(in srgb, var(--pepa-tag, #0274be) 14%, #fff);
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  box-shadow: inset 0 0 0 1.5px var(--pepa-tag, #0274be);
}

.pepa-articoli-reset {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
}

.pepa-articoli-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.pepa-article-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pepa-article-media {
  display: block;
  overflow: hidden;
  border-radius: 16.5px 16.5px 0 0;
  background: #dbe4f0;
}

.pepa-article-media img,
.pepa-article-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.pepa-article-fallback {
  background: linear-gradient(160deg, #93c5fd, #1d4ed8);
}

.pepa-article-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 1.15rem 1.25rem;
}

.pepa-article-meta {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.pepa-article-meta span::before {
  content: " · ";
}

.pepa-article-body h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.32rem);
  line-height: 1.32;
}

.pepa-article-body h3 a {
  color: #0a2540;
  text-decoration: none;
}

.pepa-article-body p {
  margin: 0;
  color: #4b5563;
  font-size: clamp(1.02rem, 1.5vw, 1.1rem);
  line-height: 1.5;
}

.pepa-articoli-pager {
  margin: 1.6rem 0 0;
}

.pepa-articoli-pager .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pepa-articoli-pager a,
.pepa-articoli-pager span {
  display: inline-flex;
  min-width: 2.2rem;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d7dee8;
  background: #fff;
  color: #0a2540;
  text-decoration: none;
}

.pepa-articoli-pager .current {
  background: #0a2540;
  border-color: #0a2540;
  color: #fff;
}

.pepa-articoli-empty {
  padding: 1.2rem;
  background: #fff;
  border-radius: 16px;
}

.pepa-media-intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding: 1.6rem 1.35rem 1.75rem;
  text-align: center;
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
}

.pepa-media-intro .pepa-kicker {
  margin: 0 0 0.55rem;
  color: #0274be;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pepa-media-intro p {
  margin: 0 auto;
  max-width: 38rem;
  color: #4b5563;
  font-size: clamp(1.05rem, 1.7vw, 1.12rem);
  line-height: 1.55;
}

.page-id-18820 .entry-content > .wp-block-heading,
.postid-18492 .entry-content > .wp-block-heading {
  max-width: 70rem;
  margin: 2rem auto 1rem;
  color: #0a2540;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.pepa-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 70rem;
  margin: 0 auto 2rem;
}

.pepa-video-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pepa-video-media {
  overflow: hidden;
  border-radius: 16.5px 16.5px 0 0;
  background: #0a2540;
}

.pepa-video-media video,
.pepa-video-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  background: #0a2540;
}

.pepa-site .sgb-album .sgb-gallery,
.pepa-site .wp-block-pgcsimplygalleryblock-albumnavigator .sgb-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem !important;
  max-width: 70rem;
  margin: 0 auto 2rem;
}

.pepa-site .sgb-album .sgb-item,
.pepa-site .wp-block-pgcsimplygalleryblock-albumnavigator .sgb-item {
  margin: 0 !important;
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
}

.pepa-site .sgb-album .sgb-item figure,
.pepa-site .wp-block-pgcsimplygalleryblock-albumnavigator .sgb-item figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16.5px;
}

.pepa-site .sgb-album .sgb-item img,
.pepa-site .wp-block-pgcsimplygalleryblock-albumnavigator .sgb-item img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.pepa-site .sgb-album .sgb-item-caption,
.pepa-site .wp-block-pgcsimplygalleryblock-albumnavigator .sgb-item-caption {
  display: block !important;
  padding: 1.05rem 1.15rem 1.2rem !important;
  margin: 0 !important;
  color: #0a2540 !important;
  font-size: clamp(1.18rem, 2vw, 1.32rem) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.32 !important;
  text-align: left !important;
}

.pepa-site .sgb-album .sgb-item-caption em,
.pepa-site .wp-block-pgcsimplygalleryblock-albumnavigator .sgb-item-caption em {
  font-style: normal !important;
  font-weight: 700 !important;
  color: inherit !important;
}

.pepa-site .wp-block-details {
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  padding: 0.9rem 1.05rem 1.05rem;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
  margin: 0 0 1.2rem;
}

.pepa-site .wp-block-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #0a2540;
}

.pepa-site .wp-block-gallery,
.pepa-site .spectra-image-gallery {
  gap: 0.55rem;
}

.pepa-site .wp-block-gallery .wp-block-image img,
.pepa-site .spectra-image-gallery img,
.pepa-site .pgc-sgb-cb img {
  border-radius: 12px;
}

.pepa-site .wp-block-video video,
.pepa-site .wp-block-embed__wrapper iframe {
  width: 100%;
  border-radius: 16px;
  background: #0a2540;
}

.pepa-site .wp-block-query .wp-block-post-title {
  font-size: 1.2rem;
}

.pepa-site .wp-block-query .wp-block-post-excerpt {
  font-size: 0.95rem;
}

@media (max-width: 1099.98px) {
  #ast-desktop-header {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  #ast-mobile-header {
    display: block !important;
  }

  .site-header .custom-logo-link img,
  header .custom-logo-link img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
  }

  .ast-mobile-header-wrap .ast-primary-header-bar {
    min-height: 56px;
    padding-left: max(1.15rem, env(safe-area-inset-left)) !important;
    padding-right: max(1.4rem, env(safe-area-inset-right)) !important;
  }

  #ast-mobile-header .site-header-primary-section-left {
    padding-right: 0.75rem;
  }

  #ast-mobile-header .site-header-primary-section-right {
    margin-right: 0.15rem;
    padding-left: 0.5rem;
  }

  #ast-mobile-header .site-branding {
    gap: 0.45rem;
  }

  #ast-mobile-header .custom-logo-link {
    display: inline-flex;
    padding: 0.2rem 0.35rem 0.2rem 0.15rem;
  }
}

@media (min-width: 1100px) {
  #ast-desktop-header {
    display: block !important;
  }

  #ast-mobile-header {
    display: none !important;
  }

  .ast-builder-menu-1 .main-header-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
  }

  .ast-builder-menu-1 .menu-item > .menu-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

.pepa-form {
  max-width: 36rem;
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 2rem;
}

.pepa-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.pepa-form input,
.pepa-form textarea {
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.pepa-form button {
  justify-self: start;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ast-global-color-0, #0274be);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.pepa-form-note {
  margin: 0;
  font-weight: 400;
  font-size: 0.95rem;
}

.pepa-form-ok,
.pepa-form-err {
  max-width: 36rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.pepa-form-ok {
  background: #e8f6ee;
}

.pepa-form-err {
  background: #fdecea;
}

.pepa-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-id-29644 .wp-block-post-featured-image {
  display: none;
}

.pepa-site .iron-audioplayer,
.pepa-site .sonaar-sticky-player,
.pepa-site .srp_player_boxed,
.pepa-site #sonaar-player {
  display: none !important;
}

.pepa-sound {
  max-width: 70rem;
  margin: 0 auto 2.4rem;
}

.pepa-sound-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.95fr);
  overflow: visible;
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
}

.pepa-sound-cover {
  overflow: hidden;
  border-radius: 16.5px 0 0 16.5px;
  background: #0a2540;
}

.pepa-sound-cover-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 7;
}

.pepa-sound-now {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem 1.4rem;
}

.pepa-sound-now .pepa-kicker {
  margin: 0;
}

.pepa-sound-title {
  margin: 0;
  color: #0a2540;
  font-size: clamp(1.28rem, 2.4vw, 1.55rem);
  line-height: 1.3;
}

.pepa-sound-meta {
  margin: 0 0 0.4rem;
  color: #4b5563;
  font-size: clamp(1.02rem, 1.6vw, 1.1rem);
  line-height: 1.45;
}

.pepa-sound-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.35rem 0 0.55rem;
}

.pepa-site .pepa-sound-play,
.pepa-site .pepa-sound-skip,
.pepa-site .entry-content .pepa-sound-play,
.pepa-site .entry-content .pepa-sound-skip {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0 !important;
  border-radius: 999px !important;
  cursor: pointer;
  box-shadow: none !important;
}

.pepa-site .pepa-sound-play,
.pepa-site .entry-content .pepa-sound-play {
  border: 0 !important;
  background: #0a2540 !important;
  color: #fff !important;
}

.pepa-site .pepa-sound-skip,
.pepa-site .entry-content .pepa-sound-skip {
  width: 52px;
  height: 52px;
  border: 2.5px solid #0a2540 !important;
  background: #0a2540 !important;
  color: #fff !important;
}

.pepa-site .pepa-sound-skip:disabled,
.pepa-site .entry-content .pepa-sound-skip:disabled {
  background: #d7e3ef !important;
  border-color: #5b7a98 !important;
  color: #5b7a98 !important;
  opacity: 1;
  cursor: default;
}

.pepa-site .pepa-sound-play svg,
.pepa-site .pepa-sound-skip svg {
  width: 30px;
  height: 30px;
  fill: currentColor !important;
  stroke: none;
}

.pepa-site .pepa-sound-play svg {
  width: 34px;
  height: 34px;
}

.pepa-sound-play .pepa-sound-icon-pause,
.pepa-sound-play.is-playing .pepa-sound-icon-play {
  display: none;
}

.pepa-sound-play.is-playing .pepa-sound-icon-pause {
  display: block;
}

.pepa-sound-progress {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  gap: 0.45rem;
  align-items: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: #4b5563;
}

.pepa-sound-progress input[type="range"] {
  width: 100%;
  accent-color: #0a2540;
}

.pepa-sound-filters {
  margin: 1.35rem 0 0;
  padding: 1.15rem 1.2rem 1.25rem;
  background: #eaf3fb;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
}

.pepa-sound-filters .pepa-kicker {
  margin: 0.95rem 0 0.45rem;
}

.pepa-sound-filters .pepa-kicker:first-child {
  margin-top: 0;
}

.pepa-sound-filters .pepa-cat-filters[hidden],
.pepa-sound-filters .pepa-kicker[hidden] {
  display: none !important;
}

.pepa-site .pepa-sound-filters .pepa-chip,
.pepa-site .entry-content .pepa-sound-filters button.pepa-chip {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto !important;
  min-height: 44px;
  margin: 0;
  padding: 0.55rem 1.05rem !important;
  border: 2px solid #0a2540 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0a2540 !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.pepa-site .pepa-sound-filters .pepa-chip.is-active,
.pepa-site .entry-content .pepa-sound-filters button.pepa-chip.is-active {
  background: #0a2540 !important;
  border-color: #0a2540 !important;
  color: #fff !important;
}

.pepa-sound-note {
  margin: 0.9rem 0 0;
  color: #4b5563;
  font-size: clamp(1.02rem, 1.5vw, 1.08rem);
  line-height: 1.5;
}

.pepa-sound-filters .pepa-chip {
  cursor: pointer;
}

.pepa-sound-dock {
  position: fixed;
  left: 0.85rem;
  right: 0.85rem;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 48px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 2px solid #5b7a98;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.22);
}

.pepa-sound-dock[hidden] {
  display: none !important;
}

.pepa-sound-dock-cover {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.pepa-sound-dock-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pepa-sound-dock-text strong,
.pepa-sound-dock-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pepa-sound-dock-text span {
  color: #4b5563;
  font-size: 0.88rem;
}

.pepa-site .pepa-sound-play-mini,
.pepa-site .entry-content .pepa-sound-play-mini {
  width: 52px !important;
  height: 52px !important;
}

.pepa-site .pepa-sound-play-mini svg {
  width: 28px !important;
  height: 28px !important;
}

body.pepa-sound-on {
  padding-bottom: 5.5rem;
}

@media (max-width: 781.98px) {
  .pepa-sound-card {
    grid-template-columns: 1fr;
  }

  .pepa-sound-cover {
    border-radius: 16.5px 16.5px 0 0;
  }

  .pepa-sound-cover-img {
    min-height: 0;
    aspect-ratio: 16 / 7;
  }
}

@media (hover: hover) {
  .wp-block-column.pepa-home-card:hover,
  .pepa-article-card:hover,
  .pepa-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(10, 37, 64, 0.18);
  }
}

@media (max-width: 1099.98px) {
  .pepa-home-cards.wp-block-columns,
  .pepa-articoli-grid,
  .pepa-video-grid,
  .pepa-site .sgb-album .sgb-gallery,
  .pepa-site .wp-block-pgcsimplygalleryblock-albumnavigator .sgb-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-id-19379.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-18443.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-18820.ast-separate-container .ast-article-single:not(.ast-related-post),
  .postid-18492.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-29644.ast-separate-container .ast-article-single:not(.ast-related-post),
  .postid-28108.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-19379 .site-main,
  .page-id-18443 .site-main,
  .page-id-18820 .site-main,
  .postid-18492 .site-main,
  .page-id-29644 .site-main,
  .postid-28108 .site-main,
  .page-id-19379 #primary,
  .page-id-18443 #primary,
  .page-id-18820 #primary,
  .postid-18492 #primary,
  .page-id-29644 #primary,
  .postid-28108 #primary,
  .page-id-19379 .entry-content,
  .page-id-18443 .entry-content,
  .page-id-18820 .entry-content,
  .postid-18492 .entry-content,
  .page-id-29644 .entry-content,
  .postid-28108 .entry-content {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    overflow: visible !important;
  }
}

@media (max-width: 781.98px) {
  html,
  body.pepa-site {
    overflow-x: hidden;
  }

  .home .ast-container,
  .page-id-19379 .ast-container,
  .page-id-18443 .ast-container,
  .page-id-18820 .ast-container,
  .postid-18492 .ast-container,
  .page-id-29644 .ast-container,
  .postid-28108 .ast-container {
    padding-left: max(0.95rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.95rem, env(safe-area-inset-right)) !important;
  }

  .page-id-19379.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-18443.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-18820.ast-separate-container .ast-article-single:not(.ast-related-post),
  .postid-18492.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-29644.ast-separate-container .ast-article-single:not(.ast-related-post),
  .postid-28108.ast-separate-container .ast-article-single:not(.ast-related-post) {
    padding: 0.35rem 0 1.8rem !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .pepa-home-section {
    padding: 0.85rem 0 0.2rem;
  }

  .pepa-articoli {
    padding: 0.45rem 0.35rem 2rem;
  }

  .pepa-articoli-grid,
  .pepa-video-grid {
    padding: 0.15rem;
  }

  .pepa-home-cards.wp-block-columns,
  .pepa-articoli-grid,
  .pepa-video-grid,
  .pepa-site .sgb-album .sgb-gallery,
  .pepa-site .wp-block-pgcsimplygalleryblock-albumnavigator .sgb-gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem !important;
  }

  .wp-block-column.pepa-home-card,
  .pepa-article-card,
  .pepa-video-card,
  .pepa-sound-card,
  .pepa-sound-filters,
  .pepa-home-intro,
  .pepa-media-intro,
  .pepa-site .sgb-album .sgb-item {
    position: relative;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    -webkit-transform: none !important;
    transform: none !important;
    box-shadow: 0 10px 26px rgba(10, 37, 64, 0.22) !important;
  }

  .wp-block-column.pepa-home-card::after,
  .pepa-article-card::after,
  .pepa-video-card::after,
  .pepa-sound-card::after,
  .pepa-sound-filters::after,
  .pepa-home-intro::after,
  .pepa-media-intro::after,
  .pepa-site .sgb-album .sgb-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border: 2px solid #5b7a98;
    border-radius: 18px;
  }

  .pepa-sound-filters {
    overflow: visible !important;
    background: #eaf3fb !important;
    padding: 1.1rem 1rem 1.2rem !important;
  }

  .pepa-articoli-toolbar {
    position: relative;
    padding: 1.05rem 1rem 1.1rem;
    border-radius: 18px;
    background: #eaf3fb !important;
    border: 0 !important;
    box-shadow: 0 8px 22px rgba(10, 37, 64, 0.18) !important;
  }

  .pepa-articoli-toolbar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border: 2px solid #5b7a98;
    border-radius: 18px;
  }

  .pepa-home-card img,
  .pepa-article-media img,
  .pepa-article-fallback {
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }

  .pepa-home-intro {
    margin: 1rem 0 1.6rem;
    padding: 1.35rem 1.1rem 1.45rem;
  }

  .pepa-home-intro .pepa-kicker {
    letter-spacing: 0.1em;
    font-size: 0.7rem;
  }

  .pepa-home-intro h1 {
    font-size: 1.7rem;
  }

  .pepa-home-intro p {
    font-size: 1rem;
  }

  .pepa-home-intro .wp-block-buttons {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.65rem;
  }

  .pepa-home-intro .wp-block-button,
  .pepa-home-intro .wp-block-button__link {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .page-id-19379 .entry-content > .wp-block-heading,
  .page-id-18443 .entry-content > .wp-block-heading,
  .page-id-18820 .entry-content > .wp-block-heading,
  .postid-18492 .entry-content > .wp-block-heading,
  .page-id-29644 .entry-content > .wp-block-heading,
  .postid-28108 .entry-content > .wp-block-heading {
    margin: 0.55rem 0.15rem 0.85rem;
    padding: 0;
    font-size: 1.65rem;
  }

  .pepa-cat-filters {
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 0.45rem;
  }

  .pepa-chip {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.4rem 0.85rem;
  }

  .pepa-chip:not(.is-active) {
    background: #fff;
    color: #0a2540;
  }

  .pepa-wordcloud {
    gap: 0.45rem 0.75rem;
  }

  .pepa-wordcloud a {
    display: inline-block;
    padding: 0.2rem 0;
    line-height: 1.45;
  }

  .pepa-article-body {
    padding: 1.1rem 1.15rem 1.3rem;
  }

  .pepa-article-body h3 {
    font-size: 1.22rem;
  }

  .pepa-article-body p {
    font-size: 1.05rem;
  }
}

@media (max-width: 544px) {
  .page-id-19379.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-18443.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-18820.ast-separate-container .ast-article-single:not(.ast-related-post),
  .postid-18492.ast-separate-container .ast-article-single:not(.ast-related-post),
  .page-id-29644.ast-separate-container .ast-article-single:not(.ast-related-post),
  .postid-28108.ast-separate-container .ast-article-single:not(.ast-related-post) {
    background-color: transparent !important;
    padding: 0.25rem 0 1.6rem !important;
  }
}

.pepa-calendar iframe {
  width: 100%;
  max-width: 100%;
  height: 700px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.pepa-calendar-mobile {
  display: none;
}

.pepa-pdf-grid.wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem !important;
  align-items: stretch;
}

.pepa-pdf-grid > .wp-block-column {
  width: 100% !important;
  margin: 0 !important;
}

.pepa-pdf-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
  text-decoration: none !important;
  color: #0a2540 !important;
  height: 100%;
}

.pepa-pdf-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.pepa-pdf-card p {
  margin: 0;
  padding: 0.95rem 1.05rem 1.1rem;
  font-weight: 700;
  font-size: clamp(1.12rem, 2vw, 1.25rem);
  line-height: 1.35;
  text-align: center;
}

.pepa-pdf-card-doc {
  min-height: 180px;
  justify-content: center;
  padding: 1.4rem 1.2rem;
  text-align: center;
}

.pepa-pdf-card-doc p {
  padding: 0 0 0.35rem;
}

.pepa-pdf-card-doc span {
  color: #4b5563;
  font-size: 1.02rem;
  font-weight: 500;
}

.postid-28108 .entry-content > .wp-block-heading,
.postid-28108 .entry-content > .wp-block-group,
.postid-28108 .entry-content > .wp-block-columns,
.postid-28108 .entry-content > .wp-block-details {
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

.postid-28108 .wp-block-file__embed,
.postid-28108 object.wp-block-file__embed {
  display: none !important;
}

.pepa-fisr-assicurazione.wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: 1.2rem !important;
  align-items: stretch;
  margin: 0 auto 1.6rem;
}

.pepa-fisr-assicurazione > .wp-block-column {
  width: 100% !important;
  margin: 0 !important;
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
  padding: 1.15rem 1.2rem 1.3rem;
}

.pepa-fisr-assicurazione img {
  max-width: 220px;
  height: auto;
  margin: 0 0 0.85rem;
}

.pepa-fisr-quote,
.postid-28108 .wp-block-quote {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-size: clamp(1.02rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  color: #374151;
}

.postid-28108 .wp-block-details {
  font-size: clamp(1.02rem, 1.5vw, 1.08rem);
  line-height: 1.5;
}

.postid-28108 .wp-block-details summary {
  font-size: clamp(1.08rem, 1.8vw, 1.18rem);
  line-height: 1.35;
}

.postid-28108 .pepa-info-box h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.18rem, 2vw, 1.32rem);
}

.postid-28108 .pepa-info-box,
.postid-28108 .pepa-media-intro {
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 781.98px) {
  .pepa-fisr-assicurazione.wp-block-columns {
    grid-template-columns: 1fr;
  }
}

.pepa-founder.wp-block-media-text {
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.14);
  padding: 0.75rem;
}

.pepa-founder img {
  border-radius: 999px;
}

.pepa-notice {
  background: #fff4f4;
  border: 1.5px solid #c45c5c;
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
}

.pepa-info-box {
  background: #fff;
  border: 1.5px solid #6f8eaa;
  border-radius: 16px;
  padding: 0.85rem 1.1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
}

.pepa-gallery.wp-block-gallery {
  gap: 8px;
}

@media (max-width: 781.98px) {
  .pepa-calendar-desktop {
    display: none;
  }

  .pepa-calendar-mobile {
    display: block;
  }

  .pepa-calendar iframe {
    height: 560px;
  }

  .pepa-pdf-grid.wp-block-columns {
    grid-template-columns: 1fr;
  }
}

