/* ============================================
   HOME
============================================ */
.home-professional-linkable { position: relative !important; }
.home-professional-link { position: absolute; inset: 0; z-index: 2; text-decoration: none; }
.home-professional-linkable:hover { opacity: 0.85; transition: opacity 0.2s ease; }

.home__body { padding: 0; background: #fff; }

.home__content {
  position: relative; width: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) 1px minmax(270px, 0.95fr) minmax(270px, 0.95fr);
  gap: clamp(2rem, 0vw, 0rem); align-items: stretch;
  padding-block: clamp(2.2rem, 3.6vw, 3.3rem);
}

.home__content::before {
  content: ""; grid-column: 2; grid-row: 1 / 4;
  width: 1px; height: 100%; background: rgba(1, 32, 67, 0.12); align-self: stretch;
}

/* display:contents su strong/b nella home — allineamento con originale Next.js */
.home strong, .home b { display: contents; }

/* Intro testi */
.home__content > h3.wp-block-heading,
.home__content > p.section-label {
  grid-column: 1; grid-row: 1; margin: 0; padding: 0;
  color: var(--color-secondary-on-light); font-family: var(--font-body);
  font-size: clamp(0.85rem, 0.95vw, 0.95rem); font-weight: 700;
  line-height: 1.15; letter-spacing: 0.03em; text-transform: uppercase;
}

.home__content > h2.wp-block-heading { grid-column: 1; grid-row: 2; margin: 10px 0; }
.home__content > h2.wp-block-heading strong { color: var(--color-secondary-on-light); font-weight: inherit; }

.home__content > ul.wp-block-list {
  grid-column: 1; grid-row: 3;
  display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none;
}

