/* =========================================================
   Villa Dimora Marchese — stile
   Palette: terracotta, carta crema, sabbia, lava (Etna)
   ========================================================= */
:root {
    --paper: #fbf6ee;
    --sand: #f3e9da;
    --sand-deep: #e8d9c3;
    --ink: #2a201b;
    --ink-soft: #5d4f45;
    --line: rgba(42, 32, 27, 0.14);
    --terracotta: #8b2f25;
    --terracotta-deep: #71251d;
    --lava: #1f1915;
    --lava-2: #2b231e;
    --on-lava: #f4ebdf;
    --on-lava-soft: #cbbba9;

    --shadow-sm: 0 1px 2px rgba(58, 32, 18, 0.08), 0 6px 16px -8px rgba(58, 32, 18, 0.18);
    --shadow-md: 0 2px 6px rgba(58, 32, 18, 0.08), 0 22px 44px -18px rgba(58, 32, 18, 0.35);

    --font-display: "Bodoni Moda", Didot, Georgia, serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1240px;
    --gutter: clamp(16px, 5vw, 48px);
    --section-y: clamp(80px, 11vw, 148px);
    --header-h: 72px;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --z-fab: 90;
    --z-header: 100;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
    scrollbar-color: #bba994 var(--paper);
}

html:has(.lightbox[open]),
body.menu-open {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    caret-color: var(--terracotta);
    accent-color: var(--terracotta);
}

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

a {
    color: inherit;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

figure {
    margin: 0;
}

::selection {
    background: var(--terracotta);
    color: #fff8f0;
}

:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
    border-radius: 4px;
}

