/* Produco anch'io — design system (un solo file: token + componenti) */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/fonts/mulish-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

:root {
  /* colore */
  --cream: #f5efe2;
  --paper: #fbf8f1;
  --wheat: #e9d9ab;
  --straw: #d9bf78;
  --ink: #1d261d;
  --ink-soft: #4b554a;
  --green: #2d5f34;
  --green-deep: #1b3a20;
  --leaf: #6d9f3c;
  --balsamic: #23110c;
  --balsamic-2: #3d1d13;
  --must: #7b3a1d;
  --gold: #c99a3e;
  --gold-soft: #e7c886;
  --line: rgba(29, 38, 29, 0.12);
  --line-light: rgba(251, 248, 241, 0.16);

  /* tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-base: 1.0625rem;
  --t-lg: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  --t-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --t-3xl: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);

  /* spazi, raggi, movimento */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(72px, 10vw, 140px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(29, 38, 29, 0.06), 0 12px 32px -12px rgba(29, 38, 29, 0.18);
}

*,
*::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-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
}
.eyebrow--gold { color: var(--gold); }
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
.display em { font-style: italic; font-weight: 400; }
.h2 { font-size: var(--t-2xl); }
.h3 { font-size: var(--t-xl); line-height: 1.15; }
.lead { font-size: var(--t-lg); color: var(--ink-soft); max-width: 38em; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.85em 1.35em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 700; font-size: var(--t-sm);
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--green { background: var(--green); color: var(--paper); }
.btn--green:hover { background: var(--green-deep); }
.btn--gold { background: var(--gold); color: var(--balsamic); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: var(--line-light); color: var(--paper); }
.btn--ghost-light:hover { border-color: var(--paper); }

/* ---------- apertura ---------- */
.intro {
  position: fixed; inset: 0; z-index: 90;
  background: var(--cream);
  display: grid; place-items: center;
  pointer-events: auto;
}
.intro__stage { position: relative; width: min(420px, 80vw); aspect-ratio: 1; }
.intro__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__word {
  position: absolute; left: 0; right: 0; bottom: 6%;
  text-align: center;
  font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.01em; color: var(--green-deep);
}
.intro__word span { display: inline-block; }
.intro__skip {
  position: absolute; right: 20px; bottom: 20px;
  background: none; border: 0; cursor: pointer;
  font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
html.no-intro .intro { display: none; }

/* ---------- navigazione (pill) ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 18px;
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand__name i { font-style: italic; font-weight: 400; color: var(--green); }
.nav__links { display: flex; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.nav__links a {
  display: block; padding: 8px 14px; border-radius: var(--r-pill);
  text-decoration: none; font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { background: rgba(45, 95, 52, 0.1); color: var(--green-deep); }
.nav__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer;
  color: inherit; text-decoration: none;
}
.icon-btn svg { width: 18px; height: 18px; }
.nav__menu { display: none; }
.nav.is-dark .nav__bar { background: rgba(35, 17, 12, 0.78); border-color: var(--line-light); color: var(--paper); }
.nav.is-dark .nav__links a { color: rgba(251, 248, 241, 0.75); }
.nav.is-dark .nav__links a:hover { background: rgba(251, 248, 241, 0.1); color: var(--paper); }
.nav.is-dark .brand__name i { color: var(--gold-soft); }
.nav.is-dark .icon-btn { border-color: var(--line-light); }

.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 6px;
  padding: 90px var(--gutter) 32px;
  transform: translateY(-100%); transition: transform 0.5s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer a.drawer__link { font-family: var(--font-display); font-size: 2rem; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.drawer__close { position: absolute; top: 22px; right: var(--gutter); }
.drawer .btn { margin-top: 18px; align-self: flex-start; }

@media (max-width: 960px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__menu { display: inline-grid; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 130px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__land { position: absolute; inset: 0; z-index: -1; }
.hero__land svg { width: 100%; height: 100%; display: block; }
.hero__copy { position: relative; padding-bottom: clamp(36px, 6vh, 64px); }
.hero__title { font-size: var(--t-3xl); max-width: 13ch; color: var(--green-deep); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__sub { margin: 22px 0 30px; max-width: 34em; font-size: var(--t-lg); color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__place {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 6vh, 64px);
  font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--green-deep); text-align: right; line-height: 1.8;
}
@media (max-width: 760px) { .hero__place { display: none; } }

/* le due porte */
.doors { padding: clamp(28px, 4vw, 48px) 0 var(--section); background: var(--paper); }
.doors__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
@media (max-width: 760px) { .doors__grid { grid-template-columns: 1fr; } }
.door {
  position: relative; overflow: hidden;
  min-height: clamp(360px, 46vw, 520px);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px, 3vw, 40px);
  text-decoration: none; color: var(--paper);
  isolation: isolate;
}
.door__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.door--acetaia { background: var(--balsamic); }
.door--acetaia::before { background: linear-gradient(180deg, rgba(35, 17, 12, 0.05) 30%, rgba(35, 17, 12, 0.92)); }
.door--palazzo::before { background: linear-gradient(180deg, rgba(27, 58, 32, 0) 30%, rgba(27, 58, 32, 0.9)); }
.door:hover .door__img { transform: scale(1.04); }
.door .eyebrow { color: var(--gold-soft); }
.door h2 { font-size: var(--t-2xl); margin: 8px 0 10px; }
.door p { margin: 0 0 18px; max-width: 30em; color: rgba(251, 248, 241, 0.86); }
.door__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--t-sm); }
.door__go svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.door:hover .door__go svg { transform: translateX(4px); }

