/* Mobile layout refinement: keep desktop styling untouched. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .nav {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    width: auto;
    height: 56px;
    border: 1px solid rgba(70, 54, 39, .12);
    border-radius: 999px;
    background: rgba(248, 243, 234, .96);
    box-shadow: 0 8px 24px rgba(16, 13, 10, .16);
    backdrop-filter: blur(14px);
  }

  .nav-in {
    width: 100%;
    height: 56px;
    gap: 8px;
    padding: 0 8px 0 14px;
    color: var(--ink);
  }

  .nav-logo {
    width: clamp(88px, 25vw, 108px);
  }

  .nav-links {
    display: none !important;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  .auth-nav-button.auth-nav-account {
    display: grid;
    place-items: center;
    width: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid rgba(35, 30, 24, .18);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
  }

  .menu-btn {
    display: grid !important;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    font-size: 1.25rem;
    line-height: 1;
  }

  .mobile-menu {
    position: fixed;
    top: calc(max(8px, env(safe-area-inset-top)) + 66px);
    left: 10px;
    right: 10px;
    max-height: calc(100dvh - 86px - env(safe-area-inset-top));
    overflow-y: auto;
    border: 1px solid rgba(70, 54, 39, .12);
    border-radius: 18px;
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(16, 13, 10, .24);
    padding: 14px 20px;
  }

  .mobile-menu.open {
    display: grid;
    gap: 0;
  }

  .mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(35, 30, 24, .12);
    font-size: .76rem;
  }

  .mobile-menu [data-auth-open] {
    min-height: 48px;
    color: var(--ink);
    font: 700 .76rem 'Manrope', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .1em;
  }

  .hero-minimal {
    min-height: 100svh;
    min-height: 100dvh;
    align-items: flex-end;
  }

  .hero-minimal .hero-in {
    width: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: calc(92px + env(safe-area-inset-top)) 22px calc(38px + env(safe-area-inset-bottom));
  }

  .hero-minimal .hero-copy {
    width: 100%;
    max-width: 36rem;
  }

  .hero-minimal .eyebrow {
    margin-bottom: 14px;
    font-size: .62rem;
    letter-spacing: .18em;
  }

  .hero-minimal h1 {
    max-width: 9ch;
    margin: 0;
    font-size: clamp(3.4rem, 13.5vw, 5.3rem);
    line-height: .86;
    letter-spacing: -.055em;
  }

  .hero-minimal p {
    max-width: 33ch;
    margin: 16px 0 0;
    font-size: .98rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    justify-items: start;
    gap: 11px;
    margin-top: 23px;
  }

  .hero-reserve {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
  }

  .hero-location {
    font-size: .62rem;
    letter-spacing: .12em;
  }

  .section {
    padding: 64px 18px;
  }

  #experiencia {
    padding: 0 !important;
  }

  .story-card {
    border-radius: 0;
  }

  .story-head {
    padding: 28px 18px 18px;
  }

  .story-heading h2 {
    max-width: 100%;
    font-size: clamp(3rem, 13.2vw, 4.6rem);
    line-height: .88;
    letter-spacing: -.035em;
  }

  .story-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 16px -18px 0;
    padding: 0 18px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .story-nav::-webkit-scrollbar,
  .wine-picker::-webkit-scrollbar {
    display: none;
  }

  .story-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: .59rem;
  }

  .story-nav .story-reserve {
    margin-left: auto;
  }

  .story-hero {
    height: clamp(300px, 94vw, 460px);
  }

  .story-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .story-lower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px 18px;
  }

  .story-copy,
  .story-more {
    grid-column: 1 / -1;
  }

  .story-copy {
    padding: 0 0 5px;
  }

  .story-copy h3 {
    max-width: 18ch;
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: .98;
  }

  .story-copy > p:not(.story-kicker) {
    max-width: 42ch;
    font-size: .94rem;
    line-height: 1.65;
  }

  .story-tile {
    min-width: 0;
    min-height: 148px;
    aspect-ratio: 1.05;
  }

  .story-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .story-more {
    display: grid;
    gap: 8px;
    padding: 15px 0 0;
    border-top: 1px solid rgba(65, 48, 32, .2);
  }

  .story-more p {
    margin: 0;
    line-height: 1.55;
  }

  .story-more > a {
    margin: 4px 0 0;
  }

  .rustico-ticker {
    overflow: hidden;
    padding: 11px 0 !important;
  }

  .rustico-ticker-track span {
    gap: 14px !important;
    font-size: .64rem !important;
  }

  #parrilla .parrilla-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  #parrilla .parrilla-media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  #parrilla .parrilla-wordmark {
    top: 7%;
    left: 3%;
    max-width: 100%;
    font-size: clamp(6rem, 28vw, 10rem);
    transform: translateX(-.03em) scaleX(.48);
    transform-origin: left center;
    opacity: .22;
    white-space: nowrap;
  }

  #parrilla .parrilla-copy {
    min-height: 0;
    padding: 42px 22px 46px;
  }

  #parrilla .parrilla-copy-inner {
    width: 100%;
    max-width: 40rem;
  }

  #parrilla .parrilla-kicker {
    font-size: .62rem;
    letter-spacing: .14em;
    line-height: 1.5;
  }

  #parrilla .parrilla-copy h2 {
    margin: 16px 0 17px !important;
    font-size: clamp(2.65rem, 10.5vw, 4rem) !important;
    line-height: .94;
  }

  #parrilla .parrilla-copy p {
    max-width: 42ch;
    font-size: .97rem !important;
    line-height: 1.68;
  }

  #parrilla .parrilla-cta {
    min-height: 50px;
    margin-top: 11px;
    padding: 0 20px;
  }

  #parrilla .parrilla-differentials {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 12px;
  }

  #parrilla .parrilla-differential {
    min-width: 0;
    min-height: 64px;
    justify-content: flex-start;
    gap: 9px;
    padding: 10px 9px;
  }

  #parrilla .parrilla-differential svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
  }

  #parrilla .parrilla-differential span {
    font-size: .61rem;
    line-height: 1.25;
  }

  #destaques {
    padding: 64px 18px;
  }

  #destaques .wrap {
    width: 100%;
  }

  #destaques .menu-head {
    display: grid;
    gap: 12px;
    margin-bottom: 23px;
  }

  #destaques .menu-head h2 {
    font-size: clamp(2.45rem, 10vw, 3.5rem);
    line-height: .95;
  }

  #destaques .menu-head .lead {
    margin: 0;
    font-size: .94rem;
    line-height: 1.6;
  }

  #highlightGrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    margin-top: 0;
  }

  #highlightGrid .dish {
    min-width: 0;
    border-radius: 10px !important;
  }

  #highlightGrid .dish-img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  #highlightGrid .dish-body {
    gap: 8px;
    padding: 17px;
  }

  #highlightGrid .dish h3 {
    font-size: 1.45rem;
    line-height: 1.08;
  }

  #highlightGrid .dish p {
    min-height: 0;
    font-size: .92rem;
    line-height: 1.55;
  }

  #destaques .highlight-action .btn {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
  }

  #vinhos {
    padding: 64px 18px !important;
  }

  #vinhos .wine-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  #vinhos .wine-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 10vw, 3.4rem);
    line-height: .98;
  }

  #vinhos .wine-copy p {
    max-width: 36ch;
    font-size: .94rem;
    line-height: 1.6;
  }

  #vinhos .wine-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  #vinhos .wine-glass {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
  }

  #vinhos .wine-glass img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #vinhos .wine-detail {
    min-width: 0;
    padding: 0;
  }

  #vinhos .wine-detail h3 {
    margin: 5px 0 7px;
    font-size: 2.2rem;
  }

  #vinhos .wine-detail p {
    max-width: 35ch;
    font-size: .93rem;
    line-height: 1.55;
  }

  #vinhos .wine-picker {
    display: flex;
    gap: 7px;
    margin: 16px -18px 0;
    padding: 0 18px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  #vinhos .wine-choice {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 13px;
    white-space: nowrap;
  }

  #vinhos .wine-controls {
    display: flex;
    gap: 8px;
    margin-top: 13px;
  }

  #galeria {
    padding: 64px 0 58px;
  }

  #galeria .wrap {
    width: 100%;
    padding: 0 16px;
  }

  #galeria .place-intro {
    margin-bottom: 20px;
  }

  #galeria .place-intro h2 {
    font-size: clamp(2.5rem, 10vw, 3.4rem);
    line-height: 1;
  }

  #galeria .place-intro > p:last-child {
    max-width: 35ch;
    font-size: .94rem;
    line-height: 1.55;
  }

  #galeria .place-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(68px, 20vw, 88px);
    grid-auto-flow: dense;
    gap: 8px;
  }

  #galeria .place-photo {
    min-width: 0;
    min-height: 0;
    grid-column: auto !important;
    grid-row: span 2;
    margin: 0;
    overflow: hidden;
    border-radius: 9px;
  }

  #galeria .place-photo-facade,
  #galeria .place-photo-guests,
  #galeria .place-photo-food-brasa,
  #galeria .place-photo-cellar {
    grid-row: span 3;
  }

  #galeria .place-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #galeria .place-links {
    justify-content: flex-start;
    margin-top: 19px;
  }

  #galeria .place-gallery-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: .74rem;
  }

  #reservas {
    padding: 62px 18px;
  }

  #reservas .reserve-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  #reservas h2 {
    max-width: 10ch;
    margin: 10px 0 12px;
    font-size: clamp(2.7rem, 10vw, 3.6rem);
    line-height: .98;
  }

  #reservas .reserve-grid > div:first-child > p {
    max-width: 38ch;
    font-size: .94rem;
    line-height: 1.6;
  }

  #reservas .form {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
  }

  #reservas .field,
  #reservas .field.full {
    grid-column: 1;
    min-width: 0;
  }

  #reservas .field label {
    font-size: .68rem;
  }

  #reservas .field input,
  #reservas .field select,
  #reservas .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    font-size: 16px;
  }

  #reservas .field textarea {
    min-height: 96px;
  }

  #reservas .form .btn {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    line-height: 1.35;
    white-space: normal;
  }

  #reservas .form-note {
    line-height: 1.5;
  }

  #visite {
    padding: 62px 18px;
  }

  #visite .section-title {
    margin: 8px 0 22px;
    font-size: clamp(2.65rem, 10vw, 3.6rem);
    line-height: .98;
  }

  #visite .visit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  #visite .visit-card {
    padding: 21px 18px;
    border-radius: 14px;
  }

  #visite .visit-card h3 {
    font-size: 1.75rem;
  }

  #visite .hours {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    font-size: .84rem;
  }

  #visite .visit-card p {
    font-size: .88rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  #visite .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #visite .actions .btn {
    min-width: 0;
    min-height: 46px;
    padding: 0 9px;
    font-size: .62rem;
    letter-spacing: .08em;
  }

  #visite .map {
    height: clamp(250px, 74vw, 340px);
    min-height: 0;
    border-radius: 13px;
  }

  #avaliacoes {
    padding: 58px 0 48px !important;
  }

  #avaliacoes .wrap {
    padding: 0 16px;
  }

  #avaliacoes .review-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
  }

  #avaliacoes .review-heading h2 {
    max-width: 16ch;
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.08;
  }

  #avaliacoes .review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  #avaliacoes .review-rating > span:first-child {
    font-size: .78rem;
  }

  #avaliacoes .review-rating strong {
    font-size: 1.2rem;
  }

  #avaliacoes .rating-source {
    font-size: .7rem;
  }

  #avaliacoes .review-card {
    flex-basis: min(82vw, 330px);
    min-height: 154px;
    padding: 17px;
  }

  .footer {
    padding: 38px 18px calc(30px + env(safe-area-inset-bottom));
  }

  .footer-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .foot-end {
    flex-direction: column;
    gap: 8px;
  }

  .floating {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .float-btn {
    min-height: 46px;
    padding: 0 15px;
    font-size: .69rem;
  }

  .order-drawer {
    width: 100%;
    right: -100%;
  }

  .order-drawer.open {
    right: 0;
  }

  .auth-overlay {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .auth-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  #cardapio {
    padding: calc(var(--nav) + 28px) 16px 56px;
  }

  #cardapio .menu-head {
    display: grid;
    gap: 12px;
  }

  #cardapio .menu-head .lead {
    font-size: .94rem;
    line-height: 1.6;
  }

  #cardapio .menu-tools {
    top: 66px;
    margin: 0 -16px;
    padding: 10px 16px;
  }

  #cardapio .menu-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  #cardapio .dish-img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  #cardapio .dish-body {
    padding: 16px;
  }

  #cardapio .dish p {
    min-height: 0;
    font-size: .92rem;
    line-height: 1.55;
  }

  #cardapio .menu-tools .search {
    display: flex;
  }

  #cardapio .menu-tools .search input {
    min-height: 46px;
    font-size: 16px;
  }
}

@media (max-width: 390px) {
  .story-nav .story-reserve {
    margin-left: 0;
  }

  #galeria .place-gallery {
    grid-auto-rows: 72px;
    gap: 6px;
  }

  #visite .hours {
    grid-template-columns: minmax(0, 1fr) auto;
    font-size: .79rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #galeria .place-photo img,
  .mobile-menu,
  .nav {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Ajustes finais de leitura e toque em telas pequenas. */
