/* BonDes — landing della campagna */

@font-face {
  font-family: "Reckless";
  src: url("../fonts/reckless-neue-trial-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("../fonts/supreme-vf.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --castagna: #330e0e;
  --cotto: #df7e67;
  --arancio: #ff935d;
  --pesca: #ffa87d;
  --panna: #ffe2cb;
  --crosta: #804638;
  --sfondo: #f1e5db;
  --chiaro: #fff7f0;
  --carta: #fff4eb;
  --beige: #ebd3c0;
  --farina: #f4d9c4;

  --serif: "Reckless", Georgia, "Times New Roman", serif;
  --sans: "Supreme", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1360px;
  --section-y: clamp(80px, 7vw, 120px);
  --radius: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --body: 18px;
  --small: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sfondo);
  color: var(--castagna);
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--castagna); outline-offset: 3px; border-radius: 4px; }
.support :focus-visible, .dock :focus-visible { outline-color: var(--panna); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--castagna); color: var(--panna);
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Tipografia */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 2.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.32vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.label { font-size: var(--small); font-weight: 500; line-height: 1.2; }
.small { font-size: var(--small); font-weight: 500; line-height: 1.2; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: 18px; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--orange { background: var(--arancio); color: var(--castagna); }
.btn--orange:hover { background: #ffa577; }
.btn--dark { background: var(--castagna); color: var(--panna); }
.btn--dark:hover { background: #4a1a18; }
.btn--outline { border-color: var(--castagna); }
.btn--outline:hover { background: var(--castagna); color: var(--panna); }
.btn--small { padding: 12px 20px; font-size: var(--small); border-radius: 10px; }

/* Barra di avanzamento */
.bar {
  position: relative; height: 18px; width: 100%;
  background: rgba(51, 14, 14, .12);
  overflow: hidden;
}
.bar__fill {
  position: absolute; inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: var(--castagna);
  transition: width 2.6s cubic-bezier(.16, 1, .3, 1);
}
.bar--light { background: rgba(255, 226, 203, .18); }
.bar--light .bar__fill { background: var(--arancio); }

/* ---------- BANNER SUPERIORE ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--castagna); color: var(--panna);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 65px; }
.topbar__text { font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.topbar__hi { color: var(--arancio); }
.topbar__progress { display: flex; align-items: center; gap: 16px; }
.bar--top { width: 320px; height: 8px; background: rgba(255, 226, 203, .2); }
.bar--top .bar__fill { background: var(--arancio); }
.topbar__btn { padding: 12px 20px; font-size: 14px; border-radius: 0; }
html { scroll-padding-top: 160px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--cotto);
  overflow: hidden;
  container-type: inline-size;
  padding-bottom: clamp(48px, 5.5vw, 96px);
}
.hero__art {
  position: absolute;
  pointer-events: none;
  /* stesse proporzioni del Figma a 1728 px */
  width: min(52.55cqw, 908px);
  aspect-ratio: 908 / 943;
  left: calc(50% - min(2.55cqw, 44px));
  top: max(-3.24cqw, -56px);
}
.hero__glide { position: absolute; will-change: transform; }
.hero__glide--a { left: 0; top: 3.6%; width: 93.5%; }
.hero__glide--b { left: 4.19%; top: 0; width: 95.8%; }
.hero__swallow { width: 100%; height: auto; }
.hero__note { position: absolute; mix-blend-mode: multiply; }
.hero__note--a { left: 31.94%; top: 21.42%; width: 15.86%; }
.hero__note--b { left: 73.13%; top: 42.31%; width: 26.76%; }

/* Planata leggera delle rondini */
@keyframes glide-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-1.2%, -1.6%, 0) rotate(-1.2deg); }
}
@keyframes glide-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-.8%, -2.2%, 0) rotate(-.8deg); }
}
.hero__glide--a .hero__swallow { animation: glide-a 9s var(--ease) infinite; transform-origin: 70% 40%; }
.hero__glide--b .hero__swallow { animation: glide-b 9s var(--ease) infinite; animation-delay: -1.2s; transform-origin: 70% 40%; }

.hero__inner { position: relative; z-index: 1; }

/* Menu a pillola, fisso sotto il banner (come sul sito DES).
   Tre colonne uguali ai lati: il logo DES resta al centro esatto della pagina */
