/* DA CANDIDO - Stile del sito
   Colori presi dal locale: marrone e beige dei tavoli e del biglietto da
   visita (base), turchese della porta (pulsanti), giallo dei muri (accenti).
   Font (tutti liberi anche per uso commerciale, ospitati sul sito):
   Satisfy = logo, titoli e pulsanti in corsivo (alternativa libera a
   Priestacy, che e' solo per uso personale); Damion = scritte giganti di
   sfondo (alternativa a Rooster); Nunito Sans = testo. Mobile first. */

@font-face { font-family: "Satisfy"; src: url("/public/fonts/Satisfy.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Damion"; src: url("/public/fonts/Damion.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/public/fonts/NunitoSans-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  /* marroni e beige */
  --cream: #ffffff;
  --paper: #ffffff;
  --offwhite: #faf7f2;
  --beige: #e8d7b9;
  --sand: #c9a97c;
  --brown: #6b4a33;
  --brown-dark: #43301f;
  --ink: #33241a;
  --muted: #7a6450;
  --line: #e0cdb0;
  /* porta e muri del locale */
  --turq: #1d8e89;
  --turq-dark: #146f6b;
  --turq-light: #d6eeec;
  --yellow: #e3b23c;
  --yellow-soft: #f4dc98;

  --radius: 1rem;
  --script: "Satisfy", "Brush Script MT", cursive;
  --brush: "Damion", "Satisfy", cursive;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; max-width: 100vw; overflow-x: clip; }
main { display: block; max-width: 100vw; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); max-width: 100vw; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turq-dark); text-underline-offset: .18em; text-decoration-thickness: 0.0625rem; }
a:hover { color: var(--turq); }
h1, h2 { font-family: var(--script); font-weight: 400; line-height: 1.12; color: var(--brown-dark); margin: 0 0 .45em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 2.8rem); margin-top: 1.3em; }
h3 { font: 800 1.15rem/1.3 var(--sans); color: var(--brown-dark); margin: 0 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
strong { font-weight: 800; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -62.4375rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: .5rem 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; position: relative; }
.section { padding: 2.8rem 0; position: relative; }
.prose { max-width: 46rem; }
.todo { display: none; }

/* Scritte giganti di sfondo (texture): decorative, nascoste agli screen reader */
.texture {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--brush); line-height: .9; white-space: nowrap; user-select: none;
}
.texture span { display: block; font-size: clamp(6rem, 22vw, 17rem); color: currentColor; opacity: .07; }
.texture span:nth-child(2) { padding-left: 18vw; }
.texture span:nth-child(3) { padding-left: 6vw; }

/* Header */
.site-header { background: #fff; color: var(--brown-dark); position: sticky; top: 0; z-index: 20; border-top: 0.3125rem solid var(--turq);
  /* punta sotto il centro del logo: margine della colonna + meta' logo */
  --logo-w: 9.5rem; --tip-x: calc(max(0rem, (100vw - var(--wrap)) / 2) + 1rem + var(--logo-w) / 2); }
/* Sotto la navbar un triangolo bianco a tutta larghezza con la punta 1.25rem
   piu' in basso, sotto il logo; ::before e' il bordo sottile, ::after il bianco. */
.site-header::before, .site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; pointer-events: none; }
.site-header::before { height: 1.3125rem; background: var(--line); clip-path: polygon(0 0, 100% 0, 100% 0.0625rem, var(--tip-x) 100%, 0 0.0625rem); }
.site-header::after { height: 1.25rem; background: #fff; clip-path: polygon(0 0, 100% 0, var(--tip-x) 100%); }
@media (min-width: 62rem) { .site-header { --logo-w: 11rem; } .site-header.is-scrolled { --logo-w: 9.4rem; } }
/* Navbar ridotta dopo lo scroll (classe is-scrolled da main.js) */
.site-header.is-scrolled { --logo-w: 8.4rem; }
.site-header.is-scrolled .brand__sub { font-size: .6rem; }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: .55rem 1rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: padding .25s; }
.brand { color: var(--brown-dark); text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand:hover { color: var(--brown); }
.brand__logo svg { width: var(--logo-w); height: auto; display: block; transition: width .25s; }
.brand__sub { transition: font-size .25s; font: 700 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--turq-dark); margin-top: .25rem; }
.nav-toggle { display: flex; flex-direction: column; gap: 0.3125rem; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { width: 1.625rem; height: 0.125rem; background: var(--brown-dark); border-radius: 0.125rem; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: .5rem 1rem 1.3rem; border-bottom: 0.0625rem solid var(--line); }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--brown-dark); text-decoration: none; display: block; padding: .55rem 0; font-weight: 700; }
.nav a:hover { color: var(--turq); }
.nav a[aria-current="page"] { color: var(--turq); }
.nav .lang { display: flex; gap: .45rem; margin-top: .7rem; }
.nav .lang { gap: 0; }
/* Lingue: tre triangoli alternati (su, giu', su) che condividono i lati */
.nav .lang a.lang__t { position: relative; display: inline-grid; place-items: center; width: 2.9rem; height: 2.55rem; padding: 0; border: 0; margin-left: -1.45rem; font-size: .72rem; font-weight: 800; color: var(--brown-dark); }
.nav .lang a.lang__t:first-child { margin-left: 0; }
.lang__t svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lang__t polygon { fill: transparent; stroke: var(--turq); stroke-width: 1.2; stroke-linejoin: miter; vector-effect: non-scaling-stroke; transition: fill .15s; }
.lang__t span { position: relative; }
.lang__t--up span { padding-top: .75rem; }
.lang__t--down span { padding-bottom: .75rem; }
.nav .lang a.lang__t:hover polygon { fill: var(--turq-light); }
.nav .lang a.lang__t[aria-current="true"] { color: #fff; }
.nav .lang a.lang__t[aria-current="true"] polygon { fill: var(--turq); }
@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .nav { display: flex !important; position: static; padding: 0; border: 0; align-items: center; gap: 1.5rem; background: none; }
  .nav ul { display: flex; gap: 1.3rem; }
  .nav a { padding: .3rem 0; font-size: .97rem; }
  .nav .lang { margin: 0; }
}

