/**
 * Cadorino Fullscreen Menu CSS
 */

/* Toggle Button Styles */
.cadorino-menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
}

.menu-icon {
    display: block;
    width: 30px;
    position: relative;
    transition: transform 0.3s ease;
}

.text-menu-content {
    font-weight: 900;
    text-align: center;
    color: white;
    font-size: 34px;
    margin-bottom: 50px;
}

.menu-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.menu-icon svg:focus-visible {
    outline: none;
}

/* Hamburger to X animation */
.menu-open .menu-icon {
    background-color: transparent;
}

.menu-open .menu-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.menu-open .menu-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Fullscreen Menu Container */
.cadorino-fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(102, 189, 213, 1);
    /* Light blue with 95% opacity */
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

/* Inner content width container */
.cadorino-fullscreen-menu .menu-content {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0px;
    box-sizing: border-box;
}

.cadorino-fullscreen-menu.open {
    opacity: 1;
    visibility: visible;
}

/* Menu Header with Logo and Close Button */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 30px;
}

/* Logo */
.cadorino-menu-logo {
    display: flex;
    align-items: center;
}

.cadorino-menu-logo img {
    width: 100%;
    display: block;
    filter: brightness(0) invert(1);
    /* Make the logo white */
}

/* Text logo styling */
.cadorino-menu-logo a {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    line-height: 40px;
}

/* Close Button */
.cadorino-menu-close {
    width: 20px;
    height: 20px;
    background: transparent !important;
    border: none;
    cursor: pointer !important;
    color: #fff;
    font-size: 24px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cadorino-menu-close svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Menu Sections */
.main-menu-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 0;
}

.bottom-menu-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    padding: 0 15px;
}

.bottom-left-menu,
.bottom-right-menu {
    padding: 15px 0;
}

/* Menu Styles */
.cadorino-fullscreen-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.main-menu-container ul li {
    margin: 15px 0;
}

.bottom-menu-container ul li {
    margin: 10px 0;
}

.cadorino-fullscreen-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.main-menu-container a {
    font-size: 26px;
    font-weight: 500;
}

.cadorino-fullscreen-menu a:hover {
    color: #f0f0f0;
}

/* Menu Buttons */
.menu-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 40px;
}

.menu-button,
.menu-buttons li {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 100px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.menu-button:hover a,
.menu-buttons li:hover a {
    color: #33B2CA!important;
}
.menu-button:hover,
.menu-buttons li:hover {
    background-color: #fff;
    color: #33B2CA!important;
}

/* Footer Information */
.menu-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 20px;
    padding: 15px 0;
}

@media (min-width: 1200px) {
    .menu-header {
        padding: 3px 0px;
    }

    .cadorino-menu-close {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 1200px) {
    .menu-header {
        padding: 3px 15px;
    }
}

/* Responsive Layout */
@media (max-width: 768px) {
    .cadorino-fullscreen-menu {
        padding: 0;
    }

    .cadorino-fullscreen-menu .menu-content {
        padding: 15px;
    }

    .menu-header {
        margin-bottom: 20px;
        padding: 10px 0;
    }

    .cadorino-menu-logo img {
        width: 100%;
    }

    .bottom-menu-container {
        flex-direction: column;
        align-items: center;
    }

    .bottom-left-menu,
    .bottom-right-menu {
        margin-bottom: 20px;
        text-align: center;
    }

    .main-menu-container a {
        font-size: 22px;
    }

    .menu-buttons {
        flex-direction: column;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .cadorino-menu-logo img {
        width: 93%;
    }

    .main-menu-container {
        padding: 20px 0;
    }

    .main-menu-container a {
        font-size: 18px;
    }
}

/* Elementor integration styles */
.elementor-widget-html .cadorino-menu-toggle {
    position: relative;
    top: auto;
    right: auto;
    z-index: 100;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
}

/* Match the menu toggle color to the site's header */
.elementor-widget-html .menu-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Match the site theme with light blue color */
.menu-button:hover {
    background-color: #fff;
    color: #33B2CA;
}

/* Add active state style to menu items */
.cadorino-fullscreen-menu .current-menu-item>a,
.cadorino-fullscreen-menu .current-menu-parent>a {
    font-weight: bold;
    text-decoration: underline;
}