:root {
  --linen: #EEF0E6;
  --paper: #F8F9F3;
  --ink: #1F2616;
  --olive: #4F5D2F;
  --wine: #7A1F2B;
  --straw: #D8C27A;
  --muted: #5A6150;
  --display: "Bodoni 72", "Bodoni Moda", Didot, "Bodoni MT", "Libre Bodoni", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--linen); color: var(--ink); font: 1.0625rem/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); }
.col { max-width: 60ch; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: calc(.7rem + env(safe-area-inset-top, 0px)) 1.25rem .7rem; color: #fff; transition: background .3s, color .3s; }
.top.solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(31,38,22,.12); }
.top.solid .brand img { filter: invert(1); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.5rem; }
.top nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; font-size: .95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { background: var(--wine); color: #fff; padding: .5rem 1.1rem; border-radius: 999px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid currentColor; color: inherit;
  border-radius: 999px; padding: .4rem 1rem; font: inherit; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); color: var(--ink); padding: .5rem 1.25rem 1.25rem; box-shadow: 0 8px 20px rgba(31,38,22,.15); }
  .top nav.open { display: flex; }
  .top nav a { padding: .8rem 0; border-bottom: 1px solid rgba(31,38,22,.1); font-size: 1.1rem; }
  .top nav .nav-cta { margin-top: 1rem; text-align: center; border: 0; }
  .top.menu-open { background: var(--paper); color: var(--ink); }
  .top.menu-open .brand img { filter: invert(1); }
}

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,26,12,.78) 0%, rgba(20,26,12,.25) 45%, rgba(20,26,12,.35) 100%); }
.hero-text { position: relative; z-index: 1; padding: 0 1.25rem 12vh; width: min(1120px, 100%); margin-inline: auto; }
.hero h1 { font-size: clamp(4.5rem, 17vw, 13rem); letter-spacing: -.02em; margin: 0; }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 34ch; margin: .6rem 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: settle 2.4s ease-out both; }
  @keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* buttons */
.btn { display: inline-block; background: var(--olive); color: #fff; text-decoration: none; border: 1px solid var(--olive);
  padding: .8rem 1.5rem; border-radius: 999px; font: 600 1rem var(--body); cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--straw); border-color: var(--straw); }
.btn-line { background: transparent; color: #fff; border-color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.15); }
.btn-line-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: #fff; }

/* intro */
.intro { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem); }
.lead { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.25; max-width: 30ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin: 3rem 0 0;
  border-top: 1px solid rgba(31,38,22,.2); padding-top: 1.5rem; }
.facts dt { font-family: var(--display); font-size: 2.4rem; color: var(--olive); }
.facts dd { margin: 0; color: var(--muted); }

/* ristorante */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.split-img { margin: 0; min-height: 420px; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text { padding: clamp(2.5rem, 6vw, 5.5rem); align-self: center; max-width: 620px; }
.hours { border-collapse: collapse; margin: 1.5rem 0 .5rem; width: 100%; max-width: 420px; }
.hours caption { text-align: left; font-weight: 600; margin-bottom: .4rem; }
.hours th, .hours td { text-align: left; padding: .55rem .6rem .55rem 0; border-bottom: 1px solid rgba(31,38,22,.15); font-variant-numeric: tabular-nums; }
.hours th { font-weight: 400; }
.note { color: var(--wine); font-weight: 600; margin-bottom: 1.5rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split-img { min-height: 0; aspect-ratio: 4/3; } }

.split-text .btn { margin: 0 .6rem .6rem 0; }
/* soggiorno */
.soggiorno { padding: clamp(4rem, 9vw, 7rem) 0; }
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; width: min(1120px, 100% - 2.5rem); margin: 2rem auto; }
.duo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.duo img:first-child { aspect-ratio: auto; height: 100%; }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } .duo img:first-child { aspect-ratio: 4/3; } .duo img:last-child { display: none; } }

