.sponsor-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 250px;
    height: 236px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 1050;
}

.sponsor-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--red-main, #bb1818);
    color: #fff;
    height: 36px;
}

.sponsor-banner-title {
    font-weight: 700;
    text-transform: uppercase;
}

.sponsor-banner-close {
    background: none;
    border: none;
    color: #fff;
    line-height: 1;
    cursor: pointer;
}

.sponsor-banner-close:hover {
    opacity: 1;
}

.sponsor-carousel,
.sponsor-carousel .carousel-inner,
.sponsor-carousel .carousel-item {
    height: 200px; 
}

.sponsor-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sponsor-carousel-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: var(--bg-soft, #f1f1f1);
}

@media (max-width: 480px) {
    .sponsor-banner {
        width: 200px;
        height: 189px;
        bottom: 1rem;
    }
    .sponsor-banner-header {
        height: 29px;
    }
    .sponsor-carousel,
    .sponsor-carousel .carousel-inner,
    .sponsor-carousel .carousel-item {
        height: 160px;
    }
}

/* GERAL */

html, body {
  height: 100%;
  margin: 0;
}

.site-body {
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  padding-bottom: 4rem;
}


/* TOP BAR */

.top-bar {
  background: #2f343b;
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.4rem 0;
}

.top-bar-left span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-right a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  text-decoration: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.top-bar-right a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.top-bar i {
  font-size: 1rem;
  line-height: 1;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  background: var(--white);
  transition: box-shadow 0.2s ease;
}

.navbar.scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.ham-icon {
  width: 40px;
  height: 24px;
  position: relative;
  transition: all 0.5s ease-in-out;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.ham-icon:focus {
  outline: none;
  box-shadow: none;
}

.ham-line {
  width: 100%;
  height: 4px;
  background-color: var(--red-main);
  display: block;
  position: absolute;
  left: 0;
  transition: all 0.25s ease-in-out;
  border-radius: 2px;
}

.ham-line:nth-child(1) {
  top: 0;
}

.ham-line:nth-child(2) {
  top: 10px;
}

.ham-line:nth-child(3) {
  top: 20px;
}

.ham-icon.open .ham-line:nth-child(1) {
  top: 10px;
  transform: rotate(35deg);
}

.ham-icon.open .ham-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.ham-icon.open .ham-line:nth-child(3) {
  top: 10px;
  transform: rotate(-35deg);
}

.main-navbar {
  display: flex;
}

.main-navbar > .nav-item {
  text-align: center;
}


.navbar-brand img {
  display: block;
}

.navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--red-dark);
}

.navbar-nav {
  align-items: center;
  gap: 12px;
}

#area-restrita {
  display: flex;
  align-items: center;
  border: 1px solid var(--text-main);
  border-radius: 8px;
}


#area-restrita .nav-link > span:last-child {
  display: inline-flex;
  align-items: center;
}

#area-restrita .nav-link > span:last-child i {
  line-height: 1;
}

#searchToggleBtn i,
#searchDropdown i,
#area-restrita i {
  display: inline-block;
  min-width: 1.25rem;
  text-align: center;
}

#area-restrita:hover {
  color: var(--white);
}

#area-restrita:hover {
  background-color: var(--red-dark);
  border: 1px solid var(--red-dark);
  transition: all 0.2s ease-in-out
}

/* DROPDOWNS */

.dropdown-menu {
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  padding: 0;
  margin: 0;
}

.dropdown-item:hover {
  background-color: var(--red-dark);
  color: var(--white);
}

.dropdown-menu > li:first-child > .dropdown-item {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.dropdown-menu > li:last-child > .dropdown-item {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}


/* LANGUAGES */

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.dropdown-menu .flag-icon {
  width: 22px;
  height: 16px;
}


/* FOOTER */

.site-footer {
  background-color: var(--red-dark);
  color: var(--white);
  padding: 3rem;
  font-size: 0.95rem;
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;


}

.site-footer p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.site-footer a.footer-whatsapp {
  color: var(--white);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.site-footer a.footer-whatsapp:hover {
  opacity: 0.7;
  color: var(--gold-soft);
}

/* FOOTER GRID */

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(3rem, 8vw, 9rem);
  justify-content: space-between;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 220px;
}

.footer-logo {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-logo h4 {
  margin: 0;
}

.footer-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-contact p {
  margin: 0;
}


/* SOCIAL ICONS */

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons a {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.social-icons i {
  font-size: 20px;
}

/* FOOTER LINKS */

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: 2rem;
  justify-self: end;
  justify-content: end;
}

.footer-links-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links-group {
  width: fit-content;
  justify-self: start;
}

.footer-links-group li + li {
  margin-top: 0.5rem;
}

.footer-links-group h4 {
  font-size: 1rem;
  font-weight: 600;
}

.footer-links-group a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.4;
}


/* FOOTER BOTTOM */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}


/* BACK-TO-TOP */

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--black-soft);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

#backToTop:hover {
  background: var(--black-main);
  transform: translateY(-2px);
}

@media (max-width: 1199.98px) {
  .navbar-nav {
    gap: 0;
  }

.navbar-nav .nav-link {
    font-size: 14px
}

  .navbar-brand {
    margin-right: 8px;
  }

  .footer-grid {
    column-gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(4, max-content);
    column-gap: 2rem;
    row-gap: 1.5rem;
    justify-content: space-between;
    justify-self: stretch;
  }
}

@media (max-width: 991.98px) {
  .navbar-brand {
    margin-right: 0;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: white;
  }

  .navbar .container {
    position: relative;
    z-index: 1051;
  }

  .navbar-collapse {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1040;
    padding: 20px;
    overflow-y: auto;
    margin: 0 !important;
  }

  .navbar-collapse.collapsing {
    transition: none;
    height: auto;
  }

  .navbar-collapse.show::before {
    opacity: 1;
  }

  .navbar-nav {
    align-items: center;
    gap: 0;
  }

  .navbar-nav .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    border: none;
    box-shadow: none;
    padding-left: 16px;
    margin-top: 4px;
    border-radius: 8px;
  }

  .top-bar {
    display: none;
  }

  .site-footer {
    padding: 2.5rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  
  body {
    padding-top: 75px;
  }
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: max-content;
    gap: 2rem;
    justify-content: start;
    justify-self: start;
  }
}
