/**
 * Fenix Favignana custom design layer.
 *
 * Aggiungere qui gli override visuali del sito. Il file parte volutamente neutro
 * per non modificare il design attuale al primo switch del child theme.
 */

/* Footer mobile stacking */
@media (max-width: 980px) {
     footer .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 3.75rem !important;
        max-width: 30rem;
        text-align: center;
    }

     footer .footer-col {
        width: 100% !important;
        max-width: 26rem;
        align-items: center !important;
        text-align: center !important;
    }

     footer .footer-brand-col {
        margin-top: 0 !important;
    }

     footer .footer-bottom-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 1.75rem !important;
        text-align: center !important;
    }

     footer .footer-bottom-social,
     footer .footer-bottom-cta,
     footer .footer-copyright {
        justify-self: center !important;
    }
}

@media (max-width: 640px) {
     footer {
        padding: 4.5rem 1.25rem !important;
        border-top-left-radius: 2rem !important;
        border-top-right-radius: 2rem !important;
    }

     footer .fenix-footer-logo {
        width: min(190px, 68vw) !important;
    }

     footer .footer-grid {
        gap: 3.25rem !important;
    }
}

/* Footer mobile stacking cache-fix */
@media only screen and (max-width: 980px) {
    body.fenix-home-active .et_pb_code_inner > footer .footer-grid,
    body footer .footer-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        justify-items: center !important;
        align-items: start !important;
        gap: 3.75rem !important;
        width: 100% !important;
        max-width: 30rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    body.fenix-home-active .et_pb_code_inner > footer .footer-col,
    body footer .footer-col {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 26rem !important;
        min-width: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    body footer .footer-bottom-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: center !important;
        gap: 1.75rem !important;
        text-align: center !important;
    }
}

/* Sunset ritual mobile optimization */
@media only screen and (max-width: 767px) {
    body.fenix-home-active #bubble-trigger {
        min-height: 170svh;
    }

    body.fenix-home-active #bubble-trigger .sticky {
        height: 100svh !important;
        min-height: 100svh !important;
        justify-content: center !important;
    }

    body.fenix-home-active #bubble-trigger .bubble-window {
        max-width: 100vw !important;
        max-height: 72svh !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: hidden !important;
    }

    body.fenix-home-active #bubble-trigger .bubble-img-wrapper {
        width: 100% !important;
        height: 100% !important;
        top: 50% !important;
        left: 50% !important;
    }

    body.fenix-home-active #bubble-trigger #bubble-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform-origin: center center !important;
        image-rendering: auto;
    }

    body.fenix-home-active #bubble-trigger #bubble-text {
        width: 100% !important;
        min-height: 100% !important;
        padding: 0 1.35rem !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    body.fenix-home-active #bubble-trigger #bubble-text h3 {
        width: 100% !important;
        max-width: 22rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        font-size: clamp(3.25rem, 15vw, 4.75rem) !important;
        line-height: 0.95 !important;
        letter-spacing: 0 !important;
        text-wrap: balance;
    }

    body.fenix-home-active #bubble-trigger #bubble-text p {
        width: 100% !important;
        max-width: 18rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
}

/* Navbar refinement */
body.fenix-home-active nav.fixed.w-full.top-0,
body.fenix-home-active nav.nav-scrolled {
    padding: 1.2rem !important;
}

body.fenix-home-active nav.nav-scrolled,
body.fenix-home-active nav.nav-scrolled.shadow-sm {
    box-shadow: none !important;
    border-bottom: 0 !important;
}

@media only screen and (max-width: 767px) {
    body.fenix-home-active nav.fixed.w-full.top-0,
    body.fenix-home-active nav.nav-scrolled {
        padding: 1rem 1.2rem !important;
    }
}