.hero__inner { padding-top: 120px; }
.nav {
  position: fixed; z-index: 90; top: 85px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 44px;
  padding: 8px 8px 8px 26px;
  background: var(--chiaro); border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(51, 14, 14, .35);
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -220%); }
.nav__logo img { width: 97px; height: auto; display: block; }
.nav__links { display: flex; gap: 28px; white-space: nowrap; }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__cta {
  display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px;
  background: var(--castagna); color: var(--panna); font-size: 15px; font-weight: 500; text-decoration: none;
  white-space: nowrap; transition: background-color .25s;
}
.nav__cta:hover { background: #4a1a18; }
.nav__links a {
  font-size: var(--small); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease);
}
.nav__links a:hover { background-size: 100% 1px; }

.hero__content { padding-top: clamp(40px, 5.1vw, 88px); display: grid; gap: 28px; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 4.4vw, 76px);
  line-height: 1; letter-spacing: -0.015em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__lead {
  max-width: 600px;
  font-size: clamp(18px, 1.27vw, 22px);
  font-weight: 500; line-height: 1.24; letter-spacing: -0.005em;
}

.progress-card {
  margin-top: clamp(48px, 5.5vw, 96px);
  display: flex; align-items: center; gap: 64px;
  padding: 40px 48px;
  background: var(--carta);
  border-radius: var(--radius);
}
.progress-card__sum { display: grid; gap: 6px; white-space: nowrap; }
.progress-card__amount {
  font-family: var(--serif); font-size: clamp(48px, 3.7vw, 64px);
  line-height: 1; letter-spacing: -0.015em;
}
.progress-card__goal { font-size: 18px; line-height: 1.3; }
.progress-card__bar { flex: 1; display: grid; gap: 14px; min-width: 0; }
.progress-card__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.progress-card__pct { font-family: var(--serif); font-size: 40px; line-height: 1; }

/* ---------- VIDEO ---------- */
.video { padding-top: var(--section-y); }
.video__stage { position: relative; }
.video__frame {
  position: relative;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--castagna);
}
.video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Su desktop il video si allarga fino a tutto schermo mentre si scorre */
/* Scorrendo, il video si ferma al centro, si allarga a tutto schermo e poi torna alla sua misura */
.video__stage { z-index: 55; }
.video__frame { transform-origin: center center; will-change: transform; }
.video__controls {
  position: absolute; z-index: 2; left: 24px; bottom: 24px;
  display: flex; gap: 10px;
}
.video__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--castagna);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .35);
  font-size: 15px; font-weight: 500; line-height: 1;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .3s;
}
.video__btn:hover { transform: translateY(-2px); background: var(--panna); }
.video__btn svg { flex: none; }
.video__btn .ico-on, .video__btn .ico-play { display: none; }
.video__btn[aria-pressed="true"] .ico-on { display: inline; }
.video__btn[aria-pressed="true"] .ico-off { display: none; }
.video__btn.is-paused .ico-play { display: inline; }
.video__btn.is-paused .ico-pause { display: none; }
.video__caption { margin-top: 20px; }
.video__media { cursor: pointer; }
.video__controls--right { left: auto; right: 24px; }
.video__btn--icon { width: 48px; padding: 0; justify-content: center; }
/* Lingua: menu a tendina con l'aspetto dei pulsanti sul video */
.video__lang { position: relative; padding: 0 16px 0 20px; gap: 8px; }
.video__lang[hidden] { display: none; }
.video__lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  font: inherit; color: inherit; cursor: pointer; padding: 0; outline: none;
}
.video__lang:focus-within { outline: 2px solid var(--castagna); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- SEZIONI ---------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--chiaro); }
.section--pesca { background: var(--pesca); }

.head {
  display: grid;
  grid-template-columns: minmax(0, 664fr) minmax(0, 616fr);
  column-gap: 80px; row-gap: 24px;
  align-items: start;
  padding-top: 20px;
}
.head__text { display: grid; gap: 24px; }
.head + * { margin-top: 72px; }

