
/* ==========================================================
   RIC IL RICCIO – EDIZIONE 2
   Integrazioni al foglio grafico recuperato
   ========================================================== */

body.admin-bar .site-header { top: 32px; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { width: 250px; max-height: 74px; object-fit: contain; }
.current-menu-item > a,
.current_page_item > a {
  background: var(--green-soft);
  color: var(--green-dark);
}
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { font-weight: 700; }

.ric-page-entry { min-height: 40vh; }
.ric-page-entry > :first-child { margin-top: 0; }
.ric-page-entry > :last-child { margin-bottom: 0; }

.ric-v2-page {
  --ric-v2-blue: #123e65;
  --ric-v2-blue-dark: #0b304d;
  --ric-v2-green: #477849;
  --ric-v2-green-dark: #28563f;
  --ric-v2-gold: #c89524;
  --ric-v2-cream: #fbf8ef;
  --ric-v2-paper: #fffdf8;
  --ric-v2-text: #40535f;
  width: 100%;
  overflow: hidden;
  color: var(--ric-v2-text);
}

.ric-v2-hero {
  padding: 78px 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(200,149,36,.16), transparent 27%),
    radial-gradient(circle at 88% 76%, rgba(71,120,73,.16), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, #f7f3e7 52%, #eaf4e9 100%);
  border-bottom: 1px solid rgba(18,62,101,.08);
}
.ric-v2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr);
  gap: 58px;
  align-items: center;
}
.ric-v2-kicker {
  margin: 0 0 12px;
  color: var(--ric-v2-green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ric-v2-hero h1 {
  margin: 0 0 22px;
  color: var(--ric-v2-blue);
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.ric-v2-lead {
  max-width: 780px;
  margin: 0 0 28px;
  color: #405766;
  font-size: clamp(1.12rem,1.8vw,1.35rem);
  line-height: 1.7;
}
.ric-v2-portrait,
.ric-v2-cover,
.ric-v2-feature-image {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(18,62,101,.16);
  object-fit: cover;
}
.ric-v2-portrait { max-height: 580px; object-position: center top; }
.ric-v2-cover { max-width: 430px; margin-inline: auto; object-fit: contain; background: white; }
.ric-v2-section { padding: 82px 0; }
.ric-v2-section.soft {
  background: linear-gradient(180deg, #f7fbf3 0%, #edf6fb 100%);
}
.ric-v2-section.cream {
  background: #fbf8ef;
}
.ric-v2-section.dark {
  color: white;
  background:
    radial-gradient(circle at 88% 10%, rgba(200,149,36,.28), transparent 32%),
    linear-gradient(135deg, var(--ric-v2-blue-dark), var(--ric-v2-blue));
}
.ric-v2-section.dark h2,
.ric-v2-section.dark h3,
.ric-v2-section.dark p { color: white; }
.ric-v2-section-head {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}
.ric-v2-section-head h2 {
  color: var(--ric-v2-green-dark);
}
.ric-v2-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 34px;
  align-items: center;
}
.ric-v2-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}
.ric-v2-grid-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}
.ric-v2-panel {
  height: 100%;
  padding: 32px;
  background: white;
  border: 1px solid rgba(18,62,101,.1);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(18,62,101,.09);
}
.ric-v2-panel h3 { color: var(--ric-v2-blue); }
.ric-v2-panel-icon { font-size: 2rem; line-height: 1; }
.ric-v2-quote {
  max-width: 930px;
  margin: 0 auto;
  padding: 44px;
  color: var(--ric-v2-green-dark);
  background: var(--ric-v2-paper);
  border: 1px solid rgba(200,149,36,.25);
  border-radius: 28px;
  box-shadow: 0 18px 38px rgba(18,62,101,.1);
  font-size: clamp(1.55rem,3vw,2.55rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.ric-v2-signature {
  margin-top: 18px;
  color: var(--ric-v2-gold);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ric-v2-list {
  margin: 0;
  padding-left: 1.2rem;
}
.ric-v2-list li { margin-bottom: 10px; }
.ric-v2-cta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 42px;
  color: white;
  background:
    radial-gradient(circle at 88% 10%, rgba(200,149,36,.26), transparent 31%),
    linear-gradient(135deg, var(--ric-v2-blue-dark), var(--ric-v2-blue));
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(18,62,101,.18);
}
.ric-v2-cta h2,
.ric-v2-cta p { color: white; }
.ric-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ric-v2-audio-wave {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
  padding: 24px;
}
.ric-v2-audio-wave span {
  display: block;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c89524, #477849);
}
.ric-v2-audio-wave span:nth-child(1),
.ric-v2-audio-wave span:nth-child(7) { height: 32px; }
.ric-v2-audio-wave span:nth-child(2),
.ric-v2-audio-wave span:nth-child(6) { height: 58px; }
.ric-v2-audio-wave span:nth-child(3),
.ric-v2-audio-wave span:nth-child(5) { height: 88px; }
.ric-v2-audio-wave span:nth-child(4) { height: 108px; }

.wp-block-group.alignfull,
.wp-block-cover.alignfull,
.alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.wp-block-group.alignwide,
.alignwide {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.wp-block-button__link { text-decoration: none !important; }
.wp-block-image img { height: auto; }
#ric-edu-project,
#ric-free-resources { width: 100%; }

.ric-loop-card {
  margin-bottom: 28px;
  padding: 28px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

@media (max-width: 1020px) {
  .ric-v2-hero-grid,
  .ric-v2-grid-two,
  .ric-v2-cta {
    grid-template-columns: 1fr;
  }
  .ric-v2-grid-three,
  .ric-v2-grid-four {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .ric-v2-hero { padding: 58px 0; }
  .ric-v2-cover { max-width: 360px; }
}
@media (max-width: 680px) {
  body.admin-bar .site-header { top: 46px; }
  .ric-v2-section { padding: 58px 0; }
  .ric-v2-grid-three,
  .ric-v2-grid-four {
    grid-template-columns: 1fr;
  }
  .ric-v2-panel { padding: 24px; }
  .ric-v2-quote { padding: 28px 22px; }
  .ric-v2-cta { padding: 30px 24px; }
  .ric-v2-actions .ric-btn { width: 100%; }
}
