/**
 * FIESC Child Theme — custom.css
 * Comprehensive layout overrides for the multisite.
 *
 * Sections:
 *   1. CSS Custom Properties (Design Tokens)
 *   2. Accessibility — Skip link, focus-visible
 *   3. Image Fallback
 *   4. Global Resets & Base
 *   5. Section Spacing Normalization
 *   6. Button Design System
 *   7. Institutional Bar
 *   8. Header / Navigation
 *   9. Banner Carousel
 *  10. News Section
 *  11. Sponsors / Patrocinadores Grid
 *  12. "Destaques" Section
 *  13. Map + Contact Form Section
 *  14. Footer (3-column layout)
 *  15. Sub-footer (logo bar)
 *  16. Responsive — Tablet (≤ 1024px)
 *  17. Responsive — Mobile (≤ 768px)
 *  18. Responsive — Small Mobile (≤ 480px)
 */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  /* Color system  */
  --fiesc-primary: hsl(220 74% 33%); /* #003087 approx                */
  --fiesc-primary-rgb: 0, 48, 135;
  --fiesc-accent: #e8271e;
  --fiesc-accent-rgb: 232, 39, 30;
  --fiesc-bg-light: #f0f0f0;
  --fiesc-bg-white: #ffffff;
  --fiesc-text: #1a1a2e;
  --fiesc-text-muted: #6b7280;
  --fiesc-border: #e5e7eb;

  /* Layout */
  --fiesc-container: 1140px;
  --fiesc-section-gap: 3rem;
  --fiesc-radius: 12px;
  --fiesc-radius-sm: 8px;

  /* Transition */
  --fiesc-transition: 0.3s ease;
}

/* ==========================================================================
   2. Accessibility — Skip Link & Focus Visible
   ========================================================================== */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100000;
  padding: 0.75rem 1.5rem;
  background: var(--fiesc-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--fiesc-radius-sm) 0;
  transition: top var(--fiesc-transition);
}

.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* Focus-visible: keyboard-only users get a prominent blue ring */
*:focus-visible {
  outline: 2px solid var(--fiesc-primary);
  outline-offset: 2px;
}

/* Remove default outline for mouse/touch interactions */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   3. Image Fallback
   ========================================================================== */

.fiesc-img-fallback {
  background-color: #f5f5f5;
  object-fit: contain !important;
  padding: 1rem;
  border-radius: var(--fiesc-radius-sm);
}

/* Ensure the empty header container has dimensions for the fallback */
.elementskit-entry-header:not(:has(a)) {
  position: relative;
  overflow: hidden;
}

/* Fallback image fills entire thumbnail container */
.elementskit-entry-header > .fiesc-img-fallback,
.eael-entry-media > .fiesc-img-fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 2rem;
  background-color: var(--fiesc-bg-light);
  box-sizing: border-box;
}

/* SVG thumbnails rendered by WP (fallback attachment) inside card containers */
.elementskit-entry-thumb img[src$=".svg"],
.elementskit-entry-header img[src$=".svg"],
.eael-entry-media img[src$=".svg"],
.eael-grid-post img[src$=".svg"] {
  object-fit: contain !important;
  background-color: var(--fiesc-bg-light);
}

/* Archive page fallback placeholder */
.fiesc-archive__card-placeholder .fiesc-img-fallback,
.fiesc-archive__card-image .fiesc-img-fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 2rem;
  background-color: var(--fiesc-bg-light);
  box-sizing: border-box;
}

/* ==========================================================================
   4. Global Resets & Base
   ========================================================================== */

body.elementor-page {
  color: var(--fiesc-text);
}

