/* CHANTÉN — sito. Layout: pagine editoriali con foto grandi a tutta colonna, titoli serif con una riga in corsivo nocciola, fasce crema alternate e una fascia cioccolato per le citazioni. Un solo tema chiaro, scelto per il marchio. */
:root {
  --bg: #faf7f0;
  --bg2: #f4ede1;
  --ink: #2c211b;
  --brown: #45322a;
  --muted: #6f5d52;
  --accent: #8c6d52;
  --gold: #c4a265;
  --line: #e4d9c6;
  --on-brown: #f6efe2;
  --font-display: "Gelasio", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html.lock { overflow: hidden; }
::selection { background: var(--gold); color: var(--ink); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-weight: 400; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 50; }
a { color: inherit; }
p { margin: 0; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--brown); color: var(--on-brown); padding: 10px 16px; z-index: 80; text-decoration: none; font-size: .85rem; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 9vw, 5.8rem); line-height: 1; letter-spacing: -.035em; }
h2 { font-size: clamp(2.2rem, 5.6vw, 3.7rem); line-height: 1.05; letter-spacing: -.03em; }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.015em; }
em { font-style: italic; color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 18px; font-size: .74rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.eyebrow.line::before { content: ""; width: 50px; height: 1px; background: var(--gold); flex: none; }
.lead { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.65; color: var(--muted); max-width: 34em; }
.prose { display: flex; flex-direction: column; gap: 20px; }
.prose p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.75; color: var(--muted); max-width: 34em; }

/* Bottoni e link */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; text-decoration: none; cursor: pointer; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2; padding: 20px 24px; border: 1px solid var(--brown); background: var(--brown); color: var(--on-brown); transition: background .25s, color .25s; }
.btn:hover { background: transparent; color: var(--brown); }
.btn.sm { padding: 14px 20px; gap: 14px; font-size: .7rem; }
.btn.ghost { background: transparent; color: var(--brown); }
.btn.ghost:hover { background: var(--brown); color: var(--on-brown); }
.btn.light { background: var(--on-brown); color: var(--brown); border-color: var(--on-brown); }
.btn.light:hover { background: transparent; color: var(--on-brown); }
.btn svg, .tlink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; }
.tlink { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--gold); }
.tlink:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; }

