@import url('https://fonts.cdnfonts.com/css/bodidota');

* {
    font-family: 'Creato Display', sans-serif;
    text-decoration: none;
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#progress-bar {
    position: fixed;
    top: 0;
    border-left: 0;
    border-bottom: 0;
    border-top: 0;
    border-radius: 4px;
    left: 0;
    height: 4px;
    width: 0%;
    background-color: var(--secondary-color); 
    z-index: 10001;
    transition: width 0.1s ease-out;
}

header.scrolled-temp {
    transition: none !important; 
}

:root {
    --white-color: #fff;
    --main-color: #5d050ca8;
    --red-color: #5D050C;
    --secondary-color: #896a3e;
    --secondary-color-opacity: #896a3e9a;
    --bg-color: #000000;
    --bg-color-menu: #000000ce;
    --background-cookies-color: rgba(0, 0, 0, 0.788);
    --whatsapp-color: #25d366;
    --border-black: rgba(0, 0, 0, 0.425);
    --border-black-shadow: rgba(0, 0, 0, 0.171);
    --border-white: rgba(255, 255, 255, 0.404);
    --text-grey: rgb(61, 61, 61);
}

html {
    scroll-behavior: smooth;
}

header {
    position: fixed;
    width: 100%;
    height: 100px;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    padding: 0 30px;
    transition: all .50s ease;
    border-bottom: solid 1px transparent;
    box-sizing: border-box; 
}

header.scrolled,
header.fixed {
    background-color: var(--red-color);
    color: var(--white-color);
    border-bottom: solid 1px var(--main-color);
}

header.scrolled .dropdown-menu,
header.fixed .dropdown-menu {
    background-color: var(--red-color); 
    box-shadow: none;
}

header.scrolled .dropdown-menu li a:hover,
header.fixed .dropdown-menu li a:hover {
    background-color: var(--bg-color-menu); 
}

header.scrolled .logo img,
header.fixed .logo img {
    opacity: 1;
}

.logo-mobile-img {
    display: none;
}

header.scrolled .navbar a,
header.fixed .navbar a {
    color: var(--white-color);
}

header.scrolled .navbar a::before,
header.fixed .navbar a::before {
    background-color: var(--white-color);
}

header.scrolled .navbar a:hover,
header.fixed .navbar a:hover {
   color: var(--white-color);
}

.logo {
    display: flex;
    align-items: center;
    transition: all .50s ease;
    flex-shrink: 0;
    margin-right: auto;
}

.logo img {
    max-width: 70px;
    height: auto;
    transition: all .50s ease, opacity .50s ease;
}

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: end;
    width: auto;
    gap: 1.5rem;
    font-size: 11pt;
}

.navbar li {
      position: relative;
}

.navbar a {
    position: relative;
    overflow: visible;
    z-index: 1;
    transition: color 0.4s ease;
    padding: 10px;
    text-decoration: none;
    color: var(--white-color);
    white-space: nowrap; 
    display: flex;
    align-items: center;
}

.navbar a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0; 
    height: 1px; 
    width: 0;
    background-color: var(--white-color); 
    z-index: -1;
    transition: width 0.4s ease;
}

.navbar a:hover::before {
    width: 100%;
}

.navbar a:hover {
    color: var(--white-color);
}

.navbar li.dropdown {
    position: relative; 
}

.dropdown-indicator {
    font-size: 0.7em; 
    margin-left: 5px; 
    transition: transform 0.3s ease; 
}

.navbar li.dropdown:hover > a .dropdown-indicator {
      transform: rotate(180deg);
}

.dropdown-menu {
    display: block; 
    position: absolute; 
    top: 100%; 
    left: 0;  
    background-color: var(--bg-color-menu); 
    list-style: none;
    padding: 8px 0; 
    margin: 5px 0 0 0; 
    min-width: 190px; 
    width: max-content; 
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); 
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.navbar li.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: static; 
    border: none; 
}

.dropdown-menu li a {
    display: block; 
    padding: 10px 20px; 
    color: var(--white-color);
    white-space: nowrap; 
    text-decoration: none;
    transition: background-color 0.3s ease;
    overflow: visible; 
    padding-bottom: 10px; 
    align-items: initial;
}

.dropdown-menu li a::before {
    display: none; 
}

.dropdown-menu li a:hover {
    background-color: var(--main-color); 
    color: var(--white-color);
}

#menu-icon {
    font-size: 35px;
    color: var(--white-color);
    cursor: pointer;
    display: none; 
    z-index: 10001;
    transition: all .50s ease;
}

@media (max-width: 1090px) {
    header {
      padding: 0 15px; 
    }

    .navbar {
        position: absolute; 
        display: flex; 
        flex-direction: column;
        justify-content: flex-start; 
        top: 0; 
        left: -100%; 
        width: 70vw; 
        max-width: 300px; 
        height: 100vh; 
        background: var(--red-color); 
        transition: left 0.5s ease; 
        z-index: 10000; 
        gap: 0; 
        box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.2);
    }

    .logo-mobile-img {
        display: flex;
    }

    .navbar.open {
        left: 0;
        z-index: 10001;
    }

    .navbar a {
        display: block; 
        border-bottom: 1px solid var(--border-white);
        margin: 0; 
        padding: 28px 25px; 
        width: 100%; 
        color: var(--white-color);
        white-space: normal; 
        overflow: hidden;
    }
    
    .navbar a::before {
       display: none; 
    }

    .navbar a:hover {
        background-color: var(--main-color); 
        color: var(--white-color);
    }

    .navbar li.dropdown > a .dropdown-indicator {
        display: none; 
    }

    .dropdown-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
        min-width: auto;
        width: 100%;
        border-radius: 0;
    }

    .dropdown-menu li a {
        padding-left: 45px;
        background-color: var(--main-color);
    }

    .dropdown-menu li a:hover {
        background-color: var(--secondary-color);
    }
    
    #menu-icon {
        display: block; 
    }
    
    header.scrolled #menu-icon,
    header.fixed #menu-icon {
       color: var(--white-color); 
    }

    .navbar.open header {
        background-color: var(--red-color);
        z-index: 10001;
    }
}