/* Remove unwanted shadows/bg from Elementor widgets globally */
.elementor-widget-wrap {
  background: transparent;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* All images: prevent layout shifts */
img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   5. Section Spacing Normalization
   ========================================================================== */

/* Ensure consistent vertical spacing between major homepage sections.
   NOTE: We do NOT globally override Elementor section padding, since designers
   have already set it per-section. We only provide a variable for sections
   that need normalization via specific selectors or Elementor class overrides. */

/* ==========================================================================
   6. Button Design System
   ========================================================================== */

/* Primary button (Elementor default) */
.elementor-button {
  border-radius: var(--fiesc-radius-sm) !important;
  transition: all var(--fiesc-transition) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

/* Hover: add underline + slight darken */
.elementor-button:hover,
.elementor-button:focus-visible {
  text-decoration: underline !important;
  filter: brightness(0.9);
}

/* Standard FIESC button colors */
.elementor-button.elementor-size-md,
.elementor-button.elementor-size-lg {
  padding: 0.75rem 1.75rem !important;
}

/* Link-style CTAs inside Elementor text */
.elementor-widget-text-editor a,
.elementor-widget-heading a {
  color: var(--fiesc-primary);
  transition:
    color var(--fiesc-transition),
    text-decoration var(--fiesc-transition);
}

.elementor-widget-text-editor a:hover,
.elementor-widget-heading a:hover {
  color: var(--fiesc-primary);
  text-decoration: underline;
}

/* ==========================================================================
   7. Institutional Bar
   ========================================================================== */

/* The top-most bar uses FIESC's primary brand color.
   Ensure correct color even on mobile and tablet. */

.elementor-page .elementor-top-section:first-child {
  /* Override only when this IS the institutional bar — handled by Elementor classes.
     The bar background should already be set; we reinforce text color and visibility. */
}

/* ==========================================================================
   8. Header / Navigation
   ========================================================================== */

/* Header row: alinhar logo e hambúrguer verticalmente no centro */
.elementor-element-8535f5a > .e-con-inner {
  align-items: center !important;
}

/* ElementsKit Nav Menu: prevent line wrapping on desktop */
.elementskit-navbar-nav {
  flex-wrap: nowrap !important;
}

.elementskit-navbar-nav > li > a {
  font-size: 15px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  white-space: nowrap;
}

/* Menu hover: blue + underline */
.elementor-nav-menu a:hover,
.elementor-nav-menu a:focus-visible,
.elementor-nav-menu .current-menu-item > a,
.elementskit-navbar-nav > li > a:hover,
.elementskit-navbar-nav > li > a:focus-visible {
  color: var(--fiesc-primary) !important;
  text-decoration: underline;
}

/* Submenu keyboard/hover visible state */
.elementor-nav-menu--dropdown li a:hover,
.elementor-nav-menu--dropdown li a:focus-visible {
  background: rgba(var(--fiesc-primary-rgb), 0.08);
  color: var(--fiesc-primary) !important;
}

/* Hamburger menu: remove shadow artifact */
.elementor-menu-toggle {
  box-shadow: none !important;
}

/* ==========================================================================
   9. Banner Carousel
   ========================================================================== */

/* Carousel images: let Elementor editor control sizing.
   Only enforce max-width as a safety net against overflow. */
.elementor-widget-slides .swiper-slide img,
.elementor-widget-image-carousel .swiper-slide img {
  max-width: 100%;
}

/* ==========================================================================
   10. News Section
   ========================================================================== */

/* Remove shadow and white background from news cards */
.elementor-posts .elementor-post,
.elementor-posts-container .elementor-post {
  box-shadow: none !important;
  background: transparent !important;
  border-radius: var(--fiesc-radius-sm);
  overflow: hidden;
}

/* News card images: let Elementor manage sizing; keep only border-radius */
.elementor-posts .elementor-post__thumbnail img {
  max-width: 100%;
  border-radius: var(--fiesc-radius-sm) var(--fiesc-radius-sm) 0 0;
}

/* News card title */
.elementor-posts .elementor-post__title {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.75rem;
}

.elementor-posts .elementor-post__title a {
  color: var(--fiesc-text);
  transition: color var(--fiesc-transition);
}

.elementor-posts .elementor-post__title a:hover {
  color: var(--fiesc-primary);
  text-decoration: underline;
}

/* Hide excerpt/meta from news cards (leave image + title only) */
.elementor-posts .elementor-post__excerpt,
.elementor-posts .elementor-post__meta-data,
.elementor-posts .elementor-post__badge,
.eael-grid-post-excerpt,
.eael-entry-meta,
.elementskit-post-footer {
  display: none !important;
}

/* Consistent gap between news cards */
.elementor-posts-container {
  gap: 1.5rem !important;
}

/* Convert EAEL float grid to flexbox for proper card height control */
.eael-post-grid.eael-post-appender {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}

article.eael-grid-post {
  float: none !important;
}

.eael-grid-post-holder-inner {
  height: auto !important;
  padding-bottom: 0 !important;
}

.eael-entry-wrapper {
  height: auto !important;
  padding-bottom: 8px !important;
  flex: 0 1 auto !important;
}

/* CTA "leia mais notícias" below news — centered, tighter spacing */
.elementor-posts ~ .elementor-widget-button,
.elementor-posts + .elementor-widget-button,
.elementor-widget-ekit-btn.sublinhado {
  margin-top: 1rem !important;
}

/* ==========================================================================
   11. Sponsors / Patrocinadores Grid
   ========================================================================== */

/* Align sponsor logos evenly, handle different heights */
.elementor-widget-image-gallery .gallery,
.elementor-image-gallery .gallery {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.elementor-widget-image-gallery .gallery-item,
.elementor-image-gallery .gallery-item {
  flex: 0 0 auto;
  max-width: 160px;
  padding: 0.5rem;
}

/* Gallery sponsor images: let Elementor manage sizing */
.elementor-widget-image-gallery .gallery-item img,
.elementor-image-gallery .gallery-item img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   12. "Destaques" Section (YouTube / Highlights)
   ========================================================================== */

/* Background: light gray, no black */
/* (This is likely already set in Elementor, but reinforce) */

/* Remove white text background from blocks inside destaques */
.elementor-widget-text-editor .elementor-text-editor > * {
  background-color: transparent !important;
}

/* Buttons in destaques: match site-wide radius */
.elementor-widget-button .elementor-button {
  border-radius: var(--fiesc-radius-sm) !important;
}

/* ==========================================================================
   13. Map + Contact Form Section
   ========================================================================== */

/* Side-by-side layout: map left, form right.
   Uses CSS Grid for clean fallback and stacking on mobile.
   Targets the Elementor section containing the map + form columns. */

/* Map iframe: rounded, no border, fill height */
.elementor-widget iframe[src*="google.com/maps"],
.elementor-widget iframe[src*="openstreetmap"] {
  border: none !important;
  border-radius: var(--fiesc-radius) !important;
  width: 100%;
  min-height: 350px;
}

/* Form fields inside map section: consistent styling */
.elementor-widget .mf-input-wrapper input,
.elementor-widget .mf-input-wrapper textarea,
.elementor-widget .mf-input-wrapper select {
  border: 1px solid var(--fiesc-border);
  border-radius: var(--fiesc-radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--fiesc-font-family, "MuseoSans", sans-serif);
  transition: border-color var(--fiesc-transition);
}

.elementor-widget .mf-input-wrapper input:focus,
.elementor-widget .mf-input-wrapper textarea:focus,
.elementor-widget .mf-input-wrapper select:focus {
  border-color: var(--fiesc-primary);
  box-shadow: 0 0 0 3px rgba(var(--fiesc-primary-rgb), 0.12);
  outline: none;
}

/* Contact info below map: consistent spacing */
.elementor-icon-list-items {
  gap: 0.5rem;
}

.elementor-icon-list-item {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   14. Footer (3-column layout)
   ========================================================================== */

/* Footer container: enforce proper column layout */
.site-footer .elementor-section .elementor-container,
.site-footer .e-con.e-parent {
  gap: 2rem;
}

/* Remove visual noise: no shadows in footer */
.site-footer .elementor-widget-wrap,
.site-footer .elementor-column {
  box-shadow: none !important;
}

/* Footer headings: consistent size */
.site-footer .elementor-widget-heading .elementor-heading-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: inherit;
}

/* Footer text: smaller, readable */
.site-footer .elementor-widget-text-editor {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Footer navigation links: spacing between list items */
.site-footer .elementor-nav-menu .menu-item {
  margin-bottom: 0.5rem;
}

.site-footer .elementor-nav-menu a {
  font-size: 0.875rem;
  transition: color var(--fiesc-transition);
}

.site-footer .elementor-nav-menu a:hover {
  color: var(--fiesc-primary) !important;
  text-decoration: underline;
}

/* Social icons: LEFT aligned (not centered) per evaluation doc */
.site-footer .elementor-widget-icon-list {
  text-align: left !important;
}

.site-footer .elementor-icon-list-items {
  justify-content: flex-start !important;
}

.site-footer .elementor-icon-list-item {
  display: inline-flex;
  margin-right: 0.75rem;
}

/* CTA button in footer: align left, same style as rest of site */
.site-footer .elementor-button {
  border-radius: var(--fiesc-radius-sm) !important;
}

/* Indústria News CTA alignment */
.site-footer .elementor-widget-button {
  text-align: left;
}

/* ==========================================================================
   15. Sub-footer (Logo bar under the main footer)
   ========================================================================== */

/* Flex layout: syndicato logo left, FIESC logo right, vertically centered */
.site-footer .elementor-section:last-child .elementor-container,
.site-footer .e-con.e-parent:last-child {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Sub-footer logos: keep original size, don't constrain */

/* Fallback SVG: respect the original image dimensions */
img.fiesc-img-fallback {
  width: auto !important;
  height: auto !important;
  min-width: 200px;
  max-height: 80px;
  object-fit: contain;
}

/* ==========================================================================
   15b. Archive / News Listing Page
   ========================================================================== */

.fiesc-archive {
  max-width: var(--fiesc-container);
  margin: 0 auto;
  padding: var(--fiesc-section-gap) 1rem;
}

.fiesc-archive__header {
  margin-bottom: 2rem;
}

.fiesc-archive__title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--fiesc-text);
  border-bottom: 3px solid var(--fiesc-primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* 3-column grid on desktop */
.fiesc-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card */
.fiesc-archive__card {
  border-radius: var(--fiesc-radius-sm);
  overflow: hidden;
  background: transparent;
  transition:
    transform var(--fiesc-transition),
    box-shadow var(--fiesc-transition);
  list-style: none;
  margin: 0;
  padding: 0;
}

.fiesc-archive__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.fiesc-archive__card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Card image: 16:9 */
.fiesc-archive__card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--fiesc-bg-light);
}

.fiesc-archive__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--fiesc-transition);
}

.fiesc-archive__card:hover .fiesc-archive__card-image img {
  transform: scale(1.03);
}

/* Placeholder when no thumbnail */
.fiesc-archive__card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fiesc-bg-light);
}

