/* Podere Puellae — stile del prototipo. Mobile first. */
:root {
  --bordo: #642736;          /* dal logo */
  --bordo-d: #4a1c28;
  --cream: #F5EFE3;
  --paper: #EBE2D0;
  --basalt: #26241F;
  --ash: #5E5A52;
  --forest: #2F4A3A;
  --rose: #E7B7B5;
  --line: rgba(38, 36, 31, .14);
  --accent: var(--bordo);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(38,36,31,.06), 0 8px 24px rgba(38,36,31,.08);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --mbar-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--basalt);
  font: 400 17px/1.6 var(--sans);
  padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px));
  /* grana carta leggerissima */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordo); text-underline-offset: 3px; }
a:hover { color: var(--bordo-d); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; font-variation-settings: 'SOFT' 60, 'WONK' 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 9vw, 110px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--basalt); color: var(--cream); }
.section--dark a { color: var(--rose); }
.kicker { font: 600 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.2rem; line-height: 1.5; }
.muted { color: var(--ash); }
.small { font-size: .88rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head p { max-width: 52ch; margin: 0; }
.brush { display: block; width: 120px; height: 10px; margin: 0 0 18px; color: var(--accent); }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border: 1.5px solid var(--bordo); border-radius: 999px;
  background: var(--bordo); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--bordo-d); color: #fff; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--bordo); }
.btn--ghost:hover { background: var(--bordo); color: #fff; }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--basalt); }
.btn--light:hover { background: #fff; color: var(--basalt); }
.btn--add { width: 100%; background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--add:hover { background: var(--accent); color: #fff; }
.btn--wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.is-disabled { opacity: .5; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--basalt); border-radius: 50%; }
.icon-btn:hover { background: var(--paper); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--rose); color: var(--basalt); font: 700 .78rem/1 var(--sans); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245,239,227,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 16px; }
.logo img { width: 150px; height: auto; }
.nav { display: none; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; }
.lang button { border: 0; background: transparent; font: 600 .8rem/1 var(--sans); padding: 8px 10px; min-width: 40px; min-height: 36px; border-radius: 99px; cursor: pointer; color: var(--ash); }
.lang button[aria-pressed="true"] { background: var(--basalt); color: var(--cream); }
.req-btn { display: none; }
.burger { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--basalt); content: ''; transition: transform .2s; }
.burger span { top: 21px; } .burger span::before { top: -7px; left: 0; } .burger span::after { top: 7px; left: 0; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
.nav-open .nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 62px - var(--mbar-h) - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 62px - var(--mbar-h) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; background: #FBF8F2; padding: 8px var(--gutter) 20px; gap: 0; z-index: 39; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(20,18,15,.28); }
.nav-open .nav a { padding: 16px 0; font-size: 1.35rem; }
.nav-open .nav a:last-child { border-bottom: 0; }
.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(20,18,15,.45); z-index: 30; pointer-events: none; }
.nav a { font: 500 1.5rem/1.2 var(--serif); color: var(--basalt); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--bordo); }

@media (min-width: 960px) {
  .logo img { width: 180px; }
  .nav { display: flex; gap: 26px; margin-left: 24px; }
  .nav a { font: 500 .98rem/1 var(--sans); border: 0; padding: 8px 0; position: relative; }
  .nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--bordo); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .burger { display: none; }
  .req-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--bordo); background: var(--bordo); color: #fff; font: 600 .92rem/1 var(--sans); cursor: pointer; }
  .req-btn:hover { background: var(--bordo-d); }
}

