/* =================================================================
   Agriturismo Uva Matta — design system
   Modern, clean, editorial. Palette: verde oliva + uva bordeaux.
   Display: Fraunces · UI: Hanken Grotesk
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* paper & ink */
  --paper:      #FBFAF5;
  --paper-2:    #F4F1E6;
  --paper-3:    #EFEBDD;
  --white:      #FFFFFF;
  --ink:        #23271A;
  --muted:      #585C49;
  --line:       rgba(35, 39, 26, .13);
  --line-soft:  rgba(35, 39, 26, .07);

  /* brand */
  --green:      #3D4A29;
  --green-deep: #2A331C;
  --green-2:    #4F5E38;
  --grape:      #8A2B47;
  --grape-deep: #6E2138;
  --saffron:    #C68A26;
  --saffron-2:  #E0A93E;

  /* on dark */
  --on-dark:      #F6F3E9;
  --on-dark-mute: rgba(246, 243, 233, .68);

  /* type */
  --display: "Fraunces", "Fraunces-fallback", Georgia, "Times New Roman", serif;
  --ui: "Hanken Grotesk", "Hanken-fallback", system-ui, -apple-system, sans-serif;

  /* metrics */
  --wrap: 1240px;
  --gap: clamp(1.4rem, 4vw, 3rem);
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow: 0 18px 50px -24px rgba(35, 39, 26, .35);
  --shadow-sm: 0 6px 22px -14px rgba(35, 39, 26, .4);
  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem); font-optical-sizing: auto; }

/* Svolazzo ondulato del marchio, sotto agli H1 */
h1::after {
  content: "";
  display: block;
  width: clamp(132px, 17vw, 200px);
  aspect-ratio: 200 / 26;
  margin-top: .55rem;
  background-color: var(--saffron-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26'%3E%3Cpath d='M4,16 C30,8 64,6 100,11 C142,17 176,18 196,7' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26'%3E%3Cpath d='M4,16 C30,8 64,6 100,11 C142,17 176,18 196,7' fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
}
/* su sfondo chiaro (H1 dentro le section) richiama il verde del logo */
.section h1::after { background-color: var(--green-2); }
@media (prefers-reduced-motion: no-preference) {
  h1::after { transform-origin: left; animation: flourishIn .9s var(--ease) .2s both; }
  @keyframes flourishIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 420; }
h4 { font-size: 1.05rem; font-weight: 500; }
p a { color: var(--grape-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover { color: var(--grape); }
strong { font-weight: 600; color: var(--grape-deep); }
em { font-style: italic; }
p em, li em, .lede em { color: var(--saffron); }
.panel strong, .band strong { color: var(--saffron-2); }
.panel p em, .panel li em, .panel .lede em, .band p em { color: var(--saffron-2); }

.lede {
  font-family: var(--display);
  font-weight: 330;
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  line-height: 1.4;
  color: var(--green);
  letter-spacing: -.005em;
}

.eyebrow {
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grape);
  display: inline-block;
}
.eyebrow--saffron { color: var(--saffron); }
.eyebrow--plum { color: var(--grape); }

.kicker {
  font-family: var(--display);
  font-style: italic;
  font-weight: 360;
  color: var(--grape);
  font-size: 1.15rem;
}

.latin {
  font-family: var(--display);
  font-style: italic;
  font-weight: 340;
  color: var(--green-2);
  font-size: .98rem;
  display: block;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.skip {
  position: absolute; left: -999px; top: .5rem; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: .7rem 1.2rem; border-radius: var(--r);
}
.skip:focus { left: .8rem; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2.5px solid var(--grape);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .005em;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  touch-action: manipulation;
  text-align: center;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--grape); color: var(--on-dark); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--grape-deep); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--green-deep); border-color: var(--line); }
.btn--outline:hover { border-color: var(--green); background: var(--white); transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255,255,255,.1); color: var(--on-dark); border-color: rgba(246,243,233,.4); }
.btn--ghost-light:hover { background: var(--on-dark); color: var(--green-deep); border-color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--grape-deep);
  width: fit-content;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.arrow-link::after { content: "\2192"; transition: transform .25s var(--ease); }
.arrow-link:hover { color: var(--grape); }
.arrow-link:hover::after { transform: translateX(4px); }

