/* ============================================================
   PITITTO · Specialità Siciliane
   Palette ispirata al logo: terracotta + crema
   ============================================================ */

:root {
  --clay:        #a85d43;   /* terracotta principale (sfondo logo) */
  --clay-dark:   #8c4a34;
  --clay-deep:   #6f3a2a;
  --clay-soft:   #c07a5e;
  --cream:       #f5e9da;   /* crema chiara (testo logo) */
  --cream-soft:  #fbf4ea;
  --cream-paper: #fdf8f1;
  --ink:         #2f2018;   /* marrone scuro testo */
  --muted:       #6b574a;
  --gold:        #cf9b5b;   /* accento caldo */
  --line:        rgba(47, 32, 24, 0.12);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(47, 32, 24, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-paper);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--clay-deep); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 .6rem;
}
.eyebrow::before { content: "— "; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--clay); color: var(--cream-soft); box-shadow: 0 10px 24px -10px rgba(168,93,67,.7); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { background: transparent; color: var(--cream-soft); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost.dark { color: var(--clay-deep); border-color: var(--clay); }
.btn-ghost.dark:hover { background: rgba(168,93,67,.1); }
.main-nav a.btn-nav { padding: .6rem 1.5rem; background: var(--clay); color: var(--cream-soft) !important; }
.btn-nav:hover { background: var(--clay-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 248, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 68px; width: auto; }
.brand-fallback { display: flex; align-items: center; gap: .65rem; }
.brand-badge {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--clay); color: var(--cream);
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
}
.brand-badge.sm { width: 38px; height: 38px; font-size: 1.3rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--clay-deep); letter-spacing: .04em; }
.brand-sub { font-size: .6rem; text-transform: uppercase; letter-spacing: .26em; color: var(--muted); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-size: .92rem; font-weight: 400; color: var(--ink);
  position: relative; padding: .3rem 0; transition: color .2s;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--clay); transition: width .25s ease;
}
.main-nav a:not(.btn):hover { color: var(--clay); }
.main-nav a:not(.btn):hover::after { width: 100%; }
.main-nav a.active:not(.btn) { color: var(--clay); }
.main-nav a.active:not(.btn)::after { width: 100%; }

.nav-tools { display: flex; align-items: center; gap: 1rem; }
/* Menù a tendina lingua (bandiera + nome) */
.lang-dd { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
  padding: .3rem .55rem; font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .04em; color: var(--ink); transition: border-color .2s, background .2s;
}
.lang-current:hover { border-color: var(--clay); background: rgba(168,93,67,.06); }
.lang-caret { width: 13px; height: 13px; color: var(--muted); transition: transform .25s; }
.lang-dd.open .lang-caret { transform: rotate(180deg); }

.lang-flag {
  display: inline-block; width: 22px; height: 15px; border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; line-height: 0;
}
.lang-flag svg { width: 100%; height: 100%; display: block; }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  list-style: none; margin: 0; padding: .35rem;
  background: var(--cream-paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 178px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lang-dd.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-opt {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  background: transparent; border: 0; cursor: pointer; border-radius: 8px;
  padding: .5rem .55rem; font-family: var(--sans); font-size: .88rem; color: var(--ink); text-align: left;
  transition: background .15s;
}
.lang-opt:hover { background: rgba(168,93,67,.1); }
.lang-opt.active { background: rgba(168,93,67,.14); color: var(--clay-deep); font-weight: 600; }
.lang-opt-name { flex: 1; }
.lang-opt-code { font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--clay-deep); transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (foto a tutto schermo, con fallback elegante) ----------
   Per attivare la foto: aggiungi assets/hero.jpg — si attiva da solo.
   (lo slot è impostato con --hero-img nel file index.html)                */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  color: var(--cream-soft);
  overflow: hidden;
  background-color: var(--clay-deep);
  background-image:
    linear-gradient(95deg, rgba(26,16,10,.82) 0%, rgba(26,16,10,.55) 42%, rgba(26,16,10,.12) 100%),
    linear-gradient(to top, rgba(26,16,10,.6) 0%, transparent 42%),
    var(--hero-img, none),
    radial-gradient(circle at 78% 24%, rgba(207,155,91,.18), transparent 55%),
    linear-gradient(135deg, var(--clay) 0%, var(--clay-dark) 55%, var(--clay-deep) 100%);
  background-size: cover, cover, cover, cover, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .45;
}
.hero-content {
  position: relative; max-width: 760px;
  padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem);
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 24px rgba(0,0,0,.35);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .85rem;
  text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; font-weight: 600;
  color: var(--gold); margin: 0 0 1.1rem;
}
.hero-eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
.hero-title { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 600; margin-bottom: 1.2rem; letter-spacing: -0.01em; }
.hero-text { font-size: 1.12rem; max-width: 560px; color: rgba(253,248,241,.94); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  position: relative;
  color: var(--cream-soft);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(circle at 75% 15%, rgba(207,155,91,.25), transparent 55%),
    linear-gradient(135deg, var(--clay) 0%, var(--clay-dark) 60%, var(--clay-deep) 100%);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { content: none; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .4rem; }
.page-hero p { color: rgba(253,248,241,.9); margin: 0; font-size: 1.05rem; }

/* ---------- Icone SVG ---------- */
[data-icon] { display: inline-block; line-height: 0; }
[data-icon] svg { width: 100%; height: 100%; display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--cream); }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* Intestazione editoriale, allineata a sinistra con riga decorativa */
.section-head--left {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; text-align: left; max-width: none; margin-left: 0; margin-right: 0;
}
.section-head--left .head-text { max-width: 640px; }
.section-head--left .head-rule { flex: 1; min-width: 80px; height: 2px; background: var(--line); margin-bottom: .9rem; }

