.footer-contact a {
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 780px) {
  .footer-contact a {
    overflow-wrap: anywhere;
  }
}

/*
Theme Name: Associazione 897 APS
Theme URI: https://www.associazione897aps.it/
Author: Associazione 897 APS
Description: Conversione del sito Associazione 897 APS da Sites a WordPress.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: associazione-897-aps
*/

/* Gli stili originali di Sites sono conservati in assets/site.css. */

.wp-content {
  width: min(68%, 1200px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(22px, 4vw, 56px);
  background: #fff;
  min-height: 45vh;
}

.wp-content h1 {
  max-width: none;
  margin: 0 0 24px;
  color: #8b1538;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: normal;
  text-shadow: none;
}

.wp-content p,
.wp-content li {
  line-height: 1.7;
}

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

.wp-post-list article {
  margin-bottom: 32px;
  border-bottom: 1px solid #c79a49;
  padding-bottom: 24px;
}

.wp-post-list h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.wp-post-list a {
  color: #8b1538;
}

@media (max-width: 1100px) {
  .wp-content {
    width: 84%;
  }
}

@media (max-width: 780px) {
  .wp-content {
    width: 100%;
    padding: 28px 18px;
  }
}

@media (min-width: 781px) {
  .site-header .banner-frame,
  .site-header .banner-link {
    height: 100%;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    column-gap: 40px;
    row-gap: 8px;
  }

  .footer-name {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .site-header .association-banner {
    display: none;
  }

  .site-header .mobile-brand {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 7.7%;
    background: linear-gradient(90deg, #70c5c0 0%, #d9f1ef 43%, #fff 80%);
  }

  .site-header .mobile-brand-copy {
    min-width: 0;
    color: #850c27;
  }

  .site-header .mobile-brand-name {
    font: 400 clamp(1.55rem, 2.4vw, 3.2rem)/1.1 "Lora", Georgia, serif;
    white-space: nowrap;
  }

  .site-header .mobile-brand-name span {
    font-size: .43em;
    vertical-align: baseline;
  }

  .site-header .mobile-brand-tagline {
    max-width: none;
    margin-top: 12px;
    font: 400 clamp(1rem, 1.2vw, 1.35rem)/1.3 Verdana, Geneva, sans-serif;
  }

  .site-header .mobile-brand-logo {
    display: block;
    flex: none;
    width: 8%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 780px) {
  .footer-main {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .footer-name,
  .footer-contact,
  .footer-links {
    grid-column: 1;
    grid-row: auto;
  }
}

/*
 * ASSOCIAZIONE 897 APS
 * MODELLO COMUNE PER I NUOVI ARTICOLI
 *
 * Gli articoli importati utilizzano un ramo
 * differente del file single.php.
 */

body.single-post .wp-content > article {
  display: block;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

body.single-post .wp-content > article > h1 {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: #8b1538;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  text-shadow: none;
}

body.single-post .wp-content > article > .entry-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #30272a;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

body.single-post .wp-content > article > .entry-content p,
body.single-post .wp-content > article > .entry-content li {
  line-height: 1.8;
}

body.single-post .wp-content > article > .entry-content h2 {
  margin: 34px 0 14px;
  color: #8b1538;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.3;
  font-weight: 600;
  white-space: normal;
}

body.single-post .wp-content > article > .entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 780px) {
  body.single-post .wp-content > article {
    max-width: 100%;
  }

  body.single-post .wp-content > article > h1 {
    font-size: clamp(25px, 6vw, 34px);
  }

  body.single-post .wp-content > article > .entry-content {
    font-size: 16px;
  }
}

/* Dimensioni definitive dei titoli per i nuovi articoli dei soci */
body.single-post .wp-content > article > h1 {
  font-size: 34px;
  line-height: 1.25;
}

@media (max-width: 780px) {
  body.single-post .wp-content > article > h1 {
    font-size: 27px;
    line-height: 1.3;
  }
}

/* Titoli dei nuovi articoli dei soci */
body.single-post .wp-content article.a897-new-article > header.a897-new-article-header > h1 {
  font-size: 34px !important;
  line-height: 1.25 !important;
}

@media (max-width: 780px) {
  body.single-post .wp-content article.a897-new-article > header.a897-new-article-header > h1 {
    font-size: 27px !important;
    line-height: 1.3 !important;
  }
}

/* Dimensione titoli articoli nuovi */
body.single-post .wp-content article.a897-new-article
.a897-new-article-header h1 {
  font-size: 34px !important;
  line-height: 1.25 !important;
}

@media (max-width: 780px) {
  body.single-post .wp-content article.a897-new-article
  .a897-new-article-header h1 {
    font-size: 27px !important;
    line-height: 1.3 !important;
  }
}

/* Titolo principale dei nuovi articoli dei soci */
body.single-post .wp-content article.a897-new-article
.a897-new-article-header h1 {
  text-transform: uppercase;
}

/* Titolo articoli soci: correzione per smartphone */
@media screen and (max-width: 780px) {

  body.single-post .wp-content article.a897-new-article
  .a897-new-article-header h1 {
    font-size: 27px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    max-width: 100% !important;
    overflow-wrap: break-word;
    white-space: normal !important;
  }

}

/* Titoli dei nuovi articoli: ritorno a capo su mobile */
@media screen and (max-width: 780px) {
  body.single-post .wp-content article.a897-new-article
  .a897-new-article-header h1 {
    white-space: normal !important;
  }
}

/* Firma e data dei nuovi articoli dei soci */
body.single-post .wp-content article.a897-new-article
.a897-new-article-header .a897-post-date {
  font-size: 14px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #666666 !important;
}

/* Firma e data su smartphone */
@media screen and (max-width: 780px) {
  body.single-post .wp-content article.a897-new-article
  .a897-new-article-header .a897-post-date {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

/* Progetti consigliati — Nutrire è più che Sfamare */
.project-story #possibilita ul {
  margin-top: 24px;
  padding-left: 28px;
}

.project-story #possibilita li {
  margin-bottom: 18px;
  line-height: 1.7;
}

.project-story #possibilita li a,
.project-story #possibilita li a:visited {
  color: #8b1538 !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c49a45;
  text-underline-offset: 4px;
}

.project-story #possibilita li a:hover,
.project-story #possibilita li a:focus {
  color: #6b102c !important;
}
