/* ==================================
   CSS Variables & Global Reset (Light Theme)
   ================================== */
:root {
    --brand-color: #5D373A;
    /* Burgundy */
    --brand-light: #7a4a4d;
    --bg-color: #faf9f6;
    /* Cream/Off-white */
    --text-dark: #1a1a1a;
    --text-muted: #666666;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --muvt-panel-vh: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    pointer-events: none;
}

picture {
    display: block;
}

body,
html {
    width: 100%;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    scrollbar-width: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

::-webkit-scrollbar {
    display: none;
}

.muvt-home-loading,
.muvt-home-loading body {
    overflow: hidden;
}

body.home,
html:has(body.home) {
    overflow-x: hidden;
}

a,
.menu-action {
    text-decoration: none;
    color: var(--brand-color);
    transition: color 0.3s ease;
}

/* ==================================
   Fixed UI & Overlays
   ================================== */
.fixed-ui {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3000;
}

.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(122, 74, 77, 0.12), transparent 45%),
        var(--bg-color);
    z-index: 5000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader__logo-wrap {
    width: 132px;
    height: 132px;
    border: 1px solid rgba(93, 55, 58, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 249, 246, 0.92);
    box-shadow: 0 18px 48px rgba(93, 55, 58, 0.12);
    animation: loaderPulse 1.6s ease-in-out infinite;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@supports (-webkit-touch-callout: none) {
    .page-loader__logo-wrap {
        touch-action: auto;
    }
}

.page-loader__logo {
    width: 72px;
    height: auto;
}

.page-loader__logo-wrap:hover,
.page-loader__logo-wrap:focus-visible {
    transform: scale(1.03);
    box-shadow: 0 24px 62px rgba(93, 55, 58, 0.18);
    outline: none;
}

.page-loader__logo-wrap.is-bubbling {
    animation-duration: 0.85s;
}

.page-loader__bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--bubble-size, 16px);
    height: var(--bubble-size, 16px);
    margin-left: calc(var(--bubble-size, 16px) * -0.5);
    margin-top: calc(var(--bubble-size, 16px) * -0.5);
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 249, 249, 0.95), rgba(255, 255, 255, 0.28) 35%, rgba(122, 74, 77, 0.32) 100%);
    border: 1px solid rgba(141, 66, 73, 0.18);
    box-shadow: 0 12px 28px rgba(122, 74, 77, 0.18);
    opacity: 0;
    animation: loaderWineBubble var(--bubble-duration, 1.4s) ease-out var(--bubble-delay, 0s) forwards;
}

.muvt-home-ready .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(0.96);
        box-shadow: 0 18px 48px rgba(93, 55, 58, 0.12);
    }

    50% {
        transform: scale(1);
        box-shadow: 0 22px 58px rgba(93, 55, 58, 0.2);
    }
}

@keyframes loaderWineBubble {
    0% {
        transform: translate(-50%, -50%) scale(0.35);
        opacity: 0;
    }

    14% {
        opacity: 0.95;
    }

    100% {
        transform: translate(calc(-50% + var(--bubble-x, 0px)), calc(-50% - var(--bubble-y, 160px))) scale(1.1);
        opacity: 0;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5vw;
    pointer-events: auto;
}

.navbar-static {
    width: 100%;
}

.navbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-dark {
    display: block;
}

.logo-light {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

.navbar.light-theme .logo-dark {
    opacity: 0;
}

.navbar.light-theme .logo-light {
    opacity: 1;
    pointer-events: auto;
}

.navbar.light-theme a,
.navbar.light-theme .menu-action {
    color: var(--bg-color);
}

.navbar.light-theme .menu-action__label::after {
    background-color: var(--bg-color);
}

.site-footer {
    padding: 3.5rem 5vw 3rem;
    background: linear-gradient(180deg, rgba(250, 249, 246, 0) 0%, rgba(93, 55, 58, 0.06) 100%);
    border-top: 1px solid rgba(93, 55, 58, 0.08);
}

.site-footer__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(180px, 1fr));
    gap: 2rem;
    align-items: start;
}

.site-footer__policy-only {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2rem;
}