/* ---------- About (riquadro foto editoriale) ----------
   Slot foto: aggiungi assets/about.jpg per attivarla.            */
.about-grid { display: grid; grid-template-columns: .95fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.about-media { position: relative; }
.about-photo {
  position: relative; height: 100%; min-height: 360px; border-radius: var(--radius); overflow: hidden;
  background-color: var(--clay-soft);
  background-image: linear-gradient(150deg, rgba(168,93,67,.20), rgba(111,58,42,.6)), var(--g-bg, none);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.about-photo-ico { width: 68px; height: 68px; color: rgba(245,233,218,.5); }
/* quando c'è la foto vera: niente velatura terracotta e niente icona segnaposto */
.about-photo.has-bg { background-image: var(--g-bg); }
.about-photo.has-bg .about-photo-ico { display: none; }
.about-badge {
  position: absolute; right: -12px; bottom: 28px;
  display: flex; align-items: center; gap: .65rem;
  background: var(--cream-paper); color: var(--clay-deep);
  border: 1px solid var(--line); border-radius: 14px;
  padding: .85rem 1.1rem; box-shadow: var(--shadow);
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.05;
}
.about-badge-ico { width: 30px; height: 30px; color: var(--clay); flex-shrink: 0; }
/* Pagina "Chi siamo" (testo lungo): foto con altezza massima, in vista mentre si scorre */
.about-tall .about-media { align-self: start; position: sticky; top: 90px; }
.about-tall .about-photo { height: auto; aspect-ratio: 4 / 5; min-height: 360px; max-height: 520px; }

/* ---------- Pagina 404 ---------- */
.error-section { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.error-code { font-family: var(--serif); font-weight: 600; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--clay); margin: 0; }
.error-section h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--clay-deep); margin: .2rem 0 .8rem; }
.error-section p { color: var(--muted); max-width: 460px; margin: 0 auto 1.8rem; }

