/**
 * Pagina Menu Fenix — stili dedicati.
 *
 * Scopati a .fenix-menu-page-active per evitare leaking su altre pagine
 * (la body class è applicata dal plugin quando il post contiene [fenix_menu_page]).
 *
 * Riusa palette + tipografia + utility Tailwind precompilate (tailwind.css).
 */

/* ─── Hide Divi default header ────────────────────────────────────────── */

/* `_et_pb_post_hide_nav=on` aggiunge body.et_hide_nav che nasconde via opacity:0,
   ma Divi al primo scroll aggiunge .et-fixed-header con opacity:1 e l'header torna
   visibile. Display:none assoluto risolve definitivamente. */
body.fenix-menu-page-active #main-header,
body.fenix-menu-page-active #top-header {
    display: none !important;
}

body.fenix-menu-page-active #page-container {
    padding-top: 0 !important;
}

/* ─── Body bg gunmetal sotto il TB footer ──────────────────────────────
   Il footer Theme Builder Divi (.et-l--footer) ha bg trasparente. Senza
   override, il body bg stone-bg (ereditato da home.css .fenix-home-active)
   appare come fascia chiara sotto il footer (visibile su iOS overscroll
   bounce e in vewport > doc_height). Setto body bg a gunmetal sulla menu
   page; il wrapper .fenix-menu-page mantiene stone-bg (rule sotto). */
body.fenix-menu-page-active {
    background-color: #2a3439 !important;
}

/* ─── TB Footer wrapper cleanup ─────────────────────────────────────────
   Il TB footer template (post 18) avvolge [fenix_footer] in et_pb_section
   > et_pb_row > et_pb_column > et_pb_code. Ognuno di questi wrapper Divi
   ha padding default (~106px sopra + 152px sotto) che creavano gap
   visibili. Azzero tutto. Il container immediato (.et_pb_code_inner)
   prende bg stone-bg per dare il "letto chiaro" su cui poggia il footer
   gunmetal con la sua curvatura `rounded-t-[3rem]` (5rem mt-20 visibile). */
body.fenix-menu-page-active .et-l--footer,
body.fenix-menu-page-active .et-l--footer .et_pb_section,
body.fenix-menu-page-active .et-l--footer .et_pb_row,
body.fenix-menu-page-active .et-l--footer .et_pb_column,
body.fenix-menu-page-active .et-l--footer .et_pb_module {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

body.fenix-menu-page-active .et-l--footer .et_pb_code_inner {
    background-color: #e6dcca;
    padding: 0 !important;
    margin: 0 !important;
}

/* ─── Navbar minimale ─────────────────────────────────────────────────── */

.fenix-menu-page-active #fenix-page-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.25rem 1.5rem;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, color 0.4s ease;
    color: #2a3439;
}

@media (min-width: 768px) {
    .fenix-menu-page-active #fenix-page-navbar {
        padding: 1.5rem 2.5rem;
    }
}

.fenix-menu-page-active #fenix-page-navbar.nav-scrolled {
    background-color: rgba(230, 220, 202, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(42, 52, 57, 0.06);
}

.fenix-menu-page-active #fenix-page-navbar.nav-on-dark {
    background-color: rgba(42, 52, 57, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #e6dcca;
}

.fenix-menu-page-active .fenix-page-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.fenix-menu-page-active .fenix-page-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.fenix-menu-page-active .fenix-page-nav__back:hover {
    opacity: 0.72;
}

.fenix-menu-page-active .fenix-page-nav__arrow {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 640px) {
    .fenix-menu-page-active .fenix-page-nav__back-label {
        display: none;
    }
}

.fenix-menu-page-active .fenix-page-nav__logo-wrap {
    text-align: center;
}

.fenix-menu-page-active .fenix-page-nav__logo {
    height: 28px;
    width: auto;
    display: block;
    margin: 0 auto;
    transition: filter 0.4s ease;
}

