/* DA CANDIDO - Stile del sito
   Colori: verde vigneto, crema, terracotta. Titoli Cormorant Garamond
   (ospitato sul sito), testo nei font di sistema. Mobile first. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/public/fonts/CormorantGaramond-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/public/fonts/CormorantGaramond-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #2f3d2a;
  --green-2: #4a5d3f;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --terra: #b5532f;
  --terra-dark: #8f3f22;
  --ink: #24221f;
  --muted: #6b665d;
  --line: #e2d9c8;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); text-underline-offset: .18em; }
a:hover { color: var(--terra); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--green); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: 1.4em; }
h3 { font-size: 1.45rem; }
p, ul, ol { margin: 0 0 1em; }
.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: -999px; }
.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; }
.section { padding: 2.5rem 0; }
.prose { max-width: 44rem; }

/* Avviso sito in costruzione + riquadri "da completare" */
.dev-banner { background: #f3d36b; color: #3a2e00; text-align: center; font-size: .9rem; padding: .35rem 1rem; }
.todo { background: #fff6cc; border: 1px dashed #c9a400; color: #4d3d00; padding: .7rem 1rem; border-radius: 8px; font-size: .95rem; }

/* Header */
.site-header { background: var(--green); color: var(--cream); position: sticky; top: 0; z-index: 20; }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--cream); text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand:hover { color: #fff; }
.brand__name { font-family: var(--serif); font-size: 1.9rem; }
.brand__sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .2s, opacity .2s; }
.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); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--green); padding: .5rem 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.12); }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--cream); text-decoration: none; display: block; padding: .6rem 0; }
.nav a[aria-current="page"] { color: #f0b08f; }
.lang { display: flex; gap: .5rem; margin-top: .6rem; }
.nav .lang a { display: inline-block; padding: .2rem .55rem; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; font-size: .85rem; }
.nav .lang a[aria-current="true"] { background: var(--cream); color: var(--green); }
@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .nav { display: flex !important; position: static; padding: 0; border: 0; align-items: center; gap: 1.4rem; background: none; }
  .nav ul { display: flex; gap: 1.3rem; }
  .nav a { padding: .3rem 0; font-size: .97rem; }
  .lang { margin: 0; }
}

/* Hero home */
.hero { background: var(--green); color: var(--cream); position: relative; overflow: hidden; }
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1rem 7.5rem; position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { max-width: 36rem; font-size: 1.12rem; opacity: .92; }
.hero__hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 9rem; }
.hero .btn { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn--primary { background: var(--terra); border-color: var(--terra); }
@media (min-width: 48rem) { .hero__inner { padding: 5rem 1rem 9rem; } }

/* Intestazione pagine interne */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 2.2rem; padding-bottom: 1.6rem; }
.page-head p { color: var(--muted); max-width: 44rem; font-size: 1.1rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.crumbs a { color: var(--muted); }

/* Pulsanti */
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--green); color: var(--green); text-decoration: none; font-weight: 600; font-size: .98rem;
  background: transparent; transition: background .15s, color .15s;
}
.btn:hover { background: var(--green); color: var(--cream); }
.btn--primary { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: #fff; }

/* Schede servizi */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 1.5rem 0; padding: 0; list-style: none; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.card h3 { margin: 0; display: flex; align-items: center; gap: .5rem; }
.card h3 .ico { color: var(--terra); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card a.more { margin-top: auto; padding-top: .5rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }

/* Riquadro info (indirizzo, telefono) */
.info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.info dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.info dt { font-weight: 600; color: var(--green); }
.info dd { margin: 0; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* Orari */
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px 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: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.hours thead th { color: var(--green); font-weight: 600; }
.hours tbody tr:last-child th, .hours tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq h2 { margin-top: 0; }
.faq__item { border-bottom: 1px solid var(--line); padding: .3rem 0; max-width: 48rem; }
.faq__item summary { cursor: pointer; font-weight: 600; padding: .7rem 0; color: var(--green); }
.faq__item p { margin: 0 0 .9rem; }

/* Footer */
.site-footer { background: var(--green); color: var(--cream); margin-top: 0; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1rem 1.5rem; display: grid; gap: 1.8rem; }
@media (min-width: 52rem) { .site-footer__inner { grid-template-columns: 1.3fr 1.4fr 1fr; } }
.site-footer__brand { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .4rem; }
.site-footer__head { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; opacity: .75; }
.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: 1px solid rgba(255,255,255,.14); }
.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; } }

/* Indice delle pagine (pagina "Il locale") 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; }
.link-list a:hover { text-decoration: underline; }
.related { margin-top: 1.5rem; color: var(--muted); font-size: .97rem; }