/* Hero home: il giallo dei muri, scritte giganti di sfondo, la porta turchese */
.hero { background: var(--yellow); color: var(--brown-dark); position: relative; overflow: hidden; }
.hero .texture { color: var(--brown-dark); }
.hero .texture span { opacity: .09; }
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 3.2rem 1rem 3.6rem; position: relative; z-index: 1; }
.hero__kicker { font: 800 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brown); margin: 0 0 .8rem; }
.hero h1 { color: var(--brown-dark); max-width: 14ch; font-size: clamp(3rem, 9vw, 5.6rem); line-height: .98; -webkit-text-stroke: .045em currentColor; }
.hero p { max-width: 36rem; font-size: 1.13rem; font-weight: 600; color: var(--ink); }
.hero__door { position: absolute; right: calc(var(--edge) + 3.5rem); bottom: 0; width: clamp(7rem, 16vw, 12rem); z-index: 1; display: none; }
@media (min-width: 52rem) { .hero__inner { padding: 5rem 1rem 5.5rem; } .hero__door { display: block; } }
.hero__hills { display: none; }

/* Intestazione pagine interne: beige con la parola gigante della pagina */
.page-head { background: #fff; position: relative; overflow: hidden; border-bottom: 0.25rem solid var(--yellow); }
.page-head .texture { color: var(--brown); }
.page-head .texture span { opacity: .07; }
.page-head .wrap { padding-top: 2.4rem; padding-bottom: 1.9rem; z-index: 1; }
.page-head p { color: var(--brown); max-width: 46rem; font-size: 1.1rem; font-weight: 600; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .4rem; font-weight: 600; }
.crumbs a { color: var(--brown); }

/* Pulsanti: corsivo, turchese come la porta del locale */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1.3rem .65rem; border-radius: 62.4375rem;
  border: 0.125rem solid var(--brown-dark); color: var(--brown-dark); text-decoration: none;
  font: 400 1.45rem/1.1 var(--script); background: transparent; transition: background .15s, color .15s, transform .15s;
}
.btn .ico { width: 1rem; height: 1rem; stroke-width: 2.2; }
.btn:hover { background: var(--brown-dark); color: var(--cream); transform: translateY(-0.0625rem); }
.btn--primary { background: var(--turq); border-color: var(--turq); color: #fff; box-shadow: 0 0.1875rem 0 var(--turq-dark); }
.btn--primary:hover { background: var(--turq-dark); border-color: var(--turq-dark); color: #fff; }

/* Schede */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 1.5rem 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: .35rem; }
.card h3 { margin: 0; display: flex; align-items: center; gap: .55rem; font-size: 1.1rem; }
.card h3 .ico { color: var(--turq); width: 1.35em; height: 1.35em; }
.card h3 a { color: var(--brown-dark); text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card a.more { margin-top: auto; padding-top: .5rem; font: 400 1.3rem var(--script); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; color: var(--turq-dark); }

/* Riquadri info */
.info { padding: 0; }
.info dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; }
.info dt { font-weight: 800; color: var(--brown-dark); }
.info dd { margin: 0; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* Fasce alternate */
.band-yellow { background: var(--yellow-soft); }
.band-paper { background: var(--paper); border-top: 0.0625rem solid var(--line); border-bottom: 0.0625rem solid var(--line); }

/* Orari */
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 0.0625rem solid var(--line); border-radius: var(--radius); background: var(--paper); }
.hours { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
.hours th, .hours td { padding: .65rem .85rem; text-align: left; border-bottom: 0.0625rem solid var(--line); }
.hours thead th { color: var(--cream); background: var(--brown); font-weight: 800; }
.hours tbody tr:last-child th, .hours tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { background: var(--paper); border-top: 0.0625rem solid var(--line); }
.faq h2 { margin-top: 0; }
.faq__item { border-bottom: 0.0625rem solid var(--line); padding: .3rem 0; max-width: 50rem; }
.faq__item summary { cursor: pointer; font-weight: 800; padding: .75rem 0; color: var(--brown-dark); }
.faq__item summary::marker { color: var(--turq); }
.faq__item p { margin: 0 0 .9rem; }

/* Indice delle pagine e "Vedi anche" */
.link-list { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; gap: .35rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.link-list a { text-decoration: none; font-weight: 600; }
.link-list a:hover { text-decoration: underline; }
.link-list--narrow { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.brief { padding-top: 0; }
.brief__title { font: 400 1.6rem/1.2 var(--script); color: var(--brown-dark); margin-bottom: .5rem; }

/* Footer: marrone scuro, titoli gialli */
.site-footer { background: var(--brown-dark); color: var(--cream); position: relative; overflow: hidden; border-top: 0.3125rem solid var(--turq); }
.site-footer .texture { color: var(--yellow); }
.site-footer .texture span { opacity: .05; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 2.8rem 1rem 1.6rem; display: grid; gap: 1.8rem; position: relative; z-index: 1; }
@media (min-width: 52rem) { .site-footer__inner { grid-template-columns: 1.3fr 1.4fr 1fr; } }
.site-footer__logo svg { width: 12rem; height: auto; color: var(--cream); }
.site-footer__brand { font-weight: 800; margin: .6rem 0 .5rem; }
.site-footer__head { font: 400 1.6rem/1 var(--script); color: var(--yellow); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; columns: 2; column-gap: 1.2rem; }
.site-footer li { margin-bottom: .35rem; break-inside: avoid; }
.site-footer p { margin-bottom: .45rem; }
.site-footer__legal { border-top: 0.0625rem solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.site-footer__legal p { max-width: var(--wrap); margin: 0 auto; padding: 1rem; font-size: .85rem; opacity: .8; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Home: sezione "tutta la giornata": 4 parole giganti alternate sinistra/destra,
   ognuna con i suoi punti sotto, tutto animato da home.js */
.center { text-align: center; }
.section--tight { padding-top: 0; }
.day { overflow: hidden; padding: 3rem 0 11rem; }
.day__words .words__w { font-size: clamp(2.9rem, 12.9vw, 10.4rem); }
.day__words .words__w--r { padding-right: .12em; }   /* la coda del corsivo non esce dalla colonna */
.day__title { margin: 0 0 1rem; }
.day__row { max-width: var(--wrap); margin: 0 auto 3rem; padding: 0 1rem; }   /* stessa colonna della navbar */
.day__words { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: .3em; white-space: nowrap; }
.words__w { display: inline-block; font: 400 clamp(2.6rem, 11.5vw, 10rem)/1 var(--brush); will-change: transform; }
.words__w--c0 { color: var(--brown-dark); }
.words__w--c1 { color: var(--turq); }
.words__w--c2 { color: var(--brown); }
.words__w--c3 { color: #c9951c; }

.day__cols { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-top: .6rem; }
@media (min-width: 48rem) { .day__cols { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; align-self: start; }
.points--r { align-items: flex-end; }
.points li { position: relative; width: 100%; max-width: 21rem; min-height: 7.6rem; display: flex; flex-direction: column; justify-content: center; }
.points--r li { align-items: flex-end; }
.nw { white-space: nowrap; }
.points--r li { text-align: right; }
/* Icona in filigrana: grande, spessa, molto trasparente, sotto la fine del
   testo (verso il centro della pagina), sempre nella stessa posizione. */
.points__ico { position: absolute; top: 50%; right: -.4rem; width: 7.6rem; height: 7.6rem; transform: translateY(-50%); opacity: .13; pointer-events: none; z-index: 0; }
.points--r .points__ico { right: auto; left: -.4rem; }
.points__ico .ico { width: 100%; height: 100%; stroke-width: 2.1; }
.points__ico--c0 { color: var(--brown-dark); }
.points__ico--c1 { color: var(--turq); }
.points__ico--c2 { color: var(--brown); }
.points__ico--c3 { color: #c9951c; }
.points__text { position: relative; z-index: 1; }
/* Titolo del punto: stesso corsivo pieno e stesso colore della parola gigante */
.points h3 { margin: 0 0 .1rem; font: 400 clamp(2.2rem, 7vw, 2.4rem)/1.1 var(--brush); }
.points h3 a { text-decoration: none; color: inherit; }
.points--c0 h3 { color: var(--brown-dark); }
.points--c1 h3 { color: var(--turq); }
.points--c2 h3 { color: var(--brown); }
.points--c3 h3 { color: #c9951c; }
.points h3 a .ico { width: 1.1rem; height: 1.1rem; margin-left: .3rem; vertical-align: .05em; stroke-width: 2.4; transition: transform .15s; }
.points--r h3 a .ico { margin: 0 .3rem 0 0; }
.points h3 a:hover .ico { transform: translateX(0.1875rem); }
.points--r h3 a:hover .ico { transform: translateX(-0.1875rem); }
.points p { color: var(--muted); margin: 0; line-height: 1.55; }
.fun { font: 400 1.45rem/1.2 var(--script); color: var(--turq-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.fun:hover { color: var(--turq); }
.fun .ico { width: 1rem; height: 1rem; }
@media (max-width: 39.99rem) { .points li { max-width: none; } }

/* Riga "in breve" e "vedi anche" in fondo alle pagine interne */
.strip { border-top: 0.0625rem solid var(--line); padding: 1.4rem 0 2rem; font-size: .95rem; color: var(--muted); }
.strip p { margin: 0 0 .4rem; }
.strip strong { color: var(--brown-dark); }
.strip a { font-weight: 600; }

/* Home: mappa illustrata "come arrivare" (php/includes/map-svg.php) */
.map-wrap { margin: 1.2rem auto 0; max-width: 62rem; }
.map { display: block; width: 100%; height: auto; }
.map-wrap figcaption { text-align: center; color: var(--muted); font-size: .95rem; max-width: 46rem; margin: .9rem auto 0; }
.center-actions { justify-content: center; }
.map__vine path { fill: #e2ebcb; stroke: none; }
.map__river path { fill: none; stroke: #b9dde6; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.map__rail path { fill: none; stroke: #cfc6b8; stroke-width: 1.6; stroke-dasharray: 6 4; }
.map__minor path { fill: none; stroke: #e7dccb; stroke-width: 2.4; stroke-linecap: round; }
.map__major path { fill: none; stroke: #dccbb1; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map__motorway path { fill: none; stroke: #b9a383; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.map__cycle path { fill: none; stroke: var(--turq); stroke-width: 3; stroke-dasharray: 1 6; stroke-linecap: round; }
.map__shield rect { fill: var(--brown); }
.map__shield text { font-size: 1rem; font-weight: 800; fill: #fff; stroke: none !important; }
.map__ss12 path { fill: none; stroke: var(--yellow); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.map__route { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.map__route--egna { stroke: var(--brown); }
.map__route--ora { stroke: #c9951c; }
.map__route--a22 { stroke: var(--turq); }
.map__dot circle { stroke: #fff; stroke-width: 3; }
.map__dot--egna circle { fill: var(--brown); }
.map__dot--ora circle { fill: #c9951c; }
.map__dot--a22 circle { fill: var(--turq); }
.map__dot--cycle circle { fill: var(--turq-light); stroke: var(--turq); stroke-width: 2.5; }
.map text { font-family: var(--sans); paint-order: stroke; stroke: #fbf8f2; stroke-width: 0.3125rem; stroke-linejoin: round; }
.map__k { font-size: 1.1875rem; font-weight: 800; fill: var(--brown-dark); }
.map__v { font-size: 1.0625rem; font-weight: 700; fill: var(--turq-dark); }
.map__label--egna .map__v { fill: var(--brown); }
.map__label--ora .map__v { fill: #a87a10; }
.map__road { font-size: 0.9375rem; font-weight: 800; fill: #8a6410; letter-spacing: .04em; dominant-baseline: middle; }
.map__place text { font-size: 0.9375rem; font-weight: 600; fill: #a39582; }
.map__home-halo { fill: var(--yellow); opacity: .25; }
.map__home-pin { fill: var(--brown-dark); stroke: #fff; stroke-width: 2.5; }
.map__home-dot { fill: var(--yellow); }
.map__home-name { font-family: var(--script) !important; font-size: 2.5rem; fill: var(--brown-dark); stroke-width: 0.4375rem !important; }
@media (max-width: 40rem) {
  .map__k { font-size: 2.125rem; }
  .map__v { font-size: 1.875rem; }
  .map__road { font-size: 1.5rem; }
  .map__place { display: none; }
  .map__home-name { font-size: 3.625rem; }
  .map__shield { transform-box: fill-box; }
}


/* Hero: orario, telefono grande, frecce che invitano a scorrere */
.hero__open { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; margin: 1.2rem 0 .3rem; }
.hero__open .ico { width: 1.5rem; height: 1.5rem; stroke-width: 2.2; }
.hero__open strong { font-weight: 800; }
.hero__open span { font-weight: 600; opacity: .8; }
.hero__tel { display: inline-flex; align-items: center; gap: .2em; font: 400 clamp(2.1rem, 5vw, 3.3rem)/1.1 var(--script); -webkit-text-stroke: .03em currentColor; color: var(--brown-dark); text-decoration: none; letter-spacing: -.01em; }
.hero__tel .ico { width: .85em; height: .85em; stroke-width: 2.2; color: var(--turq-dark); -webkit-text-stroke: 0; }
.hero__tel:hover { color: var(--turq-dark); }
.hero { --edge: max(1rem, calc((100vw - var(--wrap)) / 2 + 1rem)); }   /* bordo destro della colonna, come navbar */
.hero__scroll { position: absolute; right: var(--edge); bottom: 2.2rem; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__scroll span { width: 1.65rem; height: 1.65rem; border-right: 0.25rem solid var(--brown-dark); border-bottom: 0.25rem solid var(--brown-dark); transform: rotate(45deg); margin-top: -.55rem; opacity: 0; animation: scrollhint 1.6s infinite; }
.hero__scroll span:nth-child(2) { animation-delay: .2s; }
.hero__scroll span:nth-child(3) { animation-delay: .4s; }
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(-0.375rem) rotate(45deg); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(0.375rem) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; opacity: .7; } }

/* Immagini attaccate alla mappa: sopra con il bordo superiore bombato, sotto con quello inferiore */
.map-photo { position: relative; aspect-ratio: 2.4 / 1; overflow: hidden; background: var(--beige); }
.map-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Bordo a punta come sotto la navbar: in alto rovesciato (punta su), in basso normale (punta giu') */
.map-photo { --tip: 3.75rem; --tip-x: 20%; }
@media (min-width: 56.25rem) { .map-photo { --tip: 5.625rem; } }
.map-photo--top { clip-path: polygon(0 var(--tip), var(--tip-x) 0, 100% var(--tip), 100% 100%, 0 100%); }
.map-photo--bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tip)), var(--tip-x) 100%, 0 calc(100% - var(--tip))); }
.map-photo span { position: absolute; left: 50%; transform: translateX(-50%); background: #fff; color: var(--brown-dark); font: 400 clamp(1.1rem, 2.6vw, 1.6rem)/1.2 var(--script); padding: .35rem 1.1rem; border-radius: 62.4375rem; white-space: nowrap; }
.map-photo--top span { bottom: 1rem; }
.map-photo--bottom span { top: 1rem; }

/* Home: terrazza, post stile Instagram a sinistra e momenti a destra */
.terrace__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .terrace__grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.igpost { background: #fff; border: 0.0625rem solid var(--line); border-radius: 0.625rem; overflow: hidden; box-shadow: 0 0.625rem 1.875rem rgba(67,48,31,.08); max-width: 34rem; }
.igpost__head { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; }
.igpost__logo svg { width: 6.2rem; height: auto; display: block; color: var(--brown-dark); }
.igpost__check { display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--turq); color: #fff; }
.igpost__check .ico { width: .75rem; height: .75rem; stroke-width: 3; }
.igpost__place { margin-left: auto; font-size: .82rem; color: var(--muted); font-weight: 600; }
.igpost__photo { aspect-ratio: 1 / 1; background: var(--beige); }
.igpost__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igpost__foot { padding: .7rem .9rem 1rem; }
.igpost__icons { display: flex; gap: .9rem; color: var(--brown-dark); margin-bottom: .5rem; }
.igpost__icons .ico { width: 1.5rem; height: 1.5rem; }
.igpost__icons > .ico:first-child { transition: color .2s, fill .2s; }
.igpost.is-liked .igpost__icons > .ico:first-child { color: #e0245e; fill: #e0245e; }
.igpost__icons .ico { overflow: visible; }
.igpost__photo { position: relative; }
.igpost__bigheart { position: absolute; left: 50%; top: 50%; width: 32%; height: auto; margin: -16% 0 0 -16%; fill: #fff; color: #fff; opacity: 0; filter: drop-shadow(0 0.25rem 0.75rem rgba(0,0,0,.25)); pointer-events: none; }
.igpost__save { margin-left: auto; }
.igpost__foot p { margin: 0; font-size: .95rem; }
.terrace__text h2 { margin-top: 0; }
.terrace__lead { font-size: 1.15rem; font-weight: 600; color: var(--brown); }
.terrace__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; }
.terrace__list li { display: flex; gap: 1rem; align-items: flex-start; }
.terrace__ico { flex: none; display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--yellow-soft); color: var(--brown-dark); }
.terrace__ico .ico { width: 1.5rem; height: 1.5rem; }
.terrace__list a { font: 400 1.7rem/1.1 var(--brush); color: var(--turq-dark); text-decoration: none; }
.terrace__list a .ico { width: 1rem; height: 1rem; stroke-width: 2.4; }
.terrace__list p { margin: .15rem 0 0; color: var(--muted); }

.terrace { overflow: hidden; }

/* Home: eventi, griglia di foto su due righe sfalsate (larga+stretta, stretta+larga) */
.events__lead { font-size: 1.15rem; font-weight: 600; color: var(--brown); max-width: 40rem; margin: 0 auto 2rem; }
.events__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: .8rem; width: calc(100vw - 1.6rem); margin-left: calc(50% - 50vw + .8rem); }   /* esce dai margini: bordo = gap */
.events__tile { position: relative; display: block; aspect-ratio: auto; height: clamp(9.5rem, 22vw, 16rem); background: var(--beige); overflow: hidden; text-decoration: none; }
.events__tile:nth-child(odd) { background: #efe3cc; }
.events__tile--1 { grid-column: span 6; }
.events__tile--2 { grid-column: span 4; }
.events__tile--3 { grid-column: span 4; }
.events__tile--4 { grid-column: span 6; }
.events__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.events__tile span { position: absolute; left: .9rem; bottom: .8rem; background: #fff; color: var(--brown-dark); padding: .3rem .9rem; border-radius: 62.4375rem; font: 400 1.35rem/1.2 var(--script); }
.events__tile span .ico { width: .9rem; height: .9rem; stroke-width: 2.4; color: var(--turq); }
@media (max-width: 40rem) { .events__tile--1, .events__tile--4 { grid-column: span 10; } .events__tile--2, .events__tile--3 { grid-column: span 5; } }

/* Home: accoglienza */

/* Accoglienza: fondo marrone, righe basse con foto a sinistra sfalsate e testo a destra */
.welcome { background: var(--brown-dark); color: #fff; overflow: hidden; }
.welcome h2 { color: #fff; }
.welcome__lead { color: #efe4d4; max-width: 36rem; margin: 0 auto 2rem; }
.welcome__rows { display: grid; gap: 0; max-width: 56rem; margin: 0 auto; }
.welcome__row { display: grid; grid-template-columns: 20rem 1fr; gap: 3rem; align-items: center; margin-top: -1.5rem; }
.welcome__row:first-child { margin-top: 0; }
.welcome__pic { width: 11rem; }
.welcome__row:nth-child(2) .welcome__pic { justify-self: end; }
.welcome__pic img { display: block; width: 100%; height: auto; }
.welcome__ico { display: grid; place-items: center; aspect-ratio: 1; width: 100%; color: #e8d6b8; }
.welcome__ico .ico { width: 85%; height: 85%; stroke-width: 1; }
.welcome__txt a { display: inline-flex; align-items: center; gap: .5rem; font: 400 clamp(1.8rem, 3.5vw, 2.4rem)/1.1 var(--brush); color: #fff; text-decoration: none; }
.welcome__txt a .ico { width: 1.3rem; height: 1.3rem; stroke-width: 2.4; color: var(--yellow); }
.welcome__txt a:hover { color: var(--yellow); }
.welcome__txt p { color: #efe4d4; margin: .2rem 0 0; line-height: 1.45; }
@media (max-width: 40rem) {
  .welcome__row { grid-template-columns: 9.5rem 1fr; gap: 1rem; margin-top: .8rem; }
  .welcome__pic { width: 6.5rem; }
}
}
/* Eccellenza: testo a sinistra, recensioni a "C" a destra che girano */
.excel { position: relative; overflow: hidden; background: var(--paper, #fbf8f2); }
.excel__bg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-15deg); font: 400 clamp(8rem, 30vw, 28rem)/1 var(--brush); color: var(--brown-dark); opacity: .06; white-space: nowrap; pointer-events: none; }
.excel__grid { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.excel__text h2 { margin-top: 0; }
.excel__text p { color: var(--muted); font-size: 1.1rem; }
.excel__text .btn .ico { width: 1.1rem; height: 1.1rem; }
.excel__stage { --cw: 16.5rem; --ch: 12rem; --g: 1rem; position: relative; height: calc(var(--ch) * 3 + var(--g) * 2); }
.rev { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); margin: 0; padding: 1rem; box-sizing: border-box; background: #fff; border-radius: 0.75rem; box-shadow: 0 .5rem 1.5rem rgba(26,21,18,.16); text-align: center; overflow: hidden; opacity: 0; }
.rev__av { display: flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; margin: 0 auto .4rem; border-radius: 50%; color: #fff; font-weight: 800; font-size: 1.15rem; }
.rev__av--0 { background: var(--turq); } .rev__av--1 { background: #d9774b; } .rev__av--2 { background: var(--yellow); } .rev__av--3 { background: var(--brown); } .rev__av--4 { background: #5b8fd6; }
.rev figcaption { font-weight: 800; color: var(--brown-dark); }
.rev__stars { display: block; color: #f3b563; letter-spacing: .1rem; margin: .1rem 0 .3rem; }
.rev blockquote { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--brown); }
.excel__qr { display: inline-grid; margin-top: 1.5rem; text-decoration: none; }
.excel__qr img { width: 0; min-width: 100%; height: auto; image-rendering: pixelated; }
.excel__qr span { font: 400 1.7rem/1.1 var(--script); color: var(--brown-dark); margin-top: .4rem; white-space: nowrap; }
@media (max-width: 56.25rem) {
  .excel__grid { grid-template-columns: 1fr; }
  .excel__stage { --ch: 10.5rem; --g: .6rem; }
  .excel__stage { --ch: 11rem; }
  .rev { padding: .6rem; }
  .rev__av { width: 2.1rem; height: 2.1rem; font-size: .9rem; }
  .rev figcaption { font-size: .85rem; }
  .rev__stars { font-size: .8rem; }
  .rev blockquote { font-size: .74rem; line-height: 1.35; }
}
/* Orari + prenota: testo a sinistra, tre post a triangolo a destra */
.openbook { overflow: hidden; }
.openbook__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.openbook__hours { font: 400 clamp(3.5rem, 8vw, 6.5rem)/1 var(--brush); color: var(--turq-dark); margin: .2rem 0; white-space: nowrap; }
.openbook__days { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--script); color: var(--brown-dark); margin: 0 0 .6rem; }
.openbook__kitchen { display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.openbook__kitchen .ico { width: 1.2rem; height: 1.2rem; color: var(--turq); }
.openbook__text h3 { font: 400 1.9rem/1.1 var(--script); color: var(--brown-dark); margin: 1.8rem 0 .2rem; }
.openbook__tel { display: inline-block; font: 400 clamp(2.2rem, 4.5vw, 3rem)/1.1 var(--brush); color: var(--brown-dark); text-decoration: none; margin-bottom: .8rem; }
.openbook__tri { --w: 17.5rem; --g: 1.2rem; display: grid; grid-template-columns: var(--w) var(--w); gap: var(--g); justify-content: center; margin-right: calc(-1 * max(1rem, (100vw - var(--wrap)) / 2 + 1rem)); padding-bottom: calc(var(--w) * .85); }
.openbook__post { max-width: none; }
.openbook__post .igpost__photo { aspect-ratio: 16 / 10; }
.openbook__post .igpost__logo svg { width: 4.5rem; }
.openbook__post .igpost__foot p { font-size: .82rem; }
.openbook__post .igpost__icons .ico { width: 1.65rem; height: 1.65rem; }
.openbook__post .igpost__icons { gap: 1rem; }
.openbook__post--0 { grid-column: 1 / span 2; width: var(--w); margin-left: calc((var(--w) + var(--g)) * 2 / 3); }
.openbook__post--2 { margin-top: calc(var(--w) * .5); margin-bottom: calc(var(--w) * -.5); }
.openbook__motto { text-align: center; font: 400 1.4rem/1.2 var(--script); color: var(--muted); margin: 1.5rem 0 0; }
@media (max-width: 56.25rem) {
  .openbook__grid { grid-template-columns: 1fr; }
  .openbook__tri { --w: min(12rem, 47vw); --g: .6rem; margin-right: -1rem; justify-content: center; }
}
/* Cucina tipica: 2 colonne x 3 righe, foto tonde e post alternati */
.dishes__lead { color: var(--muted); max-width: 38rem; margin: 0 auto 2.5rem; }
.dishes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; max-width: 60rem; margin: 0 auto; }
.dish { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: center; }
.dish__round { width: 11rem; aspect-ratio: 1; border-radius: 50%; background: var(--beige); justify-self: center; box-shadow: 0 0.625rem 1.875rem rgba(67,48,31,.12); }
.dish__post { max-width: none; }
.dish__post .igpost__logo svg { width: 4.2rem; }
.dish__post .igpost__icons { margin: 0; }
.dish__post .igpost__icons .ico { width: 1.3rem; height: 1.3rem; }
.dish__post .igpost__foot { padding: .5rem .7rem; }
.dish__txt h3 { font: 400 clamp(1.8rem, 3vw, 2.3rem)/1.1 var(--brush); color: var(--brown-dark); margin: 0 0 .3rem; }
.dish__txt p { color: var(--muted); margin: 0; }
.dishes__more { margin: 2.5rem 0 0; }
.dishes__more .btn .ico { width: 1.2rem; height: 1.2rem; }
@media (max-width: 50rem) {
  .dishes__grid { grid-template-columns: 1fr; gap: 2rem; }
  .dish { grid-template-columns: 9rem 1fr; gap: 1rem; }
  .dish__round { width: 8rem; }
}
.excel__grid--solo { grid-template-columns: 1fr; max-width: 40rem; text-align: center; } .excel__grid--solo .excel__qr { margin-inline: auto; }

/* Hero alta quasi tutto lo schermo: sotto si legge solo il titolo della sezione dopo */
.hero { min-height: calc(100svh - var(--hdr, 6rem) - 8rem); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 43.75rem) {
  .hero { min-height: calc(100svh - var(--hdr, 6rem) - 7rem); }
  .section { padding: 6rem 0; }
  .terrace__grid { gap: 5rem; }
}
/* Piatti: nei post nome e descrizione stanno nella didascalia */
.dish--p { grid-template-columns: 1fr; }
.dish--p .dish__post { max-width: none; width: 100%; justify-self: center; }
.dish__post .igpost__photo { aspect-ratio: 16 / 8; }
.dish__post .igpost__foot p { margin: .4rem 0 0; font-size: .9rem; line-height: 1.4; }
.dish__post .igpost__foot b { font: 400 1.35rem/1 var(--brush); color: var(--brown-dark); }
.dish__post .igpost__more { color: var(--muted); font-size: .82rem; margin-top: .25rem; }
/* Parcheggio: post unico su sfondo marrone (overlay come alla Villa), icona P
   che spunta da dietro il post a destra, inclinata di 30 gradi */
.bigbg { background: linear-gradient(rgba(38,25,20,.62), rgba(38,25,20,.62)), var(--brown-dark) center / cover; }
.parking { padding: 2.5rem 0; }
.getthere h2 { color: #fff; }
.getthere .map-wrap figcaption { color: #efe4d4; }
.getthere .map-wrap figcaption a { color: #fff; }
.getthere .btn:not(.btn--primary) { color: #fff; border-color: #fff; }
.parking__wrap { position: relative; max-width: 29rem; margin: 0 auto; }
.parking__post { position: relative; z-index: 1; max-width: none; border: 0; box-shadow: 0 1.25rem 3.125rem rgba(0,0,0,.35); }
.parking__post .igpost__photo { aspect-ratio: 1400 / 1004; }
.parking__post .igpost__foot p { color: var(--brown-dark); }
.parking__post .parking__credit { font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.parking__ico { position: absolute; z-index: 0; right: -5.6rem; top: 50%; width: 8rem; height: 8rem; margin-top: -4rem; color: var(--yellow); transform: rotate(30deg); }
.parking__ico .ico { width: 100%; height: 100%; stroke-width: 1.6; }
@media (max-width: 37.5rem) { .parking__wrap { max-width: 82%; } .parking__ico { width: 5.5rem; height: 5.5rem; margin-top: -2.75rem; right: -2.8rem; } }
/* Come arrivare da computer: foto a sinistra e a destra della mappa, punta
   sul lato esterno; sezione piu' larga (meta' del margine laterale) */
@media (min-width: 56.25rem) {
  /* le foto (senza la punta) partono dal margine della navbar; la punta (5.625rem) va oltre */
  .getthere .wrap { max-width: none; padding: 0 max(0rem, max(1rem, (100vw - var(--wrap)) / 2 + 1rem) - 5.625rem); }
  /* mappa quadrata alta come prima (3.3/5.3 della larghezza x 775/1000):
     tagliata ai lati, lo spazio in piu' va alle due foto */
  .map-wrap { --mw: calc((100vw - 2 * max(0rem, max(1rem, (100vw - var(--wrap)) / 2 + 1rem) - 5.625rem)) * 3.3 / 5.3 * .775); max-width: none; display: grid; grid-template-columns: 1fr var(--mw) 1fr; align-items: stretch; }
  .map-wrap > .map { width: var(--mw); height: var(--mw); }
  .map-wrap > figcaption { max-width: var(--wrap); margin-inline: auto; }
  .map-wrap > .map, .map-wrap > svg { grid-column: 2; grid-row: 1; }
  .map-wrap > figcaption { grid-column: 1 / -1; }
  .map-photo { aspect-ratio: auto; grid-row: 1; --tip-y: 20%; }
  .map-photo--top { --tip-y: 80%; grid-column: 1; clip-path: polygon(var(--tip) 0, 100% 0, 100% 100%, var(--tip) 100%, 0 var(--tip-y)); }
  .map-photo--bottom { grid-column: 3; clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% var(--tip-y), calc(100% - var(--tip)) 100%, 0 100%); }
}

/* Mappa come una finestra del Mac: barra con i tre pallini (solo da computer),
   angoli tondi, bordo e ombra. Google Maps in basso a destra dentro la finestra. */
.map-wrap { position: relative; }
.mac-bar { display: none; }
.map-wrap__gmaps { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; box-shadow: 0 0.375rem 1.125rem rgba(0,0,0,.25); }
@media (min-width: 56.25rem) {
  /* finestra stile Chrome moderno che segue la forma: barra larga quanto il
     bordo superiore delle foto (rientra di --tip), ombra che segue i tagli */
  /* "navbar" della mappa: barra bianca dentro il riquadro, tagliata con la
     stessa forma delle foto (clip-path sul riquadro); l'ombra sta sul .wrap
     perche' clip-path taglierebbe anche l'ombra */
  .map-shadow { filter: drop-shadow(0 1.375rem 2.5rem rgba(0,0,0,.45)); }
  .map-wrap { --tip: 5.625rem; clip-path: polygon(var(--tip) 0, calc(100% - var(--tip)) 0, 100% 20%, calc(100% - var(--tip)) 100%, var(--tip) 100%, 0 80%); }
  .mac-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; height: 2.3rem; background: #fff; }
  .mac-bar__url { display: flex; align-items: center; gap: .4rem; width: 100%; max-width: 22rem; height: 1.55rem; padding: 0 .8rem; background: #f6efe2; border-radius: 62.4375rem; font: 500 .78rem var(--sans); color: #6b5a48; }
  .mac-bar__url .ico { width: .85rem; height: .85rem; color: var(--turq); }
  .mac-bar__dots { position: absolute; left: calc(var(--tip) + .6rem); top: 50%; transform: translateY(-50%); display: flex; gap: 0.4375rem; }
  .mac-bar__dots i { width: 0.6875rem; height: 0.6875rem; border-radius: 50%; background: #ff5f57; }
  .mac-bar__dots i:nth-child(2) { background: #febc2e; }
  .mac-bar__dots i:nth-child(3) { background: #28c840; }
  .mac-bar__time { position: absolute; right: calc(var(--tip) + .8rem); top: 50%; transform: translateY(-50%); font: 600 .74rem var(--sans); color: #6b5a48; white-space: nowrap; }
  .map-wrap > .map, .map-wrap > svg, .map-photo { grid-row: 1; }
  .map-wrap__gmaps { right: calc(var(--tip) + 1rem); bottom: 1.5rem; }
}
@media (max-width: 56.1875rem) { .map-wrap__gmaps { position: static; display: inline-flex; margin: 1rem auto 0; } .map-wrap { text-align: center; } }

/* Telefono: tutto in rem, quindi basta ridurre la base per rimpicciolire tutto;
   la scritta Bar · Ristorante... va sopra il logo */
@media (max-width: 37.5rem) {
  html { font-size: 87.5%; }
  .brand { flex-direction: column-reverse; }
  .brand__sub { margin: 0 0 .3rem; }
}
/* Telefono: punti della giornata molto piu' vicini (le icone in filigrana
   possono sovrapporsi un poco) */
@media (max-width: 47.99rem) {
  .day__cols { gap: .8rem; margin-top: .3rem; }
  .points { gap: .45rem; }
  .points li { min-height: 6rem; margin-bottom: 0; }
}
@media (max-width: 47.99rem) { .day__words { gap: .06em; justify-content: center; } }
@media (max-width: 56.24rem) { .excel__qr { display: grid; justify-items: center; width: fit-content; margin-inline: auto; } .excel__qr span { text-align: center; } }

/* Recensioni: due colonne sempre intere dentro lo schermo */
.rev { width: calc((100% - var(--g)) / 2); }
/* Piu' aria tra le sezioni della home (computer e telefono) */
main > section + section, main > section + div, main > div + section { margin-top: 15vh; }
.dishes__grid { justify-items: start; }
.dish--p .dish__post, .dish__round { justify-self: start; }
.dish--p .dish__post { justify-self: stretch; }
/* Segnaposto foto: luccichio finche' l'immagine non e' caricata (o se manca) */
.igpost__photo, .map-photo, .events__tile, .dish__round { position: relative; overflow: hidden; }
.igpost__photo::after, .map-photo::after, .events__tile::after, .dish__round::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 1.6s ease-in-out infinite;
}
.is-loaded::after { display: none; }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .igpost__photo::after, .map-photo::after, .events__tile::after, .dish__round::after { animation: none; } }