@media (min-width: 768px) {
    .fenix-menu-page-active .fenix-page-nav__logo {
        height: 36px;
    }
}

.fenix-menu-page-active #fenix-page-navbar.nav-on-dark .fenix-page-nav__logo {
    /* logo antracite → bianco su gunmetal */
    filter: brightness(0) invert(1);
}

.fenix-menu-page-active .fenix-page-nav__right {
    /* spazio simmetrico per centrare il logo nel grid 1fr auto 1fr */
}

/* ─── Wrapper pagina ───────────────────────────────────────────────────── */

.fenix-menu-page-active .fenix-menu-page {
    background-color: #e6dcca;
    color: #2a3439;
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    /* offset per navbar fissa */
    padding-top: 0;
}

/* ─── Hero pagina ──────────────────────────────────────────────────────── */

.fenix-menu-page-active .menu-hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1.5rem 5rem;
    background-color: #e6dcca;
}

@media (min-width: 768px) {
    .fenix-menu-page-active .menu-hero {
        padding: 10rem 2rem 6rem;
    }
}

.fenix-menu-page-active .menu-hero__eyebrow {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    text-transform: lowercase;
    color: #798d7b;
    margin-bottom: 1.5rem;
}

.fenix-menu-page-active .menu-hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #798d7b;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.05;
    margin: 0 0 1.5rem 0;
}

.fenix-menu-page-active .menu-hero__intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    line-height: 1.55;
    color: #798d7b;
    max-width: 40rem;
    margin: 0 auto;
}

/* ─── Sticky chip nav ──────────────────────────────────────────────────── */

.fenix-menu-page-active .menu-chipnav {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(230, 220, 202, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(121, 141, 123, 0.15);
}

.fenix-menu-page-active .menu-chipnav__scroller {
    position: relative;
    padding: 0.75rem 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
}

.fenix-menu-page-active .menu-chipnav__scroller::-webkit-scrollbar {
    display: none;
}

.fenix-menu-page-active .menu-chipnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    scroll-snap-type: x proximity;
}

.fenix-menu-page-active .menu-chipnav__item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fenix-menu-page-active .menu-chipnav__pill {
    position: absolute;
    top: 0.75rem;
    left: 0;
    width: 0;
    height: calc(100% - 1.5rem);
    background-color: rgba(121, 141, 123, 0.1);
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

.fenix-menu-page-active .menu-chipnav__chip {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(121, 141, 123, 0.3);
    border-radius: 9999px;
    background: transparent;
    color: #2a3439;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    scroll-snap-align: center;
    transition: color 0.3s ease, border-color 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.fenix-menu-page-active .menu-chipnav__chip:hover {
    border-color: rgba(121, 141, 123, 0.55);
}

.fenix-menu-page-active .menu-chipnav__chip.is-active {
    color: #af8859;
    border-color: rgba(175, 136, 89, 0.55);
}

/* ─── Sezioni standard ─────────────────────────────────────────────────── */

.fenix-menu-page-active .menu-sections {
    background-color: #e6dcca;
}

.fenix-menu-page-active .menu-section {
    padding: clamp(4rem, 9vh, 7rem) 1.5rem;
    max-width: 780px;
    margin: 0 auto;
    scroll-margin-top: 120px; /* per smooth scroll che evita la sticky chip nav */
}

@media (min-width: 768px) {
    .fenix-menu-page-active .menu-section {
        padding: clamp(5rem, 10vh, 8rem) 2rem;
    }
}

.fenix-menu-page-active .menu-section__header {
    margin-bottom: 3rem;
}

.fenix-menu-page-active .menu-section--align-left .menu-section__header {
    text-align: left;
}

.fenix-menu-page-active .menu-section--align-right .menu-section__header {
    text-align: left;
}

@media (min-width: 768px) {
    .fenix-menu-page-active .menu-section--align-right .menu-section__header {
        text-align: right;
    }
}

.fenix-menu-page-active .menu-section__eyebrow {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(121, 141, 123, 0.85);
    margin-bottom: 1rem;
}

.fenix-menu-page-active .menu-section__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    color: #2a3439;
    margin: 0;
}

.fenix-menu-page-active .menu-section__subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: rgba(121, 141, 123, 0.95);
    margin: 0.75rem 0 0 0;
}

