html, body{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;

    font-family: "pragmatica-condensed", sans-serif;
    font-weight: 500;
    font-style: normal;
}

/* NAVBAR */
.navbar{
    margin: 0;
    padding: 0;
    z-index: 9999;
}

.navbar {
  display: flex;
  justify-content: center; /* was space-between -> center whole navbar */
  align-items: center;
  gap: 2rem;                /* spacing between logo and nav list */
  background-color: #F3EDE3;
  padding: 0 50px;
  box-shadow: 0 0 25px 0 black;
}

.navbar a{
    color: black;
    text-decoration: none;
}
.navbar img{
    padding: 10px;  
}

.logo {
  color: rgb(0, 0, 0);
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  max-height: 56px;
  height: auto;
}
/* NAVBAR */

/* DROPDOWN MENU */
.dropbtn {
  background-color: #c8c4bd;
  color: rgb(0, 0, 0);
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  transition: all 0.3s ease;
}

.dropbtn:focus-visible {
  outline: 2px solid #2B1F16;
  outline-offset: 2px;
}

.dropdown {
    position: relative;
    display: inline-block;
    touch-action: manipulation;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content { 
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: fit-content;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    touch-action: manipulation;
}

/* Links inside the dropdown */
.dropdown-content a {
    margin: 10px;
    padding: 10px;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    align-items: center;
    text-align: center;
    min-height: 44px;
    touch-action: manipulation;
}

.dropdown-content a img{
    width: 3vw;
    height: auto;
}

.dropdown-content #languages{
    margin: 0;
    padding: 0;
    max-width: min-content;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background-color: #3A2C20;
    color: #F4EFE3;
    text-shadow: 0px 0px 20px #F4EFE3;
    border-radius: 4px;
    transition: all 0.2s ease;
    outline: 2px solid #F4EFE3;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
    align-items: center;
}

.dropdown:hover .dropbtn,
.dropdown:focus-within .dropbtn {
    background-color: #E6DCC3;
    color: #2B1F16;
    text-shadow: 0 0 10px #2B1F16;
}

.dropbtn:hover,
.dropbtn:focus {
  transform: scale(1.1);
  background-color: #E6DCC3;
  color: #2B1F16;
  text-shadow: 0 0 10px #2B1F16;
  outline: 2px solid #2B1F16;
}

.dropdown .dropbtn img {
    margin: 0;    
    padding: 0;
    max-width: 3vw;
}

.dropdown .dropdown-content a {
    margin: 5px;
    padding: 8px;
}

.droprow a, div{
    padding: 0 10px;
}

.droprow a {
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 8px 12px;
    touch-action: manipulation;
}

.droprow a:hover {
    background-color: #E6DCC3;
    color: #2B1F16;
    text-shadow: 0 0 10px #2B1F16;
    transform: scale(1.05);
}

/*languages selector*/
#dropbtn-lang{
    margin: 0;
    padding: 12px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    touch-action: manipulation;
}

#dropbtn-lang img{
    max-width: 4vw;
    min-width: 2.2vw;
    height: auto;
}

#dropdown-lang{
    margin: 0;
    padding: 0;
    position: relative;
    touch-action: manipulation;
}

/* Dropdown Content Lang */
#dropdown-content-lang { 
    margin: 0;
    padding: 0;
    background-color: transparent;
    min-width: 0;
    box-shadow: none;
    z-index: 1;
}

/* Links inside lang dropdown */
#dropdown-content-lang a {
    margin: 4px;
    padding: 4px;
    color: black;
    text-decoration: none;
    display: inline-block;
    align-items: center;
    text-align: center;
    min-height: 44px;
    touch-action: manipulation;
    transition: all 0.2s ease;
}

#dropdown-content-lang a img{
    margin: 0;
    padding: 0;
    width: 3vw;
    height: auto;
    display: block;
}

#dropdown-content-lang a:hover {
    background-color: #3A2C20;
    border-radius: 4px;
}

#dropdown-lang:hover #dropdown-content-lang {
    display: block;
}

#dropdown-lang:hover #dropbtn-lang {
    background-color: transparent;
    transform: scale(1.15);
    transition: all 0.3s ease;
}

#dropdown-lang #dropbtn-lang img {
    margin: 0;    
    padding: 0;
}
#dropdown-lang #dropdown-content-lang a {
    margin: 5px;
    padding: 8px;
}

#droprow-lang a, div{
    padding: 0;
}
/* DROPDOWN MENU */

