/* Hide OceanWP default site header and page header banner */
#site-header,
#site-header-wrap,
header#site-header,
.page-header,
header.page-header {
    display: none !important;
}

/* Sticky Footer Flex Layout - Prevents white blank space gap */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    background-color: #ffffff !important;
}

/* Global Breadcrumb styling */
.tom-page-breadcrumbs,
.tom-global-page-breadcrumbs {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 10px 0 25px 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 1.8px !important;
    color: #888888 !important;
    text-transform: uppercase !important;
    position: relative !important;
    z-index: 10 !important;
    clear: both !important;
}

.tom-page-breadcrumbs a,
.tom-global-page-breadcrumbs a {
    color: #666666 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.tom-page-breadcrumbs a:hover,
.tom-global-page-breadcrumbs a:hover {
    color: #000000 !important;
}

.tom-page-breadcrumbs span,
.tom-global-page-breadcrumbs span {
    color: #cccccc !important;
    font-size: 10px !important;
}

.tom-page-breadcrumbs span:last-child,
.tom-global-page-breadcrumbs span:last-child {
    color: #111111 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
}

body.tch-has-custom-header,
body.admin-bar.tch-has-custom-header {
    /* Padding is calculated and set by JS for the fixed header */
}

#outer-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    width: 100% !important;
    overflow: visible !important;
}

#wrap {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    overflow: visible !important;
}

#main,
main#main {
    flex: 1 0 auto !important;
    width: 100% !important;
    margin-top: 0 !important;
    overflow: visible !important;
    padding-top: 145px;

}

#footer-bottom,
footer#footer-bottom {
    margin-top: auto !important;
}

/* Main Header Bar (Fixed alla cima del sito) */
header#masthead,
.ehf-header,
.tch-custom-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #ffffff !important;
    z-index: 99990 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
    transition: background-color 0.25s ease, box-shadow 0.25s ease !important;
}

header#masthead.tch-header-scrolled,
.ehf-header.tch-header-scrolled,
.tch-custom-header.tch-header-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07) !important;
}

body.admin-bar header#masthead,
body.admin-bar .ehf-header,
body.admin-bar .tch-custom-header {
    top: 32px !important;
}

@media (max-width: 782px) {

    body.admin-bar header#masthead,
    body.admin-bar .ehf-header,
    body.admin-bar .tch-custom-header {
        top: 46px !important;
    }
}

/* Assicura 0 padding-top sulla barra header */
header#masthead .elementor-section:first-child,
.ehf-header .elementor-section:first-child,
.elementor-5711 .elementor-section:first-child,
body.elementor-editor-active .elementor-5711 .elementor-section:first-child {
    padding-top: 0 !important;
}

/* Logo Styling */
.tch-logo {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
}

/* Central Desktop Menu */
.tch-center-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tch-center-menu-list,
.tch-center-nav ul {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
}

.tch-center-menu-list li,
.tch-center-nav ul li {
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.tch-center-menu-list li a,
.tch-center-nav ul li a {
    font-family: 'Montserrat', -apple-system, sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 1.8px !important;
    color: #222222 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    padding: 6px 0 !important;
    white-space: nowrap !important;
    transition: color 0.25s ease !important;
    position: relative !important;
}

@media (min-width: 1440px) {

    .tch-center-menu-list,
    .tch-center-nav ul {
        gap: 26px !important;
    }
}

@media (max-width: 1220px) and (min-width: 1025px) {

    .tch-center-menu-list,
    .tch-center-nav ul {
        gap: 15px !important;
    }

    .tch-center-menu-list li a,
    .tch-center-nav ul li a {
        font-size: 10px !important;
        letter-spacing: 1.3px !important;
    }
}

.tch-center-menu-list li a:hover,
.tch-center-menu-list li.current-menu-item>a,
.tch-center-menu-list li.current_page_item>a,
.tch-center-menu-list li.current-page-ancestor>a,
.tch-center-nav ul li a:hover,
.tch-center-nav ul li.current-menu-item>a,
.tch-center-nav ul li.current_page_item>a,
.tch-center-nav ul li.current-page-ancestor>a {
    color: #a89474 !important;
}

.tch-center-menu-list li a::after,
.tch-center-nav ul li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 1.5px !important;
    background-color: #a89474 !important;
    transition: width 0.3s ease !important;
}