/* ─── Lista voci ───────────────────────────────────────────────────────── */

.fenix-menu-page-active .menu-section__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fenix-menu-page-active .menu-item {
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(121, 141, 123, 0.12);
}

.fenix-menu-page-active .menu-item:last-child {
    border-bottom: 0;
}

.fenix-menu-page-active .menu-item__head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.fenix-menu-page-active .menu-item__name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: #2a3439;
    margin: 0;
    flex-shrink: 1;
    line-height: 1.2;
}

.fenix-menu-page-active .menu-item__leader {
    flex: 1 1 auto;
    height: 1px;
    background-image: linear-gradient(to right, rgba(121, 141, 123, 0.4) 33%, rgba(0, 0, 0, 0) 0%);
    background-position: bottom;
    background-size: 6px 1px;
    background-repeat: repeat-x;
    align-self: flex-end;
    margin-bottom: 0.4rem;
    min-width: 2rem;
}

.fenix-menu-page-active .menu-item__price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.fenix-menu-page-active .menu-item__price {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #af8859;
    line-height: 1;
}

.fenix-menu-page-active .menu-item__price-note {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    color: rgba(121, 141, 123, 0.8);
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

.fenix-menu-page-active .menu-item__desc {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #5e6f60;
    margin: 0.5rem 0 0 0;
    max-width: 36rem;
}

/* ─── Chip allergeni inline ────────────────────────────────────────────── */

.fenix-menu-page-active .menu-item__allergens {
    list-style: none;
    margin: 0.85rem 0 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fenix-menu-page-active .menu-item__allergen-chip {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-color: rgba(121, 141, 123, 0.08);
    color: #5e6f60;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.fenix-menu-page-active .menu-item__allergen-chip:hover,
.fenix-menu-page-active .menu-item__allergen-chip:focus-visible {
    background-color: rgba(175, 136, 89, 0.18);
    color: #af8859;
}

.fenix-menu-page-active .menu-item__allergen-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #af8859;
}

.fenix-menu-page-active .menu-item__allergen-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.fenix-menu-page-active .menu-item__allergen-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.7rem;
    background-color: #2a3439;
    color: #e6dcca;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.fenix-menu-page-active .menu-item__allergen-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #2a3439;
}

.fenix-menu-page-active .menu-item__allergen-chip:hover .menu-item__allergen-tooltip,
.fenix-menu-page-active .menu-item__allergen-chip:focus-visible .menu-item__allergen-tooltip,
.fenix-menu-page-active .menu-item__allergen-chip.is-open .menu-item__allergen-tooltip {
    opacity: 1;
}

/* ─── Sezione Mercato (special, full-bleed gunmetal) ───────────────────── */

.fenix-menu-page-active .menu-section--mercato {
    background-color: #2a3439;
    color: #e6dcca;
    padding: clamp(5rem, 12vh, 9rem) 1.5rem;
    max-width: 100%;
    margin: 4rem 0;
    text-align: center;
    scroll-margin-top: 120px;
}

@media (min-width: 768px) {
    .fenix-menu-page-active .menu-section--mercato {
        padding: clamp(6rem, 14vh, 11rem) 2rem;
    }
}

.fenix-menu-page-active .menu-mercato__inner {
    max-width: 720px;
    margin: 0 auto;
}

.fenix-menu-page-active .menu-mercato__tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background-color: #af8859;
    color: #2a3439;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.fenix-menu-page-active .menu-mercato__title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.05;
    color: #e6dcca;
    margin: 0 0 1.5rem 0;
}

