@layer pages {

    /* Home */
    .hero {
        position: relative;
        display: grid;
        place-items: center;
        min-height: 100vh;
        min-height: 100svh;
        padding: 140px 28px 78px;
        overflow: hidden;
        background: var(--pine-deep);
        color: var(--pure-white);
        text-align: center;
    }

    .hero-background {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center 42%;
    }

    .hero::before {
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient(90deg, var(--overlay-dark), rgba(16, 43, 37, .26)),
            linear-gradient(0deg, rgba(16, 43, 37, .62), transparent 72%);
        content: "";
    }

    .hero-inner {
        position: relative;
        z-index: 2;
        display: grid;
        justify-items: center;
        width: min(1200px, 100%);
        margin: 0 auto;
    }

    .hero-copy {
        position: relative;
        max-width: 900px;
        animation: hero-rise .8s both;
    }

    .eyebrow {
        margin-bottom: 22px;
        color: var(--pure-white);
        font-size: var(--text-md);
        font-weight: 650;
        letter-spacing: .16em;
        text-transform: uppercase;
    }

    .hero h1 {
        max-width: 22ch;
        margin: 0 auto 28px;
        color: var(--white);
        font-size: clamp(3rem, 7.5vw, 6.4rem);
        letter-spacing: -.055em;
        line-height: 1.03;
    }

    .hero h1 em {
        color: var(--gold-soft);
    }

    .hero-hours {
        margin: 0 0 28px;
        color: var(--pure-white);
        font-size: 1.05rem;
        font-weight: 650;
        letter-spacing: .025em;
        line-height: 1.8;
    }

    .hero-hours a {
        color: var(--pure-white);
        text-decoration-color: rgba(255, 255, 255, .55);
        text-underline-offset: 5px;
    }

    .hero-hours a:hover {
        color: var(--gold-hover);
    }

    .hero-actions {
        justify-content: center;
        gap: 12px;
    }

    .hero-actions .btn:first-child {
        border-color: var(--sage-button);
        background: var(--sage-button);
        color: var(--pine-deep);
    }

    .hero-actions .btn:first-child:hover {
        border-color: var(--sage-button-hover);
        background: var(--sage-button-hover);
    }

    .hero-actions .btn.out {
        border-color: rgba(255, 255, 255, .38);
        color: #f9f8f2;
    }

    .hero-actions .btn.out:hover {
        border-color: var(--pure-white);
        background: rgba(255, 255, 255, .1);
    }

    .hero .quick {
        margin-top: 24px;
        color: #f0eee7;
        font-size: .8rem;
    }

    .hero .quick a {
        color: var(--gold-hover);
        text-underline-offset: 4px;
    }

    .light {
        background: var(--cream);
    }

    .about {
        display: grid;
        align-items: center;
        grid-template-columns: .85fr 1.15fr;
        gap: clamp(42px, 9vw, 130px);
    }

    .about-copy {
        max-width: 510px;
    }

    .about-copy h2 {
        margin-bottom: 22px;
    }

    .about-copy>p:not(.kicker):not(.about-hours) {
        color: var(--text-about);
    }

    .about-hours {
        display: grid;
        gap: 12px;
        width: min(100%, 340px);
        margin-top: 26px;
        padding: 18px 20px;
        border: 1px solid var(--border-sage);
        border-left: 3px solid var(--sage);
        border-radius: 14px;
        background: linear-gradient(135deg, var(--white), var(--surface-hours-end));
        color: var(--pine);
        box-shadow: 0 12px 30px rgba(23, 58, 50, .07);
    }

    .about-hours-heading {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }

    .about-hours-heading>strong {
        color: var(--pine);
        font: 600 1rem var(--font-serif);
    }

    .hours-label {
        color: var(--mute);
        font-size: .68rem;
        font-weight: 750;
        letter-spacing: .13em;
        text-transform: uppercase;
    }

    .about-hours-times {
        display: grid;
        gap: 8px;
    }

    .about-hours-times p {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        margin: 0;
        font-size: .86rem;
    }

    .about-hours-times p span {
        color: var(--mute);
    }

    .about-hours-times strong {
        color: var(--pine);
        font-weight: 700;
    }

    .hours-unavailable {
        color: var(--mute);
        font-size: var(--text-md);
    }

    .about-visual {
        position: relative;
        margin: 0;
    }

    .about-visual img {
        width: 100%;
        aspect-ratio: 1.16;
        object-fit: cover;
        border-radius: 190px 190px 18px 18px;
    }

    .dark {
        position: relative;
        overflow: hidden;
        background: radial-gradient(ellipse at 93% 15%, rgba(120, 150, 139, .14), transparent 29%), var(--pine);
        color: var(--text-on-dark);
    }

    .section-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 36px;
        margin-bottom: 45px;
    }

    .section-heading h2 {
        max-width: 14ch;
    }

    .section-heading-dark .kicker {
        color: var(--gold);
    }

    .section-heading-dark h2 {
        color: var(--white);
    }

    .section-heading-dark h2 em {
        color: #b8c9bd;
    }

    .list {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
        margin: 0 0 34px;
        padding: 0;
        list-style: none;
    }

    .list li {
        display: grid;
        grid-column: span 2;
        grid-template-columns: 56px 1fr;
        gap: 6px 14px;
        min-height: 225px;
        padding: 23px;
        border: 1px solid rgba(213, 230, 219, .15);
        border-radius: var(--r-md);
        background: rgba(255, 255, 255, .035);
        transition: border-color .3s ease, background-color .3s ease;
    }

    .list li:nth-last-child(2) {
        grid-column: 2 / span 2;
    }

    .list li:hover {
        border-color: var(--border-gold-subtle);
        background: rgba(255, 255, 255, .07);
    }

    .list .n {
        display: inline-block;
        margin-bottom: 28px;
        color: var(--gold);
        font: italic 1.3rem var(--font-serif);
    }

    .list h3 {
        margin-bottom: 10px;
        color: var(--white);
        font-size: 1.32rem;
    }

    .list p {
        color: #c4d0c8;
        font-size: .86rem;
        line-height: 1.6;
    }

    .menu-teaser {
        position: relative;
        overflow: hidden;
        background: var(--pine-deep);
        color: var(--white);
    }

    .menu-teaser::before {
        position: absolute;
        top: -190px;
        right: -120px;
        width: 460px;
        height: 460px;
        border: 1px solid rgba(229, 180, 101, .2);
        border-radius: 50%;
        content: "";
    }

    .menu-teaser-inner {
        position: relative;
        display: grid;
        align-items: center;
        gap: clamp(32px, 7vw, 90px);
    }

    .menu-teaser-copy {
        max-width: 570px;
    }

    .menu-teaser .kicker {
        color: var(--gold);
    }

    .menu-teaser h2 {
        margin-bottom: 18px;
        font-size: clamp(2.4rem, 5vw, 4rem);
    }

    .menu-teaser h2 em {
        color: var(--gold);
    }

    .menu-teaser-copy>p:not(.kicker) {
        max-width: 52ch;
        margin-bottom: 26px;
        color: var(--light);
    }

    .menu-teaser .btn {
        border-color: var(--gold);
        background: var(--gold);
        color: var(--pine-deep);
    }

    .menu-teaser .btn:hover {
        border-color: var(--gold-strong);
        background: var(--gold-strong);
        color: var(--pine-deep);
    }

    .menu-teaser-image {
        position: relative;
        margin: 0;
    }

    .menu-teaser-image img {
        width: 100%;
        aspect-ratio: 1.1;
        border-radius: 48% 48% 18px 18px;
        object-fit: cover;
    }

    .gallery-section {
        background: var(--surface-gallery);
    }

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

    .gallery-shot {
        position: relative;
        min-width: 0;
        aspect-ratio: 1;
        margin: 0;
        overflow: hidden;
        border-radius: var(--r-sm);
        background: var(--surface-menu-muted);
    }

    .gallery-shot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: filter .5s ease;
    }

    .gallery-shot:hover img {
        filter: saturate(1.08);
    }

    .revs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
        margin: 10px 0 28px;
    }

    .rev {
        min-height: 255px;
        padding: 25px;
        border: 1px solid var(--border-card);
        border-radius: var(--r-md);
        background: var(--white);
        box-shadow: var(--shadow-review);
        transition: box-shadow .28s ease;
    }

    .rev:hover {
        box-shadow: var(--shadow-review-hover);
    }

    .rev .st {
        margin-bottom: 14px;
        color: #9d6d29;
        font-size: .9rem;
        letter-spacing: 3px;
    }

    .rev blockquote {
        margin-bottom: 21px;
        color: var(--pine);
        font: italic 1.16rem/1.45 var(--font-serif);
    }

    .rev small {
        display: block;
        color: var(--mute);
        font-size: var(--text-xs);
    }

    .review-links {
        gap: 10px;
    }

    .contact-section {
        background: var(--surface-contact);
    }

    .contact {
        display: grid;
        align-items: start;
        grid-template-columns: .75fr 1.25fr;
        gap: clamp(35px, 7vw, 100px);
    }

    .info {
        padding-top: 8px;
    }

    .info p {
        margin: 0 0 25px;
        color: var(--mute);
        font-size: .93rem;
    }

    .info strong {
        display: block;
        margin-bottom: 5px;
        color: var(--pine);
        font-size: .7rem;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .info a {
        color: var(--pine);
        font-weight: 650;
        text-decoration-thickness: 1px;
        text-underline-offset: 4px;
    }

    .info small {
        display: block;
        margin-top: 3px;
        font-size: .76rem;
    }

    .reservation-card .kicker {
        color: var(--gold);
    }

    .reservation-card>p:not(.kicker) {
        margin-bottom: 22px;
        color: var(--light);
    }

    .reservation-start {
        margin-bottom: 12px;
    }

    .booking-shortcuts {
        gap: 8px;
        margin-top: 18px;
    }

    .booking-shortcuts .btn.out {
        min-height: 40px;
        padding-inline: 13px;
        border-color: var(--border-on-dark-medium);
        color: var(--text-on-dark);
        font-size: var(--text-xs);
    }

    .booking-shortcuts .btn.out:hover {
        border-color: var(--pure-white);
        background: var(--overlay-light);
    }

    /* Pagina menù */
    .menu-page-body {
        min-height: 100vh;
        padding-top: var(--header-height);
    }

    .menu-page-hero {
        overflow: hidden;
        padding: 70px 0 78px;
        background: var(--pine-deep);
        color: var(--white);
    }

    .menu-page-hero-inner {
        display: grid;
        align-items: center;
        gap: clamp(30px, 7vw, 92px);
    }

    .menu-page-hero .menu-back {
        display: inline-flex;
        margin-bottom: 28px;
        color: var(--light);
        font-size: .83rem;
        text-decoration: none;
    }

    .menu-page-hero .menu-back:hover {
        color: var(--gold);
    }

    .menu-page-hero .kicker {
        color: var(--gold);
    }

    .menu-page-hero h1 {
        margin: 0 0 18px;
        font-size: clamp(3rem, 7vw, 5.8rem);
    }

    .menu-page-hero h1 em {
        color: var(--gold);
    }

    .menu-page-hero p:last-child {
        max-width: 46ch;
        color: var(--light);
    }

    .menu-page-hero img {
        width: 100%;
        max-height: 490px;
        aspect-ratio: 1.25;
        border-radius: 48% 48% 18px 18px;
        object-fit: cover;
    }

    .menu-page-content {
        min-height: 50vh;
        padding: 54px 0 94px;
    }

    .menu-category {
        margin: 26px 0 42px;
    }

    .menu-category-heading {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-category);
    }

    .menu-category-heading h2 {
        margin: 0;
        color: var(--pine);
        font-size: clamp(1.7rem, 4vw, 2.4rem);
    }

    .menu-category-heading span {
        color: var(--mute);
        font-size: var(--text-sm);
    }

    .menu-dishes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .menu-dish {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        min-height: 142px;
        padding: 19px;
        border: 1px solid rgba(23, 58, 50, .09);
        border-radius: var(--r-md);
        background: var(--white);
        box-shadow: var(--shadow-review-compact);
    }

    .menu-dish h3 {
        margin-bottom: 5px;
        color: var(--ink);
        font: 650 1.15rem var(--font-sans);
    }

    .menu-dish-copy>p {
        color: var(--mute);
        font: 400 .9rem/1.5 var(--font-sans);
    }

    .menu-tags {
        margin-top: 7px;
    }

    .tag {
        display: inline-block;
        margin: 7px 6px 0 0;
        padding: 3px 10px;
        border-radius: var(--r-pill);
        background: var(--sage-light);
        color: var(--pine);
        font-size: .67rem;
        font-weight: 700;
    }

    .tag.x {
        background: #34413b;
        color: var(--pure-white);
    }

    .menu-price {
        flex: none;
        padding-top: 1px;
        color: var(--pine);
        font: 700 1.08rem var(--font-sans);
        white-space: nowrap;
    }

    .menu-dish.unavailable {
        opacity: .63;
    }

    .menu-dish.unavailable h3 {
        text-decoration: line-through;
    }

    .menu-empty {
        padding: 28px;
        border: 1px solid var(--border-soft);
        border-radius: var(--r-md);
        background: var(--white);
        color: var(--mute);
    }

    /* Pagina prenotazione */
    .booking-page-main {
        min-height: calc(100vh - var(--header-height));
        padding-top: var(--header-height);
        background:
            radial-gradient(ellipse at 50% 0, rgba(168, 192, 179, .18), transparent 58%),
            var(--cream);
    }

    .booking-page-section {
        padding-block: 44px 86px;
    }

    .booking-page-heading {
        max-width: 1000px;
        margin: 0 auto 30px;
        text-align: center;
    }

    .booking-page-heading h1 {
        margin-bottom: 12px;
        color: var(--pine-deep);
        font-size: clamp(2.4rem, 6vw, 4rem);
    }

    .booking-page-heading>p:not(.kicker) {
        max-width: 62ch;
        margin: 0 auto;
        color: var(--mute);
    }

    .booking-page-heading>p.booking-hours {
        margin-top: 12px;
        color: var(--sage-h);
        font-size: var(--text-md);
        font-weight: 650;
    }

    .booking-shell {
        width: min(100%, 790px);
        margin: 0 auto;
        padding: clamp(22px, 5vw, 48px);
        border: 1px solid rgba(220, 230, 223, .14);
        border-radius: 26px;
        background: var(--pine-deep);
        color: var(--text-on-dark);
        box-shadow: var(--shadow-booking);
    }

    .booking-progress {
        margin-bottom: 32px;
    }

    .booking-step-status {
        margin-bottom: 9px;
        color: #c7d7cd;
        font-size: .76rem;
        font-weight: 700;
    }

    .booking-progress-track {
        height: 4px;
        overflow: hidden;
        border-radius: 99px;
        background: rgba(255, 255, 255, .16);
    }

    .booking-progress-track>span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: var(--gold);
        transition: width .3s ease;
    }

    .booking-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin: 13px 0 0;
        padding: 0;
        list-style: none;
    }

    .booking-steps li {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #9fb3a8;
        font-size: .76rem;
        font-weight: 600;
        transition: color .2s ease;
    }

    .booking-steps li>span {
        display: grid;
        flex: none;
        width: 32px;
        height: 32px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .25);
        border-radius: 50%;
        color: inherit;
        font-size: .65rem;
    }

    .booking-steps li small {
        color: inherit;
        font-size: inherit;
        letter-spacing: 0;
        text-transform: none;
    }

    .booking-steps li.active,
    .booking-steps li.complete {
        color: var(--gold-strong);
    }

    .booking-steps li.active>span,
    .booking-steps li.complete>span {
        border-color: var(--gold);
        background: var(--gold);
        color: var(--pine-deep);
    }

    .booking-step {
        padding: 0;
    }

    .booking-step[hidden],
    #bookingFlow[hidden],
    .booking-confirmation[hidden] {
        display: none;
    }

    .booking-step-heading {
        margin-bottom: 23px;
    }

    .booking-step-heading h2 {
        margin-bottom: 7px;
        color: var(--white);
        font-size: clamp(1.7rem, 4vw, 2.25rem);
    }

    .booking-step-heading h2 em {
        color: var(--sage-focus);
    }

    .booking-step-heading>p:last-child {
        color: var(--text-on-dark-soft);
        font-size: .88rem;
    }

    .booking-step-number {
        margin-bottom: 5px;
        color: var(--gold);
        font-size: .68rem;
        font-weight: 750;
        letter-spacing: .14em;
    }

    .booking-fields {
        margin-bottom: 2px;
    }

    .booking-fields label {
        align-content: start;
    }

    .booking-fields .date-picker {
        width: 100%;
    }

    .shift-closure-note {
        margin: 0;
        color: var(--gold-strong);
        font-size: var(--text-sm);
        line-height: 1.45;
    }

    .shift-closure-note[hidden] {
        display: none;
    }

    .booking-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
    }

    .booking-actions>.btn {
        width: 100%;
        min-width: 0;
    }

    .booking-actions .btn.out {
        border-color: rgba(255, 255, 255, .5);
        color: #f7f5ec;
    }

    .booking-actions .btn.out:hover {
        border-color: var(--pure-white);
        background: var(--overlay-light);
    }

    .booking-actions .btn:disabled {
        cursor: not-allowed;
        opacity: .58;
    }

    .booking-error {
        margin-top: 12px;
        color: var(--text-error-on-dark);
        font-size: var(--text-md);
    }

    .booking-summary {
        margin-top: 21px;
        padding: 18px 20px;
        border: 1px solid rgba(220, 230, 223, .17);
        border-radius: var(--r-md);
        background: rgba(255, 255, 255, .055);
    }

    .booking-summary .kicker {
        margin-bottom: 10px;
        color: var(--gold);
    }

    .booking-summary dl,
    .booking-confirmation dl {
        display: grid;
        grid-template-columns: minmax(110px, .7fr) 1.3fr;
        gap: 6px 14px;
        margin: 0;
        font-size: .86rem;
    }

    .booking-summary dt,
    .booking-confirmation dt {
        color: var(--text-on-dark-muted);
    }

    .booking-summary dd,
    .booking-confirmation dd {
        color: var(--pure-white);
        font-weight: 600;
    }

    .ok {
        padding: 22px;
        border: 1px solid #98b4a1;
        border-radius: 14px;
        background: rgba(220, 230, 223, .12);
    }

    .ok h3 {
        margin-bottom: 12px;
    }

    .ok dl {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 5px 14px;
        margin: 12px 0;
    }

    .ok dt {
        color: #bbd0c1;
    }

    .booking-confirmation {
        display: grid;
        justify-items: center;
        gap: 14px;
        max-width: 650px;
        margin: 0 auto;
        padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 46px);
        border: 1px solid var(--border-gold-subtle);
        border-radius: 22px;
        background: rgba(255, 255, 255, .06);
        color: var(--white);
        text-align: center;
        animation: booking-confirm-in .45s ease both;
    }

    .confirmation-mark {
        display: grid;
        width: 58px;
        height: 58px;
        place-items: center;
        border-radius: 50%;
        background: var(--gold);
        color: var(--pine-deep);
        font-size: 1.7rem;
        font-weight: 700;
    }

    .booking-confirmation .kicker {
        margin: 0;
        color: var(--gold);
    }

    .booking-confirmation h2 {
        margin: 0;
        color: var(--pure-white);
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .booking-confirmation h2 em {
        color: var(--gold);
    }

    .booking-confirmation>p:not(.kicker) {
        max-width: 48ch;
        color: var(--light);
    }

    .booking-confirmation>p strong {
        color: var(--pure-white);
    }

    .booking-confirmation dl {
        width: min(100%, 360px);
        margin-block: 5px;
        text-align: left;
    }

    .booking-return-note {
        font-size: var(--text-md);
    }

    .booking-confirmation .btn {
        margin-top: 4px;
    }

    /* Pagina 404 */
    .not-found-body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .not-found {
        flex: 1;
        display: grid;
        align-items: center;
        padding: calc(var(--header-height) + clamp(48px, 9vw, 96px)) 0 clamp(56px, 9vw, 96px);
    }

    .not-found-inner {
        max-width: 820px;
    }

    .not-found .kicker {
        margin-bottom: var(--space-3);
    }

    .not-found h1 {
        max-width: 18ch;
        margin-bottom: var(--space-5);
        font-size: clamp(2.35rem, 6vw, 4.6rem);
    }

    .not-found-text {
        max-width: 58ch;
        color: var(--mute);
    }

    .not-found-actions {
        gap: var(--space-3);
        margin-top: var(--space-6);
    }

    .not-found-actions .btn {
        min-width: 208px;
    }

    @keyframes hero-rise {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

    @keyframes booking-confirm-in {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

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

@layer pages {
    .btn-delivery {
        border-color: var(--gold);
        background: var(--gold);
        color: var(--pine-deep);
    }

    .btn-delivery:hover {
        border-color: var(--gold-hover);
        background: var(--gold-hover);
    }

    .hero-actions .btn.btn-delivery {
        border-color: var(--gold);
        color: var(--pine-deep);
    }

    .hero-actions .btn.btn-delivery:hover {
        border-color: var(--gold-hover);
        background: var(--gold-hover);
    }

    .menu-hero-actions {
        gap: 12px;
        margin-top: 20px;
    }

    .menu-category-note {
        margin: -6px 0 16px;
        color: var(--mute);
        font-size: 1rem;
    }
}