/*MOBILE (≤768px) */
@media (max-width: 768px) {

    /*NAVBAR*/
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 8px 0;
        width: 100%;
        height: auto;
        gap: 0;
    }

    .navbar img {
        align-self: center;
        margin: 8px auto;
        max-width: 20vw;
        min-width: 40px;
        height: auto;
        display: block;
    }

    .logo {
        font-size: 14px;
        align-self: center;
    }

    /* DROPROW - Main nav container */
    .droprow {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        background: #2E2218;
        gap: 0;
    }

    .droprow a,
    .droprow > div {
        display: block !important;
        width: 100% !important;
        padding: 14px 15px !important;
        text-align: center;
        box-sizing: border-box;
        min-height: 48px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        text-decoration: none;
        color: #F4EFE3;
        transition: all 0.3s ease;
        border: none;
    }

    .droprow a:hover {
        background-color: #E6DCC3;
        color: #2B1F16;
        text-shadow: 0 0 10px #2B1F16;
    }

    /* DROPDOWN - Services/Industry items */
    .dropdown {
        display: block !important;
        width: 100% !important;
        position: relative;
    }

    .dropbtn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        padding: 14px 15px !important;
        text-align: center;
        box-sizing: border-box;
        font-size: 0.95rem;
        min-height: 48px;
        background-color: #3A2C20 !important;
        color: #F4EFE3 !important;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dropbtn:hover {
        background-color: #E6DCC3 !important;
        color: #2B1F16 !important;
        text-shadow: 0 0 10px #2B1F16 !important;
    }

    /* DROPDOWN CONTENT */
    .dropdown-content {
        display: none !important;
        position: static !important;
        width: 100%;
        background: #4B3A2E;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .dropdown:focus-within .dropdown-content,
    .dropdown:hover .dropdown-content {
        display: block !important;
    }

    .dropdown-content a {
        display: block;
        width: 100%;
        padding: 12px 30px !important;
        margin: 0 !important;
        text-align: center;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #F4EFE3;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }

    .dropdown-content a:hover {
        background: #3A2C20;
        color: #F4EFE3;
        text-shadow: 0px 0px 20px #F4EFE3;
    }

    .dropdown-content a img {
        width: 10vw;
        height: auto;
    }

    /* LANGUAGE DROPDOWN (SPECIAL) */
    #dropdown-lang {
        width: 100% !important;
        background: #2E2218;
    }

    #dropbtn-lang {
        display: flex !important;
        width: 100%;
        padding: 12px 15px !important;
        background: #2E2218 !important;
        border: none;
        cursor: pointer;
        min-height: 48px;
        align-items: center;
        justify-content: center;
    }

    #dropbtn-lang img {
        width: 28px;
        height: 28px;
    }

    #dropdown-content-lang {
        display: flex !important;
        position: static !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        background: #3A2C20 !important;
        box-shadow: none;
        padding: 12px 8px;
        margin: 0;
    }

    #dropdown-content-lang a {
        display: inline-flex !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: 48px;
        min-width: 48px;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    #dropdown-content-lang a:hover {
        background: #2E2218 !important;
    }

    #dropdown-content-lang img {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    #languages {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        background: transparent !important;
    }

    #languages img {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 6px 0;
    }

    .navbar img {
        max-width: 18vw;
        min-width: 35px;
        margin: 6px auto;
    }

    .droprow a,
    .droprow > div,
    .dropbtn {
        padding: 12px 12px !important;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .dropdown-content a {
        padding: 10px 20px !important;
        font-size: 0.8rem;
    }

    #dropdown-content-lang {
        gap: 6px;
        padding: 10px 6px;
    }

    #dropdown-content-lang img,
    #languages img {
        width: 36px;
        height: 36px;
    }
}

.slider{
    margin-bottom: 5.25vw;
}

.intro-text, main{
    max-width: 60%;
    margin: auto;
    margin-bottom: 50px;
    text-align: center;
}
.intro-text h1, main h1{
    font-weight: 900;
    font-size: 5vh;
}
.intro-text p, main p{
    font-weight: 500;
    font-size: 2.5vh;
}

@media (max-width: 768px) {
  /* container */
  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* main nav list stacked and centered */
  .nav-list,
  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
  }

  .nav-item {
    width: 100%;
    display: flex;
    justify-content: center; /* center each item */
  }

  .nav-link,
  .nav-toggle {
    display: inline-block;
    text-align: center;
    padding: 0.6rem 1rem;
    width: auto;
    white-space: nowrap;
  }

  /* dropdown parent must be position:relative so dropdown can center under it */
  .dropdown {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* dropdown menu centered under button */
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: none; /* toggle with .show or JS */
    min-width: fit-content;
    max-width: 90vw;
    box-sizing: border-box;
    z-index: 999;
  }

  /* make dropdown items full-width (optional) */
  .dropdown-menu .dropdown-item,
  .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: normal;
  }

  /* class to reveal dropdown (used by JS or :focus-within) */
  .dropdown.show .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
  }

  /* small visual tweak so dropdown aligns under the exact toggle width if you prefer */
  .dropdown-toggle {
    position: relative;
  }

  .dropdown-menu {
    min-width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
 
}

@media (max-width: 768px) {
    .dropdown-lang li{
        max-width: 10%;
        margin: auto;
    }

    .nav-links {
        max-width: 80%;
        margin: auto;
        padding: 0;
        display: flex;
    }
    .nav-links a {
        max-width: fit-content;
        margin: auto;
        text-align: center;
    }
}