.fenix-menu-page-active .menu-mercato__lead {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.5;
    color: rgba(230, 220, 202, 0.9);
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.fenix-menu-page-active .menu-mercato__price {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    color: #af8859;
    margin: 0 0 1rem 0;
    line-height: 1;
}

.fenix-menu-page-active .menu-mercato__note {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: rgba(230, 220, 202, 0.7);
    letter-spacing: 0.05em;
    margin: 0;
}

.fenix-menu-page-active .menu-mercato__inner .menu-item__allergens {
    justify-content: center;
    margin-top: 1.75rem;
}

.fenix-menu-page-active .menu-mercato__inner .menu-item__allergen-chip {
    background-color: rgba(230, 220, 202, 0.1);
    color: #e6dcca;
}

.fenix-menu-page-active .menu-mercato__inner .menu-item__allergen-chip:hover,
.fenix-menu-page-active .menu-mercato__inner .menu-item__allergen-chip:focus-visible {
    background-color: rgba(175, 136, 89, 0.28);
    color: #af8859;
}

/* ─── Legenda allergeni ────────────────────────────────────────────────── */

.fenix-menu-page-active .menu-legend {
    background-color: #e6dcca;
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(121, 141, 123, 0.18);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .fenix-menu-page-active .menu-legend {
        padding: 5rem 2rem;
    }
}

.fenix-menu-page-active .menu-legend__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #798d7b;
    margin: 0 0 2.5rem 0;
    text-align: center;
}

.fenix-menu-page-active .menu-legend__grid {
    list-style: none;
    margin: 0 0 3rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .fenix-menu-page-active .menu-legend__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fenix-menu-page-active .menu-legend__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #5e6f60;
}

.fenix-menu-page-active .menu-legend__icon svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: #af8859;
}

.fenix-menu-page-active .menu-legend__label {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
}

.fenix-menu-page-active .menu-legend__disclaimer {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #798d7b;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}

/* ─── Footer (riusato) corretivi ───────────────────────────────────────── */

/*
 * Il footer Fenix esistente (.bg-gunmetal) viene riusato. Reset margin-top:0
 * per integrarsi col bottom della legenda (gunmetal segue stone-bg, non serve gap).
 */
.fenix-menu-page-active footer#fenix-footer {
    margin-top: 0;
}

/* ─── Reveal animations (stato iniziale) ───────────────────────────────── */

.fenix-menu-page-active .menu-hero__eyebrow,
.fenix-menu-page-active .menu-hero__intro,
.fenix-menu-page-active .menu-section__eyebrow,
.fenix-menu-page-active .menu-section__subtitle,
.fenix-menu-page-active .menu-item,
.fenix-menu-page-active .menu-mercato__tag,
.fenix-menu-page-active .menu-mercato__lead,
.fenix-menu-page-active .menu-mercato__price,
.fenix-menu-page-active .menu-mercato__note {
    opacity: 0;
}

.fenix-menu-page-active .menu-hero__eyebrow.is-revealed,
.fenix-menu-page-active .menu-hero__intro.is-revealed,
.fenix-menu-page-active .menu-section__eyebrow.is-revealed,
.fenix-menu-page-active .menu-section__subtitle.is-revealed,
.fenix-menu-page-active .menu-item.is-revealed,
.fenix-menu-page-active .menu-mercato__tag.is-revealed,
.fenix-menu-page-active .menu-mercato__lead.is-revealed,
.fenix-menu-page-active .menu-mercato__price.is-revealed,
.fenix-menu-page-active .menu-mercato__note.is-revealed {
    opacity: 1;
}

/* split-text è gestito dal JS che setta is-ready */
.fenix-menu-page-active .split-text {
    visibility: hidden;
}

.fenix-menu-page-active .split-text.is-ready {
    visibility: visible;
}