/* ---------- Footer: link legali ---------- */
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.footer-legal a, .footer-legal-btn {
  font-family: var(--sans); font-size: .82rem; color: rgba(253,248,241,.8);
  background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s;
}
.footer-legal a:hover, .footer-legal-btn:hover { color: #fff; text-decoration: underline; }

/* ---------- Banner consenso cookie ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--clay-deep); color: var(--cream-soft);
  box-shadow: 0 -10px 30px -12px rgba(0,0,0,.45);
  transform: translateY(110%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1rem 24px; }
.cookie-text { margin: 0; flex: 1; min-width: 220px; font-size: .88rem; color: rgba(253,248,241,.92); }
.cookie-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.cookie-link { font-size: .85rem; color: var(--gold); text-decoration: underline; }
.cookie-actions .btn { padding: .6rem 1.3rem; font-size: .85rem; }
.cookie-banner .btn-ghost.dark { color: var(--cream-soft); border-color: rgba(255,255,255,.55); }
.cookie-banner .btn-ghost.dark:hover { background: rgba(255,255,255,.12); }

/* ---------- Segnaposto mappa (prima del consenso) ---------- */
.map-placeholder {
  min-height: 380px; padding: 2rem; text-align: center;
  display: grid; place-content: center; justify-items: center; gap: .9rem;
  background: linear-gradient(135deg, var(--clay-soft), var(--clay)); color: var(--cream-soft);
}
.map-placeholder p { margin: 0; max-width: 360px; }
.map-alt-link { font-size: .85rem; color: var(--cream-soft); text-decoration: underline; opacity: .9; }
.map-alt-link:hover { opacity: 1; }

/* ---------- Pagine legali (Privacy / Cookie) ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.5rem; color: var(--clay-deep); margin: 2.2rem 0 .6rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; }
.legal-content p { margin: 0 0 .8rem; }
.legal-content ul { margin: 0 0 1rem; padding-left: 1.2rem; list-style: disc; }
.legal-content li { margin-bottom: .4rem; }
.legal-content a { color: var(--clay); text-decoration: underline; }
.legal-note { background: rgba(168,93,67,.08); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; font-size: .85rem; color: var(--muted); margin-bottom: 2rem; }
.legal-updated { font-size: .82rem; color: var(--muted); font-style: italic; margin-top: 2.4rem; }
.about-body .section-title, .asporto-body .section-title { margin-bottom: 1.3rem; }
.about-body p { color: var(--muted); margin: 0 0 1rem; }
.about-points { margin-top: 1.5rem; display: grid; gap: .7rem; }
.about-points li { position: relative; padding-left: 1.8rem; color: var(--ink); }
.about-points li::before { content: "✓"; position: absolute; left: 0; color: var(--clay); font-weight: 700; }

/* ---------- Menu ---------- */
.menu-cats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.menu-cat-title {
  font-size: 1.6rem; color: var(--clay-deep); padding-bottom: .6rem; margin-bottom: 1.3rem;
  border-bottom: 2px solid var(--line); position: relative;
}
.menu-cat-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--clay); }
.menu-items { display: grid; gap: 1.4rem; }
.mi-head { display: flex; align-items: baseline; gap: .6rem; }
.mi-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.mi-head::after {
  content: ""; flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px);
}
.mi-price { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--clay); white-space: nowrap; }
.mi-desc { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; }
.menu-note { text-align: center; margin-top: 3rem; color: var(--muted); font-style: italic; font-size: .9rem; }
.menu-cover {
  width: fit-content; max-width: 100%; margin: 0 auto 3rem; text-align: center;
  background: rgba(168, 93, 67, .08); border: 1px solid var(--line); border-radius: 999px;
  padding: .6rem 1.4rem; font-size: .9rem; font-weight: 500; color: var(--clay-deep);
}
@media (max-width: 560px) { .menu-cover { border-radius: 16px; } }