.cards { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.card {
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(32px, 3.25vw, 56px);
  border-radius: var(--radius);
}
.card__big {
  font-family: var(--serif);
  font-size: clamp(60px, 5vw, 86px);
  line-height: .9; letter-spacing: -0.04em;
  white-space: nowrap;
}
.card { position: relative; translate: 0 var(--cy, 0%); rotate: var(--cr, 0deg); }
.card__source {
  margin-top: auto; padding-top: 8px;
  font-size: var(--small); font-weight: 500; line-height: 1.3;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  opacity: .75; transition: opacity .25s;
}
.card__source:hover { opacity: 1; }
.card__cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 10px;
  background: var(--castagna); color: var(--panna);
  font-size: var(--small); font-weight: 500; line-height: 1.2; text-decoration: none;
}
.card__cta span { transition: transform .35s var(--ease); }
.card__cta:hover span { transform: translateX(4px); }
@media (hover: hover) {
  .card { transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
  .card:hover { z-index: 2; transform: translateY(-10px) rotate(-1deg); }
  .card:nth-child(even):hover { transform: translateY(-10px) rotate(1deg); }
}
.card--cotto { background: var(--cotto); }
.card--beige { background: var(--beige); }
.card--farina { background: var(--farina); }
.card--veil { background: rgba(255, 255, 255, .4); }
.cards--4 .card__big { font-size: clamp(56px, 5vw, 86px); }

.faq details a { text-underline-offset: 3px; }
.note {
  margin-top: 88px;
  max-width: 816px;
  border-left: 4px solid var(--cotto);
  padding: 4px 0 4px 24px;
}

/* Come funziona */
.sides { display: grid; grid-template-columns: 1fr 1fr; }
.side { display: grid; gap: 16px; align-content: start; padding-right: 64px; }
.side--right { padding: 0 0 0 64px; border-left: 1px solid rgba(51, 14, 14, .35); }
.brace {
  position: relative; display: block;
  height: 14px; margin-top: 40px;
  border: 1px solid rgba(51, 14, 14, .6); border-top: 0;
  transform-origin: center;
}
.brace__tick {
  position: absolute; left: 50%; top: 14px;
  width: 1px; height: 12px; background: rgba(51, 14, 14, .6);
}
.return { max-width: 820px; margin: 48px auto 0; text-align: center; display: grid; gap: 8px; }

/* Filiera */
.route { display: grid; grid-template-columns: 1fr 1fr 1fr auto; }
.route__stop { display: grid; gap: 20px; align-content: start; }
.route__stop:last-child { width: 112px; }
.route__track { display: flex; align-items: center; height: 18px; }
.route__dot {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--castagna);
}
.route__seg {
  flex: 1; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--castagna) 0 6px, transparent 6px 12px);
  transform-origin: left center;
}
.route__place {
  font-family: var(--serif); font-size: clamp(28px, 2.1vw, 36px);
  line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap;
}
.route__stop .label { white-space: nowrap; }

.coop-logo { width: 123px; height: auto; margin-top: 24px; }

/* Da dove nasce */
.origin__inner {
  display: grid;
  grid-template-columns: minmax(0, 664fr) minmax(0, 600fr);
  gap: 96px; align-items: center;
}
.origin__media { position: relative; aspect-ratio: 664 / 560; border-radius: var(--radius); overflow: hidden; }
.origin__photo { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.origin__note {
  position: absolute; left: 54%; top: 50%; width: 30%;
  mix-blend-mode: multiply; rotate: 5deg;
}
.origin__text { display: grid; gap: 28px; justify-items: start; }
.origin__logo { width: 240px; height: auto; }

/* ---------- SOSTIENI ---------- */
.support { background: var(--crosta); color: var(--panna); }
/* "Sostieni anche tu" sale sopra "Cosa finanzia", che resta ferma */
.finance { position: relative; z-index: 1; }
.finance > .wrap { transform-origin: center top; }
.support { position: relative; z-index: 2; border-radius: 32px 32px 0 0; box-shadow: 0 -30px 60px -30px rgba(51, 14, 14, .35); }
.support__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.support__intro .reveal { display: grid; gap: 24px; align-content: start; }
.support__progress { display: grid; gap: 14px; align-content: start; }
.support__figures { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); line-height: 1; }
.support__amount { font-size: clamp(48px, 3.7vw, 64px); letter-spacing: -0.015em; }
.support__pct { font-size: 40px; }
.support__meta { display: flex; justify-content: space-between; gap: 16px; font-weight: 400; }

.rewards { margin-top: 72px; display: grid; gap: 16px; }
.rewards__label { color: var(--panna); }
.rewards__tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.tab {
  padding: 18px 8px;
  border: 1px solid rgba(255, 226, 203, .4);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--serif); font-size: 28px; line-height: 1;
  color: var(--panna); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s, border-color .3s;
}
.tab:hover { border-color: var(--panna); }
.tab[aria-selected="true"] { background: var(--arancio); border-color: var(--arancio); color: var(--castagna); }

