/*
Theme Name: Rimedi Naturali TT5 Child
Theme URI: https://rimedinaturali.it/
Description: Child theme di Twenty Twenty-Five che riprende il layout editoriale del tema Ruki usato da Rimedi Naturali.
Author: Rimedi Naturali
Template: twentytwentyfive
Version: 1.10.8
Text Domain: rimedi-naturali-tt5-child
*/

:root {
  --rn-bg: #fff7f3;
  --rn-accent: #c7475c;
  --rn-accent-soft: #f8b195;
  --rn-link: #6c5b7b;
  --rn-link-hover: #f67280;
  --rn-ink: #2e2f33;
  --rn-text: #45464b;
  --rn-muted: #6f7278;
  --rn-line: #f1f1f1;
  --rn-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  --rn-radius: 7px;
  --rn-hero-radius: 10px;
  --rn-wide: 1235px;
  --rn-content-outer: 915px;
  --rn-content: 855px;
  --rn-reading-outer: 795px;
  --rn-reading: 735px;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body,
.wp-site-blocks {
  margin: 0;
  background: var(--rn-bg);
  color: var(--rn-text);
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  line-height: 1.15;
}

.wp-site-blocks { padding: 0; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--rn-link-hover); }

/* Header: stessa intestazione centrale del tema Ruki. */
.rn-site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  margin: 0 0 15px;
  background: transparent;
}

.rn-header-inner {
  position: relative;
  width: min(100% - 30px, var(--rn-wide));
  min-height: 100px;
  margin: 0 auto;
  padding-top: 30px;
  text-align: center;
}

.rn-brand {
  position: relative;
  display: block;
  width: 400px;
  max-width: calc(100% - 90px);
  margin: 0 auto;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.rn-brand img { display: block; width: 100%; height: auto; }

/* Navigazione e ricerca sempre visibili nella testata desktop. */
.rn-desktop-tools { display: none; }

@media (min-width: 681px) {
  .rn-header-inner { padding-bottom: 20px; }

  .rn-desktop-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    margin-top: 28px;
    padding-top: 17px;
    border-top: 1px solid rgba(111, 114, 120, 0.16);
    text-align: left;
  }

  .rn-desktop-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px clamp(16px, 2.2vw, 30px);
    color: var(--rn-ink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .rn-desktop-nav a {
    position: relative;
    padding: 7px 0;
  }

  .rn-desktop-nav a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    left: 50%;
    height: 2px;
    border-radius: 2px;
    background: var(--rn-accent);
    transition: right .18s ease, left .18s ease;
  }

  .rn-desktop-nav a:hover::after,
  .rn-desktop-nav a:focus-visible::after {
    right: 0;
    left: 0;
  }

  .rn-desktop-search {
    position: relative;
    display: flex;
    flex: 0 1 300px;
    min-width: 220px;
    height: 42px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(111, 114, 120, 0.2);
    border-radius: 24px;
    box-shadow: 0 5px 18px rgba(46, 47, 51, 0.06);
  }

  .rn-desktop-search .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .rn-desktop-search:focus-within {
    border-color: var(--rn-link);
    box-shadow: 0 0 0 3px rgba(108, 91, 123, 0.14);
  }

  .rn-desktop-search input {
    min-width: 0;
    flex: 1;
    padding: 0 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--rn-text);
    font: inherit;
  }

  .rn-desktop-search input::placeholder { color: var(--rn-muted); opacity: 1; }

  .rn-desktop-search button {
    flex: 0 0 auto;
    min-width: 78px;
    padding: 0 18px;
    border-radius: 0;
    background: var(--rn-link);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
  }

  .rn-desktop-search button:hover,
  .rn-desktop-search button:focus-visible { background: var(--rn-accent); color: #fff; }
}

/* Avoid the accent-coloured browser rectangle after pointer/touch clicks. */
.rn-brand:focus,
.rn-brand:active {
  outline: 0;
  box-shadow: none;
  color: inherit;
}

/* Keep a clear, non-intrusive keyboard focus indicator. */
.rn-brand:focus-visible::after {
  content: "";
  position: absolute;
  right: 25%;
  bottom: -8px;
  left: 25%;
  height: 3px;
  border-radius: 3px;
  background: var(--rn-link);
}

.rn-menu,
.rn-search {
  position: absolute;
  top: 42px;
  z-index: 10;
}

.rn-menu { left: 0; }
.rn-search { right: 0; }

.rn-menu > summary,
.rn-search > summary {
  display: none;
  width: 38px;
  height: 38px;
  list-style: none;
  place-items: center;
  border-radius: 50%;
  color: var(--rn-link);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.rn-menu > summary::-webkit-details-marker,
.rn-search > summary::-webkit-details-marker { display: none; }

.rn-primary-nav,
.rn-search-form { display: none; }

.rn-menu[open] .rn-primary-nav,
.rn-search[open] .rn-search-form {
  display: flex;
  position: absolute;
  top: 46px;
  min-width: 250px;
  padding: 15px;
  background: #fff;
  border-radius: var(--rn-radius);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

.rn-menu[open] .rn-primary-nav {
  left: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}

.rn-search[open] .rn-search-form { right: 0; }

.rn-search-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 5px 0 0 5px;
  padding: 12px;
}

.rn-search-form button { border-radius: 0 25px 25px 0; padding: 12px 20px; }

/* Contenitori principali. */
.rn-shell {
  display: flow-root;
  width: min(100% - 30px, var(--rn-wide));
  margin: 0 auto 35px;
  padding: 0 !important;
}

.rn-shell > * {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Hero e tre articoli in evidenza della home. */
.rn-home-hero.wp-block-query,
.rn-home-featured.wp-block-query { margin: 0; }

.rn-home-hero .wp-block-post-template,
.rn-home-featured .wp-block-post-template {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rn-home-hero .wp-block-post {
  position: relative;
  height: 525px;
  overflow: hidden;
  margin: 15px 0 30px;
  background: #fff;
  border-radius: var(--rn-hero-radius);
  box-shadow: var(--rn-shadow);
}

.rn-home-hero-image,
.rn-home-hero-image a,
.rn-home-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.rn-home-hero-image img { object-fit: cover; }

.rn-home-hero-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80%;
  height: 233px;
  padding: 20px 30px 30px;
  background: #fff;
  border-radius: 0 var(--rn-hero-radius) 0 var(--rn-hero-radius);
}

.rn-home-hero-category,
.rn-card-category,
.rn-single-category {
  position: relative;
  z-index: 2;
  min-height: 36px;
  margin: -34px -3px 15px !important;
  font-size: 0;
}

.rn-home-hero-category a,
.rn-card-category a,
.rn-single-category a {
  display: inline-block;
  margin: 0 3px 3px;
  padding: 7px 10px;
  background: var(--rn-accent);
  border: 3px solid #fff;
  border-radius: 17px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.rn-home-hero-category .wp-block-post-terms__separator,
.rn-card-category .wp-block-post-terms__separator,
.rn-single-category .wp-block-post-terms__separator { display: none; }

.rn-home-hero-title {
  margin: 0;
  color: var(--rn-ink);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
}

.rn-home-featured { margin: 0 0 20px !important; }

.rn-home-featured .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 15px 0;
}

.rn-home-featured .wp-block-post,
.rn-post-grid .wp-block-post {
  overflow: hidden;
  margin: 0;
  padding: 0 0 30px;
  background: #fff;
  border-radius: var(--rn-radius);
  box-shadow: var(--rn-shadow);
}

.rn-featured-image,
.rn-card-image { margin: 0; }

.rn-featured-image img,
.rn-card-image img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--rn-radius) var(--rn-radius) 0 0;
}

