/* Shared styles for the inner pages (allevatori, aziende). Mirrors the home page system. */
:root {
  --bur: #6B1E2E;
  --bur-deep: #4A1320;
  --bur-ink: #2A0E15;
  --bone: #F7F2E8;
  --bone-2: #EDE5D5;
  --ink: #2A1A1E;
  --ink-soft: #5E4A4F;
  --tag: #D9A22B;
  --tag-ink: #2A0E15;
  --on-bur: #F7F2E8;
  --on-bur-soft: #E3CFC9;
  --f-display: 'Gloock', 'Times New Roman', serif;
  --f-text: 'Literata', Georgia, serif;
  --f-ui: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --maxw: 78rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--bur) var(--bone-2); }
body { background: var(--bone); color: var(--ink); font-family: var(--f-text); font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem); line-height: 1.62; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--tag); color: var(--tag-ink); }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bone-2); }
::-webkit-scrollbar-thumb { background: var(--bur); border: 3px solid var(--bone-2); border-radius: 8px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--tag); color: var(--tag-ink); font: 600 .95rem var(--f-ui); padding: .85rem 1rem; min-height: 2.75rem; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 1.2rem + 3vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 1.1rem + 2.9vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; }
p { max-width: 62ch; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ear tag */
.tag { display: inline-block; position: relative; flex: none; width: 1.05em; aspect-ratio: 4 / 5; background: var(--tag); border-radius: 3px 3px 46% 46% / 3px 3px 34% 34%; }
.tag::after { content: ''; position: absolute; top: 17%; left: 50%; width: 27%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--hole, var(--bone)); }

/* buttons + links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7em; font: 600 1rem/1.2 var(--f-ui); letter-spacing: .01em; padding: 1.05em 1.6em; min-height: 3.25rem; background: var(--tag); color: var(--tag-ink); border: 0; border-radius: 3px; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s; box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 6px 14px -6px rgba(42,14,21,.55); }
.btn:hover { transform: translateY(-2px); background: #E5AE35; box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 12px 20px -8px rgba(42,14,21,.6); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--bur { background: var(--bur); color: var(--on-bur); }
.btn--bur:hover { background: var(--bur-deep); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { background: rgba(255,255,255,.08); }
.link { font: 500 1rem var(--f-ui); display: inline-flex; gap: .5em; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
.link::after { content: '→'; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 20; color: var(--on-bur); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font: 400 1.5rem var(--f-display); }
.brand span { font: 500 .78rem var(--f-ui); color: var(--on-bur-soft); letter-spacing: .04em; margin-top: .2rem; }
.top nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); font: 500 .95rem var(--f-ui); }
.top nav a:not(.btn) { text-decoration: none; padding-block: .8rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); }
.top nav a:not(.btn):hover { background-size: 100% 1.5px; }
.top nav .btn { min-height: 2.7rem; padding: .7em 1.2em; font-size: .95rem; }
@media (max-width: 860px) { .top nav a:not(.btn) { display: none; } }

/* page hero */
.hero { position: relative; background: var(--bur); color: var(--on-bur); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden; min-height: min(88svh, 52rem); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 12% 110%, rgba(42,14,21,.55), transparent 60%); }
.hero-copy { position: relative; z-index: 2; padding: clamp(7rem, 16vh, 10rem) var(--gutter) clamp(3rem, 8vh, 5rem) max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; gap: clamp(1.4rem, 3vh, 2rem); }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 82%, rgba(217,162,43,.85) 82% 94%, transparent 94%); }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--on-bur-soft); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.hero .cta-row .link { color: var(--on-bur); }
.hero-photo { position: relative; margin: 0; min-height: 26rem; background: #a63a50; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(1.05); mix-blend-mode: multiply; }
.hero-photo::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 22%; pointer-events: none; background: linear-gradient(90deg, var(--bur), transparent); }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 6.5rem var(--gutter) 2.5rem; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3.2; }
  .hero-photo::after { inset: 0 0 auto 0; width: auto; height: 22%; background: linear-gradient(180deg, var(--bur), transparent); }
}

