/* ============================================================
   sito.css — Agriturismo Il Capriccio · restyling 2026
   Stesso linguaggio dell'app: verde della chioma e legno delle radici
   del logo, carte bianche arrotondate, intestazione in vetro,
   Bricolage Grotesque per i titoli e Figtree per i testi.
   ============================================================ */

:root {
  --bg: #f5f4ee;
  --surface: #ffffff;
  --surface-2: #eeede5;
  --ink: #181b14;
  --muted: #6c7063;
  --line: rgb(24 27 20 / 0.08);
  --brand: #3d7a1c;
  --brand-deep: #16220d;
  --lime: #8ec93f;
  --lime-ink: #142008;
  --lime-soft: #e9f4d8;
  --wood: #c59d6d;
  --wood-deep: #5e4026;
  --wood-soft: #f2e8db;
  --gold-star: #f2b52c;
  --glass: rgb(255 255 255 / 0.74);
  --shadow-sm: 0 1px 2px rgb(30 25 10 / 0.06), 0 2px 8px rgb(30 25 10 / 0.04);
  --shadow: 0 2px 6px rgb(30 25 10 / 0.05), 0 12px 32px rgb(30 25 10 / 0.08);
  --shadow-lg: 0 6px 16px rgb(30 25 10 / 0.08), 0 24px 60px rgb(30 25 10 / 0.12);
  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --container: 1160px;
  --pad: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Nomi delle variabili del sito precedente (usate dagli stili interni di Contatti) */
  --bg-dark: var(--brand-deep);
  --card-bg: var(--surface);
  --card-dark: var(--brand-deep);
  --card-mid: #2d4a1c;
  --accent: var(--brand);
  --accent-lt: #7c9a5e;
  --gold: var(--lime);
  --gold-lt: rgb(142 201 63 / 0.16);
  --text-dark: var(--ink);
  --text-body: #3c4136;
  --text-muted: var(--muted);
  --text-inv: #ffffff;
  --border: var(--line);
  --border-card: var(--line);
  --glass-light: var(--glass);
  --glass-dark: rgb(22 34 13 / 0.86);
  --glass-border: rgb(255 255 255 / 0.18);
  --glass-border-dark: rgb(255 255 255 / 0.08);
  --ff-display: var(--font-display);
  --ff-body: var(--font-body);
  --fs-xs: 0.72rem;
  --fs-sm: 0.86rem;
  --fs-base: 1rem;
  --fs-md: 1.12rem;
  --fs-lg: 1.35rem;
  --fs-xl: 1.8rem;
  --fs-2xl: 2.5rem;
  --page-pad: var(--pad);
  --gap: 1.25rem;
  --section-gap: 1.5rem;
  --r-card: var(--r);
  --r-inner: var(--r-sm);
  --r-pill: 999px;
  --sh-card: var(--shadow);
  --sh-hover: var(--shadow-lg);
  --sh-deep: var(--shadow-lg);
  --sh-inset: none;
  --sh-glass: var(--shadow);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.18s;
  --t-base: 0.3s;
  --t-slow: 0.55s;
  --t-enter: 0.6s;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
em { font-style: normal; color: var(--brand); }
strong { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* Transizione tra le pagine (js/script.js) */
#page-overlay {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  pointer-events: none; opacity: 1; transition: opacity 0.32s ease;
}
#page-overlay.is-hidden { opacity: 0; }
#page-overlay.is-leaving { opacity: 1; }

/* Comparsa allo scorrimento */
.will-animate { opacity: 0; transform: translateY(18px); }
.is-visible { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.is-visible > * { animation: rise 0.7s var(--ease) both; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .will-animate, .is-visible { opacity: 1; transform: none; transition: none; }
  .reveal-stagger.is-visible > * { animation: none; }
}

/* ── Intestazione in vetro (come l'app) ───────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: rgb(250 250 246 / 0.94);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 10px var(--pad);
  display: flex; align-items: center; gap: 18px;
}
.site-header__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-header__logo { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); object-fit: contain; padding: 3px; }
.site-header__name { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.site-header__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.site-header__tagline { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav__link {
  display: block; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: #3c4136;
  transition: background 0.2s, color 0.2s;
}
.site-nav__link:hover { background: var(--surface-2); color: var(--ink); }
.site-nav__link--active { background: var(--ink); color: #fff; }
.site-nav__link--active:hover { background: var(--ink); color: #fff; }
.site-app {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 16px; border-radius: 999px; background: var(--lime); color: var(--lime-ink);
  font-weight: 700; font-size: 0.95rem; box-shadow: 0 6px 18px rgb(142 201 63 / 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.site-app:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(142 201 63 / 0.45); }
.site-app__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgb(61 122 28 / 0.18); }
@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; gap: 8px 12px; padding-bottom: 8px; }
  .site-header__tagline { display: none; }
  .site-app { margin-left: auto; padding: 9px 14px; font-size: 0.9rem; }
  .site-nav { order: 3; width: 100%; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav__link { padding: 7px 14px; font-size: 0.9rem; background: var(--surface); box-shadow: var(--shadow-sm); }
  .site-nav__link--active, .site-nav__link--active:hover { background: var(--ink); color: #fff; }
}

/* ── Pulsanti ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); }
.btn--ghost-gold { background: var(--lime); color: var(--lime-ink); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgb(255 255 255 / 0.35); animation: ripple 0.6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ── Titoli di sezione ────────────────────────────────────── */
.eyebrow, .playground__eyebrow, .events__eyebrow, .hero__eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
}
.section-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: 6px 0 4px; }
.divider { width: 44px; height: 4px; border-radius: 4px; background: var(--lime); margin: 16px 0 20px; }
.divider--center { margin-inline: auto; }
.divider--gold { background: var(--wood); }

