/* BakePro landing — identità ripresa dal sacco e dal catalogo (verde scuro, verde chiaro, tagli diagonali) */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/jost-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-condensed-700-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800-italic-latin.woff2') format('woff2'); }

:root {
  --g9: #06341e;
  --g8: #0b4a2a;          /* verde scuro del sacco */
  --g6: #2f7a35;
  --g5: #6d9e2f;          /* verde chiaro della fascia laterale */
  --g2: #dfe9cf;
  --g1: #eef3e6;
  --g0: #f6f8f2;
  --ink: #15211a;
  --muted: #55645a;
  --line: #d9e0d0;
  --white: #fff;
  --err: #a32a1c;
  --font-head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --cut: clamp(28px, 4.5vw, 72px);   /* altezza dei tagli diagonali */
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g6); }
a:hover { color: var(--g8); }
h1, h2, h3 { font-family: var(--font-head); font-style: italic; font-weight: 800; line-height: 1.02; letter-spacing: -0.005em; margin: 0 0 .5em; color: var(--g8); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--g8); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--g5); outline-offset: 3px; border-radius: 3px; }

.eyebrow { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--g5); margin: 0 0 .9em; display: flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ''; width: 26px; height: 10px; background: var(--g5); transform: skewX(-24deg); flex: none; }
.on-dark .eyebrow { color: #b6d77f; }
.on-dark .eyebrow::before { background: #b6d77f; }

/* wordmark Bake|Pro ricostruito in CSS */
.wm { display: inline-flex; align-items: stretch; font-family: var(--font-head); font-style: italic; font-weight: 800; line-height: 1; letter-spacing: -.01em; font-size: var(--wm, 2rem); }
.wm span:first-child { color: var(--g8); padding-right: .12em; }
.wm span:last-child { background: var(--g8); color: #fff; padding: .02em .16em .02em .12em; transform: none; }
.wm--white span:first-child { color: #fff; }
.wm--white span:last-child { background: #fff; color: var(--g8); }

/* pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: 600 1rem/1 var(--font-body); letter-spacing: .02em; padding: 1em 1.6em; border: 2px solid var(--g8); background: var(--g8); color: #fff; text-decoration: none; cursor: pointer; transform: skewX(-8deg); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn > * { transform: skewX(8deg); display: inline-flex; align-items: center; gap: .55em; }
.btn:hover { background: var(--g6); border-color: var(--g6); color: #fff; }
.btn--light { background: #fff; color: var(--g8); border-color: #fff; }
.btn--light:hover { background: var(--g2); border-color: var(--g2); color: var(--g8); }
.btn--ghost { background: transparent; color: var(--g8); }
.btn--ghost:hover { background: var(--g8); color: #fff; }
.btn--sm { padding: .75em 1.2em; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.cobrand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.cobrand img { height: 32px; width: auto; }
.cobrand__sep { width: 1px; height: 26px; background: var(--line); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--g6); }
.lang { font-weight: 600; letter-spacing: .08em; font-size: .85rem; border: 1px solid var(--line); padding: .35em .7em; border-radius: 3px; }

/* hero */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero::before { content: ''; position: absolute; right: -6%; top: 0; bottom: 0; width: 56%; background: linear-gradient(160deg, var(--g1), var(--g2)); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.hero::after { content: ''; position: absolute; right: -6%; bottom: 0; width: 30%; height: 100%; background: var(--g5); opacity: .16; clip-path: polygon(64% 0, 72% 0, 8% 100%, 0 100%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(70px, 9vw, 130px); }
.hero__text { min-width: 0; }
.hero__logo { --wm: clamp(2.2rem, 4.6vw, 3.1rem); margin-bottom: 1.1rem; }
.hero h1 { max-width: 13ch; }
.hero__lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 34em; margin: 1em 0 1.6em; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 1.6rem; }
.hero__tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; list-style: none; padding: 0; margin: 1.6rem 0 0; max-width: 32em; }
.hero__tags li { display: flex; align-items: center; gap: .55em; font-size: .95rem; font-weight: 700; letter-spacing: .01em; color: var(--g8); background: var(--white); border: 1.5px solid var(--g2); padding: .65em .8em; line-height: 1.15; }
.hero__tags li::before { content: ''; width: 10px; height: 10px; background: var(--g5); flex: none; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.hero__note { display: block; font-size: .96rem; font-weight: 500; line-height: 1.5; color: var(--g8); background: var(--g1); border-left: 3px solid var(--g5); padding: .8em 1em; margin: 1rem 0 0; max-width: 34em; }
.hero__note strong { font-weight: 700; }
.hero__bag { justify-self: center; width: min(100%, 400px); mix-blend-mode: multiply; filter: brightness(1.07); }
.hero__bag img { width: 100%; }

/* fascia numeri */
.facts { position: relative; z-index: 2; background: var(--g8); color: #fff; margin-top: calc(var(--cut) * -1); padding: calc(var(--cut) + 34px) 0 clamp(40px, 5vw, 64px); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts li { padding-left: 18px; border-left: 3px solid var(--g5); }
.facts b { display: block; font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; color: #fff; }
.facts b small { font-size: .5em; font-weight: 700; margin-left: .15em; color: #cfe3ac; }
.facts span { display: block; margin-top: .4em; color: #cfe3ac; font-size: .95rem; line-height: 1.35; }

/* sezioni */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tint { background: var(--g0); }
.section__head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head p { color: var(--muted); font-size: 1.12rem; }
.on-dark { background: var(--g8); color: #e8f0dc; }
.on-dark h2, .on-dark h3 { color: #fff; }

/* prodotti */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.product__photos { display: flex; height: 210px; overflow: hidden; background: var(--g2); }
.product__photos img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }
.product__photos img + img { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-left: -7%; }
.product__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.product__name { display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; }
.product__name h3 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.4rem); }
.product__name small { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--g5); }
.product__uses { list-style: none; padding: 0; margin: 1em 0 1.3em; display: flex; flex-wrap: wrap; gap: 8px; }
.product__uses li { background: var(--g1); color: var(--g8); font-size: .9rem; font-weight: 500; padding: .35em .8em; }
.nutri { width: 100%; border-collapse: collapse; margin-top: auto; font-size: .97rem; }
.nutri caption { text-align: left; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-bottom: 6px; }
.nutri th, .nutri td { padding: 7px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.nutri td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.nutri tr.hl th, .nutri tr.hl td { color: var(--g8); font-weight: 700; background: linear-gradient(90deg, transparent, var(--g1) 30%); }
.product__note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* vantaggi */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.benefit svg { width: 40px; height: 40px; stroke: var(--g6); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.benefit h3 { font-size: 1.55rem; margin-bottom: .35em; }
.benefit p { margin: 0; color: var(--muted); font-size: 1rem; }

/* processo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: st; }
.steps li { position: relative; padding-top: 74px; counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; top: 0; left: 0; font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 3.4rem; line-height: 1; color: #fff; background: var(--g5); padding: .1em .32em .1em .22em; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.steps h3 { font-size: 1.5rem; }
.steps p { color: #cdddb8; margin: 0; font-size: 1rem; }

/* partner */
.partner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.partner__logos { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.partner__logos img { height: 62px; width: auto; }
.partner__logos i { width: 1px; height: 54px; background: var(--line); }
.partner__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.partner__cols h4 { margin: 0 0 .3em; font-size: 1.05rem; color: var(--g8); }
.partner__cols p { margin: 0; color: var(--muted); font-size: .98rem; }
.partner__img { background: linear-gradient(160deg, var(--g1), var(--g2)); clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); padding: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 64px); }
.partner__ingr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.partner__ingr figure { margin: 0; text-align: center; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--g8); font-weight: 600; }
.partner__ingr img { width: 100%; height: clamp(90px, 12vw, 150px); object-fit: contain; margin-bottom: 10px; mix-blend-mode: multiply; }

/* qualità */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.specs dl { margin: 0; }
.specs div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.specs dt { font-weight: 600; color: var(--g8); }
.specs dd { margin: 0; color: var(--ink); }
.certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; padding: 0; }
.certs li { border: 2px solid var(--g8); color: var(--g8); font-weight: 700; letter-spacing: .06em; padding: .45em 1em; font-size: .9rem; }

/* faq */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.12rem; position: relative; color: var(--g8); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--g5); border-bottom: 2.5px solid var(--g5); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 44rem; }

/* contatti */
.contact { position: relative; background: var(--g8); color: #e8f0dc; padding: calc(var(--cut) + clamp(50px, 6vw, 90px)) 0 clamp(60px, 7vw, 100px); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); }
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { color: #fff; }
.contact__intro p { color: #cfe0ba; font-size: 1.1rem; }
.contact__points { list-style: none; padding: 0; margin: 1.6em 0; }
.contact__points li { position: relative; padding: 0 0 .9em 1.7em; color: #e8f0dc; }
.contact__points li::before { content: ''; position: absolute; left: 0; top: .52em; width: 12px; height: 7px; background: var(--g5); transform: skewX(-28deg); }
.contact__direct { margin-top: 2em; padding-top: 1.4em; border-top: 1px solid rgba(255,255,255,.18); font-size: .98rem; color: #cfe0ba; }
.contact__direct a { color: #fff; }
.form { background: #fff; color: var(--ink); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.form h3 { font-size: 1.7rem; margin-bottom: 1rem; color: var(--g8); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 20px; padding: 0; border: 0; }
.choice legend { font-weight: 600; margin-bottom: 8px; padding: 0; font-size: .95rem; }
.choice label { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; padding: 14px 16px; border: 2px solid var(--line); font-weight: 600; color: var(--g8); line-height: 1.25; }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.choice input:checked + span { border-color: var(--g8); background: var(--g1); }
.choice input:focus-visible + span { outline: 3px solid var(--g5); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label em { font-style: normal; color: var(--g6); }
.field input, .field select, .field textarea { font: inherit; padding: .72em .85em; border: 1.5px solid #c5cfbb; border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--g2); border-color: var(--g6); }
.field input:user-invalid { border-color: var(--err); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: .3em; width: 18px; height: 18px; flex: none; accent-color: var(--g8); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 14px 0 0; min-height: 1.4em; font-size: .95rem; }
.form__status.err { color: var(--err); font-weight: 600; }
.form .btn { width: 100%; }

/* footer */
.site-footer { background: var(--g9); color: #b8c9a9; padding: 44px 0 30px; font-size: .92rem; }
.site-footer a { color: #d9e7c6; }
.footer__top { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.footer__logos { display: flex; gap: 18px; align-items: center; background: #fff; padding: 12px 20px; }
.footer__logos img { height: 40px; width: auto; }
.footer__logos i { width: 1px; height: 34px; background: var(--line); }
.footer__cols { display: flex; gap: 40px; flex-wrap: wrap; }
.footer__cols p { margin: 0; line-height: 1.55; }
.footer__cols b { color: #fff; display: block; }
.footer__bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer__bottom ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #d9e7c6; text-decoration: underline; cursor: pointer; }

/* pagine legali e ringraziamento */
.page-hero { background: var(--g0); padding: clamp(40px, 6vw, 72px) 0 24px; border-bottom: 1px solid var(--line); }
.prose { max-width: 46rem; padding: 40px 0 72px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--g1); }
.thanks { min-height: 62vh; display: flex; align-items: center; padding: 60px 0; }
.thanks h1 { max-width: 16ch; }
.thanks p { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

/* cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; background: var(--g9); color: #e8f0dc; padding: 18px 20px; display: none; gap: 16px 24px; align-items: center; flex-wrap: wrap; box-shadow: 0 18px 50px rgba(0,0,0,.35); font-size: .92rem; }
.cookie.show { display: flex; }
.cookie p { margin: 0; flex: 1 1 320px; }
.cookie a { color: #fff; }
.cookie__actions { display: flex; gap: 10px; }
.cookie .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cookie .btn--ghost:hover { background: #fff; color: var(--g8); }
.cookie .btn { background: var(--g5); border-color: var(--g5); color: #06210f; }
.cookie .btn--ghost { background: transparent; color: #fff; }

/* animazioni */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }

/* responsive */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__bag { width: min(60%, 320px); order: -1; justify-self: start; }
  .hero::before { width: 100%; right: 0; clip-path: polygon(0 34%, 100% 20%, 100% 100%, 0 100%); }
  .hero::after { display: none; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .products, .partner, .contact__grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .specs { grid-template-columns: 1fr; }
  .nav a:not(.btn):not(.lang) { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .cobrand img { height: 26px; }
  .cobrand { gap: 10px; }
  .site-header .container { gap: 12px; }
  .site-header .btn { display: none; }
  .benefits, .steps, .fields, .choice, .partner__cols { grid-template-columns: 1fr; }
  .hero__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .facts ul { gap: 22px 14px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .hero__cta .btn { width: 100%; }
  .footer__top { flex-direction: column; }
}
