.elementor-170 .elementor-element.elementor-element-cbd16b9{--display:flex;}/* Start custom CSS for html, class: .elementor-element-78e2239 *//* ============================================
   ELENA FERRARI — COLLABORAZIONI CSS
   ============================================
   Autosufficiente. Il global.css fornisce solo
   tokens, reset, header, footer e WhatsApp.
   ============================================ */


/* ====== UTILITIES DI PAGINA ====== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section       { padding-block: var(--space-20); }
.section--lg   { padding-block: var(--space-32); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-weight: 700;
}
h2 { font-size: var(--text-4xl); margin-bottom: var(--space-6); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }

p { margin-bottom: var(--space-4); max-width: 65ch; }
p:last-child { margin-bottom: 0; }

.pre-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: all var(--transition-base) var(--ease-out-quart);
  min-height: 48px;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--primary { background: var(--color-primary); color: var(--color-text-light); }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost-light { background: transparent; color: var(--color-text-light); border: 1.5px solid rgba(255,255,255,0.3); }
.btn--ghost-light:hover { border-color: var(--color-text-light); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn--lg { padding: var(--space-5) var(--space-10); font-size: var(--text-base); min-height: 56px; }


/* ====== ANIMAZIONI BASE ====== */

main [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
main [data-animate].is-visible {
  opacity: 1;
  transform: none;
}


/* ============================================
   HERO
   ============================================ */

.hero-internal {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-10);
  background:
    linear-gradient(175deg, rgba(245, 248, 246, 0.62) 0%, rgba(245, 248, 246, 0.54) 100%),
    url("https://elenaferrarinutrizionista.it/wp-content/uploads/2026/04/pexels-pavel-danilyuk-6340698-scaled.jpg") center center / cover no-repeat;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
}
.hero-internal.is-loaded { opacity: 1; }

.hero-internal .container { position: relative; z-index: 1; }
.hero-internal .pre-heading { text-align: center; }

.hero-internal__title {
  font-size: var(--text-5xl);
  text-align: center;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.hero-internal__tagline {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-primary);
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.hero-internal__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
  line-height: 1.65;
}

[data-hero-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.hero-internal.is-loaded [data-hero-anim] {
  opacity: 1;
  transform: none;
}
.hero-internal.is-loaded [data-hero-anim]:nth-child(1) { transition-delay: 0.1s; }
.hero-internal.is-loaded [data-hero-anim]:nth-child(2) { transition-delay: 0.22s; }
.hero-internal.is-loaded [data-hero-anim]:nth-child(3) { transition-delay: 0.34s; }
.hero-internal.is-loaded [data-hero-anim]:nth-child(4) { transition-delay: 0.46s; }


/* ============================================
   COLLABORAZIONI GRID + CARDS
   ============================================ */

.partners {
  background: var(--color-bg);
  padding-top: var(--space-12);
}

.partners__intro {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.partners__quote {
  max-width: none;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.partners__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12);
  color: var(--color-text-muted);
}

.collab-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base) var(--ease-out-quart),
              transform var(--transition-base) var(--ease-out-quart),
              border-color var(--transition-base);
}
.collab-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.collab-card.is-touch-hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.collab-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collab-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
}

.collab-card__thumb--placeholder span {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.collab-card__logo-img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.collab-card__logo-img--small {
  width: 72%;
  height: 72%;
}

.collab-card__logo-img--finessi {
  width: 86%;
  height: 86%;
}

.collab-card__logo-img--dinamic {
  width: 56%;
  height: 56%;
}
.collab-card:hover .collab-card__logo-img {
  transform: scale(1.05);
}

.collab-card.is-touch-hover .collab-card__logo-img {
  transform: scale(1.05);
}

.collab-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary);
  color: var(--color-text-light);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.collab-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  flex: 1;
}

.collab-card__name {
  font-size: var(--text-xl);
  margin-bottom: 0;
}

.collab-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.collab-card__type {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: var(--space-1);
}

.collab-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  max-width: none;
}

.collab-card__address {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-secondary);
  max-width: none;
}

.collab-card__benefit {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-primary-light);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  max-width: none;
}

.collab-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-2);
  transition: gap var(--transition-fast), color var(--transition-fast);
}
.collab-card__link:hover {
  gap: var(--space-2);
  color: var(--color-primary-hover);
}


/* ============================================
   PROMOZIONI GRID + CARDS
   ============================================ */

.promos {
  background: var(--color-bg-alt);
}

.promos__intro {
  color: var(--color-text-muted);
}

.promos__empty {
  text-align: center;
  padding: var(--space-12) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.promos__empty--static {
  max-width: none;
  font-size: var(--text-lg);
  color: var(--color-secondary);
  font-weight: 600;
}

.promos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.promo-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--color-primary);
  transition: box-shadow var(--transition-base) var(--ease-out-quart),
              transform var(--transition-base) var(--ease-out-quart),
              border-color var(--transition-base);
}
.promo-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.promo-card.is-touch-hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.promo-card:active {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.promo-card__image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
}
.promo-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card__link-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
}

.promo-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  flex: 1;
}

.promo-card__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  background: var(--color-secondary);
  color: var(--color-text-light);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  width: fit-content;
  letter-spacing: 0.02em;
}

.promo-card__title {
  font-size: var(--text-xl);
  margin-bottom: 0;
}

.promo-card__partner {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}
.promo-card__partner strong {
  color: var(--color-primary);
}

.promo-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
  /* clamp: la card resta della stessa altezza anche con descrizioni lunghe */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* riga periodo di validità (data inizio → scadenza), ancorata in basso */
.promo-card__dates {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-secondary);
  font-weight: 600;
  max-width: none;
  margin-top: auto;
  padding-top: var(--space-3);
}
.promo-card__dates svg { flex-shrink: 0; opacity: 0.9; }


/* ============================================
   SKELETON LOADING
   ============================================ */

@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.collab-card--skeleton,
.promo-card--skeleton {
  pointer-events: none;
}

.skeleton-box {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-border-light) 50%, var(--color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton-line {
  height: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-border-light) 50%, var(--color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-line--sm { width: 40%; }
.skeleton-line--md { width: 70%; }
.skeleton-line--lg { width: 90%; height: 18px; }


/* ============================================
   CTA FINALE
   ============================================ */

.cta-finale {
  background: var(--color-bg-dark);
  padding-block: var(--space-32);
  text-align: center;
}

.cta-finale__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.cta-finale__title {
  font-size: var(--text-3xl);
  color: var(--color-text-light);
  margin-bottom: 0;
}

.cta-finale__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-on-dark);
  opacity: 0.75;
  max-width: none;
}

.cta-finale__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-4);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .partners__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .promos__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

@media (max-width: 768px) {
  .section { padding-block: var(--space-16); }
  .section--lg { padding-block: var(--space-20); }

  .hero-internal {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-10));
    padding-bottom: var(--space-12);
  }
  .hero-internal__title { font-size: var(--text-4xl); }

  .partners__grid { grid-template-columns: 1fr; }
  .promos__grid { grid-template-columns: 1fr; }

  .cta-finale { padding-block: var(--space-20); }
  .cta-finale__actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-finale__actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-internal__title { font-size: var(--text-3xl); }
  .hero-internal__subtitle { font-size: var(--text-base); }

  .collab-card__body { padding: var(--space-5); }
  .promo-card__body { padding: var(--space-5); }

  .cta-finale__title { font-size: var(--text-2xl); }
}/* End custom CSS */