/* ── Hero: foto grande arrotondata con testo in basso ────── */
.hero-wrap { max-width: var(--container); margin: 0 auto; padding: 16px var(--pad) 0; }
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  min-height: min(78svh, 720px); display: flex; align-items: flex-end;
  background: var(--brand-deep) url('../images/opt/Immagine1.webp') center / cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(10 16 6 / 0) 30%, rgb(10 16 6 / 0.55) 62%, rgb(10 16 6 / 0.86) 100%);
}
.hero__content { position: relative; z-index: 1; padding: clamp(24px, 5vw, 56px); max-width: 760px; color: #fff; }
.hero__eyebrow {
  color: var(--lime-ink); background: var(--lime); padding: 6px 12px; border-radius: 999px; letter-spacing: 0.04em; font-size: 0.74rem;
}
.hero__title { color: #fff; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.02; margin: 16px 0 14px; letter-spacing: -0.035em; }
.hero__title em { color: var(--lime); }
.hero__subtitle { font-size: clamp(1rem, 2vw, 1.15rem); color: rgb(255 255 255 / 0.86); max-width: 56ch; }
.hero__cta-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero .btn--primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 8px 24px rgb(142 201 63 / 0.35); }
.hero .btn--outline { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__rating {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px; border-radius: 999px;
  background: rgb(255 255 255 / 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 0.9rem;
}
.hero__stars { color: var(--gold-star); letter-spacing: 2px; }
.hero__scroll { display: none; }
@media (max-width: 760px) {
  .hero { min-height: 82svh; }
  .hero__overlay { background: linear-gradient(180deg, rgb(10 16 6 / 0.05) 0%, rgb(10 16 6 / 0.62) 38%, rgb(10 16 6 / 0.9) 100%); }
  .hero__eyebrow { font-size: 0.68rem; padding: 5px 10px; }
}

/* ── Navigazione interna della home ───────────────────────── */
.page-nav { position: sticky; top: 64px; z-index: 200; max-width: var(--container); margin: 0 auto; padding: 14px var(--pad) 0; }
.page-nav__inner { overflow-x: auto; scrollbar-width: none; }
.page-nav__inner::-webkit-scrollbar { display: none; }
.page-nav__list { display: flex; gap: 6px; width: max-content; margin: 0 auto; padding: 6px; border-radius: 999px; background: rgb(255 255 255 / 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.page-nav__list a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: #3c4136; white-space: nowrap; }
.page-nav__list a:hover { background: var(--surface-2); }
.page-nav__list a.is-active { background: var(--lime); color: var(--lime-ink); }
@media (max-width: 760px) { .page-nav { top: 104px; } .page-nav__list { margin: 0; } }

/* ── Tre punti di forza ───────────────────────────────────── */
.features-wrap { max-width: var(--container); margin: 0 auto; padding: 22px var(--pad) 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 16px; background: var(--lime-soft); margin-bottom: 14px; }
.feature__title { font-size: 1.2rem; margin-bottom: 6px; }
.feature__text { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 820px) {
  .features { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .features::-webkit-scrollbar { display: none; }
  .feature { scroll-snap-align: start; }
}

/* ── Sezioni a carta ──────────────────────────────────────── */
.about-wrap, .preview-wrap, .playground-wrap, .events-wrap, .gallery-wrap, .reviews-wrap, .quote-wrap {
  max-width: var(--container); margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad) 0;
}

/* Chi siamo */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: clamp(14px, 2vw, 18px); box-shadow: var(--shadow); }
.about__img-col { position: relative; }
.about__img-col img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: calc(var(--r-lg) - 8px); }
.about__badge {
  position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px;
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 10px 14px; border-radius: 18px; box-shadow: var(--shadow);
}
.about__badge-number { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.about__badge-label { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.about__text-col { padding: clamp(6px, 3vw, 28px); }
.about__body { color: #3c4136; margin-bottom: 14px; font-size: 1.04rem; }
.about__text-col .btn { margin-top: 8px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about__img-col img { aspect-ratio: 4 / 3; } }

/* Perché sceglierci */
.preview__header, .gallery-header, .reviews__header { text-align: center; margin-bottom: 26px; }
.preview__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dish-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dish-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dish-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-card__name { font-size: 1.25rem; }
.dish-card__desc { color: var(--muted); font-size: 0.96rem; flex: 1; }
.dish-card__tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--lime-soft); color: var(--brand); font-weight: 700; font-size: 0.82rem; }
@media (max-width: 820px) {
  .preview__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .preview__grid::-webkit-scrollbar { display: none; }
  .dish-card { scroll-snap-align: start; }
}

/* Area giochi ed eventi: foto in alto, testo e punti in una carta */
.playground, .events { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.playground { background: var(--brand-deep); color: #fff; }
.events { background: var(--surface); }
.playground__img img, .events__img img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.playground__body, .events__body { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 44px); padding: clamp(22px, 4vw, 44px); }
.playground__title, .events__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 6px 0 0; }
.playground__title { color: #fff; }
.playground__title em { color: var(--lime); }
.playground__eyebrow { color: var(--lime); }
.playground__text, .events__text { margin-bottom: 12px; font-size: 1.02rem; }
.playground__text { color: rgb(255 255 255 / 0.82); }
.playground__text strong { color: #fff; }
.events__text { color: #3c4136; }
.playground__text-block .btn, .events__text-block .btn { margin-top: 8px; }
.playground__perks, .events__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.playground__perk { background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.1); border-radius: var(--r); padding: 16px; }
.playground__perk-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.playground__perk-title { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.playground__perk-text { color: rgb(255 255 255 / 0.72); font-size: 0.92rem; }
.events__card { background: var(--bg); border-radius: var(--r); padding: 16px; }
.events__card-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--wood-soft); color: var(--wood-deep); margin-bottom: 8px; }
.events__card-title { font-size: 1.05rem; margin-bottom: 4px; }
.events__card-text { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) {
  .playground__body, .events__body { grid-template-columns: 1fr; }
  .playground__img img, .events__img img { aspect-ratio: 16 / 9; }
}
@media (max-width: 420px) { .playground__perks, .events__cards { grid-template-columns: 1fr; } }

/* Galleria */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(150px, 230px)); gap: 12px; }
.gallery-grid__cell { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface-2); }
.gallery-grid__cell:first-child { grid-row: span 2; }
.gallery-grid__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-grid__cell:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 150px; }
  .gallery-grid__cell:first-child { grid-column: span 2; grid-row: auto; height: 220px; }
}

