/* I Giardini di Manù — token, reset, tipografia, testata, piede, bottoni */
@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Marcellus SC"; src: url("../fonts/marcellus-sc.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Parisienne"; src: url("../fonts/parisienne.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --lino: hsl(38 33% 96%);
  --lino-2: hsl(36 28% 91%);
  --avorio: hsl(40 45% 92%);
  --bianco: hsl(40 40% 99%);
  --ink: hsl(350 22% 13%);
  --muted: hsl(350 9% 35%);
  --vino: hsl(353 43% 27%);
  --vino-h: hsl(353 46% 21%);
  --oro: hsl(40 52% 62%);
  --oro-d: hsl(36 60% 30%);
  --vichy: hsl(26 28% 32%);
  --vichy-a: hsl(26 28% 32% / .34);
  --wa: hsl(142 70% 30%);
  --errore: hsl(4 70% 40%);
  --ok: hsl(142 50% 28%);

  --f-tit: "Marcellus", "Optima", "Candara", "Palatino Linotype", serif;
  --f-sc: "Marcellus SC", "Marcellus", "Optima", serif;
  --f-txt: "Nunito Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --f-mano: "Parisienne", "Segoe Script", cursive;

  --t-1: clamp(2.1rem, 1.4rem + 3.4vw, 4rem);
  --t-2: clamp(1.7rem, 1.25rem + 2vw, 2.75rem);
  --t-3: clamp(1.3rem, 1.1rem + .9vw, 1.75rem);
  --t-sm: .875rem;

  --s-a: 36px; --s-b: 56px; --s-c: 96px;
  --gut: 16px;
  --max: 1180px;

  --in: cubic-bezier(0.16, 1, 0.3, 1);
  --st: cubic-bezier(0.4, 0, 0.2, 1);
  --molla: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.102, 1.083 30.6%, 1.011 39.1%, .993 43%, .987 47.5%, 1.003 61.2%, 1);
  --ombra: 0 1px 2px hsl(350 30% 15% / .08), 0 10px 30px -10px hsl(350 30% 15% / .28);
}
@media (min-width: 768px) { :root { --gut: 32px; --s-a: 56px; --s-b: 88px; --s-c: 136px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; }
body { margin: 0; background: var(--lino); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-txt); overflow-x: clip; }
@media (min-width: 1024px) { body { font-size: 1.125rem; } }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--vino); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .25s var(--st); }
a:hover { color: var(--vino-h); }
:focus-visible { outline: 2px solid var(--vichy); outline-offset: 3px; border-radius: 4px; }
.su-vino :focus-visible, .piede :focus-visible { outline-color: var(--oro); }
h1, h2, h3 { font-family: var(--f-tit); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-1); }
h2 { font-size: var(--t-2); }
h3 { font-size: var(--t-3); }
p { margin: 0 0 1em; text-wrap: pretty; }
.sopra { font-family: var(--f-sc); font-size: .95rem; letter-spacing: .08em; color: var(--oro-d); margin: 0 0 12px; }
.su-vino .sopra { color: var(--oro); }
.vis-nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: absolute; left: 8px; top: -60px; background: var(--vino); color: var(--lino); padding: 10px 16px; border-radius: 999px; z-index: 100; transition: top .2s var(--st); }
.salta:focus { top: 8px; }
.cont { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.stretta { max-width: 62ch; }

/* trama vichy: due bande sovrapposte = quadretti scuri agli incroci */
.vichy {
  background-color: var(--lino);
  background-image:
    linear-gradient(90deg, var(--vichy-a) 50%, transparent 50%),
    linear-gradient(var(--vichy-a) 50%, transparent 50%);
  background-size: 26px 26px;
}
.orlo { height: 14px; background-image: linear-gradient(90deg, var(--vichy-a) 50%, transparent 50%), linear-gradient(var(--vichy-a) 50%, transparent 50%); background-size: 14px 14px; background-color: var(--lino); }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1rem/1.1 var(--f-txt); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .25s var(--st), color .25s var(--st), transform .25s var(--st), box-shadow .25s var(--st); -webkit-tap-highlight-color: transparent; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-p { background: var(--vino); color: var(--lino); box-shadow: 0 8px 20px -8px hsl(353 43% 27% / .6); }
.btn-p:hover { background: var(--vino-h); color: var(--bianco); transform: translateY(-2px); }
.btn-p:active { transform: translateY(0) scale(.98); background: var(--vino-h); }
.btn-c { background: transparent; color: var(--vino); border-color: currentColor; }
.btn-c:hover { background: var(--vino); color: var(--lino); }
.btn-c:active { transform: scale(.98); }
.su-vino .btn-p { background: var(--avorio); color: var(--vino); box-shadow: none; }
.su-vino .btn-p:hover { background: var(--bianco); color: var(--vino-h); }
.su-vino .btn-c { color: var(--avorio); }
.su-vino .btn-c:hover { background: var(--avorio); color: var(--vino); }
.link-f { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--vino); padding: 8px 0; }
.link-f svg { width: 20px; height: 20px; transition: transform .3s var(--in); }
.link-f:hover svg { transform: translateX(4px); }
.su-vino .link-f { color: var(--avorio); }