.home__content > ul.wp-block-list li {
  --home-list-icon-size: 2.35rem;
  --home-list-symbol-size: 1.35rem;
  position: relative; display: grid;
  grid-template-columns: var(--home-list-icon-size) minmax(0, 1fr);
  gap: 0.65rem; align-items: start; margin: 0; color: var(--color-text, #1f2933);
  word-break: normal; overflow-wrap: normal; min-width: 0;
}

.home__content > ul.wp-block-list li::first-line {
  color: var(--color-primary);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.1;
}

.home__content > ul.wp-block-list li::before {
  content: ""; display: block;
  width: var(--home-list-icon-size); height: var(--home-list-icon-size);
  border-radius: 0.32rem; background: var(--color-primary); line-height: 1;
}

.home__content > ul.wp-block-list li::after {
  content: ""; position: absolute;
  left: calc(var(--home-list-icon-size) / 2); top: calc(var(--home-list-icon-size) / 2);
  transform: translate(-50%, -50%);
  width: var(--home-list-symbol-size); height: var(--home-list-symbol-size);
  color: var(--color-secondary-lighter, var(--color-secondary));
  font-size: 1.55rem; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

.home__content > ul.wp-block-list li:nth-child(1)::after {
  content: "✓"; width: auto; height: auto; background: none;
}

.home__content > ul.wp-block-list li:nth-child(2)::after {
  background-color: var(--color-secondary-lighter, var(--color-secondary));
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 20h3V10H4v10Zm6 0h3V4h-3v16Zm6 0h3V7h-3v13Zm-9.6-7.6 4.2-4.2 3.1 3.1L20 5v4h-2V8.4l-4.3 4.3-3.1-3.1L7.8 14.4l-1.4-2Z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 20h3V10H4v10Zm6 0h3V4h-3v16Zm6 0h3V7h-3v13Zm-9.6-7.6 4.2-4.2 3.1 3.1L20 5v4h-2V8.4l-4.3 4.3-3.1-3.1L7.8 14.4l-1.4-2Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
}

.home__content > ul.wp-block-list li:nth-child(3)::after {
  background-color: var(--color-secondary-lighter, var(--color-secondary));
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2 4 5.2V11c0 5.1 3.4 9.9 8 11 4.6-1.1 8-5.9 8-11V5.2L12 2Zm0 2.2 6 2.4V11c0 4-2.5 7.8-6 8.9C8.5 18.8 6 15 6 11V6.6l6-2.4Zm-1.1 10.9 5-5-1.4-1.4-3.6 3.6-1.4-1.4-1.4 1.4 2.8 2.8Z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2 4 5.2V11c0 5.1 3.4 9.9 8 11 4.6-1.1 8-5.9 8-11V5.2L12 2Zm0 2.2 6 2.4V11c0 4-2.5 7.8-6 8.9C8.5 18.8 6 15 6 11V6.6l6-2.4Zm-1.1 10.9 5-5-1.4-1.4-3.6 3.6-1.4-1.4-1.4 1.4 2.8 2.8Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
}

/* Card professionisti */
.home__content > .wp-block-media-text {
  display: flex; flex-direction: column; min-width: 0; height: 100%; min-height: 0;
  align-self: stretch; margin: 0; overflow: hidden; border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(1, 32, 67, 0.12), 0 2px 8px rgba(1, 32, 67, 0.08);
}

.home__content > .wp-block-media-text:nth-of-type(1) { grid-column: 3; grid-row: 1 / 4; }
.home__content > .wp-block-media-text:nth-of-type(2) { grid-column: 4; grid-row: 1 / 4; }

.home__content .wp-block-media-text__media {
  display: flex; align-items: flex-end; justify-content: center;
  width: 100%; min-height: clamp(170px, 14vw, 215px); margin: 0;
  background: var(--color-primary);
}

.home__content .wp-block-media-text__media img {
  display: block; width: auto; max-width: 80%;
  height: clamp(165px, 13.5vw, 205px); margin: 0 auto;
  object-fit: contain; object-position: bottom center; border-radius: 0; box-shadow: none;
  opacity: 1 !important; transform: none !important; transition: none !important; will-change: auto;
}

.home__content .wp-block-media-text__content {
  min-width: 0; flex: 1;
  padding: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--color-text, #1f2933); font-size: clamp(0.82rem, 0.9vw, 0.9rem); line-height: 1.34;
}

.home__content .wp-block-media-text__content strong {
  display: block; margin-bottom: 0.38rem; color: var(--color-primary);
  font-family: var(--font-heading); font-size: clamp(1.3rem, 1.45vw, 1.55rem);
  font-weight: 900; line-height: 1.02; white-space: nowrap;
}

.home__content .wp-block-media-text__content > *:last-child { margin-bottom: 0; }

/* ============================================
   ANIMAZIONI HOME
============================================ */
.home .hero-content__container, .home .hero-content__inner { animation: home-fade-up 0.75s ease-out 0.08s both; }
.home .hero-content__title { animation: home-fade-up 0.8s ease-out 0.16s both; }
.home .hero-content__excerpt { animation: home-fade-up 0.8s ease-out 0.28s both; }
.home__content > h3.wp-block-heading { animation: home-fade-up 0.65s ease-out 0.38s both; }
.home__content > h2.wp-block-heading { animation: home-fade-up 0.75s ease-out 0.48s both; }
.home__content > ul.wp-block-list { animation: home-fade-up 0.7s ease-out 0.58s both; }
.home__content > ul.wp-block-list li:nth-child(1) { animation: home-fade-up 0.6s ease-out 0.68s both; }
.home__content > ul.wp-block-list li:nth-child(2) { animation: home-fade-up 0.6s ease-out 0.78s both; }
.home__content > ul.wp-block-list li:nth-child(3) { animation: home-fade-up 0.6s ease-out 0.88s both; }
.home__content::before { animation: home-separator-in 0.8s ease-out 0.72s both; }
.home__content > .wp-block-media-text:nth-of-type(1) { animation: home-card-in 0.75s ease-out 0.78s both; }
.home__content > .wp-block-media-text:nth-of-type(2) { animation: home-card-in 0.75s ease-out 0.92s both; }

@keyframes home-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes home-card-in {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes home-separator-in {
  from { opacity: 0; transform: scaleY(0.65); transform-origin: top; }
  to   { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (prefers-reduced-motion: reduce) {
  .home .hero-content__container, .home .hero-content__inner,
  .home .hero-content__title, .home .hero-content__excerpt,
  .home__content > h3.wp-block-heading, .home__content > h2.wp-block-heading,
  .home__content > ul.wp-block-list, .home__content > ul.wp-block-list li,
  .home__content > .wp-block-media-text, .home__content::before {
    animation: none !important; opacity: 1 !important; transform: none !important; will-change: auto;
  }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1199px) {
  .home__content { grid-template-columns: minmax(300px, 1fr) 1px minmax(260px, 1fr); }
  .home__content > .wp-block-media-text:nth-of-type(1) { grid-column: 3; grid-row: 1 / 4; }
  .home__content > .wp-block-media-text:nth-of-type(2) { grid-column: 1 / -1; grid-row: 4; margin-top: 2rem; }
  .home__content .wp-block-media-text__content strong { white-space: normal; }
}

@media (max-width: 991px) {
  .home__content { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .home__content::before { display: none; }
  .home__content > h3.wp-block-heading, .home__content > h2.wp-block-heading,
  .home__content > ul.wp-block-list,
  .home__content > .wp-block-media-text:nth-of-type(1),
  .home__content > .wp-block-media-text:nth-of-type(2) { grid-column: 1; grid-row: auto; }
  .home__content > h2.wp-block-heading { font-size: clamp(1.8rem, 7vw, 2.45rem); margin-bottom: 1.1rem; }
  .home__content > ul.wp-block-list { gap: 1rem; }
  .home__content > ul.wp-block-list li { --home-list-icon-size: 2.8rem; --home-list-symbol-size: 1.45rem; gap: 0.8rem; }
  .home__content > .wp-block-media-text { height: auto; margin: 0; }
  .home__content .wp-block-media-text__media { min-height: 245px; }
  .home__content .wp-block-media-text__media img { max-width: 86%; height: 235px; }
  .home__content .wp-block-media-text__content { text-align: left; }
  .home__content .wp-block-media-text__content strong { white-space: normal; }
}

@media (max-width: 575px) {
  .home__content { padding-block: 2.5rem; }
  .home__content > ul.wp-block-list li { --home-list-icon-size: 2.55rem; --home-list-symbol-size: 1.3rem; gap: 0.75rem; }
  .home__content .wp-block-media-text__media { min-height: 215px; }
  .home__content .wp-block-media-text__media img { height: 205px; }
}