.fiesc-archive__card-placeholder img {
  width: 120px;
  height: auto;
  opacity: 0.4;
}

/* Card title: visible, full, no truncation */
.fiesc-archive__card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fiesc-text);
  padding: 0.75rem 0.25rem;
  margin: 0;
  transition: color var(--fiesc-transition);
}

.fiesc-archive__card:hover .fiesc-archive__card-title {
  color: var(--fiesc-primary);
}

/* Empty state */
.fiesc-archive__empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--fiesc-text-muted);
}

/* Pagination */
.fiesc-pagination,
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 1rem 0;
}

.fiesc-pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--fiesc-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fiesc-text);
  background: var(--fiesc-bg-white);
  border: 1px solid var(--fiesc-border);
  text-decoration: none;
  transition: all var(--fiesc-transition);
}

.fiesc-pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
  background: var(--fiesc-primary);
  color: #fff;
  border-color: var(--fiesc-primary);
}

.fiesc-pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--fiesc-primary);
  color: #fff;
  border-color: var(--fiesc-primary);
}

/* ElementsKit Blog Posts — client-side pagination */
.fiesc-ekit-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.fiesc-ekit-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--fiesc-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fiesc-text);
  background: var(--fiesc-bg-white);
  border: 1px solid var(--fiesc-border);
  cursor: pointer;
  transition: all var(--fiesc-transition);
}

