/*
Theme Name: Mariposa Cinematic WP
Theme URI: https://www.mariposapub.it/
Author: Barbanera Studio
Description: Tema narrativo e mobile-first per Mariposa Pub & Birreria, collegato al Cruscotto Menu Universale.
Version: 0.5.1
Requires PHP: 5.6
Text Domain: mariposa-cinematic-wp
*/

:root {
    --mp-void: #071214;
    --mp-night: #091f23;
    --mp-petrol: #063c47;
    --mp-petrol-light: #0c6470;
    --mp-panel: #0a1719;
    --mp-panel-soft: rgba(7, 23, 25, 0.92);
    --mp-copper: #bf6b32;
    --mp-copper-bright: #ebaa62;
    --mp-gold: #f2c27d;
    --mp-cream: #f5e4cd;
    --mp-ink: #180e0b;
    --mp-wine: #731d28;
    --mp-muted: #c5b49d;
    --mp-line: rgba(235, 170, 98, 0.35);
    --mp-line-strong: rgba(242, 194, 125, 0.76);
    --mp-shadow: rgba(0, 0, 0, 0.5);
    --mp-header: 70px;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(3, 11, 12, 0.38), rgba(3, 11, 12, 0.86)),
        url("assets/story/optimized/background-petrol-desktop.webp") center top / cover no-repeat,
        var(--mp-void);
    color: var(--mp-cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 18%, rgba(24, 165, 179, 0.2), transparent 29rem),
        radial-gradient(circle at 88% 20%, rgba(191, 107, 50, 0.13), transparent 24rem),
        linear-gradient(90deg, rgba(242, 194, 125, 0.025) 1px, transparent 1px),
        linear-gradient(0deg, rgba(242, 194, 125, 0.025) 1px, transparent 1px);
    background-size: auto, auto, 68px 68px, 68px 68px;
}

body.admin-bar .site-header {
    top: 46px;
}

@media (min-width: 783px) {
    body.admin-bar .site-header {
        top: 32px;
    }
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.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;
}

.skip-link:focus {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    clip: auto;
    background: var(--mp-gold);
    color: var(--mp-ink);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--mp-line);
    background: rgba(4, 13, 15, 0.9);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    width: min(1440px, 100%);
    min-height: var(--mp-header);
    padding: 7px 16px;
    margin: 0 auto;
}

.brand-mark {
    display: block;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--mp-line), 0 7px 20px var(--mp-shadow);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-toggle {
    display: grid;
    gap: 5px;
    justify-self: end;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--mp-line);
    background: rgba(6, 27, 30, 0.95);
    color: var(--mp-gold);
    cursor: pointer;
    place-content: center;
}

.nav-toggle span:not(.screen-reader-text) {
    display: block;
    width: 21px;
    height: 2px;
    background: currentColor;
}

.primary-nav {
    position: fixed;
    z-index: 110;
    top: var(--mp-header);
    right: 16px;
    left: 16px;
    display: none;
    border: 1px solid var(--mp-line-strong);
    background: rgba(5, 19, 21, 0.99);
    box-shadow: 0 26px 70px var(--mp-shadow);
}

.primary-nav.is-open {
    display: grid;
}

.primary-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(235, 170, 98, 0.15);
    color: var(--mp-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-nav a:last-child {
    border-bottom: 0;
}

.header-reserve {
    display: none;
}

main {
    position: relative;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--mp-copper-bright);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.story-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: max(680px, calc(100svh - var(--mp-header)));
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--mp-line);
    background: linear-gradient(90deg, rgba(5, 25, 28, 0.98) 0%, rgba(4, 29, 34, 0.72) 55%, rgba(2, 12, 14, 0.82) 100%);
}

.story-hero__airship,
.story-hero__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.story-hero__airship {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(2, 15, 17, 0.87) 0%, rgba(2, 15, 17, 0.33) 54%, rgba(2, 15, 17, 0.58) 100%),
        url("assets/story/optimized/nave-mariposa-desktop.webp") 82% center / cover no-repeat;
    filter: saturate(0.72) contrast(1.1) brightness(0.78);
    transform: scale(1.025);
}

.story-hero__veil {
    z-index: -1;
    background:
        radial-gradient(circle at 69% 22%, rgba(242, 194, 125, 0.19), transparent 15rem),
        linear-gradient(180deg, transparent 42%, rgba(3, 12, 14, 0.96) 100%);
}