.menu-btn svg { width: 21px; height: 21px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  body { min-width: 320px; }
  section[id] { scroll-margin-top: 78px; }

  .nav { width: calc(100% - 20px); left: 10px; right: 10px; }
  .nav-in { min-width: 0; }
  .nav-logo { width: clamp(88px, 25vw, 108px); }
  .menu-btn { flex: 0 0 40px; }

  .mobile-menu {
    inset: auto;
    top: calc(72px + env(safe-area-inset-top));
    bottom: auto;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100dvh - 92px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-menu:not(.open) { display: none; }
  .mobile-menu.open { display: grid; grid-template-columns: 1fr; }
  .mobile-menu a, .mobile-menu button { min-height: 46px; }

  .hero-bg, .hero-bg video { width: 100%; height: 100%; }
  .hero-bg video { object-fit: cover; object-position: center; }
  .hero-minimal .hero-in { min-width: 0; }
  .hero-minimal h1, .story-heading h2, #parrilla .parrilla-copy h2,
  #destaques .menu-head h2, #vinhos .wine-copy h2,
  #galeria .place-intro h2, #reservas h2, #visite .section-title {
    overflow-wrap: normal;
    word-break: normal;
  }

  #parrilla .parrilla-layout { grid-template-columns: minmax(0, 1fr); }
  #parrilla .parrilla-media { min-width: 0; width: 100%; aspect-ratio: 4 / 3; }
  #parrilla .parrilla-copy { min-width: 0; }
  #parrilla .parrilla-differentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  #destaques .menu-grid, #cardapio .menu-grid { grid-template-columns: minmax(0, 1fr); }
  #destaques .dish, #cardapio .dish { min-width: 0; }
  #destaques .dish-img, #cardapio .dish-img { width: 100%; overflow: hidden; }
  #destaques .dish-img img, #cardapio .dish-img img { width: 100%; height: 100%; object-fit: cover; }
  #destaques .dish p, #cardapio .dish p { overflow-wrap: anywhere; }

  #vinhos .wine-grid { grid-template-columns: minmax(0, 1fr); }
  #vinhos .wine-showcase { grid-template-columns: minmax(0, 1fr); }
  #vinhos .wine-glass { width: 100%; aspect-ratio: 4 / 3; height: auto; }
  #vinhos .wine-picker { max-width: calc(100vw - 36px); }

  #galeria .place-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #galeria .place-photo { min-width: 0; }
  #galeria .place-photo img { width: 100%; height: 100%; object-fit: cover; }

  #reservas .form { grid-template-columns: minmax(0, 1fr); }
  #reservas .field, #reservas .field.full { grid-column: 1; min-width: 0; }
  #reservas input, #reservas select, #reservas textarea { max-width: 100%; font-size: 16px; }

  .btn, .hero-reserve, .float-btn, .wine-choice { min-height: 44px; }
  .floating { max-width: calc(100vw - 24px); }
  .float-btn { max-width: 100%; }
  .review-track, .reviews-track, .review-marquee { max-width: 100%; }
}

@media (max-width: 390px) {
  .nav { top: max(6px, env(safe-area-inset-top)); }
  .nav-in { padding-left: 10px; padding-right: 7px; }
  .nav-logo { width: 88px; }
  .auth-nav-button.auth-nav-account { width: 36px; min-height: 36px; }
  .menu-btn { width: 38px; height: 38px; flex-basis: 38px; }
  .hero-minimal .hero-in { padding-left: 18px; padding-right: 18px; }
  #parrilla .parrilla-differential { padding-left: 8px; padding-right: 7px; }
  #parrilla .parrilla-differential span { font-size: .58rem; }
  #galeria .place-gallery { grid-auto-rows: clamp(68px, 20vw, 82px); gap: 7px; }
}
