@font-face { font-family: "Amatic SC"; src: url("../fonts/amatic.woff2") format("woff2"); font-weight: 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-panificio { --k-bg: #e8d6b8; --k-ink: #3a2618; --k-muted: #7a5e48; --k-ac: #a8652a; --k-ac-ink: #fff8ec; --k-surface: #f6ead6; --k-line: rgba(58,38,24,.16);
  --k-display: "Amatic SC", cursive; --k-body: "DM Sans", system-ui, sans-serif; --k-dw: 700; --k-track: .01em; --k-lh: .95; --k-r: 18px; --chalk: #2b2e2a;
  background-image: radial-gradient(rgba(58,38,24,.05) 1px, transparent 1px); background-size: 6px 6px; }
.sc-panificio .k-head h2, .sc-panificio .k-contact h2 { font-size: clamp(54px, 7vw, 110px); }
.sc-panificio .k-card h3 { font-size: 40px; }

.hero { position: relative; display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 40px; min-height: max(700px, 100svh); padding: 130px var(--k-pad) 60px; overflow: hidden; isolation: isolate; }
.hero h1 { margin: 0 0 18px; font-size: clamp(76px, 10vw, 170px); }
.hero h1 span { color: var(--k-ac); }
.lead { max-width: 460px; color: var(--k-muted); font-size: 18px; }
.board { position: relative; padding: 30px; border: 14px solid #8a5a32; border-radius: 10px; background: radial-gradient(circle at 30% 20%, #3a3e39, var(--chalk)); color: #f4efe4; box-shadow: 0 30px 50px rgba(58,38,24,.3); transform: rotate(-2deg); font-family: "Amatic SC"; }
.b-title { margin: 0; font-size: 50px; text-align: center; }
.b-clock { margin: 0 0 10px; text-align: center; font-size: 34px; color: #ffd98a; }
.b-list { margin: 0 0 8px; padding: 0; list-style: none; font-size: 32px; }
.b-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 2px dashed rgba(244,239,228,.2); animation: chalk .6s var(--k-ease) both; }
.b-list li:nth-child(2) { animation-delay: .1s; } .b-list li:nth-child(3) { animation-delay: .2s; }
@keyframes chalk { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.b-list small { color: #9fd8a8; }
.b-next { margin: 0; font-size: 26px; color: #c9c2b4; }
.loaves { width: 100%; margin-top: 10px; }
.steam path { fill: none; stroke: rgba(244,239,228,.5); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 40; animation: steam 2.6s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .6s; } .steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0% { stroke-dashoffset: 40; opacity: 0; } 50% { opacity: 1; } 100% { stroke-dashoffset: -40; opacity: 0; } }

.today { background: var(--k-surface); }
.tl-wrap { overflow-x: auto; padding-bottom: 10px; }
.tl { position: relative; min-width: 900px; height: 300px; border-radius: var(--k-r); background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 13 - 1px), var(--k-line) calc(100% / 13 - 1px) calc(100% / 13)); }
.tl .hr { position: absolute; bottom: 4px; font: 700 13px "DM Sans"; color: var(--k-muted); transform: translateX(-50%); }
.batch { position: absolute; height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-radius: 12px; background: #fff; box-shadow: 0 6px 14px rgba(58,38,24,.1); font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; transition: background .4s, transform .4s; }
.batch.fresh { background: var(--k-ac); color: #fff; transform: scale(1.05); box-shadow: 0 0 0 4px rgba(168,101,42,.25); }
.batch.past { opacity: .45; }
.now { position: absolute; top: 0; bottom: 24px; width: 3px; background: #d33; transition: left 1s; }
.now b { position: absolute; top: -4px; left: 6px; padding: 2px 8px; border-radius: 8px; background: #d33; color: #fff; font: 700 11px "DM Sans"; }

.c-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; }
.c-stage { padding: 20px; border-radius: var(--k-r); background: linear-gradient(180deg, #fff6e6, #f0dcbc); }
.c-stage svg { width: 100%; overflow: visible; }
.tier { transform-box: fill-box; transform-origin: 50% 100%; animation: tierIn .6s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes tierIn { from { transform: translateY(-60px) scale(.9); opacity: 0; } }
.c-form { display: grid; gap: 16px; }
.c-form fieldset { margin: 0; padding: 0; border: 0; } .c-form legend { margin-bottom: 8px; font: 700 30px "Amatic SC"; }
.cake .k-chips button[aria-checked="true"] { background: var(--k-ink); color: #fff; border-color: var(--k-ink); }
.dt span { display: block; margin-bottom: 6px; font: 700 30px "Amatic SC"; }
.dt input { min-height: 48px; padding: 0 12px; border: 1.5px solid var(--k-line); border-radius: 12px; background: #fff; }
.c-out { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--k-r); background: var(--k-surface); }
.c-out p { flex-basis: 100%; margin: 0; } .c-out b { font: 700 48px "Amatic SC"; color: var(--k-ac); }

@media (max-width: 899px) { .hero, .c-grid { grid-template-columns: 1fr; } .board { transform: none; } }
@media (prefers-reduced-motion: reduce) { .steam path { animation: none; } }

/* fx · rifacimento */
.sc-panificio { --fx-l-bg: #1c140e; --fx-l-ink: #f6ead6; --fx-l-ac: #a8652a; }
.sc-panificio .k-nav { margin-bottom: -76px; background: transparent; backdrop-filter: none; color: #f6ead6; }
.sc-panificio .k-nav .k-brand, .sc-panificio .k-nav .k-menu a:not(.k-btn) { color: inherit; }
.sc-panificio .k-nav.is-scrolled { background: rgba(28,20,14,.82); backdrop-filter: blur(14px); }
.lm-kick { margin: 0 0 12px; font: 600 13px "DM Sans"; letter-spacing: .24em; text-transform: uppercase; color: #d9a86a; }
.lm-hero { color: #f6ead6; }
.lm-hero-ph { position: absolute; inset: -12% 0; z-index: -2; } .lm-hero-ph img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.9); }
.lm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,20,14,.85), transparent 70%); }
.lm-flour { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.lm-hero h1 { margin: 0 0 20px; font-size: clamp(80px, 11vw, 190px); line-height: .86; }
.lm-hero h1 span { display: block; } .lm-hero h1 .l2 { color: #e9b77a; --fx-delay: 200ms; }
.lm-hero .lead { color: #e5d6c0; }
.lm-hero .board { box-shadow: 0 40px 80px rgba(0,0,0,.5); transform: rotate(2deg); }
.sc-panificio h2 { margin: 0 0 40px; font-size: clamp(60px, 7vw, 120px); line-height: .9; } .sc-panificio h2 span { color: var(--k-ac); }
.lm-rise { padding: 130px var(--k-pad) 100px; }
.lm-r-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
.lm-r { margin: 0; } .lm-r .fx-ph { aspect-ratio: 3 / 4; border-radius: 999px 999px 24px 24px; transform-origin: 50% 100%; transform: scaleY(calc(.72 + min(1, var(--p, 0) * 1.6) * .28)) scaleX(calc(.9 + min(1, var(--p, 0) * 1.6) * .1)); }
.lm-r figcaption { display: grid; padding-top: 12px; } .lm-r b { font: 700 54px/1 "Amatic SC"; color: var(--k-ac); } .lm-r span { font-weight: 600; }
.lm-shop { padding: 130px var(--k-pad); }
.lm-shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lm-s { margin: 0; overflow: hidden; border-radius: 22px; background: #2a1e15; } .lm-s .fx-ph { aspect-ratio: 4 / 3; }
.lm-s figcaption { display: grid; padding: 16px 20px 20px; } .lm-s b { font: 700 40px/1 "Amatic SC"; } .lm-s span { color: #cbb79e; }
.today, .cake { background: transparent; }
@media (max-width: 899px) { .lm-r-grid { grid-template-columns: 1fr 1fr; } .lm-shop-grid { grid-template-columns: 1fr 1fr; } .lm-hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lm-flour { display: none; } .lm-r .fx-ph { transform: none; } }