/* Link Instagram inline (es. profilo della cuoca) */
.ig-link {
  display: inline-flex; align-items: center; gap: .55rem; width: fit-content;
  margin-top: 1.2rem; font-weight: 600; font-size: .95rem; color: var(--grape-deep);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.ig-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.ig-link:hover { color: var(--grape); transform: translateY(-1px); }

/* ---------- Pagina contributi / funding (PSR) ---------- */
.funding-banner { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 4vw, 2.4rem); margin: 2.5rem 0; }
.funding-banner img { width: 100%; height: auto; max-width: 940px; margin-inline: auto; }
.funding-dl { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: .8rem 1.8rem; margin: 0; }
.funding-dl dt { font-weight: 600; color: var(--ink); }
.funding-dl dd { margin: 0; color: var(--muted); }
.funding-dl--panel { max-width: 720px; }
.panel .funding-dl dt { color: #fff; }
.panel .funding-dl dd { color: var(--on-dark-mute); }
@media (max-width: 560px) { .funding-dl { grid-template-columns: 1fr; gap: .15rem; } .funding-dl dt { margin-top: .9rem; } }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.is-solid {
  background: rgba(251, 250, 245, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 48px; width: auto; transition: filter .35s var(--ease); }
/* logo is dark ink: invert to white while header is transparent over a photo hero */
.site-head:not(.is-solid) .brand__logo { filter: brightness(0) invert(1); }

.nav__links { display: flex; align-items: center; gap: 1.55rem; margin-left: auto; }
.nav__links > a:not(.btn), .nav__drop-toggle {
  font-size: .94rem; font-weight: 500; color: var(--ink);
  background: none; border: 0; padding: .3rem 0;
  position: relative; letter-spacing: .005em;
  transition: color .2s var(--ease);
  display: inline-flex; align-items: center; gap: .35rem;
}
.site-head:not(.is-solid) .nav__links > a:not(.btn),
.site-head:not(.is-solid) .nav__drop-toggle { color: var(--on-dark); }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links > a:not(.btn):hover::after,
.nav__links > a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav__links > a[aria-current="page"]:not(.btn) { color: var(--grape); }
.site-head:not(.is-solid) .nav__links > a[aria-current="page"]:not(.btn) { color: var(--saffron-2); }

/* dropdown */
.nav__drop { position: relative; }
.nav__chevron { width: 9px; height: 6px; transition: transform .25s var(--ease); }
.nav__drop.is-open .nav__chevron { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 1rem); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: .5rem; min-width: 180px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease);
  display: grid; gap: 2px;
}
.nav__drop:hover .nav__sub, .nav__drop.is-open .nav__sub {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__sub a {
  display: block; padding: .6rem .8rem; border-radius: 9px;
  font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--paper-2); color: var(--grape); }