/* statement */
.statement { padding-block: clamp(3.5rem, 8vw, 6rem); }
.statement p:not(.by) { font-family: var(--f-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); line-height: 1.2; max-width: 26ch; text-wrap: balance; }
.statement .by { font: 500 .95rem var(--f-ui); color: var(--ink-soft); margin-top: 1.2rem; }

/* generic section */
.sec { padding-block: clamp(4rem, 9vw, 8rem); }
.sec--alt { background: var(--bone-2); }
.sec--bur { background: var(--bur-deep); color: var(--on-bur); }
.sec h2 { margin-bottom: 1.2rem; max-width: 18ch; }
.sec .lead { color: var(--ink-soft); max-width: 54ch; }
.sec--bur .lead { color: var(--on-bur-soft); }
.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head h2 { margin-bottom: 0; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }

/* rows: ruled list, tag marker */
.rows { list-style: none; border-top: 1px solid rgba(42,26,30,.2); }
.rows > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(42,26,30,.2); }
.rows .tag { font-size: 1.15rem; transform: translateY(.3em); --hole: var(--bone); }
.sec--alt .rows .tag { --hole: var(--bone-2); }
.rows h3 { margin-bottom: .4rem; }
.rows p { color: var(--ink-soft); font-size: 1.02rem; }
.rows--two { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 6rem); border-top: 0; }
.rows--two > li { border-top: 1px solid rgba(42,26,30,.2); border-bottom: 0; }
.rows--two > li:nth-last-child(-n+2) { border-bottom: 1px solid rgba(42,26,30,.2); }
@media (max-width: 860px) { .rows--two { grid-template-columns: 1fr; } .rows--two > li:nth-last-child(2) { border-bottom: 0; } }
.sec--bur .rows, .sec--bur .rows > li { border-color: rgba(227,207,201,.3); }
.sec--bur .rows .tag { --hole: var(--bur-deep); }
.sec--bur .rows p { color: var(--on-bur-soft); }

/* steps rail */
.steps { list-style: none; position: relative; max-width: 46rem; }
.steps::before { content: ''; position: absolute; left: .62rem; top: .6rem; bottom: .6rem; width: 1.5px; background: rgba(42,26,30,.25); }
.steps li { position: relative; padding: 0 0 2.2rem 3rem; }
.steps li:last-child { padding-bottom: 0; }
.steps .tag { position: absolute; left: 0; top: .22em; font-size: 1.25rem; --hole: var(--bone); }
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--ink-soft); }