/* ---------- Asporto ---------- */
.asporto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.asporto-body p { color: var(--muted); margin: 0 0 1.6rem; }
.asporto-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.asporto-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .home-cards { grid-template-columns: 1fr; } }
.asp-card {
  background: var(--cream-paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; transition: transform .2s, box-shadow .2s;
}
.asp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.asp-ico {
  width: 2.6rem; height: 2.6rem; color: var(--clay); margin-bottom: .8rem;
  display: grid; place-items: center;
  background: rgba(168,93,67,.1); border-radius: 12px; padding: .55rem;
}
.asp-card h4 { font-size: 1.25rem; color: var(--clay-deep); margin-bottom: .3rem; }
.asp-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- CTA band (home) ---------- */
.cta-band {
  background:
    radial-gradient(circle at 20% 30%, rgba(207,155,91,.22), transparent 55%),
    linear-gradient(135deg, var(--clay-dark), var(--clay-deep));
  color: var(--cream-soft);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3rem; }
.cta-band p { margin: 0; color: rgba(253,248,241,.9); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.g-item {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background-color: var(--clay-soft);
  background-image: linear-gradient(160deg, rgba(168,93,67,.15), rgba(111,58,42,.55)), var(--g-bg);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow);
}
.g-item.has-bg { background-image: var(--g-bg); }
.g-item.has-bg .g-item { display: none; }
.g-item::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(47,32,24,.65), transparent 55%);
}
.g-item figcaption {
  position: relative; z-index: 1; color: var(--cream-soft);
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  padding: 1rem 1.2rem; transition: transform .25s;
}
.g-item:hover figcaption { transform: translateY(-4px); }
.gallery-note { text-align: center; margin-top: 1.6rem; color: var(--muted); font-size: .82rem; }
.gallery-note code { background: rgba(168,93,67,.12); padding: .1rem .4rem; border-radius: 5px; font-size: .85em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); }
.info-list { display: grid; gap: 1.2rem; margin: 2rem 0; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-ico { width: 1.5rem; height: 1.5rem; color: var(--clay); flex-shrink: 0; margin-top: .15rem; }
.info-list strong { display: block; font-family: var(--sans); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--clay); margin-bottom: .15rem; }
.info-list a:hover { color: var(--clay); }
.socials { display: flex; gap: .8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 500; font-size: .9rem; color: var(--clay-deep);
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem;
  transition: border-color .2s, background .2s, color .2s;
}
.socials a:hover { border-color: var(--clay); background: rgba(168, 93, 67, .07); }
.social-ico { width: 1.15rem; height: 1.15rem; color: var(--clay); flex-shrink: 0; transition: color .2s; }
.social-ico svg { width: 100%; height: 100%; display: block; }
.socials a.ig:hover .social-ico { color: #E1306C; }
.socials a.fb:hover .social-ico { color: #1877F2; }
.socials a.wa:hover .social-ico { color: #25D366; }

.contact-form-wrap { background: var(--cream-paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.7rem; color: var(--clay-deep); margin-bottom: .3rem; }
.form-sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: .7fr 1.1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: .92rem; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s; font-weight: 300;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(168,93,67,.15); }
.field textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.form-hint { font-size: .76rem; color: var(--muted); margin: 1rem 0 0; }

/* ---------- Map ---------- */
.map-wrap { margin-top: 3.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(.85) sepia(.12); }

/* ---------- Footer ---------- */
.site-footer { background: var(--clay-deep); color: var(--cream-soft); padding: 3rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-logo { height: 58px; width: auto; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 1.3rem; letter-spacing: .04em; }
.footer-brand span { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: rgba(253,248,241,.7); }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { font-size: .9rem; color: rgba(253,248,241,.85); transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: .8rem; color: rgba(253,248,241,.7); margin: 0; width: 100%; text-align: center; padding-top: 1.4rem; border-top: 1px solid rgba(253,248,241,.15); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Menu con foto (data-driven) + finestra dal basso ---------- */
.menu-block { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.menu-block:last-child { margin-bottom: 0; }
.menu-block-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.menu-block-head p { color: var(--muted); margin: .4rem 0 0; }
.menu-cat-block { margin-top: 2.8rem; }
.menu-cat-block .menu-cat-title { margin-bottom: 1.6rem; }

/* Elenco verticale: una riga per piatto, foto piccola a destra */
.menu-list { display: flex; flex-direction: column; gap: .8rem; max-width: 720px; margin: 0 auto; }
.menu-row {
  display: flex; align-items: center; gap: 1.1rem; width: 100%; text-align: left;
  background: var(--cream-paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; cursor: pointer; font-family: inherit; color: inherit;
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
/* rialzo/bordo SOLO con mouse (niente "hover appiccicato" sul touch) */
@media (hover: hover) {
  .menu-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(168,93,67,.3); }
}
/* feedback breve alla pressione (touch): sparisce appena stacchi il dito */
.menu-row:active { border-color: rgba(168,93,67,.35); }
.menu-row:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.mr-text { flex: 1; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.mr-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.mr-ing {
  color: var(--muted); font-size: .85rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mr-price { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--clay); margin-top: .15rem; }
.mr-pp { font-family: var(--sans); font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-left: .15rem; }
.mr-thumb {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px;
  background-color: var(--clay-soft);
  background-image: linear-gradient(160deg, rgba(168,93,67,.18), rgba(111,58,42,.55)), var(--g-bg, none);
  background-size: cover; background-position: center;
}

/* Finestra dal basso (bottom sheet) */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(33,20,14,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
.sheet-backdrop[hidden] { display: none; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: relative; width: min(560px, 100%);
  background: var(--cream-paper); border-radius: 24px 24px 0 0;
  box-shadow: 0 -24px 60px -18px rgba(47,32,24,.55);
  max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(101%); opacity: .6; will-change: transform;
  transition: transform .62s cubic-bezier(.16, 1, .3, 1), opacity .4s ease;
}
.sheet-backdrop.open .sheet { transform: translateY(0); opacity: 1; }
/* durante il trascinamento la tendina segue il dito senza transizioni */
.sheet-backdrop.dragging, .sheet-backdrop.dragging .sheet { transition: none; }
.sheet::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 5px; border-radius: 999px; background: rgba(47,32,24,.18); z-index: 2;
}
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--clay-deep);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px -4px rgba(47,32,24,.4); transition: background .2s, transform .2s;
}
.sheet-close:hover { background: #fff; transform: scale(1.06); }
.sheet-close svg { width: 17px; height: 17px; display: block; }
.sheet-img {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background-color: var(--clay-soft);
  background-image: linear-gradient(160deg, rgba(168,93,67,.2), rgba(111,58,42,.55));
}
/* Sfondo: la stessa foto, sfocata e ingrandita, che riempie i bordi */
.sheet-img-fill {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.15); filter: blur(24px) saturate(1.1);
  opacity: 0; transition: opacity .3s ease;
}
/* Sopra: la foto intera, mai tagliata */
.sheet-img-photo {
  position: absolute; inset: 0;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity .3s ease;
}
.sheet-img.has-photo .sheet-img-fill { opacity: .6; }
.sheet-img.has-photo .sheet-img-photo { opacity: 1; }
.sheet-body { padding: 1.5rem clamp(1.3rem, 4vw, 2rem) 2rem; }
.sheet-name { font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--clay-deep); margin-bottom: 1.1rem; }
.sheet-ing-l, .sheet-price-l {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: var(--clay); margin: 0 0 .3rem;
}
.sheet-ing { color: var(--muted); margin: 0 0 1.5rem; }
.sheet-price-row { display: flex; flex-direction: column; gap: .15rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.sheet-price { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--clay); }

/* Bottone Glovo (giallo brand, testo scuro) */
.btn-glovo { background: #ffc244; color: #2f2018; box-shadow: 0 10px 24px -10px rgba(255,194,68,.9); }
.btn-glovo:hover { background: #f7b52b; }

/* Bottone TheFork (verde brand) */
.btn-fork { background: #2c7a4b; color: #fff; box-shadow: 0 10px 24px -10px rgba(44,122,75,.85); }
.btn-fork:hover { background: #24663e; }

/* Card prenotazione (TheFork) nella pagina contatti */
.book-card { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.book-ico {
  width: 3.2rem; height: 3.2rem; color: var(--clay);
  background: rgba(168,93,67,.1); border-radius: 16px; padding: .8rem;
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.book-card h3 { font-size: 1.8rem; color: var(--clay-deep); margin-bottom: .6rem; }
.book-card p { color: var(--muted); margin: 0 0 1.8rem; max-width: 340px; }

/* ---------- Barra categorie del menù (chip agganciata in alto) ---------- */
.menu-nav {
  position: sticky; top: 84px; z-index: 50;
  margin: 0 0 2.2rem; padding: .55rem 0;
  background: var(--cream-paper); border-bottom: 1px solid var(--line);
}
.menu-nav-scroll {
  display: flex; gap: .5rem; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.menu-nav-scroll::-webkit-scrollbar { display: none; }
.menu-chip {
  flex: 0 0 auto; white-space: nowrap; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
  padding: .45rem 1.05rem; font-family: var(--sans); font-size: .85rem; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
/* hover leggero e SOLO su dispositivi con mouse (niente "sticky hover" sul touch) */
@media (hover: hover) {
  .menu-chip:hover { background: rgba(168,93,67,.08); }
}
/* alone di focus solo per chi naviga da tastiera, non dopo un click col mouse */
.menu-chip:focus { outline: none; }
.menu-chip:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.menu-chip.active { background: var(--clay); color: var(--cream-soft); border-color: var(--clay); }
.menu-cat-block { scroll-margin-top: 56px; } /* si somma a scroll-padding-top (96px) → ~152px, sotto la barra */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid, .asporto-inner, .contact-grid, .menu-cats { grid-template-columns: 1fr; }
  /* Su mobile la foto NON è più agganciata: scorre normalmente con la pagina */
  .about-tall .about-media { position: relative; top: auto; }
  .asporto-cards { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 84px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-paper); border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.4rem; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s ease; visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a.btn-nav { margin-top: .8rem; border-bottom: 0; text-align: center; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  /* Social: pulsanti impilati a tutta larghezza (niente 2+1 sbilanciato) */
  .socials { flex-direction: column; align-items: stretch; }
  .socials a { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