/* testata */
.testata { position: sticky; top: 0; z-index: 50; background: hsl(38 33% 96% / .86); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); border-bottom: 1px solid hsl(26 28% 32% / .14); transition: box-shadow .3s var(--st); }
.testata.giu { box-shadow: 0 6px 20px -12px hsl(350 30% 15% / .35); }
.testata > .cont { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; }
.marchio { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.marchio img { height: 40px; width: auto; }
.marchio .wm { height: 30px; }
@media (max-width: 380px) { .marchio .wm { height: 25px; } .marchio img { height: 36px; } }
.nav { display: none; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 999px; transition: background-color .25s var(--st), color .25s var(--st); }
.nav a:hover { background: var(--lino-2); color: var(--vino); }
.nav a[aria-current="page"] { color: var(--vino); background: var(--lino-2); }
.nav .tel { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--vino); }
.nav .tel svg { width: 18px; height: 18px; }
.testata-az { display: flex; align-items: center; gap: 6px; }
.btn-prenota { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--vino); color: var(--lino); font: 700 .95rem/1 var(--f-txt); text-decoration: none; box-shadow: 0 6px 16px -8px hsl(353 43% 27% / .7); transition: background-color .25s var(--st), transform .2s var(--st); }
.btn-prenota:hover { background: var(--vino-h); color: var(--bianco); }
.btn-prenota:active { transform: scale(.96); }
.btn-prenota[aria-current="page"] { background: var(--vino-h); }
.btn-menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 10px; border-radius: 999px; border: 1.5px solid hsl(26 28% 32% / .35); background: var(--bianco); color: var(--ink); font: 700 .95rem/1 var(--f-txt); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .25s var(--st), background-color .25s var(--st), transform .2s var(--st); }
.btn-menu:hover { border-color: var(--vino); }
.btn-menu:active { transform: scale(.96); }
.bm-ico { position: relative; width: 16px; height: 12px; display: inline-block; }
.bm-ico i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--in), top .35s var(--in); }
.bm-ico i:first-child { top: 2px; } .bm-ico i:last-child { top: 8px; }
.btn-menu[aria-expanded="true"] { background: var(--lino-2); border-color: var(--vino); color: var(--vino); }
.btn-menu[aria-expanded="true"] .bm-ico i:first-child { top: 5px; transform: rotate(45deg); }
.btn-menu[aria-expanded="true"] .bm-ico i:last-child { top: 5px; transform: rotate(-45deg); }
@media (min-width: 960px) {
  .nav { display: block; }
  .btn-menu { display: none; }
  .testata-az { margin-left: 4px; }
  .testata > .cont { justify-content: flex-start; } .nav { margin-left: auto; }
}

