@font-face {
  font-family: "Besley";
  src: url("besley-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #f5f2e9;
  --ground-2: #ece8dc;
  --paper: #fffdf7;
  --ink: #251c20;
  --ink-2: #655a5f;
  --line: #d8cfd0;
  --edge: #97898e;
  --forest: #101b16;
  --forest-2: #18291f;
  --lime: #c5df8d;
  --lime-dark: #314d28;
  --wine: #7a1f3d;
  --wine-dark: #3b1022;
  --wine-deep: #250c17;
  --wine-bright: #a43c61;
  --wine-light: #e7b3c4;
  --focus: #2964dc;
  --link: #6e1d38;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Besley", Georgia, serif;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --section: clamp(76px, 10vw, 140px);
  --head-h: 76px;

  --sky: #dbe7ec;
  --sun: #e2a11b;
  --sun-ink: #8a5a0c;
  --moon: #2b4a6b;
  --rain: #4f86b0;
  --sky-ink: #2f5e86;
  --leaf: #4e8a35;
  --post: #5a4630;
  --surface-line: #33452a;
  --rock: #a99777;
  --topsoil: #8a6340;
  --subsoil: #6e4c30;
  --hatch: #2e1f10;
  --soil-ink: #6a4428;
  --shade: rgb(31 26 28 / 0.2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 18px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--head-h);
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font: 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--wine-light); color: var(--wine-deep); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { margin-bottom: 0; font-size: clamp(2.3rem, 1.35rem + 3.7vw, 4.5rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--wine-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow > span { width: 25px; height: 1px; background: currentColor; }
.eyebrow-dark { color: var(--wine); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 650 0.9375rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms, border-color 160ms;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--wine-bright); color: #fffaf7; }
.btn-primary:hover { background: #b84b70; }
.btn-ghost { border-color: #8d6474; color: #f7edf0; background: rgb(255 255 255 / 0.025); }
.btn-ghost:hover { border-color: #d5aabc; background: rgb(255 255 255 / 0.07); }
.btn-light { background: #f6f3e9; color: var(--wine-dark); }
.btn-light:hover { background: #fff; }
.btn-dark-ghost { border-color: rgb(255 255 255 / 0.4); color: #fff; }
.btn-dark-ghost:hover { background: rgb(255 255 255 / 0.08); }
.btn-sm { min-height: 43px; padding-inline: 18px; font-size: 0.85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--wine); font-weight: 700; text-decoration-color: var(--wine); }

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--head-h);
  border-bottom: 1px solid rgb(59 16 34 / 0.14);
  background: rgb(245 242 233 / 0.92);
  backdrop-filter: blur(16px);
}
.site-head .bar { display: flex; align-items: center; gap: 20px; height: 100%; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--wine-dark); font: 750 1.45rem/1 var(--font-display); letter-spacing: -0.03em; text-decoration: none; }
.brand svg { width: 34px; height: 34px; color: var(--wine); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px 25px; margin: 0; padding: 0; list-style: none; }
.site-nav a, .lang-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--wine); }
.lang-link { color: var(--ink-2); font-size: 0.75rem; letter-spacing: 0.08em; }
.head-cta { background: var(--wine); color: #fffaf7; }
.head-cta:hover { background: #922b4d; }
.mobile-menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; padding: 8px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.mobile-menu-btn span { width: 24px; height: 2px; border-radius: 2px; background: var(--wine-dark); transition: transform 240ms, opacity 240ms; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: var(--head-h) 0 auto; max-height: calc(100dvh - var(--head-h)); overflow-y: auto; border-bottom: 1px solid var(--line); background: var(--ground); }
.mobile-menu.is-open { display: block; }
.mobile-menu ul { margin: 0; padding: 8px var(--gutter) 18px; list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a { display: flex; align-items: center; min-height: 52px; color: var(--wine-dark); font-weight: 650; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0 clamp(65px, 8vw, 105px);
  background:
    radial-gradient(circle at 75% 15%, rgb(190 85 120 / 0.2), transparent 30%),
    linear-gradient(145deg, var(--wine-dark), var(--wine-deep) 72%);
  color: #f7f0f1;
}
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18; background-image: linear-gradient(rgb(231 179 196 / 0.09) 1px, transparent 1px), linear-gradient(90deg, rgb(231 179 196 / 0.09) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 55%); }
.hero-wrap { position: relative; }
.hero-orbit { position: absolute; pointer-events: none; border: 1px solid rgb(231 179 196 / 0.12); border-radius: 50%; }
.hero-orbit-one { width: 720px; height: 720px; right: -300px; top: -280px; }
.hero-orbit-two { width: 510px; height: 510px; right: -195px; top: -175px; }
.hero-grid { display: grid; gap: 48px; align-items: end; }
.hero-copy h1 { max-width: 11ch; margin-bottom: 26px; color: #faf4f2; font-size: clamp(3.5rem, 2.1rem + 5.3vw, 6.7rem); font-weight: 650; letter-spacing: -0.048em; }
.hero-copy h1 em { color: var(--wine-light); font-weight: 500; }
.lead { max-width: 58ch; margin-bottom: 30px; color: #ddcdd3; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.65; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: #cbb8bf; font-size: 0.78rem; }
.hero-proof li { display: flex; align-items: center; gap: 7px; }
.hero-proof li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--wine-light); }
.hero-aside { max-width: 420px; padding: 26px; border: 1px solid #694151; border-radius: 18px; background: rgb(255 255 255 / 0.035); backdrop-filter: blur(10px); }
.hero-aside-label { margin-bottom: 18px; color: #cbb8bf; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-aside ol { margin: 0 0 22px; padding: 0; list-style: none; }
.hero-aside li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid #694151; }
.hero-aside li > span { color: var(--wine-light); font: 650 0.75rem/1 var(--font-display); }
.hero-aside li div { display: grid; }
.hero-aside strong { color: #f7eff1; font: 650 1.2rem/1.25 var(--font-display); }
.hero-aside small { margin-top: 3px; color: #cbb8bf; font-size: 0.75rem; }
.hero-aside > p:last-child { color: #d9c7cd; font-size: 0.875rem; line-height: 1.6; }
.source-strip { border-bottom: 1px solid var(--line); background: var(--ground); }
.source-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; padding-block: 24px; }
.source-strip p { margin: 0; color: var(--ink-2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.source-strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; color: var(--wine-dark); font: 650 1rem/1.2 var(--font-display); }

.section { padding-block: var(--section); border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: clamp(38px, 6vw, 68px); }
.split-heading { display: grid; gap: 26px; align-items: end; }
.section-lead { max-width: 52ch; margin: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; }
.method-section { background: var(--ground); }
.method-notes { display: grid; gap: 30px; margin-top: 48px; }
.method-notes > div { padding-top: 20px; border-top: 1px solid var(--line); }
.method-notes span { color: var(--wine); font: 650 0.72rem/1 var(--font-display); }
.method-notes h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.method-notes p { margin: 0; color: var(--ink-2); font-size: 0.875rem; }

.data-section { background: var(--forest); color: #eef0e7; border-bottom: 0; }
.data-section .eyebrow { color: var(--lime); }
.data-section .section-lead { color: #aab8ab; }
.data-bento { display: grid; gap: 14px; }
.data-card { position: relative; overflow: hidden; min-height: 480px; padding: 25px; border: 1px solid #35473a; border-radius: 18px; background: #17251d; }
.data-card-top { display: flex; align-items: center; justify-content: space-between; color: #9cad9d; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.data-card-top i { color: var(--lime); font: 400 1.4rem/1 var(--font-body); }
.data-card h3 { max-width: 15ch; margin: 25px 0 14px; color: #f0f1e8; font-size: 1.75rem; }
.data-card > p { color: #afbdaf; font-size: 0.875rem; line-height: 1.65; }
.data-card dl { position: absolute; inset: auto 25px 22px; display: grid; gap: 7px; margin: 0; padding-top: 16px; border-top: 1px solid #35473a; }
.data-card dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.7rem; }
.data-card dt { color: #879789; }.data-card dd { margin: 0; color: #d4ddd2; text-align: right; }
.climate-viz { display: flex; align-items: end; gap: 7px; height: 100px; margin-top: 34px; }
.climate-viz span { flex: 1; height: var(--h, 50%); border-radius: 4px 4px 0 0; background: linear-gradient(to top, #ba7546, #e3bd65); opacity: 0.85; }
.climate-viz span:nth-child(1) { --h: 28%; }.climate-viz span:nth-child(2) { --h: 45%; }.climate-viz span:nth-child(3) { --h: 70%; }.climate-viz span:nth-child(4) { --h: 100%; }.climate-viz span:nth-child(5) { --h: 82%; }.climate-viz span:nth-child(6) { --h: 55%; }.climate-viz span:nth-child(7) { --h: 32%; }
.terrain-viz { position: relative; height: 100px; margin-top: 34px; }
.terrain-viz svg { display: block; width: 100%; height: 100%; overflow: visible; }
.terrain-viz .land { fill: url(#terrain-land-gradient); stroke: #8bab79; stroke-width: 1.2; }
.terrain-viz .contour { fill: none; stroke: #a9c68d; stroke-width: 1; opacity: 0.7; }
.terrain-viz .water-line { fill: none; stroke: #79b7c8; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 3 5; }
.terrain-viz .sun { fill: #e3bd65; }
.terrain-viz .sun-rays { fill: none; stroke: #e3bd65; stroke-width: 1.3; stroke-linecap: round; opacity: 0.8; }
.terrain-viz .peak { fill: #d8ec9f; stroke: #17251d; stroke-width: 2; }
.soil-viz { display: grid; gap: 8px; height: 100px; margin-top: 34px; transform: skewX(-10deg); }
.soil-viz i { border-radius: 3px; background: #88613f; }
.soil-viz i:nth-child(2) { background: #a47c4f; }.soil-viz i:nth-child(3) { background: #6e5138; }.soil-viz i:nth-child(4) { background: #4e4132; }.soil-viz i:nth-child(5) { background: #322f26; }
.data-context { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 28px; border-radius: 18px; background: var(--lime); color: var(--forest); }
.context-icon { font-size: 1.6rem; }
.data-context h3 { margin-bottom: 8px; font-size: 1.5rem; }
.data-context p { margin: 0; color: #34442f; font-size: 0.875rem; }
.context-tag { grid-column: 2; justify-self: start; padding-top: 10px; border-top: 1px solid rgb(16 27 22 / 0.25); font-size: 0.67rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.data-licence-note { max-width: 90ch; margin: 24px 0 0; color: #93a395; font-size: 0.72rem; }
.data-licence-note a { color: #dce7d7; }

.professional-section { overflow: hidden; background: var(--wine-dark); color: #f8eee9; border-bottom: 0; }
.professional-intro { max-width: 880px; margin-bottom: clamp(42px, 6vw, 70px); }
.professional-intro h2 { margin-bottom: 28px; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.8rem); }
.professional-mission { max-width: 48ch; color: #f1dfe4; font: 500 clamp(1.15rem, 1rem + 0.6vw, 1.5rem)/1.55 var(--font-display); }
.home-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.home-steps li { padding: 26px; border: 1px solid #704456; border-radius: 14px; background: rgb(255 255 255 / 0.035); }
.home-steps li > span { color: var(--wine-light); font: 650 0.75rem/1 var(--font-display); }
.home-steps h3 { margin: 16px 0 10px; font-size: 1.8rem; }
.home-steps p { min-height: 3.4em; color: #dec9ce; }
.home-steps .btn { margin-top: 12px; }
.pilot-panel { display: grid; gap: 24px; margin-top: 48px; padding: 26px; border: 1px solid #795063; border-radius: 18px; background: rgb(255 255 255 / 0.045); }
.pilot-offer { display: grid; gap: 5px; max-width: 650px; margin: 0; padding-left: 18px; border-left: 2px solid #d8a9b7; }
.pilot-offer strong { font-size: 0.95rem; }
.pilot-offer span { color: #d7bdc5; font-size: 0.85rem; }
.pilot-panel .btn { justify-self: start; }

.limits-section { background: var(--ground-2); }
.limits-grid { display: grid; gap: 12px; }
.limits-grid article { padding: 24px; border: 1px solid #d0d0c2; border-radius: 14px; background: rgb(255 253 247 / 0.5); }
.limits-grid article > span { color: var(--wine); font-size: 0.65rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.limits-grid h3 { margin: 14px 0 10px; font-size: 1.25rem; }
.limits-grid p { margin: 0; color: var(--ink-2); font-size: 0.85rem; }
.not-advice { max-width: 90ch; margin: 30px 0 0; padding-top: 20px; border-top: 1px solid #c8c9bb; color: var(--ink-2); font-size: 0.85rem; }
.not-advice strong { color: var(--ink); }

.faq-section { background: var(--ground); }
.faq-layout { display: grid; gap: 45px; }
.faq-layout > div:first-child > p:last-child { margin-top: 24px; color: var(--ink-2); font-size: 0.85rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; padding: 14px 0; cursor: pointer; list-style: none; font: 650 1.2rem/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--wine); font: 400 1.5rem/1 var(--font-body); transition: transform 180ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { max-width: 65ch; padding: 0 35px 22px 0; color: var(--ink-2); font-size: 0.9rem; }

.site-foot { padding: 45px 0; background: #1c0911; color: #b39aa4; font-size: 0.72rem; }
.footer-top { display: grid; gap: 24px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid #51303e; }
.footer-top .brand { color: #f4e8ec; }
/* Badge Product Hunt sotto il nome. */
.ph-badge { display: block; width: fit-content; margin-top: 14px; line-height: 0; border-radius: 10px; }
.ph-badge img { width: 250px; max-width: 100%; height: auto; }
.footer-top > p { margin: 0; color: #d5bec7; font: 500 1.1rem/1.35 var(--font-display); }
.footer-top nav ul { display: flex; flex-wrap: wrap; gap: 5px 22px; margin: 0; padding: 0; list-style: none; }
.footer-top nav a { display: inline-flex; align-items: center; min-height: 38px; color: #dfc9d1; text-decoration: none; }
.footer-legal { padding-top: 26px; }
.footer-legal p { max-width: 100ch; }
.attrib { display: grid; gap: 5px; margin: 12px 0; padding: 0; list-style: none; }
.attrib li { overflow-wrap: anywhere; }

.landing-account { position: relative; display: none; flex: none; }
.landing-account.is-ready { display: block; }
.landing-account [hidden], .mobile-menu [hidden] { display: none !important; }
.landing-account-login { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 0 7px; color: var(--wine); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.landing-account-login:hover { color: var(--wine-bright); }
.landing-account-login svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.landing-account-avatar { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--wine); color: #fffaf7; font-size: 0.85rem; font-weight: 750; cursor: pointer; }
.landing-account-avatar:hover { background: var(--wine-bright); }
.landing-account-popover { position: absolute; top: calc(100% + 12px); right: 0; z-index: 120; width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 18px 50px rgb(37 12 23 / 0.18); }
.landing-account-who { display: flex; flex-direction: column; margin: 0 0 6px; padding: 8px 12px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: 0.8rem; }
.landing-account-who span { color: var(--ink-2); }
.landing-account-popover > a, .landing-account-popover > button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 0.875rem; text-align: left; text-decoration: none; cursor: pointer; }
.landing-account-popover > a:hover, .landing-account-popover > button:hover { background: var(--ground-2); }
.mobile-menu button { min-height: 52px; padding: 0; border: 0; background: transparent; color: var(--wine-dark); font-weight: 650; cursor: pointer; }
.landing-auth-notice { position: fixed; top: calc(var(--head-h) + 12px); left: 50%; z-index: 180; display: flex; align-items: flex-start; gap: 16px; width: min(620px, calc(100vw - 32px)); padding: 14px 16px; transform: translateX(-50%); border: 1px solid var(--line); border-left: 4px solid var(--wine); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 40px rgb(37 12 23 / 0.18); font-size: 0.875rem; }
.landing-auth-notice button { flex: none; width: 32px; height: 32px; margin: -6px -6px 0 auto; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.4rem; cursor: pointer; }

@media (min-width: 700px) {
  .method-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .data-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-context { grid-column: 1 / -1; }
  .limits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formula-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pilot-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .pilot-panel .btn { justify-self: end; }
  .footer-top { grid-template-columns: 0.7fr 1fr 1.3fr; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr); }
  .hero-aside { justify-self: end; }
  .split-heading { grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr); }
  .data-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .data-context { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .context-tag { grid-column: 3; }
  .faq-layout { grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr); gap: 8vw; }
}

@media (max-width: 1050px) {
  .site-nav ul { gap: 4px 15px; }
  .site-head .bar { gap: 13px; }
}

@media (max-width: 899px) {
  .site-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .lang-link { margin-left: auto; }
  .mobile-menu-btn { margin-left: 0; }
}

@media (max-width: 520px) {
  :root { --head-h: 68px; }
  .site-head .bar { gap: 10px; }
  .brand { font-size: 1.3rem; }.brand svg { width: 31px; height: 31px; }
  .head-cta { display: none; }
  .hero { padding-top: 52px; }
  .hero-copy h1 { font-size: clamp(3.15rem, 14vw, 4.4rem); }
  .hero .actions .btn { width: 100%; }
  .hero-aside { padding: 20px; }
  .source-strip .wrap { gap: 12px; }
  .source-strip ul { gap: 8px 18px; font-size: 0.9rem; }
  .data-card { min-height: 500px; padding: 22px; }
  .data-card dl { inset-inline: 22px; }
  .data-context { padding: 22px; }
  .result-list li { grid-template-columns: 28px 1fr; gap: 12px; }
}

@media (max-width: 420px) {
  .landing-account-login span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .btn:hover, .btn:active { transform: none; }
}

/* Home con racconto: header pieno senza JavaScript, trasparente sulle immagini con JavaScript. */
body.home { padding-top: 0; background: #1c1d15; }
html.js .home .site-head { border-bottom-color: transparent; background: transparent; }
html.js .home .site-head .brand,
html.js .home .site-nav a,
html.js .home .lang-link { color: #f6f2e8; }
html.js .home .site-head .brand svg { color: #a97b8d; }
html.js .home .landing-account-login { color: #f6f2e8; }
html.js .home .mobile-menu-btn span { background: #f6f2e8; }
html.js .home.is-past-racconto .site-head { border-bottom-color: rgb(59 16 34 / 0.14); background: rgb(245 242 233 / 0.94); }
html.js .home.is-past-racconto .site-head .brand, html.js .home.is-past-racconto .site-nav a, html.js .home.is-past-racconto .lang-link { color: var(--ink); }
html.js .home.is-past-racconto .site-head .brand svg { color: var(--wine); }
html.js .home.is-past-racconto .landing-account-login { color: var(--wine); }
html.js .home.is-past-racconto .mobile-menu-btn span { background: var(--wine-dark); }
.source-strip .wrap > a { margin-left: auto; font-size: 0.8rem; }
.story-credits { padding-block: 22px; color: #b8b3a4; font-size: 0.72rem; line-height: 1.65; }
@media (min-width: 900px) { .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .home .site-nav { display: none; } }
@media (max-width: 520px) {
  .home-steps p { min-height: 0; }
  .source-strip .wrap > a { margin-left: 0; }
  html.js .home .site-head .brand { color: #f6f2e8; }
  html.js .home.is-past-racconto .site-head .brand { color: var(--wine-dark); }
}