.hero :focus-visible,
.lava :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible,
.site-header:not(.is-scrolled) :focus-visible {
    outline-color: var(--on-lava);
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-fill {
    fill: currentColor;
    stroke: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -120px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- PULSANTI ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    min-height: 52px;
    padding: 0 1.7em;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn-primary {
    background: var(--terracotta);
    color: #fff8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 26px -12px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
    background: var(--terracotta-deep);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 18px 32px -14px rgba(0, 0, 0, 0.5);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-sm {
    min-height: 40px;
    padding: 0 1.15em;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    color: var(--terracotta);
    text-decoration: underline;
    text-decoration-color: rgba(139, 47, 37, 0.35);
    text-underline-offset: 0.35em;
    transition: gap 0.3s var(--ease-out), text-decoration-color 0.3s;
}

.btn-link:hover {
    gap: 0.8em;
    text-decoration-color: currentColor;
}

.btn-link-light {
    color: var(--on-lava);
    text-decoration-color: rgba(244, 235, 223, 0.45);
}

/* ---------- NAVBAR ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-header);
    color: var(--on-lava);
    transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.35s;
}

.site-header.is-scrolled {
    background: rgba(251, 246, 238, 0.97);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(58, 32, 18, 0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-decoration: none;
}

.primary-nav {
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: clamp(18px, 2.4vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
    transform: scaleX(1);
}

.menu-cta {
    display: none;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: flex;
    padding: 3px;
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    border-radius: 999px;
}

.lang-btn {
    min-width: 36px;
    min-height: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    opacity: 0.75;
    transition: background-color 0.25s, color 0.25s, opacity 0.25s;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn[aria-pressed="true"] {
    background: var(--on-lava);
    color: var(--ink);
    opacity: 1;
}

.site-header.is-scrolled .lang-btn[aria-pressed="true"],
.menu-open .lang-btn[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
}

.menu-toggle {
    display: none;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--lava);
    color: var(--on-lava);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    animation: heroSettle 2.6s var(--ease-out) both;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(22, 15, 11, 0.55) 0%, rgba(22, 15, 11, 0) 24%),
        linear-gradient(0deg, rgba(22, 15, 11, 0.88) 0%, rgba(22, 15, 11, 0.4) 40%, rgba(22, 15, 11, 0) 66%);
}

.hero-content {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: clamp(36px, 6vw, 80px);
}

.hero-title {
    max-width: 11ch;
    font-size: clamp(3rem, 1.5rem + 6.2vw, 6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-sub {
    max-width: 34ch;
    margin: 22px 0 0;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    color: rgba(244, 235, 223, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 30px;
    margin-top: 34px;
}

.hero-place {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: clamp(32px, 5vw, 56px) 0 0;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: rgba(244, 235, 223, 0.78);
}

.hero-title,
.hero-sub,
.hero-actions,
.hero-place {
    animation: heroRise 1.2s var(--ease-out) both;
}

.hero-sub { animation-delay: 0.15s; }
.hero-actions { animation-delay: 0.3s; }
.hero-place { animation-delay: 0.45s; }

@keyframes heroSettle {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

/* ---------- SEZIONI ---------- */
.section {
    padding-block: var(--section-y);
}

.section-title {
    font-size: clamp(2.1rem, 1.35rem + 2.7vw, 3.5rem);
}

.lead {
    font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
    line-height: 1.6;
}

.section-head {
    display: grid;
    gap: 16px 64px;
    align-items: end;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
    max-width: 60ch;
    margin: 0;
    color: var(--ink-soft);
}

.lava {
    background: var(--lava);
    color: var(--on-lava);
}

.lava .section-head p {
    color: var(--on-lava-soft);
}

@media (min-width: 900px) {
    .section-head {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .section-head p {
        justify-self: end;
        max-width: 44ch;
    }
}

/* Comparsa delle foto (solo con JS e se il movimento è consentito) */
.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    transition: opacity 0.9s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ---------- LA VILLA ---------- */
.villa-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.villa-copy .section-title {
    max-width: 14ch;
}

.villa-copy .lead {
    max-width: 46ch;
    margin: 24px 0 28px;
    color: var(--ink-soft);
}

.villa-media {
    position: relative;
    padding-bottom: 14%;
}

.villa-photo {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--sand);
}

.villa-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}

.villa-photo:hover img {
    transform: scale(1.035);
}

.villa-photo-main {
    aspect-ratio: 4 / 3;
    margin-left: 12%;
}

.villa-photo-inset {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44%;
    aspect-ratio: 4 / 3;
    border: 6px solid var(--paper);
    border-radius: var(--radius);
}

.villa-photo-inset.reveal {
    transition-delay: 0.15s;
}

@media (min-width: 1000px) {
    .villa-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 72px;
    }
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px 40px;
    margin-top: clamp(64px, 8vw, 104px);
    margin-bottom: 0;
    list-style: none;
}

.fact {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.fact .icon {
    width: 30px;
    height: 30px;
    margin-bottom: 18px;
    color: var(--terracotta);
    stroke-width: 1.35;
}

.fact h3 {
    margin-bottom: 8px;
    font-size: 1.45rem;
}

.fact p {
    margin: 0;
    font-size: 1rem;
    color: var(--ink-soft);
}

.villa {
    padding-bottom: calc(var(--section-y) * 0.55);
}

/* ---------- GALLERIA ---------- */
.gallery {
    padding-top: calc(var(--section-y) * 0.55);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.filter:hover {
    border-color: rgba(42, 32, 27, 0.4);
}

.filter[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.filter-count {
    min-width: 1.9em;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(42, 32, 27, 0.08);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.filter[aria-pressed="true"] .filter-count {
    background: rgba(251, 246, 238, 0.18);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: clamp(8px, 1.2vw, 16px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.g-item {
    position: relative;
    aspect-ratio: 4 / 3;
}

.g-item[hidden] {
    display: none;
}

.g-feature {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
}

.g-link {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sand);
    color: #fff8f0;
    text-decoration: none;
}

.g-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
}

.g-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(22, 15, 11, 0.66) 0%, rgba(22, 15, 11, 0) 45%);
    pointer-events: none;
}

.g-link:hover img {
    transform: scale(1.045);
}

.g-cap {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 13px;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.g-feature .g-cap {
    left: 22px;
    bottom: 18px;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.7rem);
    font-weight: 500;
}

@media (min-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .g-feature {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
    }

    .g-feature-right {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 599px) {
    .filter {
        gap: 6px;
        padding: 0 12px 0 14px;
        font-size: 0.9rem;
    }

    .g-link {
        border-radius: 10px;
    }

    .g-cap {
        left: 10px;
        right: 10px;
        bottom: 8px;
        font-size: 0.8rem;
    }

    .g-feature .g-cap {
        left: 14px;
        bottom: 12px;
    }
}

::view-transition-group(*) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- PET FRIENDLY ---------- */
.pet {
    background: var(--sand);
}

.pet-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.pet-photo {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.pet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-copy .section-title {
    display: flex;
    align-items: center;
    gap: 0.3em;
    margin-bottom: 24px;
}

.pet-icon {
    width: 0.78em;
    height: 0.78em;
    color: var(--terracotta);
    stroke-width: 1.3;
}

.pet-copy p {
    max-width: 40ch;
    color: var(--ink-soft);
}

.pet-copy .lead {
    color: var(--ink);
}

.pet-copy .pet-note {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(42, 32, 27, 0.16);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.35;
    color: var(--terracotta);
}

@media (min-width: 900px) {
    .pet-grid {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        gap: 80px;
    }
}

/* ---------- ESPERIENZE ---------- */
.exp-grid {
    display: grid;
    gap: 16px;
}

.exp-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 300px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--lava-2);
}

.exp-card-lg {
    min-height: 420px;
}

.exp-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out);
}

.exp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(22, 15, 11, 0.92) 0%, rgba(22, 15, 11, 0.5) 42%, rgba(22, 15, 11, 0) 72%);
}