/* Mobile booking CTA refinement */
@media only screen and (max-width: 767px) {
    body.fenix-home-active nav.fixed.w-full.top-0 .btn-elegant {
        min-width: 0 !important;
        height: 2.35rem !important;
        padding: 0.62rem 1.15rem !important;
        font-size: 0.68rem !important;
        line-height: 1 !important;
        letter-spacing: 0.2em !important;
        transition: background-color 360ms ease, color 360ms ease, border-color 360ms ease, padding 360ms ease, border-radius 360ms ease, box-shadow 360ms ease !important;
    }

    body.fenix-home-active nav.fixed.w-full.top-0 .btn-elegant .btn-text {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
        transition: color 360ms ease, gap 360ms ease !important;
    }

    body.fenix-home-active nav.fixed.w-full.top-0 .btn-elegant .btn-text::after {
        content: "\2192";
        display: inline-block;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateX(-0.25rem);
        transition: opacity 360ms ease, transform 360ms ease, max-width 360ms ease;
        font-size: 0.9rem;
        line-height: 0.8;
        letter-spacing: 0;
    }

    body.fenix-home-active.fenix-hero-passed nav.fixed.w-full.top-0 .btn-elegant {
        padding: 0.62rem 1rem 0.62rem 1.15rem !important;
        border-radius: 999px !important;
        border-top-color: rgba(230, 220, 202, 0) !important;
        border-bottom-color: rgba(230, 220, 202, 0) !important;
        background: #e6dcca !important;
        color: #2a3439 !important;
        box-shadow: 0 0.65rem 1.4rem rgba(42, 52, 57, 0.14) !important;
    }

    body.fenix-home-active.fenix-hero-passed nav.fixed.w-full.top-0 .btn-elegant .btn-text {
        color: #2a3439 !important;
        gap: 0.5rem !important;
    }

    body.fenix-home-active.fenix-hero-passed nav.fixed.w-full.top-0 .btn-elegant .btn-text::after {
        max-width: 1rem;
        opacity: 1;
        transform: translateX(0);
    }
}

/* Menu section text reveal */
body.fenix-home-active #menu-section .fenix-menu-reveal {
    opacity: 0;
    transform: translate3d(0, 1.35rem, 0);
    will-change: opacity, transform;
}

body.fenix-home-active #menu-section .fenix-menu-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 700ms ease, transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    body.fenix-home-active #menu-section .fenix-menu-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Interactive menu capsule preview */
body.fenix-home-active #menu-section {
    max-width: 82rem !important;
}

body.fenix-home-active #menu-section #cursor-img {
    display: none !important;
}

body.fenix-home-active #menu-section .fenix-menu-experience {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.72fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    text-align: left;
}

body.fenix-home-active #menu-section .fenix-menu-experience .menu-list {
    width: 100%;
}

body.fenix-home-active #menu-section .menu-row {
    position: relative;
    overflow: hidden;
    transition: color 420ms ease, border-color 520ms cubic-bezier(0.19, 1, 0.22, 1), transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

body.fenix-home-active #menu-section .menu-row::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: #af8859;
    transition: width 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

body.fenix-home-active #menu-section .menu-row > span:first-child {
    transition: transform 520ms cubic-bezier(0.19, 1, 0.22, 1), color 320ms ease;
}

body.fenix-home-active #menu-section .menu-row:hover,
body.fenix-home-active #menu-section .menu-row.is-active {
    border-color: rgba(175, 136, 89, 0.55) !important;
    color: #af8859 !important;
}

body.fenix-home-active #menu-section .menu-row:hover::after,
body.fenix-home-active #menu-section .menu-row.is-active::after {
    width: 100%;
}

body.fenix-home-active #menu-section .menu-row:hover > span:first-child,
body.fenix-home-active #menu-section .menu-row.is-active > span:first-child {
    transform: translateX(1rem);
    color: #af8859;
}

body.fenix-home-active #menu-section .fenix-menu-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 36rem;
}

body.fenix-home-active #menu-section .fenix-menu-img-mask {
    position: relative;
    width: min(24rem, 100%);
    height: min(36.25rem, 72vh);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(121, 141, 123, 0.1);
    box-shadow: 0 2rem 4rem rgba(42, 52, 57, 0.15);
    transform: translateZ(0);
}

body.fenix-home-active #menu-section .fenix-menu-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(5rem, 0, 0) scale(1.05);
    will-change: opacity, transform, visibility;
}

body.fenix-home-active #menu-section .fenix-menu-preview-img.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
}

@media only screen and (max-width: 980px) {
    body.fenix-home-active #menu-section {
        max-width: 42rem !important;
    }

    body.fenix-home-active #menu-section .fenix-menu-experience {
        display: block;
        text-align: center;
    }

    body.fenix-home-active #menu-section .fenix-menu-preview {
        display: none !important;
    }

    body.fenix-home-active #menu-section .menu-row:hover > span:first-child,
    body.fenix-home-active #menu-section .menu-row.is-active > span:first-child {
        transform: none;
    }
}