/* ---------- sezioni generiche ---------- */
.section { padding: var(--section) 0; }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* ---------- acetaia ---------- */
.acetaia { background: var(--balsamic); color: var(--paper); position: relative; }
.acetaia .eyebrow { color: var(--gold); }
.acetaia .lead { color: rgba(251, 248, 241, 0.78); }
.acetaia .display em { color: var(--gold-soft); }

.tempo { position: relative; }
.tempo__pin { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .tempo__pin { grid-template-columns: 1fr; min-height: 0; padding: 40px 0; } }
.tempo__glass { justify-self: center; width: min(320px, 70vw); }
.tempo__glass svg { width: 100%; height: auto; overflow: visible; }
.tempo__years {
  font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 8.5rem);
  line-height: 0.9; letter-spacing: -0.04em; color: var(--gold-soft); font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.tempo__years small { font-size: 0.28em; letter-spacing: 0; margin-left: 0.2em; color: rgba(251, 248, 241, 0.7); }
.tempo__steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; }
.tempo__step {
  display: grid; grid-template-columns: 14px 1fr; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line-light);
  opacity: 0.38; transition: opacity 0.5s;
}
.tempo__step.is-on { opacity: 1; }
.tempo__step::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--gold); }
.tempo__step h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--t-lg); }
.tempo__step p { margin: 2px 0 0; font-size: var(--t-sm); color: rgba(251, 248, 241, 0.72); }

.shop { padding-top: clamp(40px, 6vw, 80px); }
.shop__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.product {
  background: var(--balsamic-2); border: 1px solid var(--line-light); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
}
.product__img { aspect-ratio: 1; background: #2c160f; position: relative; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product:hover .product__img img { transform: scale(1.04); }
.product__badge {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--balsamic); font-size: var(--t-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.product__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__kind { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.product__name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; margin: 0; font-weight: 500; }
.product__row { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product__price { font-family: var(--font-display); font-size: 1.35rem; }
.product form { margin: 0; }
.product .btn { padding: 0.7em 1.05em; }
.shop__note { margin-top: 18px; font-size: var(--t-xs); color: rgba(251, 248, 241, 0.6); }

/* ---------- palazzo ---------- */
.palazzo { background: var(--paper); overflow: hidden; }
.palazzo__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .palazzo__grid { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.facts li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--cream); font-size: var(--t-sm); }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--green-deep); }
.palazzo__photos { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.palazzo__photos figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--wheat); }
.palazzo__photos img { width: 100%; height: 100%; object-fit: cover; }
.palazzo__photos .tall { grid-row: span 2; }
.strip { margin-top: clamp(40px, 6vw, 72px); display: flex; gap: 12px; width: max-content; }
.strip figure { margin: 0; width: clamp(220px, 26vw, 340px); aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; flex: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { position: absolute; }

/* ---------- terra / cooperativa ---------- */
.terra { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(45, 95, 52, 0.1); color: var(--green); }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.card p { margin: 0; font-size: var(--t-sm); color: var(--ink-soft); }
.coop { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .coop { grid-template-columns: 1fr; } }
.coop blockquote { margin: 0; font-family: var(--font-display); font-size: var(--t-xl); line-height: 1.25; color: var(--green-deep); }
.coop ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.coop li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: var(--t-sm); color: var(--ink-soft); }
.coop li svg { width: 20px; height: 20px; color: var(--leaf); margin-top: 2px; }