/* piscina */
.piscina { padding: clamp(4rem, 9vw, 7rem) 0; }
.piscina .season { margin: 1.5rem 0 1.2rem; color: var(--olive); font-weight: 600; }
/* eventi */
.eventi { background: var(--wine) url("https://static.wixstatic.com/media/6144e2_73a7285b7a2a49dbaa592007f9316959~mv2.jpg/v1/fill/w_1800,h_1000,al_c,q_85,enc_auto/campagna.jpg") center/cover;
  background-blend-mode: multiply; color: #fff; padding: clamp(5rem, 12vw, 9rem) 0; }
.eventi-inner { max-width: 640px; margin-left: max(1.25rem, calc((100% - 1120px) / 2)); }
.eventi p { font-size: 1.1rem; }

/* fattoria */
.fattoria { padding: clamp(4rem, 9vw, 7rem) 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.trio figure { margin: 0; }
.trio img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 4px; }
.trio figcaption { margin-top: .5rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) {
  .trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .trio figure { scroll-snap-align: start; }
}

/* contatti */
.cta-box { text-align: center; }
.cta-box p { margin-inline: auto; max-width: 48ch; font-size: 1.15rem; }
.cta-box .send { justify-content: center; margin-top: 1.5rem; }
.btn-wa { background: #1F8A4C; border-color: #1F8A4C; }
.btn-wa:hover { background: #166B3A; border-color: #166B3A; }
/* instagram */
.insta { padding: clamp(4rem, 9vw, 7rem) 0; }
.insta-head p { max-width: 52ch; }
.insta-head a { color: var(--wine); }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 2rem 0; }
.insta-grid a { display: block; overflow: hidden; border-radius: 4px; }
.insta-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.insta-grid a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .insta-grid img { transition: none; } }
.btn-ig { display: inline-flex; align-items: center; gap: .5rem; }
@media (max-width: 560px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }
/* form */
.prenota { background: var(--paper); padding: clamp(4rem, 9vw, 7rem) 0; }
form { margin-top: 2rem; display: grid; gap: 1.2rem; }
.tipo { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tipo legend { font-weight: 600; margin-bottom: .6rem; }
.tipo label { border: 1px solid rgba(31,38,22,.3); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.tipo label:has(input:checked) { background: var(--olive); border-color: var(--olive); color: #fff; }
.tipo input { accent-color: var(--olive); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
form label { display: grid; gap: .35rem; font-size: .95rem; }
input, select, textarea { font: inherit; padding: .75rem .9rem; border: 1px solid rgba(31,38,22,.3); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.check { grid-template-columns: auto 1fr !important; align-items: start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--olive); }
.err { color: var(--wine); font-weight: 600; margin: 0; }
.send { display: flex; flex-wrap: wrap; gap: .8rem; }

/* dove */
.dove { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: clamp(4rem, 9vw, 7rem) 0; }
.dove h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
address { font-style: normal; font-size: 1.2rem; margin-bottom: 1.4rem; }
.dove p { font-size: 1.2rem; margin-bottom: 1.4rem; }
@media (max-width: 700px) { .dove { grid-template-columns: 1fr; } }

.tel-main a { font-family: var(--display); font-size: 2rem; text-decoration: none; }
.tel-note { color: var(--muted); font-size: 1rem; }
.dove .tel-alt { font-size: 1.05rem; color: var(--muted); }
.dove .tel-alt a { color: var(--ink); }
/* footer */
.foot { background: var(--ink); color: #D9DDCD; padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot nav { display: flex; flex-direction: column; gap: .4rem; }
.todo { background: var(--straw); color: var(--ink); padding: 0 .3rem; border-radius: 3px; }

.wa-float { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 15; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* cookie banner */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; max-width: 560px; margin-inline: auto;
  background: var(--paper); color: var(--ink); border: 1px solid rgba(31,38,22,.2); border-radius: 10px; padding: 1.2rem 1.2rem 1rem; box-shadow: 0 10px 30px rgba(31,38,22,.25); font-size: .95rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 1.5rem .9rem 0; }
.cookie-banner a { color: var(--wine); }
.cb-btns { display: flex; gap: .6rem; }
.cb-btns .btn { flex: 1; padding: .65rem 1rem; }
.cb-x { position: absolute; top: .4rem; right: .6rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem; }
/* legal page */
.legal { padding: calc(6rem + env(safe-area-inset-top, 0px)) 0 4rem; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.legal h2 { font-size: 2rem; margin-top: 3rem; }
.legal h3 { margin: 1.8rem 0 .4rem; font-size: 1.1rem; }
.legal .draft { background: var(--straw); padding: 1rem 1.2rem; border-radius: 6px; }

/* carosello portate */
.car { position: relative; overflow: hidden; height: 100%; min-height: 420px; background: var(--ink); }
.car img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.car img.on { opacity: 1; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 1rem; display: flex; justify-content: center; gap: .5rem; z-index: 2; }
.car-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: rgba(255,255,255,.35); cursor: pointer; }
.car-dots button[aria-current="true"] { background: #fff; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(20,26,12,.45); color: #fff; font-size: 1.4rem; cursor: pointer; }
.car-prev { left: .8rem; } .car-next { right: .8rem; }
@media (max-width: 800px) { .car { min-height: 0; aspect-ratio: 1/1; height: auto; } }
@media (prefers-reduced-motion: reduce) { .car img { transition: none; } }