/* ==========================================================================
   Dimagro — estilos base y componentes
   Replica visual de src/routes + src/components/site del proyecto Lovable.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* Elementor / editor content default link colour inside prose */
.dimagro-content a:not(.btn) { color: var(--primary-dark); text-decoration: underline; }

/* ---------- Prose (páginas legales / texto largo) ---------- */
.dimagro-prose { max-width: 46rem; color: var(--foreground); }
.dimagro-prose h2 { font-size: 1.375rem; margin-top: 2.25rem; margin-bottom: 0.75rem; }
.dimagro-prose h2:first-child { margin-top: 0; }
.dimagro-prose h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.dimagro-prose p { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.7; }
.dimagro-prose p:first-child { margin-top: 0; }
.dimagro-prose ul, .dimagro-prose ol { margin-top: 1rem; padding-left: 1.25rem; list-style: disc; color: var(--muted-foreground); line-height: 1.7; }
.dimagro-prose ol { list-style: decimal; }
.dimagro-prose li { margin-top: 0.4rem; }
.dimagro-prose strong { color: var(--foreground); font-weight: 600; }
.dimagro-prose a { color: var(--primary-dark); text-decoration: underline; }
.dimagro-prose .dimagro-updated { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted-foreground); }

.dimagro-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.dimagro-section { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) {
  .dimagro-section { padding-top: 5rem; padding-bottom: 5rem; }
}
.dimagro-section--sm { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.dimagro-section--muted { background-color: var(--muted); }
.dimagro-section--secondary { background-color: var(--secondary); }

.dimagro-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.dimagro-h1 { font-size: 2.25rem; line-height: 1.15; }
.dimagro-h2 { font-size: 1.875rem; }
.dimagro-h3 { font-size: 1.25rem; font-weight: 600; }
@media (min-width: 768px) {
  .dimagro-h1 { font-size: 3.75rem; }
  .dimagro-h2 { font-size: 2.25rem; }
}
.dimagro-lede {
  margin-top: 1rem;
  max-width: 42rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  padding: 0.55rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn--hero { background: var(--gradient-green); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn--hero:hover { filter: brightness(1.1); color: var(--primary-foreground); }
.btn--outline { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.btn--outline:hover { background: var(--accent); }
.btn--on-dark { background: var(--background); color: var(--primary-dark); box-shadow: var(--shadow-soft); }
.btn--on-dark:hover { background: var(--secondary); }
.btn--sm { padding: 0.4rem 1.1rem; font-size: 0.8rem; }
.btn--lg { padding: 0.75rem 2rem; font-size: 0.95rem; }
.btn--xl { padding: 0.9rem 2.5rem; font-size: 1rem; }

/* ---------- Header ---------- */
.dimagro-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.dimagro-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
  background-color: rgba(255, 255, 255, 0.96);
}
.dimagro-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dimagro-header__brand img, .dimagro-header__brand .custom-logo { height: 2.5rem; width: auto; }
.dimagro-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--primary-dark);
}
.dimagro-logo-text span {
  font-weight: 500;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.dimagro-footer__brand .dimagro-logo-text { font-size: 1.5rem; }
.dimagro-nav { display: none; }
.dimagro-nav__list { display: flex; align-items: center; gap: 0.25rem; }
.dimagro-nav__list li a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(22, 29, 20, 0.8);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dimagro-nav__list li a:hover { background: var(--accent); color: var(--accent-foreground); }
.dimagro-nav__list li.current-menu-item > a,
.dimagro-nav__list li.current_page_item > a { color: var(--primary-dark); }

.dimagro-header__actions { display: none; align-items: center; gap: 1rem; }
.dimagro-header__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--primary-dark); }
.dimagro-header__phone .dimagro-icon { width: 1rem; height: 1rem; }

.dimagro-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
}
.dimagro-header__toggle .dimagro-icon { color: var(--foreground); }