.story-hero__host {
    position: absolute;
    z-index: 1;
    bottom: -5%;
    left: -8%;
    width: min(52vw, 650px);
    max-width: none;
    mix-blend-mode: normal;
    filter: drop-shadow(18px 25px 23px rgba(0, 0, 0, 0.52));
}

.story-hero__content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 690px);
    padding: 72px 0 72px;
    margin: 0 6% 0 auto;
}

.story-hero h1,
.section-intro h2,
.story-gate h2,
.story-wide h2,
.story-chapter h2,
.parla-section h2,
.contact-section h2 {
    margin: 0;
    color: var(--mp-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 0.98;
    text-wrap: balance;
}

.story-hero h1 {
    max-width: 660px;
    font-size: clamp(2.8rem, 5.7vw, 6rem);
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.story-hero__content > p:not(.eyebrow) {
    max-width: 575px;
    margin: 22px 0 0;
    color: var(--mp-muted);
    font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 51px;
    padding: 13px 20px;
    border: 1px solid var(--mp-line-strong);
    color: var(--mp-cream);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.button--copper {
    border-color: rgba(255, 206, 139, 0.88);
    background: linear-gradient(135deg, #8e461e, var(--mp-copper-bright) 54%, #a95424);
    color: #180d08;
    box-shadow: 0 12px 28px rgba(191, 107, 50, 0.32);
}

.button--line {
    background: rgba(6, 23, 25, 0.72);
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 23px;
}

.hero-quick-links a,
.text-link,
.story-chapter a {
    color: var(--mp-gold);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration-color: rgba(242, 194, 125, 0.46);
    text-underline-offset: 4px;
}

.story-gate,
.story-wide,
.menu-command,
.parla-section,
.booking-section,
.contact-section {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto;
    border: 1px solid var(--mp-line);
    box-shadow: 0 22px 70px var(--mp-shadow);
}

.story-gate {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) 1fr;
    gap: clamp(20px, 5vw, 72px);
    align-items: center;
    min-height: 360px;
    padding: clamp(24px, 5vw, 62px);
    overflow: hidden;
    background: linear-gradient(110deg, rgba(6, 59, 68, 0.78), rgba(5, 19, 21, 0.93));
}

.story-gate img {
    width: min(100%, 390px);
    margin: 0 auto;
    filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.42));
}

.story-gate h2,
.story-wide h2,
.section-intro h2,
.parla-section h2,
.contact-section h2 {
    font-size: clamp(2rem, 4vw, 4rem);
}

.story-gate p:not(.eyebrow),
.story-wide p:not(.eyebrow),
.section-intro p:not(.eyebrow),
.parla-section p:not(.eyebrow),
.contact-section p:not(.eyebrow) {
    max-width: 630px;
    color: var(--mp-muted);
}

.story-wide {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(280px, 1.04fr);
    align-items: stretch;
    overflow: hidden;
    background: rgba(5, 19, 21, 0.94);
}

.story-wide__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 76px);
}

.story-wide img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    /* The supplied wide scene places the host at its left edge. */
    object-position: left center;
}

.notice-strip {
    width: min(1240px, calc(100% - 32px));
    padding: 15px 20px;
    margin: 0 auto 28px;
    border: 1px solid var(--mp-line);
    background: rgba(115, 29, 40, 0.52);
}

.notice-strip p {
    margin: 0;
    color: var(--mp-cream);
    font-weight: 700;
}

.menu-command {
    padding: clamp(20px, 4.2vw, 54px);
    background:
        linear-gradient(135deg, rgba(242, 194, 125, 0.06), transparent 38%),
        rgba(5, 20, 22, 0.95);
}

.section-intro {
    max-width: 790px;
}

.section-intro--menu {
    margin-bottom: 24px;
}

.today-dish {
    margin: 0 0 24px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--mp-line-strong);
    background:
        linear-gradient(115deg, rgba(12, 100, 112, 0.6), rgba(5, 20, 22, 0.9) 60%, rgba(191, 107, 50, 0.26)),
        var(--mp-void);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.today-dish .eyebrow { margin: 0 0 10px; }

.today-dish__headline {
    display: flex;
    gap: 18px;
    align-items: baseline;
    justify-content: space-between;
}