.exp-card:hover img {
    transform: scale(1.04);
}

.exp-card:nth-child(2).reveal { transition-delay: 0.12s; }
.exp-card:nth-child(3).reveal { transition-delay: 0.24s; }

.exp-body {
    padding: clamp(22px, 3vw, 36px);
}

.exp-body h3 {
    margin-bottom: 8px;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
}

.exp-card-lg .exp-body h3 {
    font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.7rem);
}

.exp-body p {
    max-width: 42ch;
    margin: 0;
    color: rgba(244, 235, 223, 0.86);
}

@media (min-width: 900px) {
    .exp-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 20px;
    }

    .exp-card-lg {
        grid-row: span 2;
        min-height: 640px;
    }
}

/* ---------- RECENSIONI ---------- */
.reviews-grid {
    display: grid;
    gap: 36px 72px;
    margin-top: clamp(32px, 5vw, 56px);
}

.review blockquote {
    margin: 0;
}

.review p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.review-lg p {
    font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.7rem);
    line-height: 1.25;
}

.review:not(.review-lg) {
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.review figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.review figcaption::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--terracotta);
}

@media (min-width: 900px) {
    .reviews-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    }

    .review-lg {
        grid-row: span 2;
    }
}

/* ---------- DOVE SIAMO ---------- */
.location {
    padding-top: 0;
}

.location-grid {
    display: grid;
    gap: 32px 64px;
    align-items: center;
    padding-top: clamp(56px, 8vw, 104px);
    background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

.location-copy p {
    max-width: 36ch;
    margin: 20px 0 24px;
    color: var(--ink-soft);
}

.map-frame {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    background: var(--sand);
    box-shadow: var(--shadow-sm);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.85) sepia(0.08);
}

@media (min-width: 900px) {
    .location-grid {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    }
}

@media (max-width: 599px) {
    .map-frame {
        aspect-ratio: 4 / 3;
    }
}

/* ---------- CONTATTI ---------- */
.contact {
    background: var(--sand);
}

.contact-grid {
    display: grid;
    gap: 48px 80px;
    align-items: start;
}

.contact-copy .lead {
    max-width: 42ch;
    margin: 24px 0 32px;
    color: var(--ink-soft);
}

.contact-list {
    display: grid;
    gap: 12px;
    max-width: 380px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.contact-list a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-list .icon {
    width: 26px;
    height: 26px;
    color: var(--terracotta);
}

.contact-list a > span {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.booking-form {
    display: grid;
    gap: 20px;
    padding: clamp(22px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-md);
}

.field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-content: start;
}

.field label {
    font-size: 0.92rem;
    font-weight: 600;
}

.optional {
    font-weight: 400;
    color: var(--ink-soft);
}

.field input,
.field textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(42, 32, 27, 0.24);
    border-radius: var(--radius-sm);
    background: #fffdf9;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
}

.field input::-webkit-date-and-time-value {
    text-align: left;
}

.field textarea {
    min-height: 112px;
    resize: vertical;
}

.field input:hover,
.field textarea:hover {
    border-color: rgba(42, 32, 27, 0.42);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(139, 47, 37, 0.18);
}

.field input[aria-invalid="true"] {
    border-color: #a3231b;
    box-shadow: 0 0 0 3px rgba(163, 35, 27, 0.12);
}

::placeholder {
    color: #76675c;
    opacity: 1;
}

.field-error {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a3231b;
}

.field-error:empty,
.nights:empty {
    display: none;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-guests {
    grid-column: 1 / -1;
}

.nights {
    margin: -4px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--terracotta);
    font-variant-numeric: tabular-nums;
}

.form-note {
    margin: -6px 0 0;
    font-size: 0.85rem;
    text-align: center;
    color: var(--ink-soft);
}

@media (min-width: 640px) {
    .field-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 7.5rem;
    }

    .field-guests {
        grid-column: auto;
    }
}

@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }
}

/* ---------- FOOTER ---------- */
.site-footer {
    padding: clamp(56px, 8vw, 96px) 0 28px;
    background: var(--lava);
    color: var(--on-lava);
}

.footer-grid {
    display: grid;
    gap: 40px;
}

.footer-brand .brand {
    font-size: 1.8rem;
}

.footer-brand p {
    max-width: 32ch;
    margin: 12px 0 0;
    color: var(--on-lava-soft);
}

.footer-title {
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--on-lava-soft);
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-variant-numeric: tabular-nums;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: clamp(40px, 6vw, 72px);
    padding-top: 20px;
    background: linear-gradient(rgba(244, 235, 223, 0.14), rgba(244, 235, 223, 0.14)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
    font-size: 0.85rem;
    color: var(--on-lava-soft);
}

.footer-bottom p {
    margin: 0;
}

.site-footer .credits a {
    text-decoration: underline;
}