/* ─── Reduce motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .fenix-menu-page-active .menu-hero__eyebrow,
    .fenix-menu-page-active .menu-hero__intro,
    .fenix-menu-page-active .menu-section__eyebrow,
    .fenix-menu-page-active .menu-section__subtitle,
    .fenix-menu-page-active .menu-item,
    .fenix-menu-page-active .menu-mercato__tag,
    .fenix-menu-page-active .menu-mercato__lead,
    .fenix-menu-page-active .menu-mercato__price,
    .fenix-menu-page-active .menu-mercato__note {
        opacity: 1;
    }

    .fenix-menu-page-active .split-text {
        visibility: visible;
    }

    .fenix-menu-page-active * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Cursor: usa #magic-cursor (pallino) come sulla home ─────────────
   Il body.fenix-home-active body { cursor: none } di home.css è OK qui:
   il magic-cursor element è iniettato nel template menu-page.php e gestito
   da initMagicCursor() in menu-page.js. */


/* ─── Drink List: pillola chip + sottogruppi (aggiunto 29/05) ───────────── */

/* Chip "Drink List" spostata visivamente per prima (DOM resta ultimo → scroll-spy ok). */
.fenix-menu-page-active .menu-chipnav__item--drink {
    order: -1;
}

/* A riposo: pillola piena verde salvia (#798d7b, stesso colore di "Menu Fenix") + testo bianco. */
.fenix-menu-page-active .menu-chipnav__chip--drink {
    background-color: #798d7b;
    color: #fff;
    border-color: #798d7b;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.fenix-menu-page-active .menu-chipnav__chip--drink:hover {
    background-color: #6b7e6d;
    border-color: #6b7e6d;
}

/* Quando la sezione drink è attiva: torna allo stile standard (oro), come le altre chip. */
.fenix-menu-page-active .menu-chipnav__chip--drink.is-active {
    background-color: transparent;
    color: #af8859;
    border-color: rgba(175, 136, 89, 0.55);
}

/* Sottogruppi della Drink List (Cocktail Sicilian Spirit / Fenix Signature / Food & Drink Pairing). */
.fenix-menu-page-active .menu-drinks__group {
    margin-top: 3.5rem;
}

.fenix-menu-page-active .menu-drinks__group:first-of-type {
    margin-top: 0;
}

.fenix-menu-page-active .menu-drinks__group-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(121, 141, 123, 0.95);
    margin: 0 0 1rem 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(121, 141, 123, 0.25);
}

/* Nota classici a fine sezione. */
.fenix-menu-page-active .menu-drinks__note {
    margin: 3rem 0 0 0;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(121, 141, 123, 0.95);
    text-align: center;
}

/* ─── Freccetta "torna su" (solo menu page, aggiunto 29/05) ─────────────── */

.fenix-menu-page-active .menu-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;                         /* clip del riempimento ::before al cerchio */
    border: 1px solid rgba(121, 141, 123, 0.45);
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.92);
    color: #798d7b;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);              /* slide-in dal basso */
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease,
                border-color 0.6s ease;
    box-shadow: 0 6px 20px rgba(42, 52, 57, 0.08);
}

.fenix-menu-page-active .menu-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Effetto "bubble" come le icone social del footer (.social-bubble-btn):
   un cerchio salvia si espande dal centro all'hover, la freccia scala e diventa bianca. */
.fenix-menu-page-active .menu-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #798d7b;
    border-radius: 9999px;
    transform: scale(0);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.fenix-menu-page-active .menu-to-top:hover::before {
    transform: scale(1);
}

.fenix-menu-page-active .menu-to-top:hover {
    border-color: #798d7b;
}

.fenix-menu-page-active .menu-to-top svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    display: block;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s ease;
}

.fenix-menu-page-active .menu-to-top:hover svg {
    transform: scale(1.1);
    color: #fff;
}

@media (max-width: 600px) {
    .fenix-menu-page-active .menu-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fenix-menu-page-active .menu-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
        transform: none;
    }
    .fenix-menu-page-active .menu-to-top.is-visible {
        transform: none;
    }
}