.today-dish h3 {
    margin: 0;
    color: var(--mp-cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
}

.today-dish strong { flex: 0 0 auto; color: var(--mp-copper-light); font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.today-dish__description { max-width: 850px; margin: 12px 0 0; color: var(--mp-muted); line-height: 1.55; }

@media (max-width: 640px) {
    .today-dish__headline { align-items: flex-start; flex-direction: column; gap: 8px; }
}

.menu-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: end;
    padding: 15px;
    margin-bottom: 14px;
    border: 1px solid rgba(242, 194, 125, 0.22);
    background: rgba(2, 14, 16, 0.52);
}

.menu-search {
    display: grid;
    flex: 1 1 320px;
    gap: 6px;
    color: var(--mp-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.menu-search input,
.booking-form input,
.booking-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--mp-line);
    outline: 0;
    background: rgba(8, 31, 35, 0.96);
    color: var(--mp-cream);
}

.menu-search input:focus,
.booking-form input:focus,
.booking-form textarea:focus {
    border-color: var(--mp-line-strong);
    box-shadow: 0 0 0 3px rgba(242, 194, 125, 0.14);
}

.menu-availability {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    min-height: 46px;
    color: var(--mp-cream);
    font-weight: 700;
}

.menu-tabs {
    display: flex;
    gap: 7px;
    padding: 5px 2px 13px;
    overflow-x: auto;
    scrollbar-color: var(--mp-copper) transparent;
    scrollbar-width: thin;
}

.menu-tabs button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(242, 194, 125, 0.26);
    border-radius: 999px;
    background: rgba(3, 15, 17, 0.85);
    color: var(--mp-muted);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.menu-tabs button.is-active,
.menu-tabs button:hover,
.menu-tabs button:focus-visible {
    border-color: var(--mp-line-strong);
    background: linear-gradient(135deg, rgba(191, 107, 50, 0.9), rgba(100, 45, 28, 0.92));
    color: var(--mp-cream);
}

.menu-scroll {
    max-height: min(720px, 72vh);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--mp-line-strong);
    background:
        linear-gradient(90deg, rgba(242, 194, 125, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(242, 194, 125, 0.035) 1px, transparent 1px),
        rgba(2, 12, 14, 0.92);
    background-size: 44px 44px, 44px 44px, auto;
    scrollbar-color: var(--mp-copper) rgba(3, 14, 16, 0.92);
    scrollbar-width: thin;
}

.menu-scroll::-webkit-scrollbar {
    width: 11px;
}

.menu-scroll::-webkit-scrollbar-thumb {
    border: 3px solid rgba(3, 14, 16, 0.92);
    border-radius: 20px;
    background: var(--mp-copper);
}

.menu-category {
    padding: 26px clamp(17px, 3vw, 42px) 30px;
    scroll-margin-top: 20px;
}

.menu-category + .menu-category {
    border-top: 1px solid rgba(242, 194, 125, 0.33);
}

.menu-category__heading {
    display: flex;
    gap: 15px;
    align-items: baseline;
    padding-bottom: 13px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--mp-line);
}

.menu-category__heading .eyebrow {
    margin: 0;
    font-size: 0.6rem;
}

.menu-category h3 {
    margin: 0;
    color: var(--mp-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;
}

.menu-list {
    display: grid;
}

.menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px dotted rgba(242, 194, 125, 0.32);
}

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

.menu-item__title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.menu-item h4 {
    margin: 0;
    color: var(--mp-cream);
    font-size: 1rem;
    line-height: 1.2;
}

.menu-item__title span,
.menu-item__details span {
    display: inline-flex;
    padding: 3px 7px;
    border: 1px solid rgba(242, 194, 125, 0.28);
    color: var(--mp-copper-bright);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
}

.menu-item p {
    margin: 5px 0 0;
    color: var(--mp-muted);
    font-size: 0.9rem;
}

.menu-item__details {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.menu-item__price {
    min-width: 70px;
    color: var(--mp-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    text-align: right;
}

.menu-item.is-hidden-by-search,
.menu-category.is-empty-by-search {
    display: none;
}

.menu-scroll-note {
    margin: 12px 0 0;
    color: var(--mp-muted);
    font-size: 0.82rem;
}

.empty-menu {
    padding: 35px;
    border: 1px solid var(--mp-line);
    background: rgba(2, 14, 16, 0.6);
}

.empty-menu h3 {
    margin-top: 0;
}

.story-chapters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto;
}

.story-chapter {
    position: relative;
    display: flex;
    min-height: 400px;
    overflow: hidden;
    border: 1px solid var(--mp-line);
    background: rgba(5, 22, 24, 0.96);
    box-shadow: 0 20px 56px var(--mp-shadow);
}

.story-chapter::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, rgba(4, 17, 19, 0.98) 0%, rgba(4, 17, 19, 0.6) 43%, transparent 78%), linear-gradient(0deg, rgba(3, 13, 15, 0.76), transparent 40%);
}