/* ---------- visite ---------- */
.visite { background: var(--green-deep); color: var(--paper); }
.visite .eyebrow { color: var(--gold-soft); }
.visite__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
@media (max-width: 860px) { .visite__grid { grid-template-columns: 1fr; } }
.visite .lead { color: rgba(251, 248, 241, 0.8); }
.contact-list { display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line-light); text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}
.contact-list a:hover { background: rgba(251, 248, 241, 0.06); border-color: rgba(251, 248, 241, 0.4); }
.contact-list svg { width: 20px; height: 20px; color: var(--gold-soft); flex: none; }
.contact-list small { display: block; font-size: var(--t-xs); color: rgba(251, 248, 241, 0.6); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- instagram ---------- */
.social { background: var(--paper); }
.social__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .social__inner { grid-template-columns: 1fr; } }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-decoration: none; }
.mosaic img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); width: 100%; }
.handle { font-family: var(--font-display); font-size: var(--t-2xl); text-decoration: none; color: var(--green-deep); display: inline-block; margin: 6px 0 18px; }
.handle:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- footer ---------- */
.footer { background: var(--balsamic); color: rgba(251, 248, 241, 0.75); padding: clamp(48px, 7vw, 88px) 0 28px; font-size: var(--t-sm); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { margin: 0 0 12px; font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer .brand { color: var(--paper); margin-bottom: 14px; }
.footer .brand__name i { color: var(--gold-soft); }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--t-xs); color: rgba(251, 248, 241, 0.55); }

/* testo semplice (privacy) */
.prose { max-width: 720px; padding: 140px var(--gutter) 80px; margin: 0 auto; }
.prose h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl); line-height: 1.1; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-lg); margin-top: 2em; }

/* comparsa al scroll (solo con JS attivo) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== multipagina (13/11) ===== */
.h1 { font-size: var(--t-3xl); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn--lg { padding: 1em 1.6em; font-size: var(--t-base); }
.center-cta { display: flex; justify-content: center; margin-top: 36px; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 56px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.split-head .lead { margin: 0; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } }
.drawer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.drawer__actions .btn { margin: 0; }

/* hero con cartoline */
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px, 4vw, 56px); align-items: end; padding-bottom: clamp(36px, 6vh, 72px); }
.hero__copy { padding-bottom: 0; }
.postcards { position: relative; height: clamp(360px, 52vh, 560px); }
.postcard {
  position: absolute; margin: 0; background: var(--paper); padding: 10px 10px 34px;
  border-radius: 6px; box-shadow: 0 2px 4px rgba(29, 38, 29, 0.08), 0 24px 48px -16px rgba(29, 38, 29, 0.35);
  will-change: transform;
}
.postcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.postcard figcaption { position: absolute; left: 12px; bottom: 9px; font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--ink-soft); }
.postcard--a { width: 54%; right: 4%; top: 0; transform: rotate(4deg); z-index: 2; }
.postcard--b { width: 50%; left: 0; top: 14%; transform: rotate(-5deg); }
.postcard--b img, .postcard--c img { aspect-ratio: 3 / 2; }
.postcard--c { width: 52%; left: 22%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .postcards { height: 300px; max-width: 460px; width: 100%; }
}
@media (max-width: 420px) { .postcards { height: 250px; } }

/* intestazioni di pagina */
.page-hero { padding: clamp(130px, 18vw, 190px) 0 clamp(48px, 7vw, 88px); }
.page-hero .lead { margin-top: 20px; }
.page-hero .h1 { max-width: 16ch; color: var(--green-deep); }
.page-hero--dark .h1 { color: var(--paper); }
.palazzo-hero { background: var(--paper); }
.palazzo-hero .h1 { font-size: var(--t-2xl); }

/* prodotti: varianti */
.product__name a { text-decoration: none; }
.product__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.product.is-hidden { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-light);
  background: transparent; color: rgba(251, 248, 241, 0.8); font-size: var(--t-sm); font-weight: 700; cursor: pointer;
}
.chip:hover { border-color: rgba(251, 248, 241, 0.5); }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: var(--balsamic); }
.tempo .tempo__pin { padding: 0; }