.reward {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  min-height: 441px;
  padding: 48px;
  border-radius: var(--radius);
  background: rgba(255, 226, 203, .07);
}
.reward__title, .reward__list { display: grid; gap: 16px; align-content: start; }
.reward__list { gap: 12px; }
.reward__name { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 2.8vw, 48px); line-height: 1.08; }
.reward__sub { color: rgba(255, 226, 203, .8); }
.reward__eyebrow { color: rgba(255, 226, 203, .8); display: flex; gap: 12px; align-items: center; }
.reward__badge { background: var(--panna); color: var(--castagna); padding: 4px 10px; border-radius: 999px; }
.reward__list .label { color: rgba(255, 226, 203, .7); }
.reward__item { display: flex; gap: 12px; }
.reward__item::before { content: "—"; color: var(--arancio); flex: none; }
.reward__extra { color: rgba(255, 226, 203, .7); font-size: var(--small); }
.reward .btn { margin-top: 12px; justify-self: start; }
.reward > * { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.reward.is-swapping > * { opacity: 0; transform: translateY(8px); }

.tab--libera { font-size: 22px; line-height: 1.05; }

/* Pop-up aziende: stessa grafica delle ricompense */
.modal {
  width: min(1120px, calc(100% - 48px)); max-width: none; max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--crosta); color: var(--panna);
  overflow: auto;
}
.modal::backdrop { background: rgba(51, 14, 14, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .6s cubic-bezier(.16, 1, .3, 1); }
.modal[open]::backdrop { animation: backdrop-in .4s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } }
.modal__body { min-height: 0; background: rgba(255, 226, 203, .07); border-radius: 0; padding: 64px 56px 56px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: #fff; color: var(--castagna);
}