.dimagro-mobile-nav { border-top: 1px solid var(--border); background: var(--background); }
.dimagro-mobile-nav[hidden] { display: none; }
.dimagro-mobile-nav nav { max-width: var(--container-max); margin: 0 auto; padding: 0.75rem 1rem; display: flex; flex-direction: column; }
.dimagro-mobile-nav__list li a { display: block; padding: 0.75rem; border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.dimagro-mobile-nav__list li a:hover { background: var(--accent); }
.dimagro-mobile-nav__cta { margin-top: 0.75rem; width: 100%; }

@media (min-width: 1024px) {
  .dimagro-nav { display: flex; }
  .dimagro-header__actions { display: flex; }
  .dimagro-header__toggle { display: none; }
  .dimagro-mobile-nav { display: none !important; }
}

/* ---------- Footer ---------- */
.dimagro-footer { border-top: 1px solid var(--border); background: rgba(234, 241, 228, 0.6); }
.dimagro-footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3.5rem 1rem;
  display: grid;
  gap: 2.5rem;
}
.dimagro-footer__brand p { margin-top: 1rem; max-width: 28rem; font-size: 0.9rem; line-height: 1.6; color: var(--muted-foreground); }
.dimagro-footer__phone { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--primary-dark); }
.dimagro-footer__social { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.dimagro-social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  border: 1px solid var(--border); background: var(--background); color: var(--primary-dark);
}
.dimagro-social-btn:hover { background: var(--accent); }
.dimagro-social-btn .dimagro-icon { width: 1rem; height: 1rem; }
.dimagro-footer__col h2 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.dimagro-footer__col ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); }
.dimagro-footer__col ul a:hover { color: var(--primary-dark); }
.dimagro-footer__locations li { display: flex; flex-direction: column; gap: 0.1rem; }
.dimagro-footer__loc-title { font-weight: 500; color: var(--foreground); }
.dimagro-footer__bottom { border-top: 1px solid var(--border); }
.dimagro-footer__bottom > * { max-width: var(--container-max); margin: 0 auto; }
.dimagro-footer__bottom {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.25rem 1rem; font-size: 0.75rem; color: var(--muted-foreground);
}
.dimagro-footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.dimagro-footer__legal a:hover { color: var(--primary-dark); }

@media (min-width: 768px) {
  .dimagro-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .dimagro-footer__brand { grid-column: span 2; }
  .dimagro-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Floating buttons ---------- */
.dimagro-floating { position: fixed; bottom: 1.25rem; right: 1rem; z-index: 50; display: flex; flex-direction: column; gap: 0.75rem; }
.dimagro-floating__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 9999px; box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.dimagro-floating__btn:hover { transform: scale(1.06); }
.dimagro-floating__btn--whatsapp { background: var(--gradient-green); color: var(--primary-foreground); }
.dimagro-floating__btn--phone { background: var(--background); border: 1px solid var(--border); color: var(--primary-dark); }
.dimagro-floating__btn .dimagro-icon { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) {
  .dimagro-floating__btn--phone { display: none; }
}

/* ---------- Hero ---------- */
.dimagro-hero { position: relative; overflow: hidden; background: rgba(234, 241, 228, 0.5); }
.dimagro-hero__grid { display: grid; gap: 2.5rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .dimagro-hero__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .dimagro-hero__grid { padding-top: 6rem; padding-bottom: 6rem; } }
.dimagro-hero h1 { margin-top: 1rem; }
.dimagro-hero h1 span { display: block; color: var(--primary-dark); }
.dimagro-hero__checks { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dimagro-hero__checks li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; font-weight: 500; }
.dimagro-hero__check-dot {
  margin-top: 0.15rem; display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; border-radius: 9999px; background: var(--primary); flex-shrink: 0;
}
.dimagro-hero__check-dot .dimagro-icon { width: 0.75rem; height: 0.75rem; color: var(--primary-foreground); }
.dimagro-hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dimagro-hero__image img { height: 22rem; width: 100%; object-fit: cover; border-radius: 1.5rem; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .dimagro-hero__image img { height: 30rem; } }

/* ---------- Grids & cards ---------- */
.dimagro-grid { display: grid; gap: 1.5rem; }
.dimagro-grid--2 { grid-template-columns: 1fr; }
.dimagro-grid--3 { grid-template-columns: 1fr; }
.dimagro-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .dimagro-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .dimagro-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .dimagro-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dimagro-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .dimagro-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.dimagro-card {
  height: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease;
}
.dimagro-card:hover { box-shadow: var(--shadow-card); }
.dimagro-card--pad { padding: 1.5rem; }
.dimagro-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: var(--accent);
}
.dimagro-card__icon .dimagro-icon { width: 1.25rem; height: 1.25rem; color: var(--primary-dark); }
.dimagro-card h3 { margin-top: 1rem; }
.dimagro-card p { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.6; color: var(--muted-foreground); }