/* Interactive menu hover line refinement */
@media only screen and (min-width: 981px) {
    body.fenix-home-active #menu-section .menu-row {
        border-bottom-color: rgba(121, 141, 123, 0.22) !important;
        color: #798d7b !important;
        isolation: isolate;
    }

    body.fenix-home-active #menu-section .menu-row::after {
        width: 100% !important;
        height: 1px !important;
        bottom: -1px !important;
        z-index: 3;
        transform: scaleX(0);
        transform-origin: left center;
        background: #af8859 !important;
        transition: transform 780ms cubic-bezier(0.19, 1, 0.22, 1) !important;
    }

    body.fenix-home-active #menu-section .menu-row:hover::after,
    body.fenix-home-active #menu-section .menu-row.is-active::after {
        transform: scaleX(1);
    }

    body.fenix-home-active #menu-section .menu-row > span:first-child {
        display: inline-block;
        color: #798d7b;
        transition: transform 760ms cubic-bezier(0.19, 1, 0.22, 1), color 520ms ease !important;
    }

    body.fenix-home-active #menu-section .menu-row > span:last-child {
        color: rgba(121, 141, 123, 0.55) !important;
        transition: color 520ms ease, transform 760ms cubic-bezier(0.19, 1, 0.22, 1) !important;
    }

    body.fenix-home-active #menu-section .menu-row:hover,
    body.fenix-home-active #menu-section .menu-row.is-active {
        border-bottom-color: rgba(121, 141, 123, 0.22) !important;
        color: #798d7b !important;
    }

    body.fenix-home-active #menu-section .menu-row:hover > span:first-child,
    body.fenix-home-active #menu-section .menu-row.is-active > span:first-child {
        transform: translateX(1rem);
        color: #af8859 !important;
    }

    body.fenix-home-active #menu-section .menu-row:hover > span:last-child,
    body.fenix-home-active #menu-section .menu-row.is-active > span:last-child {
        color: rgba(175, 136, 89, 0.72) !important;
    }
}

/* Restore menu item hover behavior from prototype */
@media only screen and (min-width: 981px) {
    body.fenix-home-active #menu-section .menu-row {
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
        border-bottom-color: rgba(121, 141, 123, 0.2) !important;
        cursor: pointer;
    }

    body.fenix-home-active #menu-section .menu-row::after {
        content: none !important;
    }

    body.fenix-home-active #menu-section .fenix-menu-item-text {
        position: relative;
        z-index: 10;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: #798d7b;
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease;
        will-change: transform, color;
    }

    body.fenix-home-active #menu-section .fenix-menu-item-text > span:first-child,
    body.fenix-home-active #menu-section .fenix-menu-item-text > span:last-child {
        transform: none !important;
        transition: color 0.3s ease;
    }

    body.fenix-home-active #menu-section .fenix-menu-item-text > span:last-child {
        color: rgba(121, 141, 123, 0.5) !important;
    }

    body.fenix-home-active #menu-section .fenix-menu-item-line {
        position: absolute;
        z-index: 20;
        bottom: -1px;
        left: 0;
        height: 1px;
        width: 0;
        background-color: #af8859;
        transition: width 0.7s cubic-bezier(0.19, 1, 0.22, 1);
        pointer-events: none;
    }

    body.fenix-home-active #menu-section .menu-row:hover .fenix-menu-item-line,
    body.fenix-home-active #menu-section .menu-row:focus-within .fenix-menu-item-line {
        width: 100%;
    }

    body.fenix-home-active #menu-section .menu-row:hover .fenix-menu-item-text,
    body.fenix-home-active #menu-section .menu-row:focus-within .fenix-menu-item-text {
        transform: translateX(16px);
        color: #af8859;
    }

    body.fenix-home-active #menu-section .menu-row:hover .fenix-menu-item-text > span:first-child,
    body.fenix-home-active #menu-section .menu-row:focus-within .fenix-menu-item-text > span:first-child {
        color: #af8859 !important;
    }

    body.fenix-home-active #menu-section .menu-row:hover .fenix-menu-item-text > span:last-child,
    body.fenix-home-active #menu-section .menu-row:focus-within .fenix-menu-item-text > span:last-child {
        color: rgba(175, 136, 89, 0.72) !important;
    }
}