.story-chapter__copy {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    width: 62%;
    padding: 30px;
}

.story-chapter h2 {
    font-size: clamp(2rem, 4.4vw, 4rem);
}

.story-chapter img {
    position: absolute;
    right: clamp(12px, 3vw, 38px);
    bottom: 0;
    width: auto;
    height: 94%;
    max-width: none;
    max-height: 500px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5));
}

.story-chapter--sfizi img {
    right: clamp(10px, 2vw, 28px);
}

.story-chapter--carne img {
    right: clamp(10px, 2vw, 30px);
}

.story-chapter--birra img {
    right: clamp(10px, 2vw, 30px);
}

.parla-section,
.booking-section,
.contact-section {
    padding: clamp(22px, 4.5vw, 58px);
    background: rgba(5, 20, 22, 0.95);
}

.parla-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    gap: 30px;
    align-items: center;
    background: linear-gradient(130deg, rgba(115, 29, 40, 0.56), rgba(4, 35, 41, 0.96));
}

.parla-section__action {
    justify-self: end;
    width: 100%;
}

.parla-section__action .button {
    width: 100%;
}

.booking-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(25px, 6vw, 85px);
    align-items: start;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 20px;
    border: 1px solid var(--mp-line);
    background: rgba(1, 12, 13, 0.54);
}

