@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.sc-torrefazione { --k-bg: #1e140e; --k-ink: #f2e6d4; --k-muted: #c4ab8f; --k-ac: #c98a4b; --k-ac-ink: #1e140e; --k-surface: #2a1c13; --k-line: rgba(242,230,212,.16);
  --k-display: "Young Serif", Georgia, serif; --k-body: "DM Sans", system-ui, sans-serif; --k-dw: 400; --k-track: -.02em; --k-case: uppercase; --k-lh: .95; --k-r: 22px; }
.script, .script-s { font-family: "Caveat", cursive; color: var(--k-ac); }

.hero { position: relative; min-height: calc(100vh - 110px); padding: 60px var(--k-pad); overflow: hidden; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(70% 60% at 80% 40%, #4a2e1c, transparent 60%), var(--k-bg); }
.beans { position: absolute; inset: 0; pointer-events: none; }
.bean { position: absolute; width: var(--s); aspect-ratio: .72; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a8693a, #5b3319 70%); box-shadow: inset -6px -8px 14px rgba(0,0,0,.35); will-change: transform; }
.bean::after { content: ""; position: absolute; left: 46%; top: 8%; bottom: 8%; width: 12%; border-radius: 50%; background: #2b170b; transform: rotate(8deg); }
.hero h1 { position: relative; margin: 0; font-size: clamp(64px, 10vw, 170px); }
.hero h1 span { display: block; animation: rise 1s var(--k-ease) both; }
.hero h1 span + span { color: var(--k-ac); animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(50px); } }
.script { position: relative; margin: 0 0 8px; font-size: clamp(28px, 3vw, 44px); transform: rotate(-3deg); }
.lead { position: relative; max-width: 520px; margin: 26px 0; color: var(--k-muted); font-size: 18px; }
.ctas { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.ctas .k-btn--ghost { color: var(--k-ink); }

.ritual { position: relative; height: 420vh; background: linear-gradient(#1e140e, #2a1c13); }
.r-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 80px var(--k-pad) 40px; }
.step-k { margin: 0; color: var(--k-muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.r-copy h2 { margin: 10px 0 0; font-size: clamp(50px, 6vw, 100px); }
.script-s { margin: 4px 0 16px; font-size: 34px; }
.r-copy p:not(.step-k):not(.script-s) { max-width: 440px; color: var(--k-muted); font-size: 18px; }
.r-copy [data-step-t], .r-copy [data-step-s], .r-copy [data-step-p] { transition: opacity .3s, transform .3s; }
.r-copy.swap [data-step-t], .r-copy.swap [data-step-s], .r-copy.swap [data-step-p] { opacity: 0; transform: translateY(10px); }
.r-meta { display: flex; gap: 26px; margin: 24px 0 0; }
.r-meta dt { color: var(--k-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.r-meta dd { margin: 4px 0 0; font: 400 22px "Young Serif"; }
.brew { width: 100%; max-height: 80vh; }
[data-kettle] { transform-origin: 160px 110px; transform-box: view-box; }
.stream { fill: none; stroke: #c98a4b; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; }
.drip { fill: none; stroke: #6b4226; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 10; animation: drip .6s linear infinite; opacity: 0; }
@keyframes drip { to { stroke-dashoffset: -16; } }
.steam path { fill: none; stroke: rgba(242,230,212,.5); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 60; animation: steam 2.4s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .5s; } .steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0% { stroke-dashoffset: 60; opacity: 0; } 50% { opacity: 1; } 100% { stroke-dashoffset: -60; opacity: 0; } }
.r-bar { position: absolute; left: var(--k-pad); right: var(--k-pad); bottom: 24px; height: 3px; background: var(--k-line); }
.r-bar i { display: block; height: 100%; background: var(--k-ac); transform-origin: 0; transform: scaleX(0); }

.menu { background: #f2e6d4; color: #1e140e; --k-ink: #1e140e; --k-muted: #6f5643; }
.menu .k-btn--ghost { color: #1e140e; }
.ring-stage { height: 380px; perspective: 1100px; touch-action: pan-y; cursor: grab; }
.ring { position: relative; width: 200px; height: 280px; margin: 40px auto 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.ring.dragging { transition: none; }
.drink { position: absolute; inset: 0; display: grid; align-content: end; justify-items: center; gap: 6px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 20px 40px rgba(30,20,14,.18); backface-visibility: hidden; text-align: center; }
.drink .cup { position: relative; width: 110px; height: 90px; margin-bottom: 18px; border-radius: 0 0 50px 50px; background: var(--c); box-shadow: inset 0 14px 0 var(--f); }
.drink .cup::after { content: ""; position: absolute; right: -24px; top: 18px; width: 30px; height: 40px; border: 8px solid var(--c); border-left: 0; border-radius: 0 20px 20px 0; }
.drink b { font: 400 22px "Young Serif"; text-transform: uppercase; }
.drink span { color: #6f5643; font-size: 14px; }
.ring-ctrl { display: flex; justify-content: center; align-items: center; gap: 20px; }
.ring-info { min-width: 240px; text-align: center; }
.ring-info b { display: block; font: 400 28px "Young Serif"; text-transform: uppercase; }
.ring-info span { color: #6f5643; }

.or-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 30px; align-items: center; }
.or-tabs { flex-direction: column; }
.or-tabs button { color: var(--k-ink); }
.or-tabs button[aria-checked="true"] { background: var(--k-ac); border-color: var(--k-ac); color: var(--k-ac-ink); }
.radar { width: 100%; max-width: 380px; overflow: visible; }
.radar .web { fill: none; stroke: var(--k-line); }
.radar .axis-l { fill: var(--k-muted); font: 600 12px "DM Sans"; text-anchor: middle; }
.radar .shape { fill: rgba(201,138,75,.35); stroke: var(--k-ac); stroke-width: 3; stroke-linejoin: round; }
.or-copy h3 { margin: 0 0 8px; font-size: 44px; }
.or-copy p { color: var(--k-muted); font-size: 17px; }
.or-copy .price { color: var(--k-ink); font-weight: 700; }

@media (max-width: 899px) {
  .r-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 80px; gap: 0; }
  .r-copy h2 { font-size: 44px; } .script-s { font-size: 26px; margin-bottom: 4px; }
  .r-copy p:not(.step-k):not(.script-s), .r-meta { display: none; }
  .brew { max-height: 52vh; }
  .or-grid { grid-template-columns: 1fr; }
  .or-tabs { flex-direction: row; }
  .ring-stage { height: 340px; }
  .ring { width: 160px; height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .ritual { height: auto; } .r-sticky { position: relative; height: auto; } }

/* fx · rifacimento */
.sc-torrefazione { --fx-l-bg: #1e140e; --fx-l-ac: #c98a4b; }
.sc-torrefazione .k-nav { margin-bottom: -76px; background: transparent; backdrop-filter: none; }
.sc-torrefazione .k-nav.is-scrolled { background: rgba(30,20,14,.82); backdrop-filter: blur(14px); }
.tf-hero { min-height: max(700px, 100svh); padding-top: 130px; isolation: isolate; background: none; }
.tf-hero-ph { position: absolute; inset: -12% 0; z-index: -2; } .tf-hero-ph img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(1.1); }
.tf-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30,20,14,.9), rgba(30,20,14,.2) 70%), linear-gradient(0deg, #1e140e, transparent 35%); }
.tf-hero .beans { z-index: -1; }
.tf-lens-sec { padding: 0; }
.tf-lens-box { position: relative; height: 92vh; overflow: hidden; cursor: none; touch-action: pan-y; }
.tf-lens-box > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.tf-lens { position: absolute; left: 0; top: 0; width: 260px; height: 260px; border: 3px solid #f2e6d4; border-radius: 50%; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .3s; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: translate(var(--lx, 50vw), var(--ly, 40vh)) translate(-50%, -50%); }
.tf-lens-box.on .tf-lens { opacity: 1; }
.tf-lens img { position: absolute; max-width: none; object-fit: cover; }
.tf-lens-c { position: absolute; left: var(--k-pad); bottom: 8vh; max-width: 480px; pointer-events: none; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.tf-lens-c h2 { margin: 0 0 14px; font: 400 clamp(46px, 5.6vw, 92px)/.95 "Young Serif"; text-transform: uppercase; }
.tf-lens-c .script { font-size: 32px; margin: 0; }
.tf-team { padding: 130px var(--k-pad); }
.tf-team h2 { margin: 0 0 40px; font: 400 clamp(46px, 5.6vw, 92px)/.95 "Young Serif"; text-transform: uppercase; }
.tf-team .script { font-size: 30px; margin: 0; }
.tf-t-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 70px; gap: 18px; }
.tf-t-grid .fx-ph { border-radius: 22px; }
.t1 { grid-column: 1 / 5; grid-row: 1 / 8; } .t2 { grid-column: 5 / 9; grid-row: 2 / 6; } .t3 { grid-column: 9 / 13; grid-row: 1 / 5; } .t4 { grid-column: 9 / 13; grid-row: 5 / 9; }
.tf-t-copy { grid-column: 5 / 9; grid-row: 6 / 8; align-self: center; color: var(--k-muted); }
.tf-marq { padding: 20px 0; border-block: 1px solid var(--k-line); font: 400 clamp(46px, 6vw, 96px)/1 "Young Serif"; text-transform: uppercase; }
.tf-marq span { padding: 0 .4em; } .tf-marq i { font: 400 1.1em "Caveat"; color: var(--k-ac); text-transform: none; } .tf-marq span::after { content: "●"; margin-left: .8em; font-size: .3em; vertical-align: middle; color: var(--k-ac); }
@media (max-width: 899px) { .tf-t-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; } .tf-t-grid .fx-ph { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 3 / 4; } .tf-t-copy { grid-column: 1 / -1; grid-row: auto; } .tf-lens { width: 170px; height: 170px; } }