.support__foot { margin-top: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.link-line {
  font-size: 18px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(255, 226, 203, .6); padding-bottom: 4px;
}
.link-line:hover { border-color: var(--panna); }
.support__fine { color: rgba(255, 226, 203, .7); font-weight: 400; }

/* ---------- FAQ ---------- */
.faq { padding-top: 40px; }
.faq__list { display: grid; }
.faq details { border-top: 1px solid rgba(51, 14, 14, .3); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--serif); font-size: 24px; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-size: 28px; line-height: 1;
  color: var(--cotto); flex: none;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 64px 22px 0; animation: faq-in .45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CHIUSURA ---------- */
.closing {
  position: relative; overflow: hidden;
  background: var(--cotto);
  padding: 140px 0 64px;
}
.closing .wrap { position: relative; }
.closing__note, .closing__doodle { position: absolute; mix-blend-mode: multiply; z-index: 0; }
.closing__note { left: calc(50% + 325px); top: 120px; width: 252px; rotate: 4deg; }
.closing__doodle { left: calc(50% + 326px); top: 310px; width: 88px; rotate: -12deg; }
.closing__text { position: relative; z-index: 1; display: grid; gap: 36px; justify-items: start; max-width: 600px; }
.closing__title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 3.7vw, 64px); line-height: 1.04; letter-spacing: -0.015em; }
.closing__wordmark { width: min(640px, 100%); margin-top: 116px; will-change: transform; }
/* Footer: le informazioni necessarie, come sul sito DES */
.footer {
  margin-top: 48px; padding-top: 36px;
  border-top: 1px solid rgba(51, 14, 14, .4);
  font-size: 14px; font-weight: 500; line-height: 1.45;
}
.footer__top { display: grid; grid-template-columns: minmax(0, 520px) 1fr 250px 250px; gap: 24px; }
.footer__claim { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.footer__col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer__col:nth-child(2) { grid-column: 3; }
.footer__col:nth-child(3) { grid-column: 4; }
.footer__label { opacity: .65; margin-bottom: 6px; }
.footer a { text-decoration: none; }
.footer__col a:hover, .footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__des { width: 160px; height: auto; display: block; }
.footer__social { display: flex; gap: 18px; margin-top: 8px; }
.footer__social a { display: inline-flex; padding: 2px; transition: opacity .25s; }
.footer__social a:hover { opacity: .6; text-decoration: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; }

/* ---------- BARRA DELLA RACCOLTA FONDI ---------- */
/* Stessa barra scura del sito DES */
.dock {
  position: fixed; z-index: 50;
  left: 50%; bottom: 24px;
  width: min(820px, calc(100% - 48px));
  display: flex; align-items: center; gap: 32px;
  padding: 16px 16px 16px 28px;
  background: var(--castagna); color: #f2ece2;
  border: 1px solid #5c3330; border-radius: 28px;
  box-shadow: 0 30px 60px -24px rgba(51, 14, 14, .6);
  transform: translate(-50%, calc(100% + 40px)) scale(.94);
  opacity: 0;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .5s;
}
.dock[hidden] { display: flex; visibility: hidden; }
.dock.is-visible { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; }
.dock__sum { display: grid; gap: 4px; white-space: nowrap; }
.dock__label { font-size: 14px; line-height: 1.2; color: #c9a88a; margin-bottom: 4px; }
.dock__amount { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -0.015em; }
.dock__of { font-size: 14px; font-weight: 500; line-height: 1.2; color: #c9b5a6; }
.dock__bar { flex: 1; display: grid; gap: 8px; min-width: 0; }
.dock__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dock__pct { font-family: var(--serif); font-size: 22px; line-height: 1; }
.bar--dock { height: 8px; border-radius: 999px; background: rgba(242, 236, 226, .16); }
.bar--dock .bar__fill { background: var(--arancio); border-radius: inherit; }
.dock__btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 16px 26px; border-radius: 999px;
  background: var(--arancio); color: var(--castagna);
  font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none;
  transition: background-color .25s;
}
.dock__btn span { transition: transform .35s var(--ease); }
.dock__btn:hover { background: #ffa577; }
.dock__btn:hover span { transform: translateX(4px); }

/* ---------- ANIMAZIONI DI COMPARSA ---------- */


/* Grana: lo stesso effetto Noise del mockup (multitone, 0,5, 25%), solo su hero e filiera come nel Figma */
.hero { background-image: url("../img/grana-cotto.webp"); }
.section--pesca { background-image: url("../img/grana-pesca.webp"); }
.hero, .section--pesca { background-size: 256px 256px; }

/* Righe dei titoli che emergono da una maschera (SplitText) */
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* Cifre che contano: larghezza fissa delle cifre, così nulla si sposta */
.progress-card__amount, .progress-card__pct, .support__amount, .support__pct, .dock__amount, .dock__pct { font-variant-numeric: tabular-nums; }
[data-raccolti], [data-percentuale] { display: inline-block; text-align: right; }

/* ---------- TABLET ---------- */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 200px 200px; }
  .footer__col:nth-child(2) { grid-column: 2; }
  .footer__col:nth-child(3) { grid-column: 3; }
  .topbar__text:first-child { display: none; }
  .nav__links { gap: 24px; }
  .progress-card { flex-wrap: wrap; gap: 32px; }
  .progress-card__bar { flex-basis: 100%; order: 2; }
  .progress-card .btn { order: 1; margin-left: auto; }
  .cards--4 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .cards--3 { grid-auto-flow: row; grid-template-columns: 1fr; }
  .cards--3 .card { display: grid; grid-template-columns: minmax(0, 300px) 1fr; align-items: center; column-gap: 32px; }
  .route { grid-template-columns: repeat(4, 1fr); }
  .route__stop:last-child { width: auto; }
  .route__place, .route__stop .label { white-space: normal; padding-right: 12px; }
  .rewards__tabs { grid-template-columns: repeat(4, 1fr); }
  .origin__inner { gap: 56px; }
  .closing__note { left: auto; right: var(--gutter); }
  .closing__doodle { left: auto; right: calc(var(--gutter) + 140px); }
}

/* ---------- TELEFONO ---------- */
@media (max-width: 760px) {
  :root { --body: 17px; --small: 15px; --radius: 20px; }

  /* Sul telefono il banner scorre via: la barra in basso tiene il bottone */
  .topbar { position: static; }
  .topbar__inner { min-height: 48px; justify-content: center; }
  .topbar__btn { display: none; }
  .bar--top { width: 90px; height: 6px; }
  .topbar__text { font-size: 13px; }
  html { scroll-padding-top: 0; }

  .hero__art { width: 96vw; left: 18vw; top: -2vw; }
  .hero__note--a, .hero__note--b { display: none; }
  .hero__inner { padding-top: 80px; }
  .nav { position: absolute; top: 16px; left: 50%; right: auto; transform: translateX(-50%); gap: 22px; padding: 6px 6px 6px 22px; }
  .nav .nav__links { display: none; }
  .nav.is-hidden { transform: translateX(-50%); }
  .nav__logo { flex: none; }
  .nav__logo img { width: 104px; max-width: none; }
  .nav__links { display: none; }
  .hero__content { padding-top: 46vw; gap: 20px; }
  .hero__lead { font-size: 17px; line-height: 1.4; }

  .progress-card { display: grid; gap: 20px; padding: 24px; margin-top: 32px; }
  .progress-card__sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .progress-card__amount { font-size: 44px; }
  .progress-card__goal { font-size: 15px; }
  .progress-card__pct { font-size: 30px; }
  .progress-card .btn { margin: 4px 0 0; justify-content: center; order: 3; }
  .bar { height: 12px; }

  .btn { padding: 16px 24px; font-size: 17px; min-height: 52px; }
  .btn--small { min-height: 44px; padding: 10px 16px; font-size: 15px; }

  .head { grid-template-columns: 1fr; padding-top: 0; }
  .head + * { margin-top: 40px; }
  .cards { grid-auto-flow: row; grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr; }
  .cards--3 .card { display: flex; align-items: stretch; }
  .card { gap: 16px; padding: 28px; }
  .card__big { font-size: 60px; }

  .sides { grid-template-columns: 1fr; gap: 32px; }
  .side { padding: 0; }
  .side--right { padding: 32px 0 0; border-left: 0; border-top: 1px solid rgba(51, 14, 14, .35); }
  .brace { margin-top: 32px; }
  .return { text-align: left; margin-top: 32px; }

  .route { grid-template-columns: 1fr; }
  .route__stop, .route__stop:last-child { width: auto; grid-template-columns: 18px 1fr; column-gap: 20px; row-gap: 6px; padding-bottom: 32px; position: relative; }
  .route__stop:last-child { padding-bottom: 0; }
  .route__track { grid-row: 1 / span 2; height: auto; flex-direction: column; align-self: stretch; padding-top: 6px; }
  .route__seg {
    width: 1.5px; height: auto; flex: 1; margin-bottom: -38px; margin-top: 4px;
    background: repeating-linear-gradient(180deg, var(--castagna) 0 6px, transparent 6px 12px);
    transform-origin: center top;
  }
  .route__place { font-size: 28px; }

  .origin__inner { grid-template-columns: 1fr; gap: 40px; }
  .origin__media { aspect-ratio: 4 / 5; }

  .support__intro { grid-template-columns: 1fr; gap: 40px; }
  .support__amount { font-size: 44px; }
  .support__pct { font-size: 30px; }
  .support__meta { display: grid; gap: 6px; }
  .rewards { margin-top: 48px; }
  .rewards__tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .tab { font-size: 20px; padding: 14px 4px; border-radius: 14px; min-height: 48px; }
  .reward { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; min-height: 0; }
  .reward .btn { justify-self: stretch; justify-content: center; }
  .tab--libera { grid-column: span 2; font-size: 18px; }
  .modal { width: calc(100% - 20px); max-height: calc(100vh - 20px); }
  .modal__body { padding: 64px 22px 24px; }
  .support__foot { flex-direction: column; align-items: flex-start; margin-top: 48px; }
  .link-line { font-size: 17px; }

  .faq summary { font-size: 21px; padding: 20px 0; }
  .faq details p { padding-right: 0; }

  .closing { padding-top: 96px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .closing__note { width: 128px; top: 10px; right: 12px; }
  .closing__doodle { display: none; }
  .closing__text { gap: 24px; }
  .closing__wordmark { margin-top: 64px; }
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer__claim { grid-column: 1 / -1; font-size: 22px; }
  .footer__col:nth-child(2) { grid-column: 1; }
  .footer__col:nth-child(3) { grid-column: 2; }
  .footer__bottom { flex-direction: column; gap: 8px; margin-top: 40px; }

  .dock {
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px;
    padding: 14px 14px 14px 18px; border-radius: 22px;
  }
  .dock__sum { display: grid; gap: 2px; }
  .dock__amount { font-size: 24px; }
  .dock__of { font-size: 13px; }
  .dock__bar { grid-column: 1 / -1; grid-row: 2; gap: 6px; }
  .dock__pct { font-size: 18px; }
  .bar--dock { height: 6px; }
  .dock__btn { min-height: 44px; padding: 10px 16px; }

  .video__frame { width: 100%; }
  .video__caption { margin-top: 14px; }
  .video__controls { left: 10px; bottom: 10px; gap: 8px; }
  .video__controls--right { left: auto; right: 10px; }
  .video__btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .video__controls:not(.video__controls--right) .video__btn span { display: none; } /* solo icone */
  .video__controls:not(.video__controls--right) .video__btn { width: 44px; padding: 0; justify-content: center; }
  .video__btn--icon { width: 44px; }
  .video__lang { padding: 0 12px 0 14px; }
}

/* Movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__swallow { animation: none !important; }
  .bar__fill, .dock, .btn, .tab { transition: none; }
}