@media (min-width: 800px) {
    .footer-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

/* ---------- WHATSAPP FLOTTANTE ---------- */
.wa-fab {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: var(--z-fab);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 56px;
    min-height: 56px;
    padding: 0 22px 0 18px;
    border-radius: 999px;
    background: #1a7f4b;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(20, 40, 25, 0.25), 0 16px 30px -12px rgba(20, 60, 35, 0.6);
    transition: transform 0.25s var(--ease-out), background-color 0.25s, opacity 0.25s;
}

.wa-fab .icon {
    width: 24px;
    height: 24px;
}

.wa-fab:hover {
    background: #156a3e;
    transform: translateY(-3px);
}

.menu-open .wa-fab {
    opacity: 0;
    pointer-events: none;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: transparent;
    color: var(--on-lava);
}

.lightbox::backdrop {
    background: rgba(18, 13, 10, 0.94);
}

.lightbox[open],
.lightbox[open]::backdrop {
    animation: lbFade 0.35s var(--ease-out);
}

.lb-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    padding: 76px clamp(12px, 8vw, 100px) 28px;
    touch-action: pan-y;
}

.lb-img {
    max-width: min(100%, 1500px);
    max-height: calc(100dvh - 170px);
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-drag: none;
}

.lb-img.is-animating[data-dir="open"] { animation: lbZoom 0.45s var(--ease-out); }
.lb-img.is-animating[data-dir="next"] { animation: lbNext 0.4s var(--ease-out); }
.lb-img.is-animating[data-dir="prev"] { animation: lbPrev 0.4s var(--ease-out); }

@keyframes lbFade { from { opacity: 0; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(0.96); } }
@keyframes lbNext { from { opacity: 0; transform: translateX(28px); } }
@keyframes lbPrev { from { opacity: 0; transform: translateX(-28px); } }

.lb-caption {
    display: flex;
    align-items: baseline;
    gap: 16px;
    text-align: center;
}

.lb-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.lb-count {
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    color: var(--on-lava-soft);
}

.lb-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(244, 235, 223, 0.2);
    border-radius: 50%;
    background: rgba(244, 235, 223, 0.08);
    color: var(--on-lava);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.lb-btn:hover {
    background: rgba(244, 235, 223, 0.18);
}

.lb-btn .icon {
    width: 24px;
    height: 24px;
}

.lb-close { top: 16px; right: 16px; }
.lb-prev { top: 50%; left: 16px; transform: translateY(-50%); }
.lb-next { top: 50%; right: 16px; transform: translateY(-50%); }
.lb-prev:active,
.lb-next:active { transform: translateY(-50%) scale(0.94); }

/* ---------- RESPONSIVE: NAVBAR MOBILE ---------- */
@media (max-width: 900px) {
    .nav-book {
        display: none;
    }

    .nav-tools {
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-right: -8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: none;
        cursor: pointer;
    }

    .menu-toggle-bars,
    .menu-toggle-bars::before,
    .menu-toggle-bars::after {
        display: block;
        width: 22px;
        height: 1.5px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.35s var(--ease-out), background-color 0.2s;
    }

    .menu-toggle-bars {
        position: relative;
    }

    .menu-toggle-bars::before,
    .menu-toggle-bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .menu-toggle-bars::before { top: -7px; }
    .menu-toggle-bars::after { top: 7px; }

    .menu-open .menu-toggle-bars { background: transparent; }
    .menu-open .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
    .menu-open .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

    .menu-open .site-header {
        color: var(--ink);
    }

    .primary-nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 32px;
        margin: 0;
        padding: calc(var(--header-h) + 28px) var(--gutter) max(28px, env(safe-area-inset-bottom));
        overflow-y: auto;
        background: var(--paper);
        color: var(--ink);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
    }

    .menu-open .primary-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s;
    }

    .nav-links {
        flex-direction: column;
        gap: 2px;
    }

    .nav-links a {
        padding: 6px 0;
        font-family: var(--font-display);
        font-size: clamp(2rem, 8vw, 2.6rem);
        font-weight: 500;
        letter-spacing: -0.02em;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a[aria-current="true"] {
        color: var(--terracotta);
    }

    .menu-cta {
        display: inline-flex;
        width: 100%;
    }
}

@media (max-width: 599px) {
    .brand {
        font-size: 1.25rem;
    }

    .wa-fab {
        width: 56px;
        padding: 0;
    }

    .wa-fab-text {
        display: none;
    }

    .field input[type="date"] {
        padding-inline: 10px;
    }

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

    .lb-figure {
        padding: 68px 8px 88px;
    }

    .lb-prev,
    .lb-next {
        top: auto;
        bottom: 16px;
        transform: none;
    }

    .lb-prev:active,
    .lb-next:active {
        transform: scale(0.94);
    }
}

@media (max-width: 380px) {
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- MOVIMENTO RIDOTTO ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}