/* Added: mobile rules for ul/li nav structure and language dropdown to match index.css / index-phone.css behavior */
@media (max-width: 768px) {
  /* main nav (ul/li) stacked and centered */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
  }

  .nav-links > li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links > li > a,
  .nav-links > li > .lang-toggle {
    display: inline-block;
    text-align: center;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    color: #F4EFE3;
    text-decoration: none;
    background: transparent;
    min-height: 44px;
  }

  /* dropdown parents full width */
  .dropdown {
    width: 100% !important;
    position: relative;
    display: block;
  }

  /* dropdown menus become static full-width panels on mobile */
  .dropdown-content,
  .dropdown-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    background: #4B3A2E;
    box-shadow: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* reveal dropdowns on focus/hover or when .show added by JS */
  .dropdown:focus-within .dropdown-content,
  .dropdown:hover .dropdown-content,
  .dropdown.show .dropdown-content,
  .dropdown:focus-within .dropdown-menu,
  .dropdown:hover .dropdown-menu,
  .dropdown.show .dropdown-menu {
    display: block !important;
  }

  .dropdown-content a,
  .dropdown-menu a {
    display: flex !important;
    width: 100% !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    text-align: center;
    color: #F4EFE3;
    justify-content: center;
    box-sizing: border-box;
    background: transparent;
  }

  .dropbtn {
    width: 100% !important;
    padding: 12px 16px !important;
    box-sizing: border-box;
    background-color: #3A2C20 !important;
    color: #F4EFE3 !important;
    border: none;
  }

  /* language selector using ul.dropdown-lang / .lang-switch */
  .lang-switch {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .lang-switch .lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    background: #2E2218;
    color: #F4EFE3;
    border: none;
  }

  .lang-switch .dropdown-lang {
    display: flex !important;
    position: static !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 6px 8px;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .lang-switch .dropdown-lang li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lang-switch .dropdown-lang a {
    display: inline-flex;
    padding: 0;
    margin: 0 6px;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
  }

  .lang-switch .dropdown-lang img,
  .flag-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border-radius: 4px;
  }
}

/* Mobile final overrides: force black text, show flags in a row, hide single-toggle flag buttons */
@media (max-width: 768px) {
  /* force all nav text to black on mobile */
  .navbar a,
  .nav-links > li > a,
  .droprow a,
  .dropdown-content a,
  .dropdown-menu a,
  .dropbtn {
    color: black !important;
  }

  /* make sure dropdown items keep readable background if desired */
  .dropdown-content,
  .dropdown-menu {
    background: #fff !important;
  }

  /* hide single-flag toggle buttons (both patterns) */
  .lang-switch > .lang-toggle,
  #dropbtn-lang {
    display: none !important;
  }

  /* show language flags inline as a horizontal row */
  .lang-switch .dropdown-lang,
  .lang-switch .dropdown-lang ul,
  .lang-switch ul.dropdown-lang {
    display: flex !important;
    position: static !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 6px 8px;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .lang-switch .dropdown-lang li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lang-switch .dropdown-lang a {
    display: inline-flex;
    padding: 0;
    margin: 0 6px;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
  }

  .lang-switch .dropdown-lang img,
  .flag-icon {
    width: 36px;
    height: 36px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border-radius: 4px;
  }
}
/* Hide all dropdowns/submenus by default (force override) */
nav ul ul,
.navbar ul ul,
nav .dropdown,
.navbar .dropdown {
	display: none !important;
	position: absolute;
	min-width: 10rem; /* adjust as needed */
	background: inherit; /* match navbar background or set explicit color */
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	padding: 0.25rem 0;
	z-index: 1000;
	transition: opacity 150ms ease, visibility 150ms;
}
nav ul li:hover > ul,
.navbar ul li:hover > ul,
nav ul li:hover > .dropdown,
.navbar ul li:hover > .dropdown {
	display: block !important;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}
.lang-switch {
    position: relative;
}

.lang-switch .dropdown-lang {
  display: none !important;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  flex-direction: column;
  background: #ffffff;
  padding: 0px;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  border-radius: 4px;
  z-index: 2000;
  min-width: fit-content;
  box-sizing: border-box;
}

.lang-switch:hover .dropdown-lang,
.lang-switch:focus-within .dropdown-lang {
  display: flex !important;
}

.lang-switch .dropdown-lang li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switch .dropdown-lang a {
  display: block;
  padding: 0;
  color: inherit;
  text-align: left;
}

.lang-switch .dropdown-lang img,
.lang-switch .dropdown-lang .flag-icon {
  width: 28px;
  height: auto;
  margin-right: 0;
  vertical-align: middle;
}
/* === QR codes abaixo do texto === */
.qr-wrap {
  display: flex;
  justify-content: center;   /* centro horizontal */
  align-items: center;
  gap: 24px;                  /* espaço entre os QR */
  margin: 56px 0 40px;        /* pequena margem acima e abaixo */
  flex-wrap: wrap;            /* se faltar espaço, quebra para a linha abaixo */
}

.qr-wrap img {
  width: 400px;               /* tamanho base do QR */
  height: 300px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
    .qr-wrap {
        margin-bottom: 25vw;
    }
    .slider{
        margin-bottom:13vw;
    }
}