/* Intestazione */
.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: block; width: 128px; height: auto; }
.menu-btn { width: 52px; height: 52px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.menu-btn:hover { border-color: var(--gold); }
.menu-btn i { display: block; width: 24px; height: 7px; border-block: 1.5px solid var(--ink); }
.site-nav { display: none; gap: 32px; }
.site-nav a { text-decoration: none; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-block: 8px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }

/* Menu mobile */
.menu { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.menu .wrap { display: flex; flex-direction: column; flex: 1; }
.menu-top { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.menu nav { margin-block: auto; padding-block: 24px; display: flex; flex-direction: column; }
.menu nav a { font-family: var(--font-display); font-size: clamp(2.1rem, 8vw, 3.6rem); letter-spacing: -.03em; line-height: 1.1; text-decoration: none; padding-block: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.menu nav a span { font-family: var(--font-body); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-align: right; }
.menu nav a:hover, .menu nav a[aria-current] { font-style: italic; color: var(--accent); }
.menu small { display: block; padding-bottom: 28px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Foto */
.pic { margin: 0; position: relative; overflow: hidden; background: var(--bg2); max-width: 100%; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic figcaption { position: absolute; right: 0; bottom: 0; background: var(--bg); padding: 14px 20px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); max-width: 85%; line-height: 1.6; }
.r45 { aspect-ratio: 4 / 5; }
.r23 { aspect-ratio: 2 / 3; }
.r169 { aspect-ratio: 16 / 9; }
.r11 { aspect-ratio: 1 / 1; }

/* Sezioni */
section { scroll-margin-top: 84px; }
.pad { padding-block: clamp(56px, 9vw, 112px); }
.alt { background: var(--bg2); }
.head { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.head.center { align-items: center; text-align: center; }
.split { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.split > * { min-width: 0; }

/* Hero home */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero .split { gap: 40px; }
.hero-text { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.hero-note { display: flex; align-items: center; gap: 18px; font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 1.1rem; }
.hero-note::before { content: ""; width: 50px; height: 1px; background: var(--gold); }
.hero-media { display: flex; flex-direction: column; gap: 14px; }
.hero-media .pic { max-width: 540px; width: 100%; margin-inline: auto; }
.caption { align-self: flex-end; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Intestazione pagine interne */
.page-head { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 56px); }
.page-head .head { gap: 26px; }
.banner { margin-top: clamp(32px, 5vw, 56px); }
.banner .pic { aspect-ratio: 16 / 9; }

/* Scheda prodotto */
.facts { width: 100%; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts span:first-child { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 3px; flex: none; }
.facts span:last-child { text-align: right; }
.buyrow { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.big-price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.big-price small { display: block; margin-top: 8px; font-family: var(--font-body); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.product-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.product-copy > p { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.7; color: var(--muted); max-width: 32em; }

.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery .main { aspect-ratio: 4 / 5; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--bg2); cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; opacity: .7; }
.thumbs button:hover img, .thumbs button[aria-pressed="true"] img { opacity: 1; }
.thumbs button[aria-pressed="true"] { border-color: var(--brown); }

/* Ingredienti */
.ingr { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.ingr li { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ingr h3 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.ingr .kind { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.ingr p { font-family: var(--font-display); color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 34em; }

/* Passi del rituale */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 36px; counter-reset: step; }
.steps li { padding-top: 26px; border-top: 1px solid var(--gold); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.steps li::before { counter-increment: step; content: counter(step, upper-roman); font-family: var(--font-display); font-style: italic; font-size: 3rem; line-height: 1; color: var(--accent); }
.steps p { color: var(--muted); font-family: var(--font-display); font-size: 1.08rem; line-height: 1.65; }
.after { margin-top: 48px; padding: 26px 28px; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.after p { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.35; max-width: 30em; color: var(--ink); }

/* Card con foto e testo sopra */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 48px; }
.card { position: relative; display: block; text-decoration: none; color: #fff; min-height: 480px; overflow: hidden; background: var(--brown); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card:hover img { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,25,18,0) 35%, rgba(36,25,18,.82) 100%); }
.card .in { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.card .kicker { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; opacity: .9; }
.card h3 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.05; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.5); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.card .foot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Galleria mondo */
.rail { display: flex; gap: 16px; margin-top: 44px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.rail .pic { flex: 0 0 min(78%, 340px); aspect-ratio: 3 / 4; scroll-snap-align: start; }

/* Fascia citazione */
.quote-band { background: var(--brown); color: var(--on-brown); position: relative; overflow: hidden; }
.quote-band::before { content: "C."; position: absolute; right: -2%; top: -8%; font-family: var(--font-display); font-size: clamp(14rem, 38vw, 30rem); line-height: 1; letter-spacing: -.05em; color: rgba(196,162,101,.12); pointer-events: none; }
.quote-band .wrap { position: relative; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.quote-band blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 4.6vw, 3.2rem); line-height: 1.2; letter-spacing: -.02em; max-width: 22em; text-wrap: balance; }
.quote-band cite { font-style: normal; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 16px; }
.quote-band cite::before { content: ""; width: 50px; height: 1px; background: var(--gold); }

/* Lettera (journal) */
.letter-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.letter { display: flex; flex-direction: column; gap: clamp(36px, 6vw, 64px); }
.letter .pic { aspect-ratio: 16 / 9; }
.letter .block { display: flex; flex-direction: column; gap: 20px; }
.letter .block p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.8; color: var(--muted); }
.letter .q { font-style: italic; color: var(--ink); font-size: 1.45rem; line-height: 1.5; padding-left: 24px; border-left: 1px solid var(--gold); }
.sign { font-family: var(--font-display); font-size: 1.1rem; color: var(--muted); }

/* Newsletter */
.news { text-align: center; }
.news .wrap { max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.news form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 520px; }
.news input[type=email] { font: inherit; font-size: 1rem; padding: 18px 20px; border: 1px solid var(--gold); background: var(--bg); color: var(--ink); border-radius: 0; width: 100%; min-width: 0; }
.news input[type=email]:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.news .btn { justify-content: center; }
.news small { color: var(--muted); font-size: .85rem; max-width: 34em; }
.news-done { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; border: 1px solid var(--gold); background: var(--bg); width: 100%; max-width: 520px; }
.news-done p { font-family: var(--font-display); font-size: 1.1rem; color: var(--muted); }

/* Contatti */
.mailbox { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding: 28px; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.mail-label { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.mail-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mail { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 5vw, 2.1rem); color: var(--accent); overflow-wrap: anywhere; user-select: all; line-height: 1.2; letter-spacing: -.02em; }
.mailbox hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Piè di pagina */
footer { background: var(--brown); color: var(--on-brown); padding-top: 64px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.fgrid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.fbrand { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.fbrand img { width: 170px; height: auto; }
.fbrand p { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: rgba(246,239,226,.8); }
.fcols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
footer h4 { margin: 0 0 18px; font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: rgba(246,239,226,.6); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
footer li a { text-decoration: none; font-size: 1rem; letter-spacing: .03em; }
footer li a:hover { color: var(--gold); }
.fend { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(246,239,226,.2); display: flex; flex-direction: column; gap: 8px; font-size: .82rem; color: rgba(246,239,226,.7); }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { min-height: 560px; }
  .rail { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .rail .pic { aspect-ratio: 4 / 5; }
  .fgrid { grid-template-columns: 1.3fr 1fr; }
  .fend { flex-direction: row; justify-content: space-between; }
  .news form { flex-direction: row; }
  .news form .btn { flex: none; }
  .ingr li { grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: baseline; }
}
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .menu-btn { display: none; }
  .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); }
  .split.pic-left { grid-template-columns: .85fr 1.15fr; }
  .split.pic-right { grid-template-columns: 1.15fr .85fr; }
  .hero .split { grid-template-columns: 1.05fr .95fr; }
  .hero-media { align-items: flex-end; }
  .hero-media .pic { margin-inline: 0; }
  .steps.three { grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 64px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card img, .thumbs img { transition: none; }
  .card:hover img { transform: none; }
}

/* Sezione prodotto in stile boutique: titolo centrato e due schede alte */
.shop-sec { background: var(--bg); }
.head.center .lead { margin-inline: auto; text-align: center; }
.eyebrow.accent { color: var(--accent); justify-content: center; }
.display { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.pcards { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 48px auto 0; max-width: 960px; }
.pcard { display: flex; flex-direction: column; background: var(--bg2); min-width: 0; }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg2); }
.pcard-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.pcard:hover .pcard-media img { transform: scale(1.03); }
.ribbon { position: absolute; z-index: 1; top: 26px; left: -48px; width: 190px; transform: rotate(-45deg); background: var(--bg); color: var(--accent); text-align: center; font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; padding: 7px 0; box-shadow: 0 1px 0 var(--line); }
.pcard-info { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 20px 32px; }
.pcard-info h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--accent); }
.pcard-info h3 a { text-decoration: none; }
.pcard-info h3 a:hover { color: var(--ink); }
.pcard-info .sub { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.pcard-info .price { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.pcard-info .price.note { font-style: italic; font-size: 1.05rem; color: var(--muted); }
.pcard-info .btn { margin-top: auto; }
.pcard-info .price { margin-bottom: 14px; }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }
@media (min-width: 720px) { .pcards { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .pcard-media img { transition: none; } .pcard:hover .pcard-media img { transform: none; } }
.pcard-info .desc { font-family: var(--font-display); font-size: .98rem; line-height: 1.6; color: var(--muted); max-width: 30em; margin: 4px 0 0; }
.ribbon.soon { background: var(--brown); color: var(--on-brown); box-shadow: none; }
.pic.tex { background: #fff; }
.pic.tex img { object-fit: contain; }
.split .ingr { margin-top: 32px; }
.also { margin-top: 20px; font-family: var(--font-display); font-style: italic; color: var(--muted); }
.thumbs button img[src*="texture"] { object-fit: contain; background: #fff; }