/* pagina prodotto */
.pdp { background: var(--balsamic); color: var(--paper); padding: clamp(110px, 14vw, 150px) 0 var(--section); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-sm); color: rgba(251, 248, 241, 0.6); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.pdp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .pdp__grid { grid-template-columns: 1fr; } }
.gallery__main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #2c160f; aspect-ratio: 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-on { border-color: var(--gold); }
.pdp__info .eyebrow { color: var(--gold); }
.pdp__info .h2 { margin: 10px 0 14px; }
.pdp__price { font-family: var(--font-display); font-size: var(--t-xl); margin: 0 0 22px; display: flex; align-items: baseline; gap: 12px; }
.pdp__price small { font-family: var(--font-sans); font-size: var(--t-sm); color: rgba(251, 248, 241, 0.6); }
.pdp__text { margin-top: 28px; color: rgba(251, 248, 241, 0.85); font-size: var(--t-lg); line-height: 1.65; }
.pdp__text p { margin: 0 0 1em; }
.pdp__notes { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-light); display: grid; gap: 10px; font-size: var(--t-sm); color: rgba(251, 248, 241, 0.75); }
.pdp__notes li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.pdp__notes svg { width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
.pdp__notes a { color: var(--gold-soft); }
.related { border-top: 1px solid var(--line-light); }

/* palazzo: stanze */
.rooms .wrap { display: grid; gap: clamp(28px, 5vw, 64px); }
.room { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.room--flip .room__img { order: 2; }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } .room--flip .room__img { order: 0; } }
.room__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--wheat); }
.room__img img { width: 100%; height: 100%; object-fit: cover; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 13px; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); font-size: var(--t-sm); }
.safety { font-size: var(--t-sm); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }
.strip-wrap { padding-bottom: var(--section); }
.strip-wrap .strip { margin-top: 0; padding-left: var(--gutter); }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
.member { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 20px; text-align: center; }
.member img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.member h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.member__role { margin: 2px 0 12px; font-size: var(--t-sm); color: var(--green); font-weight: 700; }
.member__quote { margin: 0; font-family: var(--font-display); font-style: italic; color: var(--ink-soft); }
.team-row { margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.team-row p { margin: 0; flex: 1 1 260px; color: var(--ink-soft); }
.avatars { display: flex; }
.avatars img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--cream); object-fit: cover; margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }

.coop--flat { margin-top: 0; padding-top: 0; border-top: 0; }
.company { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 0; }
@media (max-width: 640px) { .company { grid-template-columns: 1fr; } }
.company div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--cream); }
.company dt { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.company dd { margin: 4px 0 0; font-weight: 600; }

/* contatti */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.25s, transform 0.25s var(--ease); }
.contact-card:hover { border-color: var(--green); transform: translateY(-2px); }
.contact-card svg { width: 24px; height: 24px; color: var(--green); margin-bottom: 8px; }
.contact-card small { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.contact-card strong { font-weight: 700; overflow-wrap: anywhere; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .topics { grid-template-columns: 1fr; } }
.topic { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line); text-decoration: none; }
.topic:hover { border-color: var(--green); }
.topic .h3 { margin: 0; }
.topic .door__go { margin-top: auto; color: var(--green); }

/* testi lunghi */
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--green); }
.btn svg + * { margin: 0; }
.contact-list svg { flex: none; }

/* hero: cielo sopra, pianura sotto (il testo resta nel cielo) */
.hero {
  --land-h: clamp(200px, 36vh, 400px);
  justify-content: flex-start;
  padding: clamp(120px, 16vh, 170px) 0 calc(var(--land-h) - 40px);
  background: linear-gradient(180deg, #f5efe2 0%, #f3e6c2 100%);
}
.hero__land { top: auto; bottom: 0; height: var(--land-h); }
.hero__inner { align-items: center; padding-bottom: 0; }
.hero__title { color: var(--green-deep); }
@media (max-width: 860px) {
  .hero { --land-h: clamp(160px, 24vh, 240px); padding-bottom: calc(var(--land-h) - 70px); }
  .postcards { margin-top: 8px; }
}
/* foto del palazzo: altezze fisse, niente buchi */
.palazzo__photos { grid-auto-rows: clamp(150px, 16vw, 230px); }
.palazzo__photos figure { height: 100%; }
.palazzo__photos .tall { grid-row: span 2; }
.pin-spacer:has(> .tempo) { background: var(--balsamic); }

/* hero con foto (Il Palazzo) */
.photo-hero { position: relative; min-height: min(92svh, 860px); display: flex; align-items: flex-end; color: var(--paper); isolation: isolate; overflow: hidden; }
.photo-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 58, 32, 0.15) 0%, rgba(27, 58, 32, 0.1) 35%, rgba(20, 30, 18, 0.82) 100%); }
.photo-hero__copy { padding-top: 140px; padding-bottom: clamp(40px, 7vw, 80px); }
.photo-hero .eyebrow { color: var(--gold-soft); }
.photo-hero .h1 { color: var(--paper); max-width: 18ch; font-size: var(--t-2xl); }
.photo-hero .h1 em { color: var(--gold-soft); }
.photo-hero .lead { color: rgba(251, 248, 241, 0.88); margin-top: 16px; }
/* galleria */
.gallery-grid { columns: 3 260px; column-gap: 12px; }
.gallery-grid a { display: block; margin: 0 0 12px; border-radius: var(--r-sm); overflow: hidden; break-inside: avoid; }
.gallery-grid img { width: 100%; transition: transform 0.6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.03); }
/* home: testo lungo del cliente */
.hero__sub { font-size: var(--t-base); max-width: 40em; }
.hero__title { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.6rem); max-width: 17ch; }
.hero__sub { margin: 18px 0 26px; }
.photo-hero__img { object-position: 50% 62%; }