/* ---------- Selettore lingua (con bandiere) ---------- */
.flag { display: inline-block; width: 19px; height: 13px; border-radius: 2px; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(0,0,0,.18); flex-shrink: 0; }
.flag--it { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='2' fill='%23fff'/%3E%3Crect width='1' height='2' fill='%23009246'/%3E%3Crect x='2' width='1' height='2' fill='%23ce2b37'/%3E%3C/svg%3E"); }
.flag--en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23c8102e' stroke-width='3'/%3E%3Crect x='25' width='10' height='30' fill='%23fff'/%3E%3Crect y='10' width='60' height='10' fill='%23fff'/%3E%3Crect x='27' width='6' height='30' fill='%23c8102e'/%3E%3Crect y='12' width='60' height='6' fill='%23c8102e'/%3E%3C/svg%3E"); }

/* dropdown custom (barra desktop) */
.langsel { position: relative; }
.langsel__btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: .45rem .75rem; font: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.langsel__btn:hover { border-color: var(--green); }
.langsel__chev { width: 9px; height: 6px; transition: transform .25s var(--ease); }
.langsel.is-open .langsel__chev { transform: rotate(180deg); }
.langsel__menu {
  position: absolute; top: calc(100% + .55rem); right: 0; min-width: 168px; z-index: 5;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: .4rem; display: grid; gap: 2px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.langsel.is-open .langsel__menu { opacity: 1; visibility: visible; transform: none; }
.langsel__menu a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 9px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.langsel__menu a:hover { background: var(--paper-2); color: var(--grape); }
.site-head:not(.is-solid) .langsel__btn { color: #fff; border-color: rgba(255,255,255,.5); }

/* link lingua nel drawer (mobile) */
.langlinks { display: none; gap: .6rem; flex-wrap: wrap; }
.langlinks__a {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r-pill); color: var(--ink);
  font-weight: 600; font-size: .88rem;
}
.langlinks__a.is-current { background: var(--paper-2); border-color: transparent; }

/* azioni header: due CTA (camere + ristorante) + hamburger */
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.btn--rooms { background: var(--grape); color: var(--on-dark); box-shadow: var(--shadow-sm); }
.btn--rooms:hover { background: var(--grape-deep); transform: translateY(-2px); }
.btn--rest { background: var(--green); color: var(--on-dark); box-shadow: var(--shadow-sm); }
.btn--rest:hover { background: var(--green-deep); transform: translateY(-2px); }
.nav__actions .btn { padding: .58rem 1.05rem; font-size: .86rem; }
.nav__actions .btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav__toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); flex-shrink: 0;
}
.site-head:not(.is-solid) .nav__toggle { color: #fff; }
.nav__burger { position: relative; display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: background .15s var(--ease); }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.nav__burger::before { top: -7px; }
.nav__burger::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--on-dark); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,14,.42) 0%, rgba(20,24,14,0) 28%, rgba(20,24,14,.18) 55%, rgba(20,24,14,.82) 100%);
}
.hero__content { padding-block: clamp(3rem, 10vh, 6rem) clamp(3.5rem, 9vh, 6rem); display: grid; gap: 1.4rem; max-width: 60rem; }
.hero__eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); display: inline-block; }
.hero__title { font-size: clamp(2.9rem, 1.9rem + 5vw, 6rem); font-weight: 360; color: #fff; letter-spacing: -.02em; }
.hero__title em { font-style: italic; color: var(--saffron-2); }
.hero__lede { font-family: var(--display); font-weight: 330; font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); max-width: 40ch; color: rgba(255,255,255,.92); line-height: 1.4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.hero__scroll { position: absolute; right: clamp(1.2rem, 4vw, 3rem); bottom: 2rem; writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 38px; background: currentColor; margin: .6rem auto 0; animation: scrollpulse 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* hero entrance */
.hero__eyebrow, .hero__title, .hero__lede, .hero__cta { opacity: 0; transform: translateY(22px); animation: heroIn .9s var(--ease) forwards; }
.hero__title { animation-delay: .12s; }
.hero__lede { animation-delay: .24s; }
.hero__cta { animation-delay: .36s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__lede, .hero__cta { animation: none; opacity: 1; transform: none; }
}

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; min-height: clamp(48vh, 60vh, 640px); display: flex; align-items: flex-end; color: var(--on-dark); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,24,14,.5) 0%, rgba(20,24,14,.06) 40%, rgba(20,24,14,.72) 100%); }
.page-hero__content { padding-block: clamp(2.5rem, 8vh, 5rem); display: grid; gap: 1rem; max-width: 52rem; }
.page-hero__content .eyebrow { color: var(--saffron-2); }
.page-hero h1 { color: #fff; }
.page-hero .lede { color: rgba(255,255,255,.92); }
/* hero pagine interne più alte solo da desktop (tablet/mobile restano come sopra) */
@media (min-width: 961px) { .page-hero { min-height: clamp(660px, 72vh, 820px); } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-block: 1.1rem; font-size: .82rem; color: var(--muted); }
.breadcrumb--top { padding-top: 6.5rem; }
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--grape); }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---------- Dedica / citazione (etichetta Nonno Domenico) ---------- */
.dedica { font-family: var(--display); font-style: italic; font-weight: 360; font-size: clamp(1.18rem, 1.05rem + .6vw, 1.45rem); line-height: 1.5; color: var(--ink); border-left: 3px solid var(--grape); padding-left: 1.3rem; margin: 1.5rem 0; }
.dedica cite { display: block; margin-top: .85rem; font-style: normal; font-family: var(--ui); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Feature (split) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.feature--reverse .measure { order: 2; }
.measure { max-width: 46ch; }
.feature__media { position: relative; }

.figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--wide { aspect-ratio: 4 / 3; }

/* layout compatto alternato (es. colture in home): foto contenuta + testo accanto,
   colonne a larghezza fissa e blocco centrato per evitare buchi su schermi larghi */
.feature--compact { grid-template-columns: 340px minmax(0, 44ch); justify-content: center; gap: clamp(1.6rem, 4vw, 3.4rem); }
.feature--compact .measure { max-width: none; }
.feature--compact .figure { aspect-ratio: 4 / 3; }
.feature--compact .measure h3 { margin: .4rem 0 .8rem; }
.feature--compact + .feature--compact { margin-top: clamp(2rem, 5vw, 3.5rem); }
.feature--compact.feature--reverse { grid-template-columns: minmax(0, 44ch) 340px; }
.feature--compact.feature--reverse .figure { order: 2; }
.feature--compact.feature--reverse .measure { order: 1; }
.arrow-link--saffron { margin-top: 1rem; color: var(--saffron-2); }
@media (max-width: 880px) {
  .feature--compact, .feature--compact.feature--reverse { grid-template-columns: 1fr; justify-content: stretch; }
  .feature--compact .figure, .feature--compact.feature--reverse .figure { order: 0; max-width: 460px; margin-inline: auto; }
}

/* overlapping stack */
.stack { position: relative; padding: 0 1.5rem 2.5rem 0; }
.stack__back { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.stack__back img { width: 100%; height: 100%; object-fit: cover; }
.stack__front { position: absolute; right: 0; bottom: 0; width: 52%; border-radius: var(--r); overflow: hidden; border: 5px solid var(--paper); box-shadow: var(--shadow); aspect-ratio: 1; }
.stack__front img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; top: 1rem; left: -.6rem;
  background: var(--white); color: var(--green-deep);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}

/* ---------- Section heads ---------- */
.head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); display: grid; gap: 1rem; }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Cards / tiles ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
a.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.tile > img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.tile__body { padding: 1.5rem 1.5rem 1.7rem; display: grid; gap: .55rem; align-content: start; flex: 1; }
.tile__body h3 { margin-top: .1rem; }
.tile__body p { color: var(--muted); font-size: .96rem; }
.tile__body .arrow-link { margin-top: .6rem; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.8rem;
  display: grid; gap: .6rem; align-content: start;
  position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card__num { font-family: var(--display); font-style: italic; font-size: 2.2rem; color: var(--paper-3); line-height: 1; position: absolute; top: 1.3rem; right: 1.5rem; }
.card h3 { margin-top: .1rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card__icon { width: 32px; height: 32px; color: var(--grape); margin-bottom: .3rem; }
.card--photo { overflow: hidden; padding-top: 0; }
.card__media { margin: -1.8rem -1.8rem 1.2rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s var(--ease); }
.card--photo:hover .card__media img { transform: scale(1.045); }

/* panel cards on dark */
.panel .card { background: rgba(255,255,255,.045); border-color: rgba(246,243,233,.14); }
.panel .card:hover { background: rgba(255,255,255,.07); }
.panel .card h3 { color: #fff; }
.panel .card p { color: var(--on-dark-mute); }
.panel .card__num { color: rgba(246,243,233,.14); }
.panel .latin { color: var(--saffron-2); }
.panel .card__icon { color: var(--saffron-2); }

/* ---------- Dark panel ---------- */
.panel {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(138,43,71,.28) 0%, transparent 55%),
    var(--green-deep);
  color: var(--on-dark);
  position: relative;
}
.panel h2, .panel h3 { color: #fff; }
.panel .head .lede { color: var(--on-dark); }
.panel p { color: var(--on-dark-mute); }

/* ---------- Principi: riga editoriale (no box, no numeri) ---------- */
.tenets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  margin-top: clamp(1.8rem, 4vw, 3rem);
}
.tenet { padding-left: clamp(1.4rem, 2.4vw, 2.6rem); border-left: 1px solid rgba(246, 243, 233, .16); }
.tenet:first-child { padding-left: 0; border-left: 0; }
.tenet .latin { color: var(--saffron-2); margin-bottom: .5rem; }
.tenet h3 { color: #fff; margin: 0 0 .7rem; }
.tenet p { color: var(--on-dark-mute); }
@media (max-width: 760px) {
  .tenets { grid-template-columns: 1fr; gap: 1.6rem; }
  .tenet { padding-left: 0; border-left: 0; padding-top: 1.5rem; border-top: 1px solid rgba(246, 243, 233, .16); }
  .tenet:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- Coppia di foto ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.5vw, 1rem); }
.duo figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: var(--paper-2); }
.duo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.duo figure:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Galleria (masonry) ---------- */
.gallery { columns: 3 280px; column-gap: clamp(.6rem, 1.4vw, 1rem); }
.gallery figure {
  break-inside: avoid;
  margin: 0 0 clamp(.6rem, 1.4vw, 1rem);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--paper-2);
}
.gallery img { width: 100%; height: auto; display: block; transition: transform .9s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- Colture: card foto con testo in overlay ---------- */
.crops {
  margin-top: clamp(2.2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.crop-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  min-height: clamp(340px, 38vw, 470px);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.crop-card__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.crop-card:hover .crop-card__bg { transform: scale(1.05); }
.crop-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(22,26,14,.92) 0%, rgba(22,26,14,.5) 44%, rgba(22,26,14,.06) 100%);
}
.crop-card__content { position: relative; max-width: 38ch; }
.crop-card__content h3 { color: #fff; margin: .3rem 0 .7rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.95rem); }
.crop-card__content p { color: var(--on-dark); }

@media (max-width: 760px) {
  .crops { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--paper); padding: 2rem 1.7rem; display: grid; gap: .4rem; }
.stat__k { font-family: var(--display); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); color: var(--grape); line-height: 1; }
.stat__l { color: var(--muted); font-size: .92rem; }

/* ---------- Amenities chips ---------- */
.amenities { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: .5rem .95rem;
  font-size: .88rem; font-weight: 500; color: var(--green-deep);
  transition: border-color .2s, background .2s, transform .2s;
}
a.chip:hover { border-color: var(--green); transform: translateY(-2px); }
.chip svg { width: 17px; height: 17px; color: var(--grape); flex-shrink: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; grid-auto-flow: dense; }
.gallery__item { border-radius: var(--r); overflow: hidden; background: var(--paper-2); aspect-ratio: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16/10; }

/* ---------- Menu (lista piatti) ---------- */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }
.menu-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1.5px solid var(--line); }
.menu-cat__head h3 { color: var(--green-deep); }
.menu-cat__tag { font-family: var(--display); font-style: italic; color: var(--grape); font-size: .95rem; }
.menu-list { display: grid; gap: 1.05rem; margin-top: 1.2rem; }
.menu-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.menu-item__name { display: block; min-width: 0; font-family: var(--display); font-weight: 420; font-size: 1.12rem; color: var(--ink); line-height: 1.25; }
.menu-item__price { flex: 0 0 auto; font-weight: 700; color: var(--grape-deep); }
.menu-item__desc { display: block; color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.menu-note { margin-top: clamp(2rem, 4vw, 3rem); font-size: .9rem; color: var(--muted); max-width: 70ch; }
.menu-note strong { color: var(--grape-deep); }
.menu-cat__photo { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; margin-bottom: 1.25rem; background: var(--paper-2); box-shadow: var(--shadow-sm); }
.menu-cat__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.menu-cat:hover .menu-cat__photo img { transform: scale(1.04); }
@media (max-width: 720px) { .menu-grid { grid-template-columns: 1fr; } }

/* ---------- Senza glutine ---------- */
:root { --gf-orange: #E07A1E; }
.gf-mark { color: var(--gf-orange); flex: 0 0 auto; }
.menu-item__name .gf-mark { width: 1.05em; height: 1.05em; margin-left: .35em; vertical-align: -.16em; }
.gf-panel { margin-top: clamp(2.2rem, 5vw, 3.6rem); background: linear-gradient(180deg, #FFF9F1, #FDF3E6); border: 1.5px solid rgba(224,122,30,.28); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.gf-panel__head { display: flex; align-items: center; gap: .95rem; margin-bottom: 1rem; }
.gf-panel__logo { color: var(--gf-orange); display: inline-flex; flex: 0 0 auto; }
.gf-panel__head h2 { color: var(--green-deep); margin-top: .1rem; }
.gf-panel__intro { color: var(--muted); max-width: 66ch; margin-bottom: 1.8rem; }
.gf-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.gf-group h3 { color: var(--grape); font-size: 1.02rem; padding-bottom: .5rem; margin-bottom: .75rem; border-bottom: 1.5px solid rgba(224,122,30,.25); }
.gf-list { display: grid; gap: .6rem; }
.gf-list li { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.gf-list__name { font-family: var(--display); font-weight: 420; color: var(--ink); line-height: 1.25; }
.gf-list__price { flex: 0 0 auto; font-weight: 700; color: var(--grape-deep); font-size: .92rem; }

/* ---------- Masonry (galleria piatti) ---------- */
.masonry { columns: 4 230px; column-gap: 1rem; }
.masonry figure { break-inside: avoid; margin: 0 0 1rem; border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-sm); }
.masonry img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.masonry figure:hover img { transform: scale(1.05); }
@media (max-width: 560px) { .masonry { columns: 2 130px; column-gap: .7rem; } }

/* "Vedi altri": su mobile mostra solo le prime 6 foto della galleria piatti */
.more-toggle {
  display: none; width: fit-content; margin: 1.5rem auto 0;
  align-items: center; gap: .5rem; background: transparent;
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: .7rem 1.6rem; font: inherit; font-weight: 600; font-size: .9rem;
  color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.more-toggle:hover { border-color: var(--green); color: var(--green); }
@media (max-width: 560px) {
  .masonry:not(.is-expanded) figure:nth-child(n+7) { display: none; }
  .more-toggle { display: flex; }
}

/* ---------- Quartetto di foto (es. teaser ristorante in home) ---------- */
.photo-quad { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.photo-quad figure { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--paper-2); aspect-ratio: 1; }
.photo-quad img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-quad figure:hover img { transform: scale(1.05); }

/* ---------- Camere (collage + lightbox) ---------- */
.rooms { display: grid; gap: clamp(2.6rem, 6vw, 5rem); }
.room__info { display: grid; gap: .9rem; justify-items: start; }
.room__info h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.room__info > p { color: var(--muted); max-width: 60ch; }
.room__info .btn { margin-top: .3rem; }
.room__info .amenities { margin-top: .3rem; }

.room__media { position: relative; }
.room__gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: .5rem; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
}
.room__gallery img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: opacity .25s var(--ease); }
.room__gallery img:hover { opacity: .9; }
.room__gallery img:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.room__gallery img:nth-child(n+6) { display: none; }
.room__viewall {
  position: absolute; right: .85rem; bottom: .85rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(35, 39, 26, .82); color: var(--on-dark); border: 0;
  padding: .5rem .95rem; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.room__viewall:hover { background: var(--ink); transform: translateY(-1px); }
.room__viewall svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .room__gallery { aspect-ratio: 4 / 3; gap: .35rem; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(20, 24, 14, .93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: lbIn .25s var(--ease); }
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: 92vw; max-height: 84vh; border-radius: var(--r); box-shadow: var(--shadow); }
.lightbox__close, .lightbox__nav { background: rgba(255,255,255,.13); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { position: absolute; top: 1.1rem; right: 1.2rem; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }
.lightbox__count { position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .85rem; letter-spacing: .06em; }
@media (max-width: 600px) { .lightbox__nav { width: 42px; height: 42px; } .lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; } .lightbox__close { top: .6rem; right: .6rem; } }

/* ---------- Voti portali (riprova sociale) ---------- */
.ratings { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; }
.rating {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.1rem 1.5rem; box-shadow: var(--shadow-sm); min-width: 240px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  color: inherit;
}
a.rating:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rating__score { font-family: var(--display); font-weight: 420; font-size: 2.5rem; line-height: 1; color: var(--green-deep); white-space: nowrap; }
.rating__score span { font-size: .95rem; color: var(--muted); margin-left: .1rem; }
.rating__meta { display: grid; gap: .4rem; justify-items: start; }
.rating__meta strong { font-size: 1.02rem; color: var(--ink); }
.rating__logo { height: 22px; width: auto; display: block; }
.rating__label { color: var(--grape); font-weight: 600; font-size: .82rem; letter-spacing: .02em; }
.rating__sep { width: 1px; align-self: stretch; background: var(--line); }
.stars { --rating: 5; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px;
  background: linear-gradient(90deg, #00b67a calc(var(--rating) / 5 * 100%), #d8d8cf calc(var(--rating) / 5 * 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }

/* pannello riprova/recensioni (home) */
.proof {
  display: grid; grid-template-columns: 1fr 1.25fr; align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.6rem, 4vw, 2.8rem);
}
.proof__intro h2 { margin-top: .35rem; }
.proof__lede { color: var(--muted); margin-top: .85rem; max-width: 36ch; }
.proof__scores { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof__score {
  display: grid; justify-items: center; align-content: start; text-align: center; gap: .5rem;
  padding: .3rem clamp(.5rem, 2vw, 1.2rem); color: inherit;
  transition: transform .25s var(--ease);
}
.proof__score + .proof__score { border-left: 1px solid var(--line); }
a.proof__score:hover { transform: translateY(-3px); }
.proof__score img { height: 20px; width: auto; max-width: 100%; object-fit: contain; display: block; margin-bottom: .15rem; }
.proof__num { font-family: var(--display); font-weight: 420; font-size: clamp(1.9rem, 5vw, 2.4rem); line-height: 1; color: var(--green-deep); white-space: nowrap; }
.proof__num small { font-size: .82rem; color: var(--muted); margin-left: .08rem; }
.proof__cap { font-size: .78rem; color: var(--grape); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 720px) {
  .proof { grid-template-columns: 1fr; }
  .proof__scores { gap: 0; }
  .proof__score { padding-inline: .4rem; }
}

/* voti nel footer (variante compatta, card bianche su footer scuro) */
.foot__ratings { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; padding: 2rem 0 .5rem; }
.rating--sm { min-width: 0; padding: .55rem .95rem; gap: .85rem; border-radius: var(--r); }
.rating--sm .rating__score { font-size: 1.55rem; }
.rating--sm .rating__logo { height: 16px; }
.rating--sm .rating__meta { gap: .3rem; }
.rating--sm .rating__label { font-size: .72rem; }
.rating--sm .stars { font-size: .8rem; }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .85rem .2rem; border-bottom: 1px solid rgba(246,243,233,.16); font-weight: 500; }
.hours th { font-family: var(--display); font-weight: 420; color: #fff; font-size: 1.1rem; }
.hours td { color: var(--on-dark-mute); }
.hours .is-open th, .hours .is-open td { color: var(--saffron-2); }
.hours .is-open td { font-weight: 600; }

/* ---------- Spec list ---------- */
.spec { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1.5rem; }
.spec dt { font-weight: 600; color: var(--saffron-2); padding: .7rem 0; border-bottom: 1px solid rgba(246,243,233,.14); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; align-self: center; }
.spec dd { color: var(--on-dark); padding: .7rem 0; border-bottom: 1px solid rgba(246,243,233,.14); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0;
  font-family: var(--display); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 420;
  position: relative; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--ui); font-size: 1.6rem; font-weight: 300; color: var(--grape); transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--grape); }
.faq-item p { color: var(--muted); padding: 0 2.5rem 1.4rem 0; max-width: 68ch; }

/* ---------- Press / video ---------- */
.press__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; }
.press__media img { width: 100%; height: 100%; object-fit: cover; }
.press__badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--grape); color: var(--on-dark); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .4rem .85rem; border-radius: var(--r-pill); }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,24,14,.18); transition: background .3s; }
.play:hover { background: rgba(20,24,14,.32); }
.play::before {
  content: ""; width: 72px; height: 72px; border-radius: 50%;
  background: var(--paper); box-shadow: var(--shadow); transition: transform .3s var(--ease);
  position: absolute;
}
.play:hover::before { transform: scale(1.08); }
.play svg { width: 26px; height: 26px; color: var(--green-deep); margin-left: 3px; position: relative; z-index: 1; }