/* Gemini crudi menu replacement */
body.fenix-home-active #menu-section.fenix-gemini-menu-section {
    width: min(100%, 1280px) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: clamp(6rem, 12vh, 10rem) 2rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr) !important;
    gap: clamp(4rem, 7vw, 7rem) !important;
    align-items: center !important;
    position: relative !important;
    color: #798d7b !important;
    text-align: left !important;
    cursor: auto !important;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-left {
    position: relative;
    z-index: 2;
    padding: 2rem 0 2rem 3rem;
    min-width: 0;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-guide {
    position: absolute;
    inset: 0 auto 0 0;
    width: 1px;
    background: rgba(121, 141, 123, 0.2);
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-guide-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #af8859;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-eyebrow {
    display: block;
    margin-bottom: 1rem;
    font-family: "Manrope", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    line-height: 1.2;
    color: #af8859;
    text-transform: uppercase;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-title {
    margin: 0 0 3rem !important;
    padding: 0 !important;
    font-family: "Cormorant Garamond", serif !important;
    font-size: clamp(3rem, 4.4vw, 5.65rem) !important;
    line-height: 0.95 !important;
    letter-spacing: 0.15em !important;
    color: #798d7b !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-ai-wrap {
    margin: -1.25rem 0 2.75rem;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-ai-btn {
    border-color: rgba(175, 136, 89, 0.24) !important;
    padding: 0.72rem 2.2rem !important;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-ai-btn .btn-text {
    color: #af8859 !important;
    font-size: 0.65rem !important;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 2.55vw, 3rem);
    line-height: 1.08;
    color: #798d7b;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item {
    position: relative;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(121, 141, 123, 0.2);
    cursor: pointer;
    overflow: hidden;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item-text {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease;
    will-change: transform, color;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item-text > span:first-child {
    min-width: 0;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item-text > span:last-child {
    flex: 0 0 auto;
    font-family: "Manrope", sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    color: rgba(121, 141, 123, 0.5);
    transition: color 0.3s ease;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item-line {
    position: absolute;
    z-index: 20;
    bottom: -1px;
    left: 0;
    height: 1px;
    width: 0;
    background-color: #af8859;
    transition: width 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item:hover .menu-item-line,
body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item.is-active .menu-item-line,
body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item:focus-within .menu-item-line {
    width: 100%;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item:hover .menu-item-text,
body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item.is-active .menu-item-text,
body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item:focus-within .menu-item-text {
    transform: translateX(16px);
    color: #af8859;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item:hover .menu-item-text > span:last-child,
body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item.is-active .menu-item-text > span:last-child,
body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item:focus-within .menu-item-text > span:last-child {
    color: rgba(175, 136, 89, 0.72);
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 36rem;
    position: relative;
    z-index: 2;
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .img-mask {
    width: min(23.75rem, 100%);
    height: min(36.25rem, 78vh);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    background-color: rgba(121, 141, 123, 0.1);
    box-shadow: 0 30px 60px rgba(42, 52, 57, 0.15);
    transform: translateZ(0);
}

body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

@media only screen and (max-width: 980px) {
    body.fenix-home-active #menu-section.fenix-gemini-menu-section {
        display: block !important;
        padding: 5.5rem 2rem !important;
    }

    body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-left {
        padding-left: 1.75rem;
    }

    body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-preview {
        display: none !important;
    }
}

@media only screen and (max-width: 640px) {
    body.fenix-home-active #menu-section.fenix-gemini-menu-section {
        padding: 4.75rem 1.35rem !important;
    }

    body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-title {
        font-size: clamp(2.8rem, 16vw, 4.2rem) !important;
        letter-spacing: 0.12em !important;
    }

    body.fenix-home-active #menu-section.fenix-gemini-menu-section .fenix-gemini-menu-list {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    body.fenix-home-active #menu-section.fenix-gemini-menu-section .menu-item {
        padding: 1.65rem 0;
    }
}

/* Ensure footer CTA hover fill is fully visible */
body footer .btn-elegant:hover::before {
    background-color: rgb(175 136 89 / 100%) !important;
    opacity: 1 !important;
}

/* ==========================================================================
   404 — Fenix Favignana
   Pagina di errore elegante full-screen.
   ========================================================================== */

body.error404 {
    background-color: #2a3439;
}

body.error404 #main-header,
body.error404 #top-header,
body.error404 #et-secondary-nav,
body.error404 #main-footer,
body.error404 #footer-bottom,
body.error404 .et_pb_section_video_bg {
    display: none !important;
}

body.error404 #page-container {
    padding-top: 0 !important;
    background-color: #2a3439;
}

body.error404 #et-main-area,
body.error404 #et-boc {
    background-color: #2a3439;
}

.fenix-error-404 {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
    background: #2a3439;
    color: #e6dcca;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}

.fenix-error-404::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(175, 136, 89, 0.08) 0%, transparent 55%),
                radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    z-index: -1;
}

.fenix-error-404__inner {
    max-width: 640px;
    width: 100%;
    opacity: 0;
    transform: translateY(14px);
    animation: fenixError404FadeIn 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s forwards;
}

.fenix-error-404__eyebrow {
    display: inline-block;
    font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #af8859;
    margin-bottom: 2.4rem;
}

.fenix-error-404__number {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 300;
    font-style: normal;
    font-size: clamp(7rem, 22vw, 16rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 2.4rem;
    color: #e6dcca;
}

.fenix-error-404__message {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    line-height: 1.55;
    color: rgba(230, 220, 202, 0.78);
    margin: 0 0 3.6rem;
}

.fenix-error-404__cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: #af8859;
    padding: 0.4rem 0.2rem 0.2rem;
    transition: color 0.5s ease;
}

.fenix-error-404__cta:hover,
.fenix-error-404__cta:focus-visible {
    color: #e6dcca;
    outline: none;
}

.fenix-error-404__cta-line {
    display: block;
    height: 1px;
    width: 56px;
    background: #af8859;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.fenix-error-404__cta:hover .fenix-error-404__cta-line,
.fenix-error-404__cta:focus-visible .fenix-error-404__cta-line {
    width: 96px;
    background: #e6dcca;
}

.fenix-error-404 .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes fenixError404FadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .fenix-error-404 {
        padding: 5rem 1.25rem;
    }
    .fenix-error-404__eyebrow {
        letter-spacing: 0.36em;
        margin-bottom: 1.8rem;
    }
    .fenix-error-404__message {
        margin-bottom: 2.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fenix-error-404__inner {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .fenix-error-404__cta-line {
        transition: none;
    }
}

/* Footer CTA Lottie icon */
body footer .footer-bottom-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.48rem;
    padding: 0.7rem 2.25rem !important;
    transform: none !important;
    translate: none !important;
}

body footer .footer-bottom-cta:hover,
body footer .footer-bottom-cta:focus,
body footer .footer-bottom-cta:focus-visible {
    transform: none !important;
    translate: none !important;
}

body footer .footer-bottom-cta .btn-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

body footer .footer-bottom-cta .footer-cta-lottie {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    position: relative;
    z-index: 1;
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 1.7rem;
    opacity: 0;
    transform: translateX(-0.24rem) scale(0.92);
    transition: opacity 0.34s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

body footer .footer-bottom-cta:hover .footer-cta-lottie,
body footer .footer-bottom-cta:focus-visible .footer-cta-lottie,
body footer .footer-bottom-cta:focus-within .footer-cta-lottie {
    opacity: 1;
    transform: translateX(0) scale(1);
}

body footer .footer-bottom-cta .footer-cta-lottie svg {
    width: 100% !important;
    height: 100% !important;
    overflow: visible;
}

body footer .footer-bottom-cta .footer-cta-lottie svg [stroke] {
    stroke: var(--gunmetal) !important;
}

@media (max-width: 980px) {
    body footer .footer-bottom-cta {
        width: fit-content !important;
        max-width: 100% !important;
        justify-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        left: auto !important;
        right: auto !important;
        translate: none !important;
        transform: none !important;
        position: static !important;
    }
}
/* ==========================================================================
   /404
   ========================================================================== */

/* Footer CTA — centering fix.
   Il button riserva sempre lo spazio per la lottie campanella sulla destra
   (anche a riposo, dove ha opacity:0). A riposo il testo appare quindi
   spostato a sinistra rispetto al centro ottico del button. A hover invece
   l'icona si materializza e il bundle testo+icona è naturalmente bilanciato
   dal layout flex. Soluzione: traslazione condizionale dello span — a riposo
   compensiamo con translateX, a hover la rimuoviamo lasciando che il flex
   centri text+icona insieme. */
body footer .footer-bottom-cta {
    gap: 0.85rem;
}

/* Compensazione = metà di (gap + icon_width) — è lo spazio invisibile a destra
   riservato dal layout per la lottie campanella (opacity:0 a riposo). */
body footer .footer-bottom-cta .btn-text {
    transform: translateX(calc((0.85rem + 1.7rem) / 2));
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

body footer .footer-bottom-cta:hover .btn-text,
body footer .footer-bottom-cta:focus-visible .btn-text,
body footer .footer-bottom-cta:focus-within .btn-text {
    transform: translateX(0);
}

/* === Fix footer Fenix (consenso/privacy work 02/06) === */
/* La sezione che contiene il footer arrotondato dev'essere trasparente: niente angoli bianchi */
.et_pb_section:has(#fenix-footer) { background-color: transparent !important; }
/* Footer a piena larghezza ovunque sia inserito (su /menu/ era in una riga 1080 allineata a sinistra) */
.et_pb_row:has(#fenix-footer),
.et_pb_row:has(#fenix-footer) > .et_pb_column {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* "La Nostra Arte": la sezione Divi ha sfondo bianco mentre il contenuto (gallery) è gunmetal.
   Durante lo scroll/animazione spuntava un sottile bordo bianco in alto. Allineo lo sfondo della
   sezione al gunmetal del contenuto, così l'eventuale gap sub-pixel resta invisibile. */
.et_pb_section:has(#horizontal-sec) { background-color: #2a3439 !important; }