/* ---------- barra mobile ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.3fr 1fr;
  height: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--basalt); color: var(--cream);
}
.mbar a, .mbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: inherit; text-decoration: none; background: none; border: 0; font: 600 .75rem/1 var(--sans); cursor: pointer; position: relative; }
.mbar button { background: var(--bordo); }
.mbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.mbar .count { position: absolute; top: 8px; left: calc(50% + 8px); }
@media (min-width: 960px) { .mbar { display: none; } body { padding-bottom: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.1) 0%, rgba(20,18,15,.35) 40%, rgba(20,18,15,.78) 100%), linear-gradient(90deg, rgba(20,18,15,.45), rgba(20,18,15,0) 70%); }
.hero__in { position: relative; z-index: 1; padding-block: 56px; }
.hero .kicker { color: var(--cream); opacity: .9; }
.hero h1 { max-width: 14ch; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.hero p { max-width: 46ch; font-size: 1.15rem; }
.image-banner { height: clamp(240px, 42vw, 520px); overflow: hidden; background: var(--paper); }
.image-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.territory-photo-row { margin-top: 0; }

/* ---------- fatti ---------- */
.facts { display: grid; gap: 20px; }
.fact { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.fact svg { width: 56px; height: 56px; fill: none; stroke: var(--forest); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fact h3 { font-size: 1.2rem; margin: 4px 0 4px; }
.fact p { margin: 0; color: var(--ash); font-size: .95rem; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- griglia card ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.grid--scroll { grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.grid--scroll > * { scroll-snap-align: start; }
.card { display: flex; flex-direction: column; background: #FBF8F2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-top: 4px solid var(--accent); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(38,36,31,.06), 0 16px 36px rgba(38,36,31,.12); }
.card__media { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 8% 10%; background: #FBF8F2; }
.card__label { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .35s, transform .35s; }
.card__bottle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.media-placeholder { display: grid; place-items: center; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 14%, #FBF8F2), #FBF8F2 72%); color: var(--accent); font: italic 1.6rem/1.2 var(--serif); text-align: center; }
.card__media > .media-placeholder { position: absolute; inset: 0; padding: 10%; }
@media (hover: hover) {
  .card:hover .card__bottle { opacity: 1; }
  .card:hover .card__label { opacity: 0; transform: scale(.96); }
}
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.4rem; margin: 0 0 4px; }
.card__title a { color: var(--basalt); text-decoration: none; }
.vintage { font-family: var(--sans); font-size: .6em; font-weight: 500; color: var(--ash); letter-spacing: .02em; }
.card__meta { font-size: .82rem; color: var(--ash); margin: 0 0 8px; }
.card__short { font-size: .92rem; margin: 0 0 12px; }
.card__cta { margin-top: auto; }
.price { margin: 0 0 12px; }
.price b { font: 600 1.35rem/1 var(--serif); color: var(--basalt); }
.price span { font-size: .8rem; color: var(--ash); }
.price--big b { font-size: 2rem; }
@media (max-width: 560px) {
  .card__body { padding: 12px; }
  .card__title { font-size: 1.15rem; }
  .card__short { display: none; }
  .card__meta { font-size: .75rem; }
  .price b { font-size: 1.15rem; }
  .card .price span { display: block; margin-top: 4px; }
}
@media (max-width: 759px) { .story__label { display: none; } }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { font: 600 .7rem/1 var(--sans); letter-spacing: .03em; padding: 5px 8px; border-radius: 99px; background: #E4EBE3; color: var(--forest); }
.badge--warn { background: #F6E3C8; color: #7A4B0E; }
.badge--off { background: #E5E1DA; color: var(--ash); }
.badge--new { background: var(--rose); color: var(--bordo-d); }

/* stepper */
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 48px; border: 1.5px solid var(--accent); border-radius: 99px; overflow: hidden; background: #fff; }
.stepper button { height: 100%; min-height: 44px; border: 0; background: var(--accent); color: #fff; font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { filter: brightness(1.15); }
.stepper__val { text-align: center; font-size: .9rem; line-height: 1.1; padding: 0 4px; }
.stepper__val small { color: var(--ash); }

/* ---------- catalogo ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 99px; background: transparent; font: 600 .9rem/1 var(--sans); color: var(--basalt); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--basalt); border-color: var(--basalt); color: var(--cream); }
.toolbar__right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.views { display: none; }
@media (min-width: 760px) { .views { display: inline-flex; } }
.table-wrap { overflow-x: auto; background: #FBF8F2; border-radius: var(--radius); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font: 600 .75rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl td:last-child { min-width: 190px; }
.tbl-wine { display: flex; gap: 10px; align-items: center; color: var(--basalt); text-decoration: none; }
.tbl-wine img { width: 40px; mix-blend-mode: multiply; }
.tbl-wine__placeholder { width: 40px; height: 46px; flex: 0 0 40px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 18%, #FBF8F2); }
.tbl .badges { margin: 6px 0 0; }

/* ---------- pagina vino ---------- */
.crumbs { padding-top: 20px; font-size: .92rem; }
.crumbs a { text-decoration: none; }
.wine__top { display: grid; gap: 28px; padding-block: 20px 40px; }
@media (min-width: 900px) { .wine__top { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } .gallery { position: sticky; top: 84px; } }
.gallery__main { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #FBF8F2; box-shadow: var(--shadow); position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main.is-label { padding: 8% 10%; }
.gallery__main.is-label img { object-fit: contain; mix-blend-mode: multiply; }
.gallery__main.media-placeholder { padding: 24px; }
.gallery__main.media-placeholder figcaption { color: var(--basalt); }
.gallery__main figcaption:empty { display: none; }
.gallery__main figcaption { position: absolute; left: 12px; bottom: 12px; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: rgba(251,248,242,.9); padding: 6px 10px; border-radius: 99px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 64px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #FBF8F2; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--label img { object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.thumb[aria-pressed="true"] { border-color: var(--accent); }
.wine__title { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: 12px; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.process { font: 500 .95rem/1.5 var(--sans); padding: 12px 0; border-block: 1px solid var(--line); color: var(--ash); }
.award { font-weight: 600; color: var(--accent); }
.buy { margin-top: 24px; padding: 20px; background: #FBF8F2; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 10px; }
.buy .price { margin: 0; }
.buy p { margin: 0; }
.story { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 56px); margin-block: 16px 48px; border-radius: 24px; background: color-mix(in srgb, var(--accent) 12%, var(--cream)); }
.story__label img { max-width: 220px; margin: 0 auto; mix-blend-mode: multiply; transform: rotate(-3deg); }
.story__text { font: 400 clamp(1.25rem, 2.6vw, 1.7rem)/1.4 var(--serif); font-style: italic; margin: 0; }
@media (min-width: 760px) { .story { grid-template-columns: 260px 1fr; } }
.wine__cols { display: grid; gap: 40px; }
@media (min-width: 900px) { .wine__cols { grid-template-columns: 1fr 1fr; gap: 56px; } }
.notes { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 16px; }
.notes dt { font-weight: 600; color: var(--accent); }
.notes dd { margin: 0; }
.tech summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.tech summary::-webkit-details-marker { display: none; }
.tech summary::after { content: '+'; font-size: 1.6rem; color: var(--accent); }
.tech[open] summary::after { content: '−'; }
.tech summary h2 { margin: 0 0 .4em; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 42%; font-weight: 600; font-size: .9rem; color: var(--ash); padding-right: 12px; }
.partners { margin-block: 48px; padding: clamp(24px, 4vw, 40px); border: 1.5px dashed var(--line); border-radius: 20px; }
.dl { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.dl li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; align-items: center; padding: 12px 14px; background: #FBF8F2; border-radius: 12px; }
.dl__icon { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.dl small { color: var(--ash); }

/* ---------- storia / come lavoriamo ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--rev > :first-child { order: 2; } }
.split__img { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--radius); background: rgba(245,239,227,.06); border: 1px solid rgba(245,239,227,.18); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rose); color: var(--basalt); font: 600 1.2rem/1 var(--serif); margin-bottom: 14px; }
.steps h3 { color: var(--cream); }
.steps p { color: rgba(245,239,227,.8); margin: 0; }
.trust { display: grid; gap: 20px; }
@media (min-width: 860px) { .trust { grid-template-columns: 1fr 1fr 1fr; } }
.trust__item { border-radius: var(--radius); overflow: hidden; background: #FBF8F2; box-shadow: var(--shadow); }
.trust__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.trust__item div { padding: 18px; }
.trust__item p { margin: 0; }
.award-big { display: grid; place-items: center; text-align: center; padding: 28px; aspect-ratio: 4 / 3; background: color-mix(in srgb, #A9477A 12%, var(--cream)); }
.award-big img { width: 50%; max-width: 160px; aspect-ratio: auto; mix-blend-mode: multiply; }

/* ---------- pagine di testo ---------- */
.page-head { padding-block: clamp(40px, 7vw, 80px) 24px; }
.page-head p { max-width: 60ch; }
.prose { max-width: 70ch; }
.project-feature {
  scroll-margin-top: 80px;
  padding: clamp(44px, 8vw, 96px) var(--gutter);
  background-color: var(--cream);
  background-image: url("../img/photos/puellea-project-top.png"), url("../img/photos/puellea-project-bottom.png");
  background-position: center top, center bottom;
  background-size: 100% auto, 100% auto;
  background-repeat: no-repeat;
}
.project-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(26px, 6vw, 64px);
  border: 1px solid rgba(38, 36, 31, .12);
  border-radius: 24px;
  background: rgba(251, 248, 242, .94);
  box-shadow: var(--shadow);
}
.project-card h1 { max-width: 18ch; }
.project-card > p:not(.kicker, .lead, .project-grant) { max-width: 68ch; }
.project-grant {
  display: grid;
  grid-template-columns: auto 1fr minmax(130px, 190px);
  align-items: center;
  gap: 8px 16px;
  margin: 28px 0;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--bordo);
  color: #fff;
}
.project-grant strong { font: 600 clamp(1.8rem, 4vw, 2.5rem)/1 var(--serif); }
.project-grant span { font-size: .95rem; }
.project-grant img { width: 100%; height: auto; padding: 6px; border-radius: 6px; background: var(--cream); }
.project-events { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.project-event { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(245, 239, 227, .72); }
.project-event__art { width: min(100%, 320px); aspect-ratio: 5.4 / 1; overflow: hidden; margin-bottom: 18px; }
.project-event__art img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
  .project-grant { grid-template-columns: 1fr auto; }
  .project-grant img { grid-column: 1 / -1; width: min(100%, 190px); }
}
.project-event .kicker { margin-bottom: 8px; }
.project-event h2 { margin-bottom: 8px; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.project-event p:last-child { margin: 0; }
.prose h2 { margin-top: 1.6em; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font: 500 1.2rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--bordo); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ash); max-width: 65ch; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rose); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bordo); }
.timeline b { font: 600 1.2rem/1 var(--serif); color: var(--bordo); display: block; margin-bottom: 6px; }
.people { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.person { background: #FBF8F2; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.person__ph { aspect-ratio: 1; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--ash); font-size: .8rem; margin-bottom: 14px; width: 96px; }
.photo-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-block: 32px; }
.photo-row img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.map { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 0; width: 100%; }
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-cards > div { background: #FBF8F2; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.note-draft { background: #FFF6D9; border: 1px solid #E9D48F; padding: 12px 16px; border-radius: 10px; font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--basalt); color: rgba(245,239,227,.85); padding-block: 56px 32px; font-size: .92rem; }
.site-footer a { color: var(--cream); }
.site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.1fr 1.3fr 1.3fr; } }
.site-footer__logo { width: 190px; margin-bottom: 16px; }
.responsibly { font: italic 500 1rem/1.3 var(--serif); color: var(--rose); }
.legal-links { font-size: .85rem; }

/* ---------- pannello richiesta ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.45); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 460px); background: var(--cream); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.6rem; }
.drawer__body { padding: 20px; overflow-y: auto; flex: 1; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.req-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.req-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: start; padding: 12px; background: #FBF8F2; border-radius: 12px; border-left: 4px solid var(--accent); }
.req-line img { width: 48px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.req-line [data-stepper] { margin-top: 8px; }
.req-line .stepper { min-height: 40px; grid-template-columns: 38px 1fr 38px; }
.req-line .stepper button { min-height: 40px; }
.req-line__sum { font-weight: 600; white-space: nowrap; }
.req-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; border-top: 2px solid var(--basalt); font-size: 1.05rem; }
.req-total b { font: 600 1.4rem/1 var(--serif); }
.req-form { display: grid; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; }
.field span, .field legend { font-weight: 600; font-size: .88rem; padding: 0; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: var(--basalt); }
.field input:focus, .field textarea:focus { border-color: var(--bordo); outline: none; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.radios label { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; font-size: .92rem; }
.radios label:has(input:checked) { border-color: var(--bordo); background: color-mix(in srgb, var(--bordo) 8%, #fff); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: .85rem; align-items: start; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--bordo); }
.form-error { color: #A11B2B; font-weight: 600; font-size: .9rem; margin: 0; }
.thanks { text-align: center; padding-top: 24px; }
.thanks__icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; font-size: 2rem; }

/* ---------- gate + cookie + toast ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(38,36,31,.72); backdrop-filter: blur(6px); }
.gate__box { width: min(100%, 460px); background: var(--cream); border-radius: 20px; padding: 32px 24px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.gate__box img { margin: 0 auto 20px; width: 200px; }
.gate__box h2 { font-size: 1.6rem; }
.gate__actions { display: grid; gap: 10px; margin: 20px 0 10px; }
.lang--big { margin-bottom: 20px; }
.lang--big button { font-size: .9rem; padding: 10px 16px; }
.gate__denied { color: #A11B2B; font-weight: 600; }
.cookie { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(var(--mbar-h) + 12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; background: var(--basalt); color: var(--cream); padding: 16px 18px; border-radius: 16px; display: grid; gap: 12px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cookie p { margin: 0; } .cookie a { color: var(--rose); }
.cookie .btn--ghost { color: var(--cream); border-color: var(--cream); }
@media (min-width: 960px) { .cookie { bottom: 20px; left: 20px; } }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--mbar-h) + 16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--forest); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: .9rem; transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 28px; } }

/* ---------- animazioni ---------- */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.will-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