.tch-center-menu-list li a:hover::after,
.tch-center-menu-list li.current-menu-item>a::after,
.tch-center-menu-list li.current_page_item>a::after,
.tch-center-nav ul li a:hover::after,
.tch-center-nav ul li.current-menu-item>a::after,
.tch-center-nav ul li.current_page_item>a::after {
    width: 100% !important;
}

.tch-logo-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.1 !important;
    color: #222222 !important;
}

.tch-logo-subtitle {
    font-family: 'Montserrat', -apple-system, sans-serif !important;
    font-size: 9.5px !important;
    font-weight: 500 !important;
    letter-spacing: 2.2px !important;
    color: #8c8c8c !important;
    text-transform: uppercase !important;
    margin-top: 4px !important;
}

/* Menu Toggle Button */
.tch-menu-toggle {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 12px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 7px !important;
    outline: none !important;
}

.tch-hamburger-line {
    display: block !important;
    width: 26px !important;
    height: 1.5px !important;
    background-color: #2c2c2c !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

/* Full Screen Overlay */
.tch-overlay-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #fbfbfa !important;
    z-index: 100000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 25px 45px 35px 45px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

.tch-overlay-menu.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

body.tch-menu-open {
    overflow: hidden !important;
}

/* Overlay Header */
.tch-overlay-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 65px !important;
}

.tch-menu-close {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 4px !important;
    background: transparent !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333333 !important;
    font-size: 22px !important;
    font-family: inherit !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.tch-menu-close:hover {
    border-color: #1a1a1a !important;
    background-color: #ffffff !important;
}

/* Overlay Body & Navigation */
.tch-overlay-body {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
}

.tch-nav-container {
    width: 100% !important;
    max-width: 650px !important;
    text-align: left !important;
    margin: 0 auto !important;
}

.tch-nav-container ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tch-nav-container>div>ul>li,
.tch-nav-container>ul>li {
    margin: 18px 0 !important;
    position: relative !important;
}

.tch-item-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 4px !important;
}

.tch-nav-container>div>ul>li>a,
.tch-nav-container>ul>li>a,
.tch-nav-container li>a,
.tch-nav-container li.menu-item-has-children>a,
.tch-nav-container .tch-item-wrapper>a {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 38px !important;
    font-weight: 400 !important;
    color: #222222 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
}

.tch-nav-container>div>ul>li>a:hover,
.tch-nav-container>ul>li>a:hover,
.tch-nav-container li>a:hover {
    color: #000000 !important;
}

.tch-submenu-toggle {
    background: transparent !important;
    border: none !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 32px !important;
    color: #666666 !important;
    cursor: pointer !important;
    padding: 0 10px !important;
    line-height: 1 !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
    margin-left: 12px !important;
}

.tch-submenu-toggle:hover {
    color: #111111 !important;
}

.tch-nav-container ul.sub-menu {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, margin 0.3s ease !important;
    margin-top: 0 !important;
    padding-left: 20px !important;
}

.menu-item-has-children.is-expanded>ul.sub-menu {
    max-height: 400px !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

.menu-item-has-children.is-expanded>.tch-item-wrapper .tch-submenu-toggle {
    color: #111111 !important;
    transform: rotate(45deg) !important;
}

.tch-nav-container ul.sub-menu li {
    margin: 10px 0 !important;
    position: relative !important;
    padding-left: 14px !important;
}

.tch-nav-container ul.sub-menu li::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #999999 !important;
    font-size: 14px !important;
}

.tch-nav-container ul.sub-menu li>a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    color: #555555 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.tch-nav-container ul.sub-menu li>a:hover {
    color: #000000 !important;
}

#footer,
#footer-widgets,
#footer-bottom,
footer#footer-bottom {
    display: none !important;
}

