/**
 * Portada y secciones insertables. Mobile-first, sin JavaScript.
 */

:is(.adelaida-theme, .editor-styles-wrapper) .am-home {
  margin: 0;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-section {
  margin-block: 0;
  padding: clamp(3.5rem, 8vw, 7rem) var(--am-gutter);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-section > :where(h2, .am-section-intro) {
  margin-inline: auto;
  max-width: 760px;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-section-intro {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-section .wp-block-columns {
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 0;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-hero {
  background: var(--am-neutral);
  padding-block: clamp(2rem, 7vw, 6rem);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-hero__columns {
  min-height: min(760px, calc(100svh - 96px));
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-hero__content {
  padding-block: 1rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-hero__icon {
  aspect-ratio: 1;
  margin: 0 0 1.25rem;
  width: 3.75rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-hero__icon img {
  display: block;
  width: 100%;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-hero__title {
  font-size: clamp(2.6rem, 11vw, 5.5rem);
  letter-spacing: -0.045em;
  margin-bottom: 0.75rem;
  max-width: 11ch;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-hero__eyebrow {
  color: var(--am-muted);
  font-weight: 550;
  margin-bottom: 1.75rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-media-frame {
  margin: 0;
  overflow: hidden;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-media-frame img {
  aspect-ratio: 4 / 5;
  border-radius: var(--am-radius);
  display: block;
  object-fit: cover;
  width: 100%;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-hero__image img {
  border-radius: clamp(16px, 3vw, 32px);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-copy > * {
  max-width: 620px;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-copy > p:not(.am-kicker) {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-card-grid {
  align-items: stretch;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-card-grid > .wp-block-column {
  display: flex;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-card {
  border-radius: var(--am-radius);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-card__image,
:is(.adelaida-theme, .editor-styles-wrapper) .am-card__image img {
  width: 100%;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-card__image img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-card__body > :last-child {
  margin-bottom: 0;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-card-link {
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 0.75rem;
  text-transform: uppercase;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-card-link a {
  color: var(--am-action);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-testimonial-card {
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-testimonial-card .wp-block-quote {
  border: 0;
  margin: 0;
  padding: 0;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-avatar {
  margin: 0 auto 1rem;
  width: 76px;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-avatar img {
  aspect-ratio: 1;
  border: 3px solid var(--am-neutral);
  border-radius: 50%;
  display: block;
  object-fit: cover;
  width: 76px;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-stars {
  color: var(--am-terracotta);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  line-height: 1;
  margin-block: 0 1rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-contact-list {
  border-top: 1px solid var(--am-border);
  margin-top: 1.75rem;
  padding-top: 0.5rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-contact-list > p {
  border-bottom: 1px solid var(--am-border);
  margin: 0;
  padding-block: 1rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-contact-list a {
  overflow-wrap: anywhere;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-contact__image,
:is(.adelaida-theme, .editor-styles-wrapper) .am-contact__image img {
  height: 100%;
  min-height: clamp(260px, 70vw, 420px);
}

@media (min-width: 782px) {
  :is(.adelaida-theme, .editor-styles-wrapper) .am-hero__columns,
  :is(.adelaida-theme, .editor-styles-wrapper) .am-split {
    align-items: center;
  }

  :is(.adelaida-theme, .editor-styles-wrapper) .am-hero__content {
    padding-inline: clamp(1rem, 3vw, 3rem) 0;
  }

  :is(.adelaida-theme, .editor-styles-wrapper) .am-contact__columns {
    align-items: stretch;
  }

  :is(.adelaida-theme, .editor-styles-wrapper) .am-contact__image,
  :is(.adelaida-theme, .editor-styles-wrapper) .am-contact__image img {
    min-height: 420px;
  }

  :is(.adelaida-theme, .editor-styles-wrapper) .am-card-grid {
    gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  :is(.adelaida-theme, .editor-styles-wrapper) .am-card-grid {
    gap: 2rem;
  }
}