.dimagro-media-card { overflow: hidden; display: flex; flex-direction: column; }
.dimagro-media-card img { height: 11rem; width: 100%; object-fit: cover; }
.dimagro-media-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.dimagro-media-card__body p { flex: 1; }
.dimagro-media-card__link { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--primary-dark); }
.dimagro-media-card__link .dimagro-icon { width: 1rem; height: 1rem; }

/* ---------- Experience / alternating blocks ---------- */
.dimagro-block { display: grid; gap: 2rem; align-items: center; }
.dimagro-block + .dimagro-block { margin-top: 3.5rem; }
@media (min-width: 768px) { .dimagro-block { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.dimagro-block img { height: 18rem; width: 100%; object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow-card); }
.dimagro-block--reverse img { order: 2; }
.dimagro-block h2, .dimagro-block h3 { font-size: 1.5rem; }
@media (min-width: 768px) { .dimagro-block h2, .dimagro-block h3 { font-size: 1.875rem; } }
.dimagro-block p { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.7; }

/* ---------- Phone banner ---------- */
.dimagro-phone-banner {
  position: relative; isolation: isolate; overflow: hidden;
  background-size: cover; background-position: center;
}
.dimagro-phone-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-color: rgba(18, 103, 20, 0.75);
}
.dimagro-phone-banner__inner { position: relative; z-index: 1; max-width: var(--container-max); margin: 0 auto; padding: 5rem 1rem; text-align: center; }
.dimagro-phone-banner p { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(251, 252, 249, 0.8); }
.dimagro-phone-banner a { margin-top: 1rem; display: inline-flex; align-items: center; gap: 1rem; font-size: 2.25rem; font-weight: 700; color: var(--primary-foreground); }
.dimagro-phone-banner .dimagro-icon { width: 2rem; height: 2rem; }
@media (min-width: 768px) {
  .dimagro-phone-banner a { font-size: 3.75rem; }
  .dimagro-phone-banner .dimagro-icon { width: 3rem; height: 3rem; }
}

/* ---------- CTA gradient ---------- */
.dimagro-cta { background: var(--gradient-green); }
.dimagro-cta__inner {
  max-width: var(--container-max); margin: 0 auto; padding: 4rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center;
}
.dimagro-cta h2 { max-width: 40rem; color: var(--primary-foreground); }
.dimagro-cta p { max-width: 34rem; color: rgba(251, 252, 249, 0.85); }

/* ---------- Map embed ---------- */
.dimagro-map { margin-top: 2rem; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.dimagro-map iframe { width: 100%; height: 20rem; border: 0; display: block; }

/* ---------- Brand pills ---------- */
.dimagro-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.5rem; }
.dimagro-pill {
  border: 1px solid var(--border); background: var(--card); border-radius: 9999px;
  padding: 0.5rem 1.25rem; font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-soft);
}

/* ---------- Contact page ---------- */
.dimagro-contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .dimagro-contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.dimagro-form-card { border: 1px solid var(--border); background: var(--card); border-radius: 1rem; box-shadow: var(--shadow-card); padding: 1.5rem; }
@media (min-width: 768px) { .dimagro-form-card { padding: 2rem; } }
.dimagro-form-grid { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .dimagro-form-grid { grid-template-columns: repeat(2, 1fr); } }
.dimagro-form-grid .full { grid-column: 1 / -1; }
.dimagro-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.dimagro-field input, .dimagro-field textarea,
.wpforms-container input[type=text], .wpforms-container input[type=email], .wpforms-container input[type=tel], .wpforms-container textarea {
  width: 100%; border: 1px solid var(--input); border-radius: 0.5rem; padding: 0.55rem 0.75rem;
  font-family: inherit; font-size: 0.9rem; background: var(--background); color: var(--foreground);
}
.dimagro-field input:focus, .dimagro-field textarea:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.dimagro-contact-side .dimagro-card { height: auto; padding: 1.5rem; margin-bottom: 1.5rem; }
.dimagro-contact-side h2 { font-size: 1.125rem; font-weight: 600; }
.dimagro-contact-phone { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); }
.dimagro-contact-email { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); }
.dimagro-contact-locations { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.9rem; }
.dimagro-contact-locations li { display: flex; gap: 0.75rem; align-items: flex-start; }
.dimagro-contact-locations .dimagro-icon { width: 1rem; height: 1rem; color: var(--primary); margin-top: 0.2rem; }