.booking-form label {
    display: grid;
    gap: 6px;
    color: var(--mp-muted);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.booking-form__wide {
    grid-column: 1 / -1;
}

.booking-form button {
    grid-column: 1 / -1;
}

.contact-section {
    background: linear-gradient(140deg, rgba(5, 54, 63, 0.82), rgba(4, 16, 18, 0.97));
}

.contact-section__intro {
    max-width: 690px;
    margin-bottom: 24px;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.contact-action {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 20px;
    border: 1px solid rgba(242, 194, 125, 0.32);
    background: rgba(4, 18, 20, 0.7);
    color: var(--mp-cream);
    text-decoration: none;
}

.contact-action:hover,
.contact-action:focus-visible {
    border-color: var(--mp-line-strong);
    background: rgba(111, 48, 27, 0.62);
}

.contact-action strong {
    color: var(--mp-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1;
}

.contact-action span,
.contact-address {
    color: var(--mp-muted);
    font-size: 0.85rem;
}

.contact-address {
    margin: 18px 0 0;
}

.site-footer {
    padding: 42px 16px 100px;
    border-top: 1px solid var(--mp-line);
    background: rgba(2, 10, 11, 0.92);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 26px;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.site-footer h2,
.footer-kicker {
    margin: 0 0 10px;
    color: var(--mp-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.site-footer p,
.site-footer a {
    display: block;
    color: var(--mp-muted);
    font-size: 0.87rem;
    text-decoration: none;
}

.site-footer a + a {
    margin-top: 7px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--mp-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mobile-action-bar {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--mp-line-strong);
    background: rgba(3, 14, 16, 0.96);
    backdrop-filter: blur(18px);
}

.mobile-action-bar a {
    display: flex;
    min-height: 57px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(242, 194, 125, 0.12);
    color: var(--mp-cream);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-action-bar a:last-child {
    border-right: 0;
}

.mobile-action-bar a:hover,
.mobile-action-bar a:focus-visible {
    background: rgba(191, 107, 50, 0.5);
}

@media (min-width: 840px) {
    .site-header__inner {
        grid-template-columns: 62px 1fr auto;
        padding-right: 28px;
        padding-left: 28px;
    }

    .brand-mark {
        width: 60px;
        height: 60px;
    }

    .nav-toggle {
        display: none;
    }

    .primary-nav {
        position: static;
        display: flex;
        gap: clamp(10px, 2vw, 27px);
        justify-content: center;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .primary-nav a {
        padding: 9px 0;
        border: 0;
        font-size: 0.77rem;
    }

    .header-reserve {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 43px;
        padding: 9px 15px;
        border: 1px solid var(--mp-line-strong);
        background: rgba(191, 107, 50, 0.18);
        color: var(--mp-cream);
        font-size: 0.76rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-decoration: none;
        text-transform: uppercase;
    }

    .mobile-action-bar {
        display: none;
    }

    .site-footer {
        padding-bottom: 42px;
    }
}

@media (max-width: 839px) {
    .story-hero {
        min-height: clamp(600px, 88svh, 680px);
    }

    .story-hero__airship {
        background:
            linear-gradient(90deg, rgba(2, 15, 17, 0.84) 0%, rgba(2, 15, 17, 0.42) 58%, rgba(2, 15, 17, 0.7) 100%),
            url("assets/story/optimized/nave-mariposa-mobile.webp") 66% center / cover no-repeat;
        filter: none;
    }

    .story-hero__host {
        right: -68px;
        bottom: -42px;
        left: auto;
        width: min(66vw, 500px);
        opacity: 0.42;
    }

    .story-hero__content {
        width: min(100% - 32px, 580px);
        padding: 72px 0 55px;
        margin: 0 auto;
    }

    .story-hero h1 {
        max-width: 520px;
    }

    .story-gate,
    .story-wide,
    .parla-section,
    .booking-section {
        grid-template-columns: 1fr;
    }

    .story-wide img {
        min-height: clamp(360px, 48vw, 460px);
        object-fit: cover;
        object-position: left bottom;
    }

    .story-chapters {
        grid-template-columns: 1fr;
    }

    .story-chapter {
        min-height: 420px;
    }

    .story-chapter__copy {
        width: 62%;
    }

    .parla-section__action {
        justify-self: stretch;
    }

    .contact-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-action {
        min-height: 120px;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body {
        background:
            linear-gradient(180deg, rgba(3, 11, 12, 0.38), rgba(3, 11, 12, 0.86)),
            url("assets/story/optimized/background-petrol-mobile.webp") center top / cover no-repeat,
            var(--mp-void);
    }

    body::before {
        position: absolute;
        min-height: 100%;
        background-size: auto, auto, 52px 52px, 52px 52px;
    }

    .site-header,
    .mobile-action-bar {
        backdrop-filter: none;
    }

    .story-hero {
        min-height: clamp(590px, 88svh, 650px);
    }

    .story-hero__host {
        right: -58px;
        bottom: -35px;
        width: min(120vw, 480px);
        opacity: 0.36;
        filter: none;
    }

    .story-hero__content {
        padding-top: 54px;
        padding-bottom: 44px;
    }

    .story-hero h1 {
        font-size: clamp(2.25rem, 10vw, 3.2rem);
    }

    .story-gate,
    .story-wide,
    .menu-command,
    .parla-section,
    .booking-section,
    .contact-section,
    .story-chapters {
        width: min(100% - 22px, 1240px);
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .story-gate {
        gap: 16px;
        padding: 22px;
    }

    .story-gate img {
        max-width: 250px;
        filter: none;
    }

    .story-wide__copy,
    .menu-command,
    .parla-section,
    .booking-section,
    .contact-section {
        padding: 22px;
    }

    .menu-tools {
        align-items: stretch;
    }

    .menu-availability {
        min-height: 30px;
    }

    .menu-scroll {
        max-height: min(560px, calc(100svh - 180px));
    }

    .menu-category {
        padding: 22px 16px;
    }

    .menu-item {
        gap: 12px;
    }

    .menu-item__price {
        min-width: 46px;
        font-size: 0.96rem;
    }

    .story-chapters {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .story-chapter {
        display: grid;
        grid-template-columns: minmax(135px, 0.72fr) minmax(0, 1.28fr);
        min-height: clamp(280px, 65vw, 360px);
        overflow: hidden;
    }

    .story-chapter::after {
        display: none;
    }

    .story-chapter__copy {
        grid-row: 1;
        grid-column: 2;
        align-self: center;
        width: auto;
        padding: 22px 18px 22px 8px;
    }

    .story-chapter img {
        position: relative;
        right: auto;
        bottom: auto;
        grid-row: 1;
        grid-column: 1;
        align-self: stretch;
        justify-self: stretch;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
        object-position: center bottom;
        background: linear-gradient(160deg, rgba(8, 91, 103, 0.92), rgba(4, 26, 29, 0.96));
        filter: none;
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .booking-form__wide,
    .booking-form button {
        grid-column: auto;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .contact-action {
        min-height: 92px;
    }

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

/* Landing Factory: visual hierarchy first, actions always reachable. */
.story-hero {
    grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
    align-items: center;
    min-height: clamp(580px, 72svh, 760px);
    background: linear-gradient(100deg, #062a30 0%, #06262b 46%, #031315 100%);
}

.story-hero__airship {
    opacity: 0.2;
    filter: none;
    transform: none;
}

.story-hero__veil {
    background: linear-gradient(90deg, rgba(4, 25, 28, 0.2), rgba(3, 14, 16, 0.5));
}

.story-hero__host {
    top: 22px;
    bottom: 22px;
    left: clamp(22px, 6vw, 112px);
    width: auto;
    height: calc(100% - 44px);
    max-width: 36%;
    filter: drop-shadow(14px 18px 22px rgba(0, 0, 0, 0.38));
}

.story-hero__content {
    grid-column: 2;
    width: min(100% - 44px, 680px);
    padding: 54px 0;
    margin: 0 auto;
}

.story-hero h1 {
    max-width: 650px;
    font-size: clamp(2.7rem, 3.7vw, 4.35rem);
}

.conversion-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 28px;
    border: 1px solid var(--mp-line);
    background: rgba(4, 21, 23, 0.96);
    box-shadow: 0 18px 52px var(--mp-shadow);
}

.conversion-rail a {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 18px 16px;
    border-right: 1px solid rgba(242, 194, 125, 0.2);
    color: var(--mp-cream);
    text-decoration: none;
}

.conversion-rail a:last-child {
    border-right: 0;
}

.conversion-rail strong {
    color: var(--mp-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    line-height: 1.08;
}

.conversion-rail span {
    color: var(--mp-muted);
    font-size: 0.77rem;
    line-height: 1.35;
}

.conversion-rail a:hover,
.conversion-rail a:focus-visible {
    background: rgba(191, 107, 50, 0.24);
    outline: none;
}

.story-gate {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 58px);
    min-height: 0;
    padding: clamp(28px, 4.5vw, 54px);
}

.story-gate__mark {
    display: grid;
    place-items: center;
    width: 150px;
    max-width: 100%;
    aspect-ratio: 1672 / 941;
    min-height: 0;
}

/* Lock the illustration's original landscape proportion against global WP image rules. */
.story-gate .story-gate__mark img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 1672 / 941 !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32));
}

.story-gate h2,
.story-wide h2,
.section-intro h2,
.parla-section h2,
.contact-section h2 {
    font-size: clamp(2rem, 3.4vw, 3.55rem);
}

.story-wide {
    position: relative;
    display: block;
    min-height: 540px;
    background: #044a58;
}

.story-wide::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent 12%, rgba(4, 28, 32, 0.2) 43%, rgba(3, 16, 18, 0.94) 79%);
}

.story-wide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: left center;
}

.story-wide__copy {
    position: relative;
    z-index: 2;
    min-height: 540px;
    align-items: flex-start;
    justify-content: center;
    width: min(51%, 630px);
    padding: clamp(38px, 5vw, 72px);
    margin-left: auto;
}

.story-chapter {
    display: grid;
    grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.2fr);
    min-height: 330px;
}

.story-chapter::after {
    display: none;
}

.story-chapter__copy {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    width: auto;
    padding: 30px;
}

.story-chapter img {
    position: relative;
    right: auto;
    bottom: auto;
    grid-row: 1;
    grid-column: 1;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    background: linear-gradient(160deg, rgba(7, 85, 97, 0.95), rgba(4, 26, 29, 0.96));
    filter: none;
}

.mobile-action-bar button {
    display: flex;
    min-height: 57px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 0;
    border-left: 1px solid rgba(242, 194, 125, 0.12);
    background: transparent;
    color: var(--mp-cream);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.mobile-action-bar button:hover,
.mobile-action-bar button:focus-visible {
    background: rgba(191, 107, 50, 0.5);
    outline: none;
}

.mobile-action-drawer {
    display: none;
}

@media (max-width: 839px) {
    .story-hero {
        grid-template-columns: 1fr;
        min-height: clamp(580px, 82svh, 680px);
    }

    .story-hero__host {
        top: auto;
        right: -34px;
        bottom: 0;
        left: auto;
        width: auto;
        height: min(74%, 530px);
        max-width: none;
        opacity: 0.38;
    }

    .story-hero__content {
        grid-column: 1;
        align-self: start;
        width: min(100% - 36px, 610px);
        padding-top: 62px;
        margin: 0 auto;
    }

    .conversion-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .conversion-rail a:nth-child(3n) {
        border-right: 0;
    }

    .conversion-rail a:nth-child(-n + 3) {
        border-bottom: 1px solid rgba(242, 194, 125, 0.2);
    }

    .story-gate {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .story-gate__mark {
        width: 130px;
    }

    .story-wide {
        display: grid;
        min-height: 0;
    }

    .story-wide::after {
        display: none;
    }

    .story-wide img {
        position: relative;
        grid-row: 1;
        width: 100%;
        height: clamp(320px, 48vw, 430px);
        min-height: 0;
        object-fit: cover;
        object-position: left center;
    }

    .story-wide__copy {
        grid-row: 2;
        min-height: 0;
        width: auto;
        margin: 0;
    }

    .mobile-action-drawer {
        display: grid;
        position: fixed;
        z-index: 89;
        right: 12px;
        bottom: 68px;
        left: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid var(--mp-line-strong);
        background: rgba(3, 14, 16, 0.98);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
        opacity: 0;
        pointer-events: none;
        transform: translateY(14px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .mobile-action-drawer.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-action-drawer a {
        min-height: 62px;
        padding: 14px;
        border-right: 1px solid rgba(242, 194, 125, 0.16);
        border-bottom: 1px solid rgba(242, 194, 125, 0.16);
        color: var(--mp-cream);
        font-size: 0.82rem;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
    }
}

@media (max-width: 600px) {
    .story-hero {
        min-height: clamp(560px, 80svh, 630px);
    }

    .story-hero__host {
        right: -48px;
        height: min(66%, 420px);
        opacity: 0.3;
    }

    .story-hero__content {
        padding-top: 48px;
        padding-bottom: 34px;
    }

    .story-hero h1 {
        max-width: 340px;
        font-size: clamp(2.2rem, 10vw, 3.1rem);
    }

    .conversion-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100% - 22px, 1240px);
        margin-bottom: 16px;
    }

    .conversion-rail a {
        min-height: 104px;
        padding: 15px;
        border-bottom: 1px solid rgba(242, 194, 125, 0.2);
    }

    .conversion-rail a:nth-child(3n) {
        border-right: 1px solid rgba(242, 194, 125, 0.2);
    }

    .conversion-rail a:nth-child(2n) {
        border-right: 0;
    }

    .conversion-rail a:nth-child(-n + 3) {
        border-bottom: 1px solid rgba(242, 194, 125, 0.2);
    }

    .conversion-rail a:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .conversion-rail span {
        font-size: 0.73rem;
    }

    .story-gate {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .story-gate__mark {
        width: 130px;
    }

    .story-wide img {
        height: 290px;
        min-height: 0;
    }

    .story-wide__copy {
        padding: 28px 22px;
    }

    .story-chapter {
        grid-template-columns: minmax(132px, 0.75fr) minmax(0, 1.25fr);
        min-height: clamp(278px, 70vw, 350px);
    }

    .story-chapter__copy {
        padding: 22px 18px 22px 10px;
    }

    .story-chapter h2 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}

/* Versione 0.5.1 — correzione destinazione tab del menu. */
.story-chapter--panini {
    grid-column: 1 / -1;
}

.category-page,
.game-page {
    width: min(1240px, calc(100% - 32px));
    padding: 28px 0 52px;
    margin: 0 auto;
}

.category-page__hero,
.game-page__hero,
.category-page__menu,
.butterfly-game {
    border: 1px solid var(--mp-line);
    box-shadow: 0 22px 70px var(--mp-shadow);
}

.category-page__hero,
.game-page__hero {
    display: flex;
    gap: 26px;
    align-items: end;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 68px);
    background:
        radial-gradient(circle at 88% 16%, rgba(191, 107, 50, 0.32), transparent 15rem),
        linear-gradient(115deg, rgba(6, 59, 68, 0.82), rgba(4, 18, 20, 0.98) 66%);
}

.category-page__hero h1,
.game-page__hero h1,
.butterfly-game h2 {
    margin: 0;
    color: var(--mp-cream);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 0.98;
}

.category-page__hero h1,
.game-page__hero h1 {
    font-size: clamp(3rem, 6vw, 5.8rem);
}

.category-page__hero p:not(.eyebrow),
.game-page__hero p:not(.eyebrow) {
    max-width: 670px;
    margin: 16px 0 0;
    color: var(--mp-muted);
}

.category-page__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.category-page__nav {
    display: flex;
    gap: 8px;
    padding: 18px 0;
    overflow-x: auto;
}

.category-page__nav a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid rgba(242, 194, 125, 0.28);
    border-radius: 999px;
    background: rgba(3, 15, 17, 0.8);
    color: var(--mp-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.category-page__nav a:hover,
.category-page__nav a:focus-visible,
.category-page__nav a.is-current {
    border-color: var(--mp-line-strong);
    background: linear-gradient(135deg, rgba(191, 107, 50, 0.9), rgba(100, 45, 28, 0.92));
    color: var(--mp-cream);
}

.category-page__menu {
    padding: clamp(22px, 4.5vw, 56px);
    background:
        linear-gradient(90deg, rgba(242, 194, 125, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(242, 194, 125, 0.035) 1px, transparent 1px),
        rgba(2, 12, 14, 0.94);
    background-size: 44px 44px, 44px 44px, auto;
}

.category-page__list {
    margin-top: 24px;
    border-top: 1px solid var(--mp-line);
}

.category-page__list .menu-item h3 {
    margin: 0;
    color: var(--mp-cream);
    font-size: 1rem;
    line-height: 1.2;
}

.butterfly-game {
    padding: clamp(22px, 4.5vw, 54px);
    background:
        radial-gradient(circle at 74% 22%, rgba(191, 107, 50, 0.18), transparent 18rem),
        rgba(4, 19, 21, 0.96);
}

.butterfly-game__header {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
}

.butterfly-game h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.butterfly-game__hud {
    display: flex;
    gap: 10px;
    margin: 22px 0 12px;
}

.butterfly-game__hud p {
    min-width: 118px;
    padding: 9px 12px;
    margin: 0;
    border: 1px solid rgba(242, 194, 125, 0.3);
    background: rgba(2, 13, 15, 0.76);
    color: var(--mp-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.butterfly-game__hud output {
    margin-left: 8px;
    color: var(--mp-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.butterfly-game__arena {
    position: relative;
    min-height: clamp(300px, 48vw, 540px);
    overflow: hidden;
    border: 1px solid var(--mp-line-strong);
    background:
        radial-gradient(circle at 50% 48%, rgba(12, 100, 112, 0.52), transparent 24rem),
        linear-gradient(90deg, rgba(242, 194, 125, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(242, 194, 125, 0.05) 1px, transparent 1px),
        #061d20;
    background-size: auto, 44px 44px, 44px 44px, auto;
}

.butterfly-game__hint {
    position: absolute;
    top: 50%;
    right: 22px;
    left: 22px;
    max-width: 510px;
    margin: 0 auto;
    color: var(--mp-muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 3.2vw, 2.5rem);
    line-height: 1.08;
    text-align: center;
    transform: translateY(-50%);
}

.butterfly-game__target {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(112px, 18vw, 168px);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.5));
    transition: transform 190ms ease-out;
}

.butterfly-game__target img {
    width: 100%;
    height: auto;
}

.butterfly-game__target:focus-visible {
    outline: 3px solid var(--mp-cream);
    outline-offset: 5px;
}

.butterfly-game__result {
    min-height: 1.5em;
    margin: 15px 0 0;
    color: var(--mp-gold);
    font-weight: 800;
}

.mobile-action-bar {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 839px) {
    .story-chapter--panini {
        grid-column: auto;
    }

    .category-page__hero,
    .game-page__hero,
    .butterfly-game__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-page__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .category-page,
    .game-page {
        width: min(100% - 22px, 1240px);
        padding: 16px 0 32px;
    }

    .category-page__hero,
    .game-page__hero,
    .category-page__menu,
    .butterfly-game {
        padding: 22px;
    }

    .category-page__actions,
    .category-page__actions .button,
    .butterfly-game__header .button {
        width: 100%;
    }

    .butterfly-game__hud {
        flex-wrap: wrap;
    }

    .butterfly-game__hud p {
        flex: 1 1 140px;
    }

    .butterfly-game__arena {
        min-height: 350px;
    }

    .mobile-action-bar a,
    .mobile-action-bar button {
        padding-right: 2px;
        padding-left: 2px;
        font-size: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .butterfly-game__target {
        transition: none;
    }
}
