/* PHOTOEMOTO - STILE CENTRALIZZATO */
:root {
  --pem-text-width: 760px;
  --pem-text-size: 18px;
  --pem-line-height: 1.65;
  --pem-paragraph-space: 24px;
  --pem-section-space: 44px;
  --pem-media-width: 1100px;
}

/* Testo narrativo */
.single-post .wp-block-post-content p {
  font-size: var(--pem-text-size);
  line-height: var(--pem-line-height);
}

.single-post .wp-block-post-content > p {
  max-width: var(--pem-text-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--pem-paragraph-space);
}

/* Fotografie */
.single-post .wp-block-post-content img {
  max-width: 100%;
  height: auto;
}

/* Mappe e video responsive */
.single-post .wp-block-post-content iframe {
  display: block;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

.single-post .wp-block-post-content .wp-block-embed,
.single-post .wp-block-post-content .wp-block-embed__wrapper,
.single-post .wp-block-post-content .wp-block-html {
  max-width: 100%;
  min-width: 0;
}

.single-post .wp-block-post-content figure {
  max-width: 100%;
}

/* Smartphone */
@media (max-width: 600px) {
  :root {
    --pem-text-size: 17px;
    --pem-paragraph-space: 20px;
    --pem-section-space: 32px;
  }

  .single-post .wp-block-post-content iframe {
    max-width: 100vw !important;
  }
}
/* PHOTOEMOTO - Collegamenti lunghi responsive */
.single-post .wp-block-post-content a {
    overflow-wrap: anywhere;
}


/* PHOTOEMOTO-UNIFORME-INIZIO */

/* Testo e spaziatura */
.single-post .wp-block-post-content {
    --pem-text-width: 760px;
    --pem-text-size: 18px;
    --pem-line-height: 1.65;
    --pem-paragraph-space: 24px;
}

.single-post .wp-block-post-content p {
    font-size: var(--pem-text-size);
    line-height: var(--pem-line-height);
}

.single-post .wp-block-post-content > p {
    max-width: var(--pem-text-width);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--pem-paragraph-space);
}

/* Titoli delle sezioni */
.single-post .wp-block-post-content h2 {
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    line-height: 1.25;
    margin-top: 44px;
    margin-bottom: 20px;
}

.single-post .wp-block-post-content h3 {
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Immagini, gallerie, mappe e video */
.single-post .wp-block-post-content img {
    max-width: 100%;
    height: auto;
}

.single-post .wp-block-post-content iframe {
    display: block;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

.single-post .wp-block-post-content a {
    overflow-wrap: anywhere;
}

/* Smartphone */
@media (max-width: 600px) {
    .single-post .wp-block-post-content {
        --pem-text-size: 17px;
        --pem-paragraph-space: 20px;
    }

    .single-post .wp-block-post-content h2 {
        margin-top: 32px;
    }
}

/* PHOTOEMOTO-UNIFORME-FINE */