/* WPForms visual alignment with the design system (provisional form) */
.wpforms-container-full .wpforms-form .wpforms-field-label { color: var(--foreground); font-weight: 500; }
.wpforms-container-full .wpforms-submit-container button,
.wpforms-container-full .wpforms-submit {
  background: var(--gradient-green) !important;
  border-radius: 9999px !important;
  border: none !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
}

/* ---------- Utility ---------- */
.dimagro-text-center { text-align: center; }
.dimagro-max-w-2 { max-width: 42rem; }
.dimagro-mt-3 { margin-top: 0.75rem; }
.dimagro-mt-10 { margin-top: 2.5rem; }

/* ---------- Blog: listado (archive) ---------- */
.dimagro-blog-card__category {
  display: inline-flex; align-self: flex-start; margin-bottom: 0.5rem;
  border-radius: 9999px; background: var(--accent); color: var(--primary-dark);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 0.25rem 0.75rem;
}
.dimagro-blog-card__date { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.dimagro-blog-card h3 { font-size: 1.05rem; line-height: 1.4; margin-top: 0.4rem; }
.dimagro-blog-card h3 a { color: var(--foreground); text-decoration: none; }
.dimagro-blog-card h3 a:hover { color: var(--primary-dark); }
.dimagro-blog-card p { font-size: 0.9rem; }
.dimagro-blog-empty { text-align: center; color: var(--muted-foreground); padding: 3rem 0; }

.dimagro-pagination { display: flex; justify-content: center; gap: 0.75rem; margin-top: 3rem; }
.dimagro-pagination a, .dimagro-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
  border: 1px solid var(--border); border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500;
  color: var(--foreground); text-decoration: none; background: var(--card);
}
.dimagro-pagination a:hover { border-color: var(--primary); color: var(--primary-dark); }
.dimagro-pagination .current { background: var(--gradient-green); color: #fff; border-color: transparent; }

/* ---------- Blog: entrada individual (single) ---------- */
.dimagro-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.dimagro-post-meta__category {
  display: inline-flex; border-radius: 9999px; background: var(--accent); color: var(--primary-dark);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 0.3rem 0.85rem;
}
.dimagro-post-meta__date { font-size: 0.85rem; color: var(--muted-foreground); }
.dimagro-post-featured { margin: 0 auto 2.5rem; max-width: 56rem; padding: 0 1.5rem; }
.dimagro-post-featured img { width: 100%; height: auto; max-height: 26rem; object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow-card); }
/* Base: ningún <img> del contenido antiguo debe desbordar ni reservar su
   ancho/alto original en pixeles (muchos posts antiguos traían atributos
   width/height sueltos). Las reglas más específicas de abajo lo afinan. */
.dimagro-prose img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.dimagro-prose .dimagro-post-img { display: block; width: 100%; border-radius: 0.75rem; margin: 1.5rem 0; }
.dimagro-prose .dimagro-post-figure { margin: 1.5rem 0; }
.dimagro-prose .dimagro-post-figure img { width: 100%; border-radius: 0.75rem; }
.dimagro-prose .dimagro-post-figure figcaption { margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted-foreground); text-align: center; }
.dimagro-prose img.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; max-width: 45%; border-radius: 0.5rem; }
.dimagro-prose img.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; max-width: 45%; border-radius: 0.5rem; }
.dimagro-prose img.aligncenter { display: block; margin: 1.5rem auto; }
.dimagro-post-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.dimagro-post-gallery img { width: 100%; height: 8rem; object-fit: cover; border-radius: 0.5rem; }
.dimagro-post-back { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2.5rem; font-weight: 600; color: var(--primary-dark); text-decoration: none; }
.dimagro-post-back:hover { text-decoration: underline; }