/* Global Custom Footer */
.tch-global-footer {
    background-color: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 30px 45px !important;
    margin-top: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tch-footer-container {
    max-width: 1300px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.tch-footer-col {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Montserrat', -apple-system, sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 1.8px !important;
    color: #777777 !important;
    text-transform: uppercase !important;
}

.tch-footer-label {
    font-weight: 600 !important;
    color: #222222 !important;
    margin-right: 4px !important;
}

.tch-footer-link {
    color: #666666 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.tch-footer-link:hover {
    color: #000000 !important;
}

.tch-footer-dot {
    color: #cccccc !important;
    font-size: 10px !important;
}

.tch-footer-copy {
    font-size: 9.5px !important;
    letter-spacing: 1.5px !important;
    color: #999999 !important;
}

@media (max-width: 991px) {
    .tch-footer-container {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .tch-footer-col {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

.tch-overlay-footer {
    text-align: center !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.tch-footer-links {
    font-family: 'Montserrat', -apple-system, sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 2.5px !important;
    color: #777777 !important;
    text-transform: uppercase !important;
}

.tch-footer-links a {
    color: #777777 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.tch-footer-links a:hover {
    color: #111111 !important;
}

.tch-sep {
    margin: 0 12px !important;
    color: #cccccc !important;
}

/* Responsive Footer layout & alignment */
#footer-bottom-inner,
#footer-bottom .container,
footer #footer-bottom-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

@media (max-width: 1024px) {

    .tch-center-nav,
    nav.tch-center-nav {
        display: none !important;
    }

    .tch-custom-header {
        height: 75px !important;
        padding: 0 20px !important;
    }

    #footer-bottom-inner,
    #footer-bottom .container {
        flex-direction: column !important;
        text-align: center !important;
        line-height: 2 !important;
    }

    #footer-bottom #footer-bottom-menu,
    #footer-bottom #copyright {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        line-height: 2 !important;
    }
}

@media (max-width: 768px) {
    .tch-logo-title {
        font-size: 22px !important;
    }

    .tch-logo-subtitle {
        font-size: 8.5px !important;
        letter-spacing: 1.8px !important;
    }

    .tch-nav-container>div>ul>li>a,
    .tch-nav-container>ul>li>a,
    .tch-nav-container li>a {
        font-size: 30px !important;
    }

    .tch-nav-container ul.sub-menu li>a {
        font-size: 14px !important;
    }
}

/* ==========================================================================
   Elementor Editor Helper Styles
   Nasconde l'overlay a tutto schermo nell'editor di Elementor per non
   occupare spazio né disturbare la modifica delle pagine o dell'header.
   ========================================================================== */
body.elementor-editor-active .tch-overlay-section-wrapper,
body.elementor-editor-active .tch-overlay-menu {
    display: none !important;
}

/* ==========================================================================
   Footer Overhaul & Floating Button Safety Clearance (Points 1, 2, 13)
   ========================================================================== */
#colophon,
.elementor-5616,
.ehf-footer {
    position: relative !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* OceanWP Floating Scroll-to-Top Clearance */
#scroll-top,
.oceanwp-scroll-top,
a#scroll-top {
    bottom: 25px !important;
    right: 25px !important;
    z-index: 999 !important;
    transition: all 0.3s ease !important;
}

/* Footer Bottom Navigation & Links */
.tom-footer-bottom-nav .elementor-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding: 0 20px !important;
}

.tom-footer-links-left,
.tom-footer-links-center,
.tom-footer-links-right {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
    line-height: 1.8 !important;
    color: #555555 !important;
}

.tom-footer-links-left a,
.tom-footer-links-center a,
.tom-footer-links-right a {
    color: #444444 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
}

.tom-footer-links-left a:hover,
.tom-footer-links-center a:hover,
.tom-footer-links-right a:hover {
    color: #a89474 !important;
}

.tom-footer-dot {
    margin: 0 8px !important;
    color: #a89474 !important;
    font-size: 10px !important;
    vertical-align: middle !important;
}

/* Footer Dedicated Copyright Bar (Never wraps brokenly) */
.tom-footer-copyright-sec {
    width: 100% !important;
    border-top: 1px solid #f6f5f2 !important;
}

.tom-footer-copyright-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    color: #595959 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 12px 60px !important;
    max-width: 900px !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
}

/* Responsive Footer Mobile Stacking */
@media (max-width: 900px) {
    .tom-footer-bottom-nav .elementor-container {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
    }

    .tom-footer-links-left,
    .tom-footer-links-center,
    .tom-footer-links-right {
        text-align: center !important;
        width: 100% !important;
    }

    #scroll-top,
    .oceanwp-scroll-top,
    a#scroll-top {
        bottom: 20px !important;
        right: 15px !important;
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
    }
}