.fiesc-ekit-pagination__btn:hover:not(:disabled) {
  background: var(--fiesc-primary);
  color: #fff;
  border-color: var(--fiesc-primary);
}

.fiesc-ekit-pagination__current {
  background: var(--fiesc-primary) !important;
  color: #fff !important;
  border-color: var(--fiesc-primary) !important;
}

.fiesc-ekit-pagination__disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fiesc-ekit-pagination__dots {
  padding: 0 0.25rem;
  color: var(--fiesc-text-muted);
}

/* ==========================================================================
   16. Responsive — Tablet (≤ 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --fiesc-section-gap: 2.5rem;
  }

  /* Allow Elementor flex containers to wrap on tablet */
  .e-con-boxed.e-parent > .e-con-inner {
    flex-wrap: wrap !important;
  }

  /* Destaques section (4 cards): force 2-column on tablet */
  .elementor-element-b13eea6.e-con-boxed.e-parent
    > .e-con-inner
    > .e-con.e-child {
    flex: 1 1 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    min-width: 0 !important;
  }

  /* Header row: EXCEPTION — keep side-by-side on tablet */
  .elementor-element-8535f5a.e-con-boxed.e-parent > .e-con-inner {
    flex-wrap: nowrap !important;
  }

  /* Sponsors: 4 per row */
  .elementor-widget-image-gallery .gallery-item,
  .elementor-image-gallery .gallery-item {
    max-width: 140px;
  }

  /* Archive grid: 2 columns on tablet */
  .fiesc-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   17. Responsive — Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --fiesc-section-gap: 2rem;
  }

  /* Stack footer columns vertically */
  .site-footer .elementor-section .elementor-container,
  .site-footer .e-con.e-parent {
    flex-direction: column;
  }

  /* Footer social icons: still left aligned */
  .site-footer .elementor-widget-icon-list {
    text-align: left !important;
  }

  /* Sub-footer: stack logos vertically, center */
  .site-footer .elementor-section:last-child .elementor-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Banner carousel: margins on sides */
  .elementor-widget-slides .swiper-container,
  .elementor-widget-slides .swiper {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    border-radius: var(--fiesc-radius-sm);
    overflow: hidden;
  }

  /* News cards: single column 
  .elementor-posts-container {
    grid-template-columns: 1fr !important;
  }
*/
  /* EAEL Post Grid: single column on mobile */
  .eael-post-grid-container,
  .eael-post-grid .eael-post-grid-container {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  /* ElementsKit featured post card: stack vertically on mobile */
  .elementskit-post-image-card {
    flex-direction: column !important;
  }
  .elementskit-post-image-card .elementskit-entry-thumb,
  .elementskit-post-image-card .elementskit-post-body {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  /* Elementor Flexbox Container: force full-width stacking on mobile.
     All children go 100% width (single column). */
  .e-con-boxed.e-parent > .e-con-inner {
    flex-wrap: wrap !important;
  }
  .e-con-boxed.e-parent > .e-con-inner > .e-con.e-child {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Also handle e-con-full parents (non-boxed) */
  .e-con-full.e-parent > .e-con.e-child {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Destaques section (4 cards): keep 2-column on iPad Mini / large mobile */
  .elementor-element-b13eea6.e-con-boxed.e-parent
    > .e-con-inner
    > .e-con.e-child {
    flex: 1 1 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
  }

  /* Ensure images inside Elementor containers never exceed container width */
  .e-con .elementor-widget-image img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Header row: EXCEPTION — keep logo and hamburger side-by-side on mobile. */
  .elementor-element-8535f5a.e-con-boxed.e-con.e-parent {
    --flex-direction: row !important;
  }
  .elementor-element-8535f5a.e-con-boxed.e-parent > .e-con-inner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .elementor-element-8535f5a.e-con-boxed.e-parent
    > .e-con-inner
    > .e-con.e-child {
    flex: 0 1 auto !important;
    max-width: none !important;
    width: auto !important;
  }
  /* Logo: constrain width so hamburger fits beside it */
  #logo-container img {
    max-height: 60px !important;
    width: auto !important;
  }
  /* Hamburger: use flex instead of float for proper vertical centering */
  .elementskit-menu-hamburger {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Sponsors: 3 per row */
  .elementor-widget-image-gallery .gallery-item,
  .elementor-image-gallery .gallery-item {
    max-width: 100px;
  }

  /* Map + form section: stack */
  .elementor-section .elementor-container {
    flex-direction: column;
  }

  /* Archive grid: single column on mobile */
  .fiesc-archive__grid {
    grid-template-columns: 1fr;
  }

  /* Map iframe: full width when stacked */
  .elementor-widget iframe[src*="google.com/maps"],
  .elementor-widget iframe[src*="openstreetmap"] {
    min-height: 280px;
  }

  /* Reduce carousel spacing */
  .elementor-widget-slides {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Mobile menu: prevent left overlay on content */
  .elementor-nav-menu--dropdown {
    width: 100% !important;
    left: 0 !important;
  }
}

/* ==========================================================================
   18. Responsive — Small Mobile (≤ 480px)
   ========================================================================== */

@media (max-width: 480px) {
  :root {
    --fiesc-section-gap: 1.5rem;
  }

  /* Force single column on small mobile — override 2-column Destaques too */
  .e-con-boxed.e-parent > .e-con-inner > .e-con.e-child,
  .e-con-full.e-parent > .e-con.e-child {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .elementor-element-b13eea6.e-con-boxed.e-parent
    > .e-con-inner
    > .e-con.e-child {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Smaller text in footer */
  .site-footer .elementor-widget-text-editor {
    font-size: 0.8125rem;
  }

  /* Sponsors: 2 per row */
  .elementor-widget-image-gallery .gallery-item,
  .elementor-image-gallery .gallery-item {
    max-width: 80px;
  }

  /* Tighter button padding */
  .elementor-button.elementor-size-md,
  .elementor-button.elementor-size-lg {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
  }

  /* Archive card title: slightly smaller */
  .fiesc-archive__card-title {
    font-size: 0.9375rem;
  }
}

/* ==========================================================================
   19. Responsive menu — submenu indicator arrows
   ========================================================================== */

/* ElementsKit sets max-width/max-height: 42px on SVG arrows at ≤1024px,
   which makes them disproportionately large in the mobile/tablet menu.
   Override to a compact, proportional size. */
@media (max-width: 1024px) {
  .elementskit-navbar-nav-default
    .elementskit-dropdown-has
    > a
    svg.elementskit-submenu-indicator {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex-shrink: 0;
  }

  /* Remove the extra horizontal padding that shifts the arrow on mobile */
  .elementskit-navbar-nav-default
    .elementskit-dropdown-has
    > a
    .elementskit-submenu-indicator {
    padding: 0 4px !important;
  }
}

.tec-event-meta-col{
	display:none;
}
.tec-event-body{
	display:block;
}