/* ---------- CTA band ---------- */
.band { position: relative; color: var(--on-dark); text-align: center; overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(42,51,28,.86), rgba(42,51,28,.92)); }
.band .head { margin-inline: auto; }
.band .btn-row { justify-content: center; }
.band h2 { color: #fff; }
.band .eyebrow { justify-content: center; }

/* ---------- Prose ---------- */
.prose-narrow { max-width: 760px; margin-inline: auto; }
.prose-narrow p { color: var(--muted); margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--green-deep); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 2.4rem; }
.foot__brand-col { max-width: 36ch; }
.foot__logo { height: 54px; width: auto; filter: brightness(0) invert(1); }
.foot__tag { color: var(--on-dark-mute); font-size: .92rem; line-height: 1.6; margin-top: 1.1rem; }
.foot__bio { display: flex; align-items: center; gap: .7rem; margin-top: 1.3rem; }
.foot__bio img { height: 42px; width: auto; flex-shrink: 0; }
.foot__bio span { font-size: .8rem; color: var(--on-dark-mute); line-height: 1.35; max-width: 22ch; }
.foot__social { display: flex; gap: .55rem; margin-top: 1.4rem; }
.foot__social a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(246,243,233,.22); color: var(--on-dark);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.foot__social a:hover { background: var(--saffron-2); color: var(--green-deep); border-color: var(--saffron-2); transform: translateY(-2px); }
.foot__social svg { width: 18px; height: 18px; }