/* Recensioni */
.reviews__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.review-card { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.review-card__stars { color: var(--gold-star); letter-spacing: 2px; }
.review-card__text { color: #3c4136; flex: 1; }
.review-card__meta { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.reviews__cta { text-align: center; margin-top: 22px; }
@media (max-width: 980px) {
  .reviews__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .review-card { scroll-snap-align: start; }
}

/* Citazione */
.quote-section { background: var(--lime-soft); border-radius: var(--r-lg); padding: clamp(28px, 6vw, 60px); text-align: center; }
.quote { position: relative; }
.quote__mark { display: block; font-family: var(--font-display); font-size: 4rem; line-height: 0.6; color: var(--brand); margin-bottom: 8px; }
.quote__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.8vw, 1.8rem); line-height: 1.3; letter-spacing: -0.015em; }
.quote__cite { display: block; margin-top: 14px; font-style: normal; color: var(--brand); font-weight: 700; font-size: 0.92rem; }

/* ── Piè di pagina ────────────────────────────────────────── */
.site-footer { background: var(--brand-deep); color: rgb(255 255 255 / 0.78); margin-top: clamp(48px, 8vw, 96px); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 0 var(--pad) 28px; }
.footer-nl {
  max-width: var(--container); margin: 0 auto; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  background: var(--lime); color: var(--lime-ink); border-radius: var(--r-lg); padding: 22px clamp(20px, 4vw, 34px); box-shadow: var(--shadow-lg);
}
.footer-nl__label { font-weight: 800; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.footer-nl__title { color: var(--lime-ink); font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.footer-nl__form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; min-width: min(420px, 100%); }
.footer-nl__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 12px; color: var(--ink); }
.footer-nl__btn { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px; background: var(--ink); color: #fff; font-weight: 700; }
.footer-nl__msg { font-size: 0.85rem; margin-top: 6px; min-height: 1em; }
.site-footer__inner { max-width: var(--container); margin: -10px auto 0; display: grid; grid-template-columns: 1.3fr 1.4fr 1fr 0.8fr; gap: 28px; }
.site-footer__logo { width: 56px; height: 56px; border-radius: 16px; background: #fff; padding: 4px; margin-bottom: 10px; }
.site-footer__title { color: #fff; font-size: 1.4rem; }
.site-footer__sub { font-size: 0.86rem; color: rgb(255 255 255 / 0.6); }
.site-footer__col-title { color: #fff; font-size: 1rem; margin-bottom: 12px; font-family: var(--font-display); }
.site-footer__list { display: grid; gap: 8px; font-size: 0.94rem; }
.site-footer__list a:hover { color: var(--lime); }
.footer-icon { display: inline-block; width: 1.4em; color: var(--lime); }
.site-footer__copy { max-width: var(--container); margin: 26px auto 0; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 0.1); text-align: center; font-size: 0.82rem; color: rgb(255 255 255 / 0.5); }
.site-footer__copy--legal { margin-top: 6px; padding-top: 0; border: 0; }
.site-footer__copy--legal a:hover { color: var(--lime); }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .footer-nl { transform: translateY(-30%); }
  .footer-nl__form { width: 100%; }
}

/* Torna su */
.back-to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 250; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ── Menù (pagina separata) ───────────────────────────────── */
.menu-hero {
  max-width: var(--container); margin: 16px auto 0; padding: clamp(36px, 7vw, 72px) var(--pad); text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #2d4a1c 0%, var(--brand-deep) 70%); border-radius: var(--r-lg); color: #fff;
}
@media (min-width: 1192px) { .menu-hero { margin-inline: auto; } }
@media (max-width: 1191px) { .menu-hero { margin-inline: var(--pad); } }
.menu-hero::before { content: ''; position: absolute; inset: 0; background: url('../images/logo.png') right -60px bottom -80px / 300px no-repeat; opacity: 0.08; }
.menu-hero > * { position: relative; }
.menu-hero__eyebrow { display: inline-block; background: var(--lime); color: var(--lime-ink); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; }
.menu-hero__title { color: #fff; font-size: clamp(2.4rem, 7vw, 4.2rem); margin: 14px 0 10px; letter-spacing: -0.035em; }
.menu-hero__title em { color: var(--lime); }
.menu-hero__subtitle { color: rgb(255 255 255 / 0.84); font-size: 1.05rem; }
.menu-hero .divider { display: none; }
.menu-app {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 999px;
  background: rgb(255 255 255 / 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-weight: 600; font-size: 0.92rem;
}
.menu-app strong { color: var(--lime); }

.menu-nav { position: sticky; top: 64px; z-index: 200; max-width: var(--container); margin: 0 auto; padding: 12px var(--pad) 0; }
.menu-nav__list {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 999px;
  background: rgb(255 255 255 / 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.menu-nav__list::-webkit-scrollbar { display: none; }
.menu-nav__list a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: #3c4136; white-space: nowrap; }
.menu-nav__list a:hover { background: var(--surface-2); }
.menu-nav__list a.is-active { background: var(--ink); color: #fff; }
@media (max-width: 760px) { .menu-nav { top: 104px; } }

.menu-main { max-width: var(--container); margin: 0 auto; padding: 8px var(--pad) 0; }
.menu-section { padding-top: clamp(28px, 5vw, 48px); }
.menu-section__label { display: none; }
.menu-section__header { display: flex; align-items: center; gap: 12px; }
.menu-section__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 1.4rem; }
.menu-section__title { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.menu-section__divider { height: 1px; background: var(--line); margin: 14px 0 16px; }
.menu-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-grid-two > .menu-list { align-content: start; }
.menu-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.menu-grid-two .menu-list { grid-template-columns: 1fr; }
.menu-list__item {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--r); padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-sm); min-height: 64px;
}
.menu-list__item:not(.has-photo) { padding-left: 18px; }
.menu-list__photo {
  width: 84px; height: 84px; flex: none; border-radius: 16px; object-fit: contain; background: #fff;
  mix-blend-mode: multiply;
}
.menu-list__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-list__name { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; line-height: 1.2; }
.menu-list__desc { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.menu-subsection__title {
  grid-column: 1 / -1; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin: 10px 2px 0;
}
@media (max-width: 760px) {
  .menu-grid-two { grid-template-columns: 1fr; }
  .menu-list__photo { width: 72px; height: 72px; }
}
.menu-page .site-footer { margin-top: clamp(64px, 10vw, 110px); }

/* ============================================================
   Telefono: spazi e posizioni
   ============================================================ */
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  /* L'intestazione scorre via con la pagina; resta fissa solo la barra delle sezioni */
  .site-header { position: relative; }
  .site-header__inner { padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .site-header__logo { width: 40px; height: 40px; }
  .page-nav, .menu-nav { top: 0; padding-top: 10px; padding-bottom: 6px; }
  .page-nav__list, .menu-nav__list { box-shadow: var(--shadow); }

  /* Foto grande della home */
  .hero-wrap { padding-top: 12px; }
  .hero { min-height: 0; border-radius: 24px; }
  .hero__content { padding: 120px 20px 22px; }
  .hero__title { font-size: clamp(2.1rem, 10.5vw, 2.8rem); margin: 14px 0 12px; }
  .hero__subtitle { font-size: 0.98rem; }
  .hero__cta-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .hero__cta-group .btn { padding: 12px 10px; font-size: 0.94rem; }
  .hero__rating { display: flex; width: fit-content; max-width: 100%; margin-top: 16px; font-size: 0.82rem; gap: 8px; }
  .hero__stars { letter-spacing: 1px; white-space: nowrap; }

  /* Sezioni: meno aria sopra, schede a scorrimento che arrivano al bordo dello schermo */
  .about-wrap, .preview-wrap, .playground-wrap, .events-wrap, .gallery-wrap, .reviews-wrap, .quote-wrap { padding-top: 44px; }
  .features-wrap { padding-top: 16px; }
  .features, .preview__grid, .reviews__grid {
    margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); gap: 12px;
  }
  .features { grid-auto-columns: 78%; }
  .preview__grid { grid-auto-columns: 82%; }
  .reviews__grid { grid-auto-columns: 80%; }
  .feature { padding: 18px; }
  .preview__header, .gallery-header, .reviews__header { margin-bottom: 18px; }
  .divider { margin: 12px 0 16px; }
  .divider--center { margin-inline: auto; }
  .about { padding: 10px; border-radius: 24px; }
  .about__img-col img { border-radius: 16px; }
  .about__text-col { padding: 14px 10px 12px; }
  .playground, .events { border-radius: 24px; }
  .playground__body, .events__body { padding: 22px 18px; gap: 22px; }
  .gallery-grid { gap: 8px; }
  .quote-section { padding: 28px 20px; border-radius: 24px; }

  /* Piè di pagina e newsletter */
  .site-footer { margin-top: 48px; padding-top: 16px; border-radius: 24px 24px 0 0; }
  .footer-nl { transform: none; margin: 0 0 28px; padding: 18px; border-radius: 22px; box-shadow: none; }
  .footer-nl > div { width: 100%; }
  .footer-nl__form { width: 100%; min-width: 0; }
  .footer-nl__btn { flex: none; padding: 10px 16px; }
  .site-footer__inner { margin-top: 0; gap: 22px; }
  .menu-page .site-footer { margin-top: 64px; }

  /* Menù */
  .menu-hero { margin-top: 12px; padding: 30px 18px; border-radius: 24px; }
  .menu-hero__eyebrow { font-size: 0.66rem; letter-spacing: 0.02em; }
  .menu-hero__subtitle { font-size: 0.98rem; }
  .menu-section { padding-top: 28px; }
  .menu-section__icon { width: 40px; height: 40px; border-radius: 13px; font-size: 1.2rem; }
  .menu-list, .menu-grid-two { gap: 8px; }
  .menu-list__item { padding: 8px 14px 8px 8px; gap: 12px; border-radius: 18px; }
  .menu-list__item:not(.has-photo) { padding: 14px 16px; }
  .menu-list__photo { width: 64px; height: 64px; border-radius: 14px; }
  .menu-list__name { font-size: 1rem; }
  .menu-list__desc { font-size: 0.86rem; }
}

@media (max-width: 380px) { .hero__cta-group { grid-template-columns: 1fr; } }

/* Contatti: la testata come le altre (carta arrotondata) e riquadri meno imbottiti */
body .contact-hero {
  max-width: var(--container); margin: 16px auto 0; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 50% 0%, #2d4a1c 0%, var(--brand-deep) 70%);
}
@media (max-width: 1191px) { body .contact-hero { margin-inline: var(--pad); } }
body .contact-hero__title em, body .contact-hero__subtitle { font-style: normal; }
@media (max-width: 760px) {
  body .contact-hero { margin-top: 12px; padding: 36px 18px 30px; border-radius: 24px; }
  body .contact-hero__eyebrow { letter-spacing: 0.12em; }
  body .contact-wrap { padding: 20px var(--pad) 8px; gap: 14px; }
  body .contact-form-block, body .contact-info-card { padding: 20px 18px; border-radius: 22px; }
  body .btn-contact { padding-inline: 16px; letter-spacing: 0; }
}

/* ============================================================
   Telefono: barre di navigazione intere (sovrascrive le regole sopra)
   ============================================================ */
@media (max-width: 760px) {
  /* Home / Menù / Contatti: tre pulsanti uguali su tutta la larghezza, niente ombre tagliate */
  html body .site-nav { order: 3; width: 100%; margin: 0; padding: 0; overflow: visible; }
  html body .site-nav__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
  html body .site-nav__link {
    display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 8px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: none; border-radius: 999px;
    font-size: 0.94rem; white-space: nowrap;
  }
  html body .site-nav__link--active, html body .site-nav__link--active:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

  /* Barre delle sezioni (home) e delle categorie (menù): striscia intera in vetro, scorrevole, mai tagliata */
  html body .page-nav, html body .menu-nav {
    top: 0; max-width: none; margin: 8px 0 0; padding: 8px 0;
    background: var(--bg); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    border-block: 1px solid var(--line);
  }
  html body .page-nav__inner { overflow: visible; }
  html body .page-nav__list, html body .menu-nav__list {
    display: flex; gap: 8px; width: auto; margin: 0; padding: 2px var(--pad);
    overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none;
    background: none; border: 0; box-shadow: none; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    /* Sfumatura ai bordi: si capisce che la barra scorre */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
  }
  html body .page-nav__list::-webkit-scrollbar, html body .menu-nav__list::-webkit-scrollbar { display: none; }
  html body .page-nav__list li, html body .menu-nav__list li { flex: none; scroll-snap-align: start; }
  html body .page-nav__list li:last-child, html body .menu-nav__list li:last-child { padding-right: 20px; }
  html body .page-nav__list a, html body .menu-nav__list a {
    display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; white-space: nowrap;
  }
  html body .page-nav__list a.is-active { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
  html body .menu-nav__list a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
  html body .features-wrap { padding-top: 14px; }
}