/* il menù del sito, come il cartoncino del menù sul tavolo */
.menu-carta { position: absolute; left: 0; right: 0; top: 100%; background: var(--lino); border-bottom: 1px solid hsl(26 28% 32% / .18); box-shadow: 0 30px 50px -30px hsl(350 30% 15% / .45); max-height: calc(100dvh - 64px); overflow-y: auto; }
.menu-carta::before { content: ""; display: block; height: 10px; background-image: linear-gradient(90deg, var(--vichy-a) 50%, transparent 50%), linear-gradient(var(--vichy-a) 50%, transparent 50%); background-size: 10px 10px; }
.menu-carta[hidden] { display: none; }
.js .menu-carta.apre { animation: carta-giu .45s var(--in) both; }
@keyframes carta-giu { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.mc-in { padding: 18px 0 24px; }
.mc-titolo { font-family: var(--f-mano); font-size: 2.4rem; line-height: 1; color: var(--vino); text-align: center; margin: 0 0 6px; display: flex; align-items: center; gap: 14px; }
.mc-titolo::before, .mc-titolo::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--oro-d)); }
.mc-titolo::after { background: linear-gradient(90deg, var(--oro-d), transparent); }
.mc-lista { list-style: none; margin: 0; padding: 0; }
.mc-lista a { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; padding: 12px 2px; text-decoration: none; color: var(--ink); border-bottom: 1px solid hsl(26 28% 32% / .1); }
.mc-lista a:hover .mc-t, .mc-lista a[aria-current="page"] .mc-t { color: var(--vino); }
.mc-t { font: 400 1.45rem/1.2 var(--f-tit); transition: color .2s var(--st); }
.mc-p { height: 1px; border-bottom: 2px dotted hsl(26 28% 32% / .45); transform: translateY(-4px); }
.mc-d { grid-column: 1 / -1; font-size: .92rem; color: var(--muted); }
.mc-lista a[aria-current="page"] .mc-t::after { content: " ·"; color: var(--oro-d); }
.js .menu-carta.apre .mc-lista li { animation: voce-entra .5s var(--in) both; }
.js .menu-carta.apre .mc-lista li:nth-child(2) { animation-delay: 40ms; } .js .menu-carta.apre .mc-lista li:nth-child(3) { animation-delay: 80ms; }
.js .menu-carta.apre .mc-lista li:nth-child(4) { animation-delay: 120ms; } .js .menu-carta.apre .mc-lista li:nth-child(5) { animation-delay: 160ms; }
@keyframes voce-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mc-piede { display: flex; gap: 10px; margin: 18px 0 0; }
.mc-piede a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; border: 1.5px solid hsl(26 28% 32% / .35); background: var(--bianco); color: var(--vino); font-weight: 700; text-decoration: none; }
.mc-piede svg { width: 20px; height: 20px; }
@media (min-width: 960px) { .menu-carta { display: none !important; } }

/* briciole */
.briciole { padding-top: 20px; font-size: var(--t-sm); color: var(--muted); }
.briciole ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.briciole li + li::before { content: "›"; margin-right: 6px; }
.briciole a { color: var(--muted); }

/* WhatsApp fluttuante */
.wa-flu { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px hsl(142 70% 20% / .55); transition: transform .3s var(--in), box-shadow .3s var(--st); animation: wa-entra .7s var(--molla) .9s both; }
.wa-flu svg { width: 30px; height: 30px; }
.wa-flu:hover { transform: scale(1.07); color: #fff; }
.wa-flu:active { transform: scale(.96); }
.wa-flu:focus-visible { outline: 2px solid var(--bianco); box-shadow: 0 0 0 5px var(--vino); }
@keyframes wa-entra { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 768px) { .wa-flu { right: 24px; bottom: 24px; width: 60px; height: 60px; } }

/* piede */
.piede { background: var(--vino); color: var(--avorio); padding: var(--s-b) 0 96px; }
.piede a { color: var(--avorio); }
.piede a:hover { color: var(--bianco); }
.piede-g { display: grid; gap: 40px; }
@media (min-width: 900px) { .piede-g { grid-template-columns: 1.1fr 1fr 1fr; } }
.piede .logo-p { width: 190px; }
.piede h2 { font-family: var(--f-sc); font-size: 1.05rem; letter-spacing: .08em; color: var(--oro); margin-bottom: 14px; }
.piede ul { list-style: none; margin: 0; padding: 0; }
.piede li { padding: 3px 0; }
.orari-p { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; }
.orari-p dt { font-weight: 700; }
.orari-p dd { margin: 0; }
.piede-legale { margin-top: 48px; padding-top: 20px; border-top: 1px solid hsl(40 45% 92% / .2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--t-sm); color: hsl(40 45% 92% / .86); }
.firma a { font-weight: 700; text-decoration: underline; }

/* ingressi */
.js [data-entra] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--in), transform .8s var(--in); }
.js [data-entra].dentro { opacity: 1; transform: none; }
.js [data-scopri] picture { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--in); }
.js [data-scopri].dentro picture { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-entra] { opacity: 1; transform: none; }
  .js [data-scopri] picture { clip-path: none; }
}
figure { margin: 0; }
@media (max-width: 899px) { .piede .logo-p { width: 140px; } }