/* Badge bio (es. nei pannelli colture) */
.bio-badge { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.bio-badge img { height: 60px; width: auto; flex-shrink: 0; }
.bio-badge span { font-size: .82rem; letter-spacing: .04em; line-height: 1.4; color: var(--on-dark-mute); }
.bio-badge strong { display: block; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.05rem; color: var(--saffron-2); letter-spacing: 0; }

/* ---------- Nota bio / km 0 ---------- */
.km0-note {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.km0-note__logo { width: 50px; height: auto; flex-shrink: 0; }
.km0-note p {
  margin: 0;
  max-width: 54ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink);
}
.km0-note strong { font-weight: 400; color: var(--grape); }
@media (max-width: 540px) { .km0-note { gap: 1.1rem; } }
.foot h3 { color: #fff; margin-bottom: 1rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--ui); font-weight: 600; }
.foot ul { display: grid; gap: .55rem; list-style: none; }
.foot li, .foot a { color: var(--on-dark-mute); font-size: .94rem; transition: color .2s; }
.foot a:hover { color: var(--saffron-2); }
.foot--contact address { font-style: normal; color: var(--on-dark-mute); font-size: .94rem; line-height: 1.7; margin-bottom: .85rem; }
.foot__phone { display: inline-block; color: #fff; font-family: var(--display); font-size: 1.3rem; margin-bottom: .6rem; }
.foot__phone:hover { color: var(--saffron-2); }
.foot__contact-links { display: grid; gap: .5rem; }

/* riga recensioni nel footer (testuale, integrata sul verde) */
.foot__trust { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; padding: 1.3rem 0; border-top: 1px solid rgba(246,243,233,.14); border-bottom: 1px solid rgba(246,243,233,.14); }
.foot__trust-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mute); }
.foot__trust-scores { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2rem); margin-left: auto; }
.foot__trust-item { display: flex; align-items: baseline; gap: .4rem; color: var(--on-dark-mute); font-size: .88rem; transition: color .2s; }
.foot__trust-item:hover { color: var(--saffron-2); }
.foot__trust-num { font-family: var(--display); font-weight: 420; font-size: 1.15rem; color: #fff; }
.foot__trust-num small { color: var(--on-dark-mute); font-size: .68rem; }

.foot__legal { padding-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; font-size: .8rem; color: rgba(246,243,233,.66); }
.foot__legal a { color: rgba(246,243,233,.82); transition: color .2s; }
.foot__legal a:hover { color: var(--on-dark); }
.foot__credits { margin-left: auto; }
.foot__credits a { color: rgba(246,243,233,.72); border-bottom: 1px solid rgba(246,243,233,.25); transition: color .2s var(--ease), border-color .2s var(--ease); }
.foot__credits a:hover { color: var(--saffron); border-color: var(--saffron); }
@media (max-width: 560px) {
  .foot__trust-scores, .foot__credits { margin-left: 0; }
  .foot__trust-scores { width: 100%; }
}

/* ---------- Pulsante chiama fisso (mobile/tablet) ---------- */
.call-fab { display: none; }
@media (max-width: 960px) {
  .call-fab {
    position: fixed; z-index: 90;
    right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--green); color: #fff;
    box-shadow: 0 10px 26px rgba(20,24,14,.32);
    transition: transform .2s var(--ease), background .2s var(--ease);
  }
  .call-fab:hover, .call-fab:active { transform: scale(1.06); background: var(--green-deep, var(--green)); }
  .call-fab svg { width: 25px; height: 25px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .nav__actions { margin-left: auto; }
  /* CTA accanto al logo: solo icona su mobile */
  .nav__actions .btn span { display: none; }
  .nav__actions .btn { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .nav__links {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 1rem 1.4rem 2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    max-height: calc(100svh - 78px); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  /* nel drawer (sfondo chiaro) testo sempre scuro, anche sopra l'hero
     (uso :not(.is-solid) per vincere in specificità sulla regola desktop) */
  .site-head:not(.is-solid) .nav__links > a:not(.btn),
  .site-head:not(.is-solid) .nav__drop-toggle { color: var(--ink); }
  .site-head:not(.is-solid) .nav__links > a[aria-current="page"]:not(.btn) { color: var(--grape); }
  .nav__links > a:not(.btn), .nav__drop-toggle { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__drop { width: 100%; }
  .nav__drop-toggle { justify-content: space-between; }
  /* submenu nel drawer: sfondo trasparente, testo scuro leggibile */
  .nav__sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; box-shadow: none; border: 0; min-width: 0; padding: 0 0 .4rem .8rem;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  /* transform:none anche da aperto, altrimenti la regola desktop translateX(-50%) spinge il submenu fuori schermo */
  .nav__drop.is-open .nav__sub { max-height: 200px; transform: none; }
  .nav__sub a { color: var(--ink); }
  /* lingua: il dropdown della barra sparisce, nel drawer compaiono i link con bandiera */
  .langsel--bar { display: none; }
  .nav__links .langlinks { display: flex; margin-top: 1.2rem; }
  .site-head:not(.is-solid) .langlinks__a { color: var(--ink); }
}

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 2.2rem; }
  .feature--reverse .measure { order: 0; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 560px) {
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .measure { max-width: 100%; }
  .stack { padding-right: 1rem; }
  .foot__grid { grid-template-columns: 1fr; }
  .hero__cta .btn, .btn-row .btn { width: 100%; }
}