/* split with photo */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split figure { margin: 0; }
.split figure img { width: 100%; border-radius: 3px; }
.split figcaption { font: 400 .9rem/1.45 var(--f-ui); color: var(--ink-soft); margin-top: .7rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* packages: asymmetric */
.packs { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.pack { padding: clamp(1.6rem, 3.5vw, 3rem); border-radius: 3px; }
.pack .when { font: 600 .9rem var(--f-ui); letter-spacing: .02em; margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem; }
.pack h3 { margin-bottom: 1rem; }
.pack ul { list-style: none; margin-bottom: 1.2rem; }
.pack li { padding: .55rem 0; border-top: 1px solid rgba(42,26,30,.16); font-size: 1.02rem; }
.pack .note { font-size: .98rem; color: var(--ink-soft); }
.pack--main { background: var(--bur); color: var(--on-bur); --hole: var(--bur); }
.pack--main h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.pack--main li { border-top-color: rgba(227,207,201,.28); }
.pack--main .note { color: var(--on-bur-soft); }
.pack--main .when { color: var(--on-bur-soft); }
.pack-stack { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.pack--one { background: var(--bone-2); --hole: var(--bone-2); }
.pack--top { box-shadow: inset 0 0 0 1.5px rgba(42,26,30,.28); --hole: var(--bone); }
@media (max-width: 900px) { .packs { grid-template-columns: 1fr; } }

/* tools */
.tool-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.tool-feature figure { margin: 0; }
.tool-feature img { width: 100%; border-radius: 8px; box-shadow: 0 30px 46px -26px rgba(42,14,21,.55); }
.tool-feature figcaption { font: 400 .95rem var(--f-ui); margin-top: .7rem; color: var(--ink-soft); }
.tool-feature > div > h3 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 1rem; }
.tool-feature .rows h3 { font-size: 1.3rem; }
.hero-photo--dark img { filter: grayscale(1) contrast(1.15) brightness(.82); }
.tool-feature p { margin-bottom: 1rem; color: var(--ink-soft); }
.price { display: flex; gap: .6rem 1.4rem; flex-wrap: wrap; align-items: baseline; margin: 1.2rem 0 1.5rem; padding: 1rem 0; border-block: 1px solid rgba(42,26,30,.22); }
.price b { font: 400 clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem) var(--f-display); }
.price span { font: 400 .95rem/1.4 var(--f-ui); color: var(--ink-soft); }
@media (max-width: 900px) { .tool-feature { grid-template-columns: 1fr; } .tool-feature figure { order: 2; } }
.tools { list-style: none; border-top: 1px solid rgba(42,26,30,.2); }
.tools li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem clamp(1.5rem, 5vw, 5rem); padding: 1.6rem 0; border-bottom: 1px solid rgba(42,26,30,.2); }
.tools h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.tools .kind { display: block; font: 500 .9rem var(--f-ui); color: var(--ink-soft); margin-top: .35rem; }
.tools p { color: var(--ink-soft); font-size: 1.02rem; }
@media (max-width: 760px) { .tools li { grid-template-columns: 1fr; } }
.note-box { margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--bone-2); border-radius: 3px 3px 22px 3px; max-width: 52rem; font: 400 .98rem/1.55 var(--f-ui); }
.note-box b { font-weight: 600; color: var(--bur); }

/* newsletter strip */
.strip { background: var(--bur); color: var(--on-bur); padding-block: clamp(2rem, 4vw, 3rem); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; align-items: center; justify-content: space-between; }
.strip h3 { margin-bottom: .4rem; }
.strip p { color: var(--on-bur-soft); font-size: 1rem; max-width: 52ch; }

/* outlets list */
.outlets { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); }
.outlets h3 { font-size: 1.2rem; font-family: var(--f-ui); font-weight: 600; margin-bottom: .8rem; letter-spacing: .01em; }
.outlets ul { list-style: none; border-top: 1px solid rgba(42,26,30,.2); }
.outlets li { padding: .9rem 0; border-bottom: 1px solid rgba(42,26,30,.2); font-family: var(--f-display); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.outlets li small { display: block; font: 400 .92rem var(--f-ui); color: var(--ink-soft); margin-top: .15rem; }
@media (max-width: 760px) { .outlets { grid-template-columns: 1fr; } }

/* contact + footer */
.contact { background: var(--bur); color: var(--on-bur); padding-block: clamp(4rem, 9vw, 7rem); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.contact h2 { max-width: 14ch; }
.contact p { color: var(--on-bur-soft); margin-top: 1.1rem; }
.contact .btns { display: grid; gap: .9rem; justify-items: start; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }
footer { background: var(--bur-deep); color: var(--on-bur-soft); padding-block: 2.6rem; font: 400 .92rem/1.6 var(--f-ui); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; }
footer b { font: 400 1.4rem var(--f-display); color: var(--on-bur); display: block; margin-bottom: .4rem; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
footer a { color: var(--on-bur); display: inline-flex; align-items: center; min-height: 2.75rem; }
footer .legal { grid-column: 1 / -1; max-width: none; font-size: .82rem; opacity: .8; padding-top: 1.2rem; border-top: 1px solid rgba(227,207,201,.2); }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .link::after { transition: none !important; } }