.site-footer__column {
    display: grid;
    gap: 0.85rem;
}

.site-footer__column--brand {
    gap: 0.5rem;
}

.site-footer__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-footer__title {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    line-height: 1.05;
    color: var(--brand-color);
}

.site-footer__heading {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-color);
}

.footer-meta-list {
    display: grid;
    gap: 0.45rem;
}

.site-footer__text,
.site-footer__text-link {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.site-footer__link {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: var(--brand-color);
}

.site-footer__text-link {
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__text-link:hover,
.site-footer__text-link:focus-visible {
    color: var(--brand-color);
    transform: translateY(-1px);
    outline: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.nav-links.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher {
    --language-switcher-trigger-size: 2.2rem;
    --language-switcher-gap: 0.45rem;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    position: relative;
    z-index: 6;
}

.language-switcher__placeholder {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px dashed rgba(93, 55, 58, 0.18);
    background: rgba(250, 249, 246, 0.35);
}

.language-switcher__source {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.language-switcher__source #google_translate_element2,
.language-switcher__source .gt_options a.gt-current,
.language-switcher__source .gt-options a.gt-current {
    display: none !important;
}

.language-switcher__source #gt_float_wrapper,
.language-switcher__source .gt_float_switcher,
.language-switcher__source .gt_switcher {
    display: inline-flex !important;
    align-items: center;
    gap: var(--language-switcher-gap);
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.language-switcher__source .gt_options,
.language-switcher__source .gt-options,
.language-switcher__source .gt_option {
    display: inline-flex !important;
    align-items: center;
    gap: var(--language-switcher-gap);
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    max-width: 0;
    height: 0 !important;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateX(0.5rem);
    transform-origin: right center;
    pointer-events: none;
    transition:
        max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.24s ease,
        opacity 0.24s ease,
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.24s ease;
}

.language-switcher.is-open .language-switcher__source .gt_options,
.language-switcher.is-open .language-switcher__source .gt-options,
.language-switcher.is-open .language-switcher__source .gt_option {
    max-width: 14rem;
    height: auto !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.language-switcher__source .gt-selected,
.language-switcher__source .gt_selected {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.language-switcher__source .gt_options a,
.language-switcher__source .gt-options a,
.language-switcher__source .gt-current-lang,
.language-switcher__source .gt_selected a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--language-switcher-trigger-size);
    min-width: var(--language-switcher-trigger-size);
    height: var(--language-switcher-trigger-size);
    flex: 0 0 var(--language-switcher-trigger-size);
    margin: 0 !important;
    padding: 0.15rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(93, 55, 58, 0.2) !important;
    background: rgba(250, 249, 246, 0.78) !important;
    box-shadow: none !important;
    color: var(--brand-color) !important;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none !important;
    line-height: 1;
    font-size: 0;
    white-space: nowrap;
    cursor: pointer;
    text-indent: 0 !important;
}

.language-switcher__source .gt_options a,
.language-switcher__source .gt-options a {
    transform: translateX(0.55rem) scale(0.96);
    opacity: 0;
    pointer-events: none;
}

.language-switcher.is-open .language-switcher__source .gt_options a,
.language-switcher.is-open .language-switcher__source .gt-options a {
    transform: translateX(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.language-switcher__source .gt-current-lang:hover,
.language-switcher__source .gt-current-lang:focus-visible,
.language-switcher__source .gt_selected a:hover,
.language-switcher__source .gt_selected a:focus-visible,
.language-switcher__source .gt_options a:hover,
.language-switcher__source .gt_options a:focus-visible,
.language-switcher__source .gt-options a:hover,
.language-switcher__source .gt-options a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(93, 55, 58, 0.4);
    outline: none;
}

.language-switcher__source .gt-current-lang img,
.language-switcher__source .gt_selected a img,
.language-switcher__source .gt_options a img,
.language-switcher__source .gt-options a img {
    align-self: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto !important;
    vertical-align: middle;
    border-radius: 999px;
    object-fit: cover;
}

.language-switcher__source .gt-current-lang,
.language-switcher__source .gt_selected a {
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
}

.language-switcher__source .gt-current-lang img,
.language-switcher__source .gt_selected a img {
    margin: 0 !important;
    flex: 0 0 100%;
}

.language-switcher__source .gt-current-lang .gt-lang-code,
.language-switcher__source .gt-current-lang .gt_float_switcher-arrow,
.language-switcher__source .gt_selected a span:not(.screen-reader-text),
.language-switcher__source .gt_options a span,
.language-switcher__source .gt-options a span {
    display: none !important;
}

.menu-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    pointer-events: auto;
    position: relative;
    border-radius: 999px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

@supports (-webkit-touch-callout: none) {
    .menu-action {
        touch-action: auto;
    }
}

.menu-action::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(93, 55, 58, 0.08);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.18s ease, transform 0.22s ease;
    pointer-events: none;
}

.menu-action__label {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.menu-action__label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--brand-color);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.menu-action:hover .menu-action__label::after,
.menu-action:focus-visible .menu-action__label::after {
    width: 100%;
}

.menu-action:active {
    transform: scale(0.96);
}

.menu-action:active::before {
    opacity: 1;
    transform: scale(1);
}

.navbar.light-theme .menu-action::before {
    background: rgba(250, 249, 246, 0.16);
}

.navbar.light-theme .language-switcher__source .gt-current-lang,
.navbar.light-theme .language-switcher__source .gt_selected a,
.navbar.light-theme .language-switcher__source .gt_options a,
.navbar.light-theme .language-switcher__source .gt-options a {
    background: rgba(26, 26, 26, 0.28);
    border-color: rgba(250, 249, 246, 0.2);
    color: var(--bg-color);
}

.navbar.light-theme .language-switcher__source .gt-current-lang {
    border-color: rgba(250, 249, 246, 0.55);
    background: rgba(250, 249, 246, 0.12);
}

.navbar.language-switcher-open .nav-links {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    max-width: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    pointer-events: none !important;
}

.navbar.language-switcher-open .nav-links.visible {
    opacity: 0 !important;
    visibility: hidden !important;
    max-width: 0 !important;
}

.progress-container {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    left: 5vw;
    width: 150px;
    height: 2px;
    background: rgba(93, 55, 58, 0.2);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--brand-color);
}

.scroll-to-top {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    right: 5vw;
    width: 50px;
    height: 50px;
    background-color: var(--bg-color);
    border: 1px solid var(--brand-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--brand-color);
    transition: color 0.3s ease;
}

.scroll-to-top:hover {
    background-color: var(--brand-color);
}

.scroll-to-top:hover svg {
    color: var(--bg-color);
}

/* ==================================
   Home Scroll Stack
   ================================== */
.home-scroll-stack {
    position: relative;
    overflow: hidden;
}

.home-panel {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: var(--muvt-panel-vh);
    margin-left: var(--panel-offset, 0%);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    overflow: hidden;
}

.home-panel__stage {
    width: min(100%, 100vw);
    min-height: var(--muvt-panel-vh);
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.home-panel__content {
    width: 100%;
    min-height: var(--muvt-panel-vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================================
   Typography & Elements
   ================================== */
h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    color: var(--brand-color);
    margin-bottom: 1rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--brand-color);
    margin-bottom: 1rem;
}

.subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-muted);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.light-text {
    color: var(--bg-color);
}

.step-counter {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-light);
    display: block;
    margin-bottom: 0.5rem;
}

.step-counter::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--brand-light);
    vertical-align: middle;
    margin-right: 15px;
}

/* ==================================
   Specific Scenes Layouts
   ================================== */

/* Hero Split (Node 0) */
.split-hero {
    display: flex;
    width: 100%;
    height: var(--muvt-panel-vh);
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10vw;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-image-wrap {
    flex: 1;
    min-height: 100%;
    overflow: hidden;
}

.object-fit-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 769px) {
    .hero-image-wrap {
        align-self: stretch;
    }

    .hero-image-wrap .object-fit-cover {
        object-fit: cover;
        object-position: center;
    }

    .image-box .object-fit-cover,
    .accordion-panel img {
        object-fit: contain;
        object-position: center;
    }

    .accordion-panel.active img {
        transform: scale(1);
    }
}

.hero-image-wrap picture {
    width: 100%;
    height: 100%;
    display: block;
}

.image-box picture,
.accordion-panel picture {
    width: 100%;
    height: 100%;
}

/* Vertical Transition Titles */
.transition-title {
    width: 100vw;
    min-height: var(--muvt-panel-vh);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.chapter-text {
    font-size: 7vw;
    font-style: italic;
    color: var(--brand-color);
    margin: 0;
    opacity: 0.9;
    max-width: 90vw;
    margin-inline: auto;
    text-align: center;
}

.gallery-main-title {
    margin-bottom: 3rem;
    color: var(--brand-color);
    z-index: 10;
    text-align: center;
}

/* Gallery Items (Nodes 1-9) */
.gallery-item {
    display: flex;
    align-items: center;
    gap: 6rem;
    width: 80vw;
    max-width: 1200px;
}

.gallery-item.reverse {
    flex-direction: row-reverse;
}

.image-box {
    flex: 1;
    height: calc(var(--muvt-panel-vh) * 0.6);
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

.square-aspect {
    height: auto;
    aspect-ratio: 1 / 1;
}

.text-box {
    flex: 0.8;
}

.shadow-soft {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* End Scene (Node 10) */
#contatti {
    min-height: var(--muvt-panel-vh);
}

.end-block {
    width: 100%;
    min-height: var(--muvt-panel-vh);
    background-color: var(--brand-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-content {
    text-align: center;
    width: min(1100px, 100%);
    padding: 0 5vw;
}

.contact-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.25rem;
    text-align: left;
}

.contact-card {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(250, 249, 246, 0.18);
    background: rgba(250, 249, 246, 0.06);
    backdrop-filter: blur(6px);
}

.contact-card__heading {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(250, 249, 246, 0.74);
}

.contact-meta-group {
    display: grid;
    gap: 0.55rem;
}

.contact-meta {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: rgba(250, 249, 246, 0.88);
}

.contact-meta-link {
    display: inline-block;
    text-decoration: none;
    border-bottom: 1px solid rgba(250, 249, 246, 0.32);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-meta-link:hover,
.contact-meta-link:focus-visible {
    color: #ffffff;
    border-color: rgba(250, 249, 246, 0.85);
    transform: translateY(-1px);
    outline: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links--stacked {
    margin-top: 0;
    justify-content: flex-start;
}

.social-links__link {
    text-decoration: none;
    font-size: 1.2rem;
    filter: opacity(0.8);
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    margin-top: 1rem;
    background-color: var(--bg-color);
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.btn-primary:hover {
    transform: translateY(-5px);
}

@media (max-width: 980px) {

    .site-footer__grid,
    .contact-layout {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__column--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .site-footer {
        padding: 2.5rem 5vw;
    }

    .site-footer__grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .center-content {
        padding: 0 6vw;
    }
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    pointer-events: auto;
}

.btn-outline:hover {
    background-color: var(--brand-color);
    color: var(--bg-color);
    transform: translateY(-5px);
}

/* ==================================
   Lightbox / Image Zoom
   ================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--muvt-panel-vh);
    background: rgba(250, 249, 246, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox img {
    width: 95vw;
    height: calc(var(--muvt-panel-vh) * 0.95);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.lightbox.active img {
    transform: scale(1);
}

/* Mobile */
@media (max-width: 768px) {
    .page-loader__logo-wrap {
        width: 112px;
        height: 112px;
    }

    .page-loader__logo {
        width: 62px;
    }

    .split-hero,
    .bar-gallery,
    .end-block {
        min-height: var(--muvt-panel-vh);
    }

    .end-block .center-content {
        margin-top: calc(var(--muvt-panel-vh) * 0.2);
        margin-bottom: calc(var(--muvt-panel-vh) * 0.2);
    }

    .home-panel__stage,
    .home-panel__content {
        min-height: var(--muvt-panel-vh);
    }

    .gallery-item,
    .gallery-item.reverse {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        width: 90vw;
    }

    .image-box {
        width: 70%;
        height: 100%;
        /* Shrunk from 50 to prevent vertical bleeding out of 100vh */
        order: -1;
    }

    /* Typography Adjustments */
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .chapter-text {
        font-size: 15vw;
        opacity: 1;
    }

    .split-hero {
        flex-direction: column;
        justify-content: space-between;
    }

    .hero-text {
        flex: 1 1 0;
        padding: calc(env(safe-area-inset-top, 0px) + 5.5rem) 5vw 2rem;
        align-items: center;
        text-align: center;
    }

    .hero-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .hero-image-wrap {
        flex: 1 1 0;
        display: flex;
        align-items: flex-end;
        width: 100%;
        min-height: 0;
        height: 100%;
    }

    .hero-image-wrap picture {
        width: 100%;
        max-height: 100%;
        display: flex;
        align-items: flex-end;
    }

    .hero-image-wrap .object-fit-cover {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        max-height: 100%;
    }

    .step-counter::before {
        display: none;
    }
}


iframe[src*="altervista"],
iframe[src*="tb.altervista.org"],
#av_toolbar_reg,
#av_toolbar_iframe,
.av-toolbar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==================================
   Elementor Custom Integration
   ================================== */
body {
    --muvt-tabs-sticky-top: 0px;
    --muvt-tabs-bar-padding-y: 1rem;
    --muvt-tabs-bar-padding-x: 3.5rem;
    --muvt-tabs-safe-top: env(safe-area-inset-top, 0px);
}

body.admin-bar {
    --muvt-tabs-sticky-top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --muvt-tabs-sticky-top: 46px;
    }
}

/* Wrapper for both old and nested tabs */
body .muvt-tabs .elementor-tabs-wrapper,
body .muvt-tabs .e-n-tabs-heading {
    display: flex !important;
    gap: 2rem !important;
    border: none !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-bottom: 2rem !important;
    position: sticky !important;
    top: var(--muvt-tabs-sticky-top) !important;
    z-index: 40 !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    margin-top: calc(-1 * var(--muvt-tabs-safe-top)) !important;
    padding:
        calc(var(--muvt-tabs-bar-padding-y) + var(--muvt-tabs-safe-top)) var(--muvt-tabs-bar-padding-x) var(--muvt-tabs-bar-padding-y) !important;
    background: rgb(250, 248, 243) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(122, 30, 46, 0.12) !important;
    box-shadow: 0 1px 0 rgba(122, 30, 46, 0.08) !important;
}

@supports (-webkit-touch-callout: none) {

    body .muvt-tabs .elementor-tabs-wrapper,
    body .muvt-tabs .e-n-tabs-heading {
        background: var(--bg-color) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 1px 0 rgba(122, 30, 46, 0.12) !important;
    }
}

body .muvt-tabs .elementor-tabs-wrapper::-webkit-scrollbar,
body .muvt-tabs .e-n-tabs-heading::-webkit-scrollbar {
    display: none !important;
}

body .muvt-tabs {
    position: relative !important;
}

body .muvt-tabs:not(.muvt-tabs-scrollable) .elementor-tabs-wrapper,
body .muvt-tabs:not(.muvt-tabs-scrollable) .e-n-tabs-heading {
    justify-content: center !important;
}

body .muvt-tabs.muvt-tabs-scrollable .elementor-tabs-wrapper,
body .muvt-tabs.muvt-tabs-scrollable .e-n-tabs-heading {
    box-shadow:
        inset 0 1px 0 rgba(122, 30, 46, 0.08),
        inset 0 -1px 0 rgba(122, 30, 46, 0.08) !important;
}

body .muvt-tabs.can-scroll-left .elementor-tabs-wrapper,
body .muvt-tabs.can-scroll-left .e-n-tabs-heading {
    box-shadow:
        inset 22px 0 20px -18px rgba(250, 249, 246, 0.95),
        inset 0 1px 0 rgba(122, 30, 46, 0.08),
        inset 0 -1px 0 rgba(122, 30, 46, 0.08) !important;
}

body .muvt-tabs.can-scroll-right .elementor-tabs-wrapper,
body .muvt-tabs.can-scroll-right .e-n-tabs-heading {
    box-shadow:
        inset -22px 0 20px -18px rgba(250, 249, 246, 0.95),
        inset 0 1px 0 rgba(122, 30, 46, 0.08),
        inset 0 -1px 0 rgba(122, 30, 46, 0.08) !important;
}

body .muvt-tabs.can-scroll-left.can-scroll-right .elementor-tabs-wrapper,
body .muvt-tabs.can-scroll-left.can-scroll-right .e-n-tabs-heading {
    box-shadow:
        inset 22px 0 20px -18px rgba(250, 249, 246, 0.95),
        inset -22px 0 20px -18px rgba(250, 249, 246, 0.95),
        inset 0 1px 0 rgba(122, 30, 46, 0.08),
        inset 0 -1px 0 rgba(122, 30, 46, 0.08) !important;
}

body .muvt-tabs .elementor-tab-title,
body .muvt-tabs .elementor-tab-desktop-title,
body .muvt-tabs .e-n-tab-title {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    scroll-snap-align: start !important;
}

body .muvt-tabs.is-preview-scrolling .elementor-tabs-wrapper,
body .muvt-tabs.is-preview-scrolling .e-n-tabs-heading {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

body .muvt-tabs.is-preview-scrolling .elementor-tab-title,
body .muvt-tabs.is-preview-scrolling .elementor-tab-desktop-title,
body .muvt-tabs.is-preview-scrolling .e-n-tab-title {
    scroll-snap-align: none !important;
}

/* Base Tab Title */
body .muvt-tabs .elementor-tab-title,
body .muvt-tabs .elementor-tab-desktop-title,
body .muvt-tabs .e-n-tab-title {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    padding: 0.5rem 0.5rem !important;
    margin: 0 !important;
    color: var(--text-muted) !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 500 !important;
    position: relative !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    outline: none !important;
    border-radius: 0 !important;
}

/* Custom Animated Underline (Default state) */
body .muvt-tabs .elementor-tab-title::after,
body .muvt-tabs .elementor-tab-desktop-title::after,
body .muvt-tabs .e-n-tab-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0% !important;
    height: 1px !important;
    background-color: var(--brand-color) !important;
    transition: width 0.3s ease !important;
    opacity: 1 !important;
}

/* Active & Hover States */
body .muvt-tabs .elementor-tab-title:hover,
body .muvt-tabs .elementor-tab-title.elementor-active,
body .muvt-tabs .elementor-tab-desktop-title:hover,
body .muvt-tabs .elementor-tab-desktop-title.elementor-active,
body .muvt-tabs .e-n-tab-title:hover,
body .muvt-tabs .e-n-tab-title[aria-selected="true"] {
    color: var(--brand-color) !important;
}

body .muvt-tabs .elementor-tab-title.elementor-active,
body .muvt-tabs .elementor-tab-desktop-title.elementor-active,
body .muvt-tabs .e-n-tab-title[aria-selected="true"] {
    border-bottom-color: var(--brand-color) !important;
}

body .muvt-tabs .elementor-tab-title.elementor-active::after,
body .muvt-tabs .elementor-tab-desktop-title.elementor-active::after,
body .muvt-tabs .e-n-tab-title[aria-selected="true"]::after {
    width: 100% !important;
}

@media (hover: hover) and (pointer: fine) {

    body .muvt-tabs .elementor-tab-title:hover::after,
    body .muvt-tabs .elementor-tab-desktop-title:hover::after,
    body .muvt-tabs .e-n-tab-title:hover::after {
        width: 100% !important;
    }
}

/* Disabling Elementor's Default Highlighting Mechanics */
body .muvt-tabs .elementor-tab-title::before,
body .muvt-tabs .elementor-tab-desktop-title::before,
body .muvt-tabs .e-n-tab-title::before,
body .muvt-tabs .e-n-tabs-heading::before {
    display: none !important;
}

/* Formatted Tab Content Area */
body .muvt-tabs .elementor-tabs-content-wrapper,
body .muvt-tabs .e-n-tabs-content {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body .muvt-tabs .elementor-tab-content,
body .muvt-tabs .e-n-tab-content {
    font-family: var(--font-body) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: var(--text-muted) !important;
    padding: 1rem 0 !important;
    border: none !important;
}

@media (max-width: 767px) {
    body {
        --muvt-tabs-bar-padding-y: 0.85rem;
        --muvt-tabs-bar-padding-x: 1.1rem;
    }

    body .muvt-tabs .elementor-tabs-wrapper,
    body .muvt-tabs .e-n-tabs-heading {
        gap: 1.25rem !important;
    }

    .navbar {
        justify-content: center;
        width: fit-content;
        max-width: calc(100vw - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        margin:
            calc(env(safe-area-inset-top, 0px) + 1.35rem) auto 0;
        gap: 0;
        padding: 0.3rem 0.35rem;
        border-radius: 999px;
        background: rgba(250, 249, 246, 0.62);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 12px 34px rgba(93, 55, 58, 0.1);
        overflow: hidden;
        transition:
            background-color 0.35s ease,
            box-shadow 0.35s ease,
            backdrop-filter 0.35s ease,
            -webkit-backdrop-filter 0.35s ease;
        overflow: visible;
    }

    .navbar.light-theme {
        background: rgba(26, 26, 26, 0.22);
        box-shadow: 0 14px 36px rgba(10, 10, 10, 0.18);
    }

    body.home .navbar.navbar-at-top {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .navbar .logo {
        z-index: 1;
        flex: 0 0 auto;
    }

    .navbar .navbar-controls {
        gap: 0.35rem;
    }

    .navbar .logo-img {
        height: 48px;
    }

    .navbar .nav-links {
        gap: 0.25rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        overflow: hidden;
        flex: 0 1 auto;
        max-width: 0;
        margin-left: 0;
        padding-left: 0;
        white-space: nowrap;
        transition:
            max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            margin-left 0.45s ease,
            padding-left 0.45s ease;
    }

    .navbar .nav-links.visible {
        max-width: min(58vw, 250px);
        margin-left: 0.35rem;
        padding-left: 0.15rem;
    }

    .navbar .language-switcher {
        --language-switcher-trigger-size: 1.9rem;
        --language-switcher-gap: 0.3rem;
        gap: 0.3rem;
    }

    .navbar .language-switcher__source .gt_options,
    .navbar .language-switcher__source .gt-options,
    .navbar .language-switcher__source .gt_option {
        gap: 0.3rem;
    }

    .navbar .menu-action {
        min-height: 42px;
        padding: 0.55rem 0.42rem;
    }

    .navbar .menu-action__label {
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.8rem;
    }

    .navbar-static .nav-links {
        max-width: min(58vw, 250px);
        margin-left: 0.35rem;
        padding-left: 0.15rem;
    }
}

/* ==================================
   Bar Accordion Gallery (Pre-Hero Section)
   ================================== */
.bar-gallery {
    width: 100vw;
    height: var(--muvt-panel-vh);
    position: relative;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 8vh;
    padding-bottom: 4vh;
}

/* Intro Title fading above the gallery */
.gallery-intro {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--bg-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.accordion-container {
    width: 85vw;
    height: 65vh;
    display: flex;
    gap: 10px;
}

.accordion-panel {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    outline: none;
}

.accordion-panel.active {
    flex: 4;
}

.accordion-panel:focus,
.accordion-panel:focus-visible {
    outline: none;
}

.accordion-panel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: filter 0.7s, transform 0.7s;
}

.accordion-panel.active img {
    filter: brightness(1);
    transform: scale(1.03);
}

.panel-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    transition-delay: 0s;
    color: var(--bg-color);
    pointer-events: none;
}

.accordion-panel.active .panel-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.panel-content h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--bg-color);
    margin: 0;
    line-height: 1;
}

.scroll-indicator-gallery {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--bg-color);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator-gallery span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.scroll-indicator-gallery svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@media(max-width: 768px) {
    .shadow-soft {
        box-shadow: none;
    }

    .image-box img[style],
    .accordion-panel img {
        filter: none !important;
    }

    .accordion-container {
        flex-direction: column;
        height: 75vh;
        width: 90vw;
    }

    .bar-gallery {
        padding-top: 12vh;
        padding-bottom: 6vh;
    }

    .panel-content h3 {
        font-size: 1.5rem;
    }

    .panel-content {
        bottom: 1rem;
        left: 1rem;
    }
}