.rn-featured-image img { aspect-ratio: 3 / 2; }
.rn-card-image img { aspect-ratio: 16 / 9; }

.rn-card-body { position: relative; padding: 20px 30px 0; }
.rn-home-featured .rn-card-body { min-height: 215px; }
.rn-card-category { margin: -34px -3px 15px; }

.rn-card-title {
  margin: 0;
  color: var(--rn-ink);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}

.rn-card-title a:hover { color: var(--rn-link-hover); }

.rn-card-meta,
.rn-single-meta {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
  margin: 20px 0 0;
  color: var(--rn-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.rn-card-meta .wp-block-post-author,
.rn-single-meta .wp-block-post-author,
.rn-card-meta .rn-author-link,
.rn-single-meta .rn-author-link { display: inline-flex; margin: 0; }

.rn-card-meta .wp-block-post-author::before,
.rn-single-meta .wp-block-post-author::before,
.rn-card-meta .rn-author-link::before,
.rn-single-meta .rn-author-link::before {
  content: "di";
  margin-right: 4px;
  color: var(--rn-muted);
  font-weight: 500;
}

.rn-card-meta .wp-block-post-author__name,
.rn-single-meta .wp-block-post-author__name,
.rn-card-meta .rn-author-link a,
.rn-single-meta .rn-author-link a { color: var(--rn-link); font-weight: 900; }

.rn-card-meta .wp-block-post-date::before,
.rn-single-meta .wp-block-post-date::before,
.rn-single-meta .rn-article-dates::before { content: "―"; margin: 0 3px; }

.rn-card-excerpt {
  margin: 10px 0 0;
  padding-top: 14px;
  color: var(--rn-muted);
  font-size: 14px;
  line-height: 20px;
}

.rn-card-excerpt .wp-block-post-excerpt__excerpt { margin: 0; }

.rn-card-readmore {
  display: block;
  width: 100%;
  margin: 30px 0 0;
  padding: 23px 0 0;
  border-top: 1px solid var(--rn-line);
  color: var(--rn-link);
  font-size: 14px;
  font-weight: 900;
  line-height: 18.4px;
}

.rn-card-readmore::before { content: "―"; }

.rn-read-time {
  position: absolute;
  top: -31px;
  right: 30px;
  z-index: 3;
  padding: 6px 8px 7px;
  background: #fff;
  border-radius: 14px;
  color: var(--rn-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.rn-read-time::before { content: "◷ "; }

/* Griglia masonry di home, archivi e ricerca. */
.rn-post-grid.wp-block-query { margin: 0; }

.rn-post-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 30px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.rn-post-grid .wp-block-post { position: relative; }

.rn-post-grid .wp-block-post-template.rn-masonry-ready { display: block; position: relative; }

.rn-post-grid .wp-block-post-template.rn-masonry-ready > .wp-block-post {
  position: absolute;
  margin: 0;
  transition: transform .15s ease;
}

@media (min-width: 681px) {
  body.home .rn-header-inner { min-height: 86px; padding-top: 20px; padding-bottom: 14px; }
  body.home .rn-brand { width: 340px; }
  body.home .rn-desktop-tools { margin-top: 18px; padding-top: 12px; }
  body.home .rn-desktop-search { height: 40px; }
}

/* Homepage editoriale: gerarchia chiara, query senza duplicati e griglie stabili. */
.rn-home-editorial {
  padding: 8px 0 25px;
}

.rn-home-intro {
  max-width: 920px;
  margin: 12px auto 34px;
  text-align: center;
}

.rn-home-intro__eyebrow,
.rn-home-lead__eyebrow,
.rn-home-section-heading > div > span {
  display: block;
  margin: 0 0 9px;
  color: var(--rn-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rn-home-intro h1 {
  margin: 0;
  color: var(--rn-ink);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.rn-home-intro p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--rn-muted);
  font-size: 18px;
  line-height: 1.55;
}

.rn-home-intro--paged {
  max-width: 760px;
  margin-bottom: 42px;
}

.rn-home-intro--paged h1 { font-size: clamp(34px, 4vw, 46px); }

.rn-home-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .9fr);
  min-height: 430px;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(199, 71, 92, .1);
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(68, 55, 58, .08);
}

.rn-home-lead__media,
.rn-home-lead__image,
.rn-home-card__media,
.rn-home-card__image,
.rn-home-card__placeholder {
  display: block;
  width: 100%;
}

.rn-home-lead__media { min-height: 430px; overflow: hidden; background: #f5ece7; }

.rn-home-lead__image {
  height: 100%;
  object-fit: cover;
}

.rn-home-lead__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 42px;
}

.rn-home-lead__eyebrow { margin-bottom: 15px; }

.rn-home-card__category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 6px 10px;
  background: var(--rn-accent);
  border-radius: 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.rn-home-card__category:hover,
.rn-home-card__category:focus-visible { background: var(--rn-link); color: #fff; }

.rn-home-lead h2 {
  margin: 0;
  color: var(--rn-ink);
  font-size: clamp(32px, 3.15vw, 44px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.rn-home-lead h2 a:hover,
.rn-home-lead h2 a:focus-visible,
.rn-home-card h3 a:hover,
.rn-home-card h3 a:focus-visible { color: var(--rn-link-hover); }

.rn-home-lead__content > p {
  margin: 19px 0 0;
  color: var(--rn-muted);
  font-size: 16px;
  line-height: 1.55;
}

.rn-home-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 17px 0 0;
  color: var(--rn-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.rn-home-meta a { color: var(--rn-link); font-weight: 900; }
.rn-home-meta__read-time::before { content: "◷ "; }
.rn-home-meta__separator { color: #b3a8aa; }

.rn-home-lead__cta,
.rn-home-card__cta,
.rn-home-section-heading__link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.rn-home-lead__cta {
  margin-top: 24px;
  padding-right: 17px;
  padding-left: 17px;
  background: var(--rn-link);
  box-shadow: 0 5px 14px rgba(108, 91, 123, .14);
  color: #fff;
}

.rn-home-card__cta {
  align-self: flex-start;
  margin-top: 18px;
  background: rgba(108, 91, 123, .08);
  border-color: rgba(108, 91, 123, .16);
  color: var(--rn-link);
}

.rn-home-section-heading__link {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .76);
  border-color: rgba(108, 91, 123, .22);
  color: var(--rn-link);
}

.rn-home-lead__cta:hover,
.rn-home-lead__cta:focus-visible {
  background: var(--rn-ink);
  color: #fff;
}

.rn-home-card__cta:hover,
.rn-home-card__cta:focus-visible,
.rn-home-section-heading__link:hover,
.rn-home-section-heading__link:focus-visible {
  background: var(--rn-link);
  border-color: var(--rn-link);
  color: #fff;
}

.rn-home-lead__cta span,
.rn-home-card__cta span,
.rn-home-section-heading__link span {
  transition: transform .2s ease;
}

.rn-home-lead__cta:hover span,
.rn-home-lead__cta:focus-visible span,
.rn-home-card__cta:hover span,
.rn-home-card__cta:focus-visible span,
.rn-home-section-heading__link:hover span,
.rn-home-section-heading__link:focus-visible span {
  transform: translateX(2px);
}

.rn-home-lead__cta:focus-visible,
.rn-home-card__cta:focus-visible,
.rn-home-section-heading__link:focus-visible {
  outline: 3px solid var(--rn-accent-soft);
  outline-offset: 3px;
}

/* Richiamo compatto ai canali social ufficiali, subito sotto l'hero. */
.rn-home-socials {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 18px 0 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(199, 71, 92, .1);
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(68, 55, 58, .05);
}

.rn-home-socials__heading {
  min-width: 122px;
  padding: 0 4px;
}

.rn-home-socials__eyebrow {
  display: block;
  margin: 0 0 4px;
  color: var(--rn-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rn-home-socials__title {
  display: block;
  color: var(--rn-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.rn-home-socials__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rn-home-social {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  background: #fff;
  border: 1px solid rgba(111, 114, 120, .12);
  border-radius: 10px;
  color: var(--rn-ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rn-home-social__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--rn-social-color, var(--rn-accent));
}

.rn-home-social__icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

.rn-home-social__text {
  min-width: 0;
  line-height: 1.15;
}

.rn-home-social__text strong,
.rn-home-social__text span { display: block; }

.rn-home-social__text strong {
  margin-bottom: 3px;
  color: var(--rn-ink);
  font-size: 12px;
  font-weight: 900;
}

.rn-home-social__text span {
  overflow-wrap: anywhere;
  color: var(--rn-muted);
  font-size: 11px;
  font-weight: 700;
}

.rn-home-social--youtube { --rn-social-color: #e62117; }
.rn-home-social--facebook { --rn-social-color: #1877f2; }
.rn-home-social--instagram { --rn-social-color: #c13584; }
.rn-home-social--tiktok { --rn-social-color: #111; }

.rn-home-social:hover,
.rn-home-social:focus-visible {
  border-color: var(--rn-social-color, var(--rn-accent));
  box-shadow: 0 7px 18px rgba(68, 55, 58, .09);
  color: var(--rn-ink);
  transform: translateY(-2px);
}

.rn-home-social:focus-visible {
  outline: 3px solid var(--rn-accent-soft);
  outline-offset: 2px;
}

.rn-home-section { margin-top: 58px; }

.rn-home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(111, 114, 120, .18);
}

.rn-home-section-heading > div > span { margin-bottom: 6px; }

.rn-home-section-heading h2 {
  margin: 0;
  color: var(--rn-ink);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.rn-home-featured-grid,
.rn-home-latest-grid,
.rn-home-category-grid,
.rn-home-popular-grid {
  display: grid;
  gap: 28px;
}

.rn-home-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rn-home-latest-grid,
.rn-home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rn-home-popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rn-home-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(111, 114, 120, .11);
  border-radius: 12px;
  box-shadow: 0 9px 26px rgba(68, 55, 58, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rn-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(68, 55, 58, .1);
}

.rn-home-latest-card,
.rn-home-category-card { flex-direction: column; height: 100%; }

.rn-home-featured-card,
.rn-home-popular-card {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(0, 1.1fr);
}

.rn-home-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f5ece7;
}

.rn-home-featured-card .rn-home-card__media,
.rn-home-popular-card .rn-home-card__media { height: 100%; aspect-ratio: auto; }

.rn-home-card__image,
.rn-home-card__placeholder {
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.rn-home-card:hover .rn-home-card__image { transform: scale(1.025); }
.rn-home-card__placeholder { background: linear-gradient(135deg, #f8b195, #f6d5cd); }

.rn-home-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 25px 25px;
}

.rn-home-card h3 {
  margin: 0;
  color: var(--rn-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.23;
}

.rn-home-featured-card h3 { font-size: 24px; }
.rn-home-category-card h3 { font-size: 20px; }
.rn-home-popular-card h3 { font-size: 18px; }

.rn-home-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 16px 0 0;
  color: var(--rn-muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rn-home-category-sections { margin-top: 62px; }

.rn-home-category-section {
  margin: 0 0 28px;
  padding: 30px;
  background: rgba(255, 255, 255, .56);
  border: 1px solid rgba(199, 71, 92, .08);
  border-radius: 15px;
}

.rn-home-category-section .rn-home-section-heading { margin-bottom: 20px; }

body.home .rn-site-footer { margin-top: 20px; }

/* Titoli di archivio e ricerca. */
.rn-archive-header,
.rn-search-header {
  min-height: 112px;
  padding: 8px 15px 15px;
  text-align: center;
}

.rn-archive-count {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 15px;
  background: var(--rn-accent);
  border-radius: 25px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 16px;
}

.rn-page-heading,
.rn-archive-title {
  margin: 0 0 8px;
  color: var(--rn-ink);
  font-size: 33.6px;
  font-weight: 900;
  line-height: 1;
}

.rn-search-header { display: flex; align-items: center; justify-content: center; }

/* Paginazione. */
.rn-pagination { margin: 45px 0 0; color: var(--rn-link); font-size: 14px; font-weight: 800; }
.rn-pagination .wp-block-query-pagination-numbers { display: flex; gap: 8px; }

.rn-pagination a,
.rn-pagination .current {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 6px;
  background: #fff;
  border-radius: 50%;
}

.rn-pagination .current { background: var(--rn-ink); color: #fff; }

/* Articoli e pagine statiche. */
.rn-single-card,
.rn-page-card {
  overflow: hidden;
  background: #fff;
  border-radius: var(--rn-radius);
  box-shadow: var(--rn-shadow);
  margin-top: 15px !important;
}

.rn-hero-image { width: 100% !important; max-width: none !important; margin: 0 !important; }
.rn-hero-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.rn-single-header,
.rn-page-header,
.rn-page-content {
  width: min(100%, var(--rn-content-outer));
  max-width: var(--rn-content-outer) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.rn-single-content {
  width: min(100%, var(--rn-reading-outer));
  max-width: var(--rn-reading-outer) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.rn-single-header,
.rn-page-header {
  padding: 20px 30px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.rn-single-card .rn-single-category { min-height: 27px; margin: 0 -3px 15px !important; }

.rn-single-title,
.rn-page-title {
  margin: 0;
  color: var(--rn-ink);
  font-size: 33.6px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.rn-single-meta { min-height: 23px; margin-top: 20px; line-height: 16.1px; }
.rn-single-meta .rn-article-dates { display: inline-flex; flex-wrap: wrap; }
.rn-single-meta .rn-article-date { display: inline-flex; flex-wrap: wrap; column-gap: 4px; }
.rn-single-meta .rn-article-date--modified::before { content: "·"; margin: 0 7px; color: var(--rn-accent); }
.rn-single-meta .rn-read-time {
  position: static;
  inset: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.rn-single-meta .rn-read-time::before { content: "·"; margin: 0 7px; color: var(--rn-accent); }

.rn-breadcrumbs {
  margin: 0 0 12px;
  color: var(--rn-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.rn-breadcrumbs .rank-math-breadcrumb,
.rn-breadcrumbs .rank-math-breadcrumb p { margin: 0; }
.rn-breadcrumbs a { color: var(--rn-link); text-decoration: none; }
.rn-breadcrumbs a:hover,
.rn-breadcrumbs a:focus-visible { color: var(--rn-link-hover); text-decoration: underline; }

.rn-single-content,
.rn-page-content {
  padding: 10px 30px 0;
  color: var(--rn-text);
  font-size: 19px;
  line-height: 1.5;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.rn-page-card { padding: 25px 0 5px; }
.rn-page-card .rn-page-header { padding-top: 20px; padding-bottom: 20px; }

.rn-single-content > :where(p, ul, ol),
.rn-page-content > :where(p, ul, ol) { margin-top: 0; margin-bottom: 25px; }

.rn-single-content > p:first-of-type {
  color: var(--rn-ink);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.55;
}

.rn-article-featured-image {
  position: relative;
  left: 50%;
  width: min(var(--rn-content), calc(100vw - 60px));
  max-width: none;
  margin: 8px 0 34px !important;
  transform: translateX(-50%);
}

.rn-article-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--rn-hero-radius) !important;
}

.rn-article-featured-image figcaption {
  margin: 9px 8px 0;
  color: var(--rn-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

/*
 * Content Revolution constrains the infinite-scroll preview width while
 * retaining the image's HTML height attribute. Let the browser recalculate
 * the height from the intrinsic ratio so the preview never stretches.
 */
#articolo-scrollevo img.webfeedsFeaturedVisual.wp-post-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain;
}

.rn-article-toc {
  margin: 0 0 34px;
  border: 1px solid #eadeda;
  border-radius: var(--rn-radius);
  background: #fffaf8;
  box-shadow: 0 8px 24px rgba(108, 91, 123, 0.06);
}

.rn-article-toc details { padding: 0; }

.rn-article-toc summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  color: var(--rn-ink);
  font-size: 17px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.rn-article-toc summary::-webkit-details-marker { display: none; }
.rn-article-toc summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--rn-accent);
  font-size: 25px;
  font-weight: 500;
  transform: translateY(-52%);
}
.rn-article-toc details[open] summary::after { content: "−"; }

.rn-article-toc ol {
  display: grid;
  gap: 9px;
  margin: 0 !important;
  padding: 0 24px 20px 45px;
  color: var(--rn-accent);
  font-size: 15px;
  line-height: 1.4;
}

.rn-article-toc li { padding-left: 3px; }
.rn-article-toc a { color: var(--rn-link); font-weight: 700; text-decoration: none; }
.rn-article-toc a:hover,
.rn-article-toc a:focus-visible { color: var(--rn-link-hover); text-decoration: underline; }

/* FAQ editoriali: un unico box leggibile, accessibile e senza dipendenze JS. */
.rn-faq {
  margin: 42px 0 38px;
  overflow: hidden;
  border: 1px solid #ead8d3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(108, 91, 123, 0.09);
}

.rn-faq__header {
  padding: 25px 28px 23px;
  background: linear-gradient(135deg, #fff8f5 0%, #fcefea 100%);
  border-bottom: 1px solid #ead8d3;
}

.rn-faq__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #a23b4e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 1.35;
  text-transform: uppercase;
}

.rn-single-content .rn-faq__header h2 {
  margin: 0;
  padding: 0;
  font-size: 30px;
  line-height: 1.15;
}

.rn-single-content .rn-faq__header h2::before { display: none; }

.rn-faq__intro {
  padding: 21px 28px 0;
  color: var(--rn-text);
}

.rn-faq__intro > :first-child { margin-top: 0; }
.rn-faq__intro > :last-child { margin-bottom: 21px; }

.rn-faq__item { border-top: 1px solid #eee3df; }
.rn-faq__item:first-child { border-top: 0; }

.rn-faq__question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  padding: 21px 24px 21px 28px;
  color: var(--rn-ink);
  list-style: none;
  cursor: pointer;
}

.rn-faq__question::-webkit-details-marker { display: none; }

.rn-single-content .rn-faq__question h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.rn-faq__toggle {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid #e7c8c3;
  border-radius: 50%;
  background: #fff8f5;
  transition: background-color .2s ease, border-color .2s ease;
}

.rn-faq__toggle::before,
.rn-faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--rn-accent);
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease;
}

.rn-faq__toggle::before { transform: translate(-50%, -50%) rotate(90deg); }
.rn-faq__item[open] .rn-faq__toggle::before { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
.rn-faq__item[open] .rn-faq__toggle { border-color: #dba9a4; background: #fff; }

.rn-faq__question:hover .rn-faq__toggle { border-color: var(--rn-accent); }
.rn-faq__question:focus-visible {
  outline: 3px solid rgba(199, 71, 92, .28);
  outline-offset: -3px;
}

.rn-faq__answer {
  padding: 0 74px 23px 28px;
  color: var(--rn-text);
  font-size: 17px;
  line-height: 1.65;
}

.rn-faq__answer [itemprop="text"] > :first-child { margin-top: 0; }
.rn-faq__answer [itemprop="text"] > :last-child { margin-bottom: 0; }
.rn-faq__answer a { font-weight: 700; }

.rn-single-content h2[id] { scroll-margin-top: 20px; }

.rn-single-content h2 {
  position: relative;
  padding-left: 18px;
}

.rn-single-content h2::before {
  content: "";
  position: absolute;
  top: .12em;
  bottom: .1em;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--rn-accent), var(--rn-accent-soft));
}

.rn-single-content h2,
.rn-page-content h2 {
  margin: 30px 0;
  color: var(--rn-ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
}

.rn-single-content h3,
.rn-page-content h3 {
  margin: 28px 0 18px;
  color: var(--rn-ink);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.25;
}

.rn-single-content h4,
.rn-page-content h4 {
  color: var(--rn-ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.rn-single-content > .alignfull,
.rn-page-content > .alignfull {
  position: relative;
  left: 50%;
  width: min(1250px, calc(100vw - 15px));
  max-width: none;
  margin: 30px 0 !important;
  transform: translateX(-50%);
}

.rn-single-content .alignwide,
.rn-page-content .alignwide {
  position: relative;
  left: 50%;
  width: min(1250px, calc(100vw - 15px));
  max-width: none;
  margin: 0 0 30px !important;
  transform: translateX(-50%);
}

.rn-single-content > .alignfull:first-child,
.rn-page-content > .alignfull:first-child { margin-top: 10px !important; }

.rn-single-content > .wp-block-spacer,
.rn-page-content > .wp-block-spacer { margin: 0 !important; }

.rn-single-content > .wp-block-columns,
.rn-page-content > .wp-block-columns {
  margin-top: 0 !important;
  margin-bottom: 33.25px !important;
}

.rn-single-content .gptslot.evo-intext,
.rn-page-content .gptslot.evo-intext {
  display: flex !important;
  min-height: 280px;
  margin: 0 !important;
}

.rn-single-content > ul:not(.wp-block-post-template),
.rn-page-content > ul:not(.wp-block-post-template) {
  margin: 30px 10px 30px 40px !important;
  padding: 0;
}

.rn-single-content > ul:not(.wp-block-post-template) > li,
.rn-page-content > ul:not(.wp-block-post-template) > li {
  margin: 0 0 15px;
  padding-left: 15px;
}

.rn-single-content .wp-block-embed.wp-has-aspect-ratio,
.rn-page-content .wp-block-embed.wp-has-aspect-ratio { margin: 0 0 30px !important; }

.rn-single-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper,
.rn-page-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
  position: relative;
  height: 0;
  padding-top: 56.25%;
}

.rn-single-content .wp-block-embed.wp-has-aspect-ratio iframe,
.rn-page-content .wp-block-embed.wp-has-aspect-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rn-single-content a,
.rn-page-content a { color: var(--rn-link); text-decoration: underline; }
.rn-single-content img, .rn-page-content img { border-radius: 0; }

.rn-author-box,
.rn-related-posts,
.rn-post-navigation {
  width: min(100%, var(--rn-content-outer));
  max-width: var(--rn-content-outer) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.rn-single-content > .rn-author-box,
.rn-single-content > .rn-related-posts,
.rn-single-content > .rn-post-navigation {
  position: relative;
  left: 50%;
  width: min(var(--rn-content-outer), calc(100vw - 60px));
  transform: translateX(-50%);
}

.rn-single-content .rn-author-box h2,
.rn-single-content .rn-section-heading h2 {
  padding-left: 0;
}

.rn-single-content .rn-author-box h2::before,
.rn-single-content .rn-section-heading h2::before {
  content: none;
}

.rn-author-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 45px !important;
  padding: 28px 30px;
  border-top: 1px solid #eadeda;
  border-bottom: 1px solid #eadeda;
  background: #fffaf8;
}

.rn-author-box__avatar {
  display: block;
  width: 96px;
  height: 96px;
  border: 4px solid #fff;
  border-radius: 50% !important;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(108, 91, 123, 0.14);
}

.rn-author-box__eyebrow,
.rn-section-heading > span {
  color: var(--rn-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rn-author-box h2 { margin: 4px 0 7px; font-size: 24px; line-height: 1.2; }
.rn-author-box h2 a { color: var(--rn-ink); text-decoration: none; }
.rn-author-box h2 a:hover,
.rn-author-box h2 a:focus-visible { color: var(--rn-link-hover); }
.rn-author-box p,
.rn-author-box__bio { margin: 0 0 9px; font-size: 15px; line-height: 1.55; }
.rn-author-box__link { color: var(--rn-link); font-size: 14px; font-weight: 900; text-decoration: none; }
.rn-author-box__link:hover,
.rn-author-box__link:focus-visible { color: var(--rn-link-hover); text-decoration: underline; }

.rn-related-posts { padding: 38px 30px 34px; }
.rn-section-heading { margin-bottom: 20px; }
.rn-section-heading h2 { margin: 5px 0 0; color: var(--rn-ink); font-size: 28px; line-height: 1.2; }

.rn-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rn-related-card {
  overflow: hidden;
  border: 1px solid #eee7e3;
  border-radius: var(--rn-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.rn-related-card:hover { transform: translateY(-3px); box-shadow: 0 13px 30px rgba(0, 0, 0, 0.09); }
.rn-related-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f8efeb; }
.rn-related-card__image,
.rn-related-card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rn-related-card:hover .rn-related-card__image { transform: scale(1.025); }
.rn-related-card__placeholder { background: linear-gradient(135deg, #f8b195, #f6d5cd); }
.rn-related-card__body { padding: 15px 16px 18px; }
.rn-related-card time { color: var(--rn-muted); font-size: 12px; font-weight: 700; }
.rn-related-card h3 { margin: 7px 0 0; font-size: 17px; line-height: 1.3; }
.rn-related-card h3 a { color: var(--rn-ink); text-decoration: none; }
.rn-related-card h3 a:hover,
.rn-related-card h3 a:focus-visible { color: var(--rn-link-hover); }

.rn-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 30px 40px;
}

.rn-post-navigation__card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 106px;
  padding: 12px;
  border: 1px solid #eee7e3;
  border-radius: var(--rn-radius);
  background: #fff;
  color: var(--rn-ink);
  text-decoration: none;
}

.rn-post-navigation__card:hover,
.rn-post-navigation__card:focus-visible { border-color: #e3c9c3; color: var(--rn-link-hover); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
.rn-post-navigation__media { display: block; width: 92px; height: 72px; overflow: hidden; border-radius: 5px; background: #f8efeb; }
.rn-post-navigation__image,
.rn-post-navigation__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.rn-post-navigation__placeholder { background: linear-gradient(135deg, #f8b195, #f6d5cd); }
.rn-post-navigation__label { display: block; margin-bottom: 5px; color: var(--rn-muted); font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.rn-post-navigation__copy strong { display: block; font-size: 14px; line-height: 1.35; }

/* Pulsanti, form e tabelle dei contenuti statici. */
button,
input[type="submit"],
.button,
.wp-element-button,
.wp-block-button__link {
  border: 0;
  border-radius: 25px;
  background: var(--rn-accent);
  color: #fff;
  padding: 15px 30px;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover { color: #fff; filter: brightness(.96); }

input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  max-width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  background: #fff;
  color: var(--rn-text);
  padding: 15px;
  font: inherit;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border: 1px solid var(--rn-line); }

/* Footer editoriale: tre colonne compatte e dati societari essenziali. */
.rn-site-footer {
  margin-top: 55px;
  background: #f4f4f3;
  color: var(--rn-text);
  border-top: 1px solid #e5e3e1;
}

.rn-footer-primary,
.rn-footer-socials,
.rn-footer-nav,
.rn-footer-legal {
  width: min(100% - 30px, var(--rn-wide));
  margin: 0 auto;
}

.rn-footer-primary {
  display: grid;
  grid-template-columns: .82fr 1.18fr 1.18fr;
  padding: 48px 0 34px;
}

.rn-footer-column {
  min-width: 0;
  padding: 0 28px;
  border-left: 1px solid #e3e1df;
}

.rn-footer-column:first-child {
  padding-left: 0;
  border-left: 0;
}

.rn-footer-column:last-child { padding-right: 0; }

.rn-footer-column h2 {
  margin: 0 0 7px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--rn-ink);
  color: var(--rn-accent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.rn-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rn-footer-list li {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #e5e3e1;
}

.rn-footer-legal-links li {
  padding: 6px 0;
  border-bottom: 0;
}

.rn-footer-list a,
.rn-footer-nav a {
  color: var(--rn-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-underline-offset: 3px;
}

.rn-footer-list a:hover,
.rn-footer-nav a:hover {
  color: var(--rn-accent);
  text-decoration: underline;
}

.rn-footer-list a:focus-visible,
.rn-footer-nav a:focus-visible {
  outline: 3px solid rgba(199, 71, 92, .35);
  outline-offset: 3px;
  border-radius: 2px;
}

.rn-footer-socials {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 15px;
  border-top: 1px solid #dedbd8;
}

.rn-footer-socials__label {
  margin-right: 2px;
  color: var(--rn-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rn-footer-socials__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.rn-footer-social {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 7px;
  border-radius: 999px;
  color: var(--rn-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.rn-footer-social__icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--rn-social-color, var(--rn-accent));
}

.rn-footer-social__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.rn-footer-social--youtube { --rn-social-color: #e62117; }
.rn-footer-social--facebook { --rn-social-color: #1877f2; }
.rn-footer-social--instagram { --rn-social-color: #c13584; }
.rn-footer-social--tiktok { --rn-social-color: #111; }

.rn-footer-social:hover,
.rn-footer-social:focus-visible {
  background: rgba(255, 255, 255, .8);
  color: var(--rn-ink);
}

.rn-footer-social:focus-visible {
  outline: 3px solid rgba(199, 71, 92, .35);
  outline-offset: 2px;
}

.rn-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  padding: 22px 15px;
  border-top: 1px solid #dedbd8;
  border-bottom: 1px solid #dedbd8;
}

.rn-footer-socials + .rn-footer-nav { border-top: 0; }

.rn-footer-nav a { font-size: 13px; }

.rn-footer-legal {
  padding: 24px 15px 32px;
  color: var(--rn-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.rn-footer-legal p { margin: 4px 0; }

/*
 * EvolutionAdv/InMobi CMP: keep the late-injected consent UI in a stable,
 * viewport-contained layer. This prevents the banner animation and its
 * initially unpositioned wrapper from moving the article during first paint.
 */
#qc-cmp2-container {
  display: contents !important;
}

body #qc-cmp2-container {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  contain: layout paint !important;
  z-index: 2147483646 !important;
}

body #qc-cmp2-container > #qc-cmp2-main {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: auto !important;
}

/*
 * The US privacy dialog is injected with an entrance transform and receives
 * its final dimensions one render later. Pinning that exact panel to its
 * already isolated viewport layer prevents the 0.37 CLS reported by
 * Lighthouse, while its own content remains scrollable on small screens.
 */
body #qc-cmp2-container #qc-cmp2-usp[role="dialog"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: auto !important;
  border-radius: 0 !important;
  transform: none !important;
  translate: none !important;
  animation: none !important;
  transition: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body #qc-cmp2-container #qc-cmp2-usp[role="dialog"][data-rn-ready="1"] {
  visibility: visible !important;
  opacity: 1 !important;
}

body #qc-cmp2-container *,
body #qc-cmp2-container *::before,
body #qc-cmp2-container *::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  scroll-behavior: auto !important;
}

body #qc-cmp2-container .qc-cmp2-list-item p,
body #qc-cmp2-container .qc-usp-action-description {
  color: #2e2f33 !important;
}

/* Entity Home: profilo ufficiale, canali e feed di Rimedi Naturali. */
.rn-entity-profile {
  --rn-entity-surface: #fff;
  --rn-entity-tint: #fff0ec;
  margin: 5px 0 30px;
  color: var(--rn-ink);
}

.rn-entity-hero {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(248, 177, 149, 0.42), transparent 34%),
    linear-gradient(135deg, #fff 0%, var(--rn-entity-tint) 100%);
  border: 1px solid rgba(199, 71, 92, 0.16);
  border-radius: 18px;
  box-shadow: var(--rn-shadow);
}

.rn-entity-logo {
  display: block;
  width: 144px;
  height: 144px;
  object-fit: cover;
  background: #fff;
  border: 6px solid #fff;
  border-radius: 50% !important;
  box-shadow: 0 12px 30px rgba(108, 91, 123, 0.16);
}

.rn-entity-eyebrow,
.rn-entity-channel-label {
  margin: 0 0 7px !important;
  color: var(--rn-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rn-entity-name {
  margin: 0 0 12px !important;
  color: var(--rn-ink);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
}

.rn-entity-intro {
  max-width: 650px;
  margin: 0 !important;
  color: var(--rn-text);
  font-size: 19px;
  line-height: 1.55;
}

.rn-entity-section { margin-top: 42px; }
.rn-entity-section > h2 { margin-bottom: 18px !important; }

.rn-entity-channel-grid,
.rn-entity-feed-grid,
.rn-entity-content-grid {
  display: grid;
  gap: 16px;
}

.rn-entity-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rn-entity-channel-grid .rn-entity-channel:first-child { grid-column: 1 / -1; }
.rn-entity-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rn-entity-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rn-page-content .rn-entity-channel,
.rn-page-content .rn-entity-feed,
.rn-page-content .rn-entity-content-card,
.rn-page-content .rn-entity-video-list > a {
  color: var(--rn-ink);
  text-decoration: none;
}

.rn-entity-channel,
.rn-entity-feed {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: var(--rn-entity-surface);
  border: 1px solid #eee5e1;
  border-radius: 12px;
  box-shadow: var(--rn-shadow);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.rn-entity-channel:hover,
.rn-entity-channel:focus-visible,
.rn-entity-feed:hover,
.rn-entity-feed:focus-visible {
  color: var(--rn-ink);
  border-color: var(--rn-accent-soft);
  box-shadow: 0 12px 30px rgba(46, 47, 51, 0.08);
  transform: translateY(-2px);
}

.rn-entity-channel strong,
.rn-entity-feed strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.rn-entity-channel > span:last-child,
.rn-entity-feed > span:last-child {
  color: var(--rn-muted);
  font-size: 15px;
  line-height: 1.5;
}

.rn-entity-content-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee5e1;
  border-radius: 12px;
  box-shadow: var(--rn-shadow);
}

.rn-page-content .rn-entity-content-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
}

.rn-entity-content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.rn-entity-content-card:hover .rn-entity-content-image img { transform: scale(1.025); }
.rn-entity-content-body { padding: 22px; }
.rn-entity-content-body time,
.rn-entity-video-list time {
  color: var(--rn-muted);
  font-size: 13px;
  font-weight: 700;
}

.rn-entity-content-body h3 {
  margin: 8px 0 10px !important;
  font-size: 21px !important;
  line-height: 1.3 !important;
}

.rn-page-content .rn-entity-content-body h3 a {
  color: var(--rn-ink);
  text-decoration: none;
}

.rn-page-content .rn-entity-content-body h3 a:hover,
.rn-page-content .rn-entity-content-body h3 a:focus-visible { color: var(--rn-link-hover); }

.rn-entity-content-body p {
  margin: 0 !important;
  color: var(--rn-muted);
  font-size: 15px;
  line-height: 1.55;
}

.rn-entity-video-list {
  display: grid;
  gap: 10px;
}

.rn-page-content .rn-entity-video-list > a {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #eee5e1;
  border-radius: 10px;
}

.rn-page-content .rn-entity-video-list > a:hover,
.rn-page-content .rn-entity-video-list > a:focus-visible { border-color: var(--rn-accent-soft); }

.rn-entity-feed-fallback { margin: 0 !important; }
.rn-entity-disclosure {
  margin: 34px 0 0 !important;
  padding: 16px 18px;
  color: var(--rn-muted);
  font-size: 14px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.66);
  border-left: 3px solid var(--rn-accent-soft);
  border-radius: 0 8px 8px 0;
}

/* Pagina 404. */
.rn-404-main {
  width: min(100%, 1265px);
  margin: 0 auto 45px;
}

.rn-404-header {
  padding: 0 15px 15px;
}

.rn-404-header h1 {
  margin: 0 0 8px;
  color: var(--rn-ink);
  font-size: 33.6px;
  font-weight: 900;
  line-height: 1;
}

.rn-404-card {
  margin: 15px;
  padding: 30px 0 60px;
  background: #fff;
  border-radius: var(--rn-radius);
  box-shadow: var(--rn-shadow);
}

.rn-404-card h2 {
  margin: 0;
  padding: 30px;
  color: var(--rn-ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
}

.rn-404-card a { color: var(--rn-link); text-decoration: underline; }

body.page-id-13623 .rn-page-content .alignwide {
  position: static;
  left: auto;
  width: auto;
  max-width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transform: none;
}

@media (max-width: 900px) {
  .rn-home-featured .wp-block-post-template,
  .rn-post-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-home-lead { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); }
  .rn-home-lead__content { padding: 32px; }
  .rn-home-socials { grid-template-columns: 1fr; gap: 11px; }
  .rn-home-socials__heading { display: flex; align-items: baseline; gap: 9px; }
  .rn-home-socials__eyebrow { margin: 0; }
  .rn-home-featured-card { grid-template-columns: 1fr; }
  .rn-home-featured-card .rn-home-card__media { height: auto; aspect-ratio: 16 / 9; }
  .rn-home-latest-grid,
  .rn-home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-footer-primary { grid-template-columns: 1fr; padding-top: 28px; }
  .rn-footer-column {
    padding: 26px 0;
    border-top: 1px solid #dedbd8;
    border-left: 0;
  }
  .rn-footer-column:first-child { padding-top: 0; border-top: 0; }
  .rn-footer-column:last-child { padding-bottom: 0; }
}

@media (max-width: 680px) {
  .rn-site-header { margin-bottom: 15px; background: #fff; }
  .rn-header-inner { min-height: 78px; padding-top: 24px; }
  .rn-brand { width: 200px; max-width: calc(100% - 110px); }
  .rn-menu, .rn-search { top: 18px; }
  .rn-menu > summary, .rn-search > summary { display: grid; }

  .rn-home-hero .wp-block-post { height: calc(100vw - 30px); min-height: 345px; max-height: 430px; }
  .rn-home-hero-image { position: absolute; inset: 0; }
  .rn-home-hero-card { width: 100%; height: 192px; min-height: 0; padding: 20px 30px 30px; }
  .rn-home-hero-title { font-size: 26px; line-height: 1.2; letter-spacing: 0; }
  .rn-home-featured .wp-block-post-template { padding: 5px 0 15px; }

  .rn-home-editorial { padding-top: 5px; }
  .rn-home-intro { margin: 7px auto 25px; text-align: left; }
  .rn-home-intro__eyebrow { margin-bottom: 7px; }
  .rn-home-intro h1 { font-size: 30px; line-height: 1.08; }
  .rn-home-intro p { margin-top: 13px; font-size: 16px; line-height: 1.5; }
  .rn-home-intro--paged { margin-bottom: 30px; }

  .rn-home-lead {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 12px;
  }
  .rn-home-lead__media { min-height: 0; aspect-ratio: 16 / 9; }
  .rn-home-lead__content { padding: 24px 24px 26px; }
  .rn-home-lead__eyebrow { margin-bottom: 11px; }
  .rn-home-lead h2 { font-size: 27px; line-height: 1.12; }
  .rn-home-lead__content > p { margin-top: 14px; font-size: 15px; }
  .rn-home-lead__cta { margin-top: 20px; }

  .rn-home-socials { margin-top: 13px; padding: 12px; }
  .rn-home-socials__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .rn-home-social { min-height: 54px; padding: 7px 9px; }
  .rn-home-social__icon { width: 31px; height: 31px; flex-basis: 31px; }
  .rn-home-social__icon svg { width: 23px; height: 23px; }

  .rn-home-section { margin-top: 42px; }
  .rn-home-section-heading { align-items: center; margin-bottom: 17px; padding-bottom: 11px; }
  .rn-home-section-heading h2 { font-size: 27px; }
  .rn-home-section-heading__link { min-height: 38px; padding: 8px 13px; font-size: 12px; }

  .rn-home-featured-grid,
  .rn-home-latest-grid,
  .rn-home-category-grid,
  .rn-home-popular-grid { grid-template-columns: 1fr; gap: 14px; }

  .rn-home-featured-grid { gap: 18px; }
  .rn-home-featured-card { display: flex; flex-direction: column; }
  .rn-home-featured-card .rn-home-card__media { aspect-ratio: 16 / 9; }
  .rn-home-featured-card .rn-home-card__body { padding: 21px 22px 23px; }
  .rn-home-featured-card h3 { font-size: 23px; }

  .rn-home-latest-card,
  .rn-home-category-card,
  .rn-home-popular-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 124px;
  }
  .rn-home-latest-card .rn-home-card__media,
  .rn-home-category-card .rn-home-card__media,
  .rn-home-popular-card .rn-home-card__media {
    height: 100%;
    min-height: 124px;
    aspect-ratio: auto;
  }
  .rn-home-latest-card .rn-home-card__body,
  .rn-home-category-card .rn-home-card__body,
  .rn-home-popular-card .rn-home-card__body { padding: 13px 14px 14px; }
  .rn-home-latest-card h3,
  .rn-home-category-card h3,
  .rn-home-popular-card h3 { font-size: 16px; line-height: 1.27; }
  .rn-home-latest-card .rn-home-card__category { min-height: 0; margin-bottom: 7px; padding: 4px 7px; font-size: 10px; }
  .rn-home-latest-card .rn-home-meta > :first-child,
  .rn-home-latest-card .rn-home-meta > :nth-child(2) { display: none; }
  .rn-home-latest-card .rn-home-card__excerpt { display: none; }
  .rn-home-latest-card .rn-home-card__cta { min-height: 36px; margin-top: 10px; padding: 7px 11px; font-size: 11.5px; }
  .rn-home-latest-card .rn-home-meta,
  .rn-home-category-card .rn-home-meta,
  .rn-home-popular-card .rn-home-meta { margin-top: 9px; font-size: 10px; }

  .rn-home-category-sections { margin-top: 45px; }
  .rn-home-category-section { margin-bottom: 20px; padding: 21px 15px; border-radius: 12px; }
  .rn-home-category-section .rn-home-section-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .rn-home-category-section .rn-home-section-heading h2 { font-size: 25px; }
  .rn-home-category-section .rn-home-section-heading__link { width: auto; }

  .rn-home-featured .wp-block-post-template,
  .rn-post-grid .wp-block-post-template,
  .rn-post-navigation { grid-template-columns: 1fr; }

  .rn-card-body { padding-right: 30px; padding-left: 30px; }
  .rn-card-title { font-size: 24px; }
  .rn-archive-header, .rn-search-header { min-height: 96px; }

  .rn-single-header,
  .rn-single-content,
  .rn-page-header,
  .rn-page-content,
  .rn-author-box,
  .rn-related-posts,
  .rn-post-navigation { width: 100%; padding-right: 10px; padding-left: 10px; }

  .rn-single-content > .rn-author-box,
  .rn-single-content > .rn-related-posts,
  .rn-single-content > .rn-post-navigation { width: calc(100vw - 30px); }

  .rn-single-title, .rn-page-title { font-size: 30px; }
  .rn-single-content, .rn-page-content { font-size: 18px; }
  .rn-single-content > p:first-of-type { font-size: 20px; line-height: 1.5; }
  .rn-single-content h2, .rn-page-content h2 { font-size: 28px; }
  .rn-single-meta .rn-article-dates { display: block; flex-basis: 100%; margin-top: 6px; }
  .rn-single-meta .rn-article-dates::before,
  .rn-single-meta .rn-article-date--modified::before { content: ""; margin: 0; }
  .rn-single-meta .rn-article-date { display: block; }
  .rn-single-meta .rn-read-time { flex-basis: 100%; margin-top: 6px; }
  .rn-single-meta .rn-read-time::before { content: ""; margin: 0; }
  .rn-article-featured-image { width: calc(100vw - 30px); margin-top: 5px !important; margin-bottom: 28px !important; }
  .rn-article-toc { margin-bottom: 28px; }
  .rn-article-toc summary { padding: 17px 48px 17px 18px; }
  .rn-article-toc ol { padding-right: 18px; padding-bottom: 18px; padding-left: 38px; font-size: 14px; }

  .rn-faq { margin: 34px 0 32px; border-radius: 11px; }
  .rn-faq__header { padding: 21px 20px 19px; }
  .rn-single-content .rn-faq__header h2 { font-size: 26px; }
  .rn-faq__question { grid-template-columns: minmax(0, 1fr) 32px; gap: 13px; padding: 18px 16px 18px 20px; }
  .rn-single-content .rn-faq__question h3 { font-size: 18px; }
  .rn-faq__toggle { width: 32px; height: 32px; }
  .rn-faq__answer { padding: 0 20px 20px; font-size: 16px; line-height: 1.6; }
  .rn-faq__intro { padding: 18px 20px 0; }

  .rn-author-box {
    grid-template-columns: 76px 1fr;
    gap: 17px;
    margin-top: 35px !important;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .rn-author-box__avatar { width: 76px; height: 76px; }
  .rn-author-box h2 { font-size: 21px; }
  .rn-author-box p,
  .rn-author-box__bio { font-size: 14px; }

  .rn-related-posts { padding-top: 32px; padding-bottom: 28px; }
  .rn-section-heading h2 { font-size: 25px; }
  .rn-related-grid { grid-template-columns: 1fr; gap: 14px; }
  .rn-related-card { display: grid; grid-template-columns: 116px 1fr; min-height: 116px; }
  .rn-related-card__media { height: 100%; min-height: 116px; aspect-ratio: auto; }
  .rn-related-card__body { align-self: center; padding: 13px 14px; }
  .rn-related-card h3 { font-size: 16px; }

  .rn-post-navigation { gap: 12px; padding-bottom: 30px; }
  .rn-post-navigation__card { grid-template-columns: 82px 1fr; min-height: 96px; }
  .rn-post-navigation__media { width: 82px; height: 66px; }
  .rn-site-footer { margin-top: 35px; }
  .rn-footer-primary,
  .rn-footer-socials,
  .rn-footer-nav,
  .rn-footer-legal { width: min(100% - 40px, var(--rn-wide)); }
  .rn-footer-column h2 { font-size: 21px; }
  .rn-footer-list a { font-size: 14px; }
  .rn-footer-nav { gap: 12px 20px; padding-right: 0; padding-left: 0; }
  body.home .rn-footer-primary { padding-top: 26px; padding-bottom: 18px; }
  body.home .rn-footer-column { padding-top: 18px; padding-bottom: 18px; }
  body.home .rn-footer-column:first-child { padding-top: 0; }
  body.home .rn-footer-column:not(:first-child) .rn-footer-list li:nth-child(n+4) { display: none; }
  body.home .rn-footer-nav { display: none; }
  body.home .rn-footer-legal { padding-bottom: 120px; }

  .rn-entity-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px;
    text-align: center;
  }
  .rn-entity-logo { width: 112px; height: 112px; margin: 0 auto; }
  .rn-entity-intro { font-size: 17px; }
  .rn-entity-channel-grid,
  .rn-entity-feed-grid,
  .rn-entity-content-grid { grid-template-columns: 1fr; }
  .rn-entity-channel-grid .rn-entity-channel:first-child { grid-column: auto; }
  .rn-page-content .rn-entity-video-list > a { display: grid; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .rn-related-card,
  .rn-related-card__image { transition: none; }
  .rn-related-card:hover { transform: none; }
}
