/* Osteria del Ginepro (inventata): stile caldo ed editoriale. Tutto disegnato in CSS, nessuna foto. */

/* ---------- PRIMA: com'era (2009) ---------- */
.o-wrap { min-width: 980px; background: #5b3a1a; padding-bottom: 22px; font: 13px/1.45 Verdana, Geneva, sans-serif; color: #000; }
.o-addr { background: #ece9d8; border-bottom: 1px solid #716f64; padding: 6px 10px; font: 12px Tahoma, Arial, sans-serif; color: #333; }
.o-addr .warn { color: #b00; font-weight: 700; margin-right: 10px; }
.o-page { width: 920px; margin: 14px auto; background: #f5deb3 repeating-linear-gradient(45deg, #f5deb3 0 6px, #f0d5a0 6px 12px); border: 5px ridge #8b5a2b; }
.o-head { width: 100%; border-bottom: 3px double #8b0000; border-collapse: collapse; }
.o-logo { width: 130px; height: 100px; background: #ccc; border: 2px inset #888; text-align: center; font: 11px Arial; color: #555; }
.o-head h1 { margin: 6px 0; text-align: center; font: bold 34px "Monotype Corsiva", "Comic Sans MS", cursive; color: #8b0000; text-shadow: 2px 2px #ffd700; }
.o-marq { overflow: hidden; white-space: nowrap; background: #8b0000; color: #ff0; font-weight: 700; padding: 4px 0; }
.o-marq span { display: inline-block; animation: omarq 22s linear infinite; }
@keyframes omarq { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.o-nav { width: 100%; border-collapse: separate; border-spacing: 3px; }
.o-nav td { border: 2px outset #daa520; background: #cd853f; color: #fff; text-align: center; padding: 6px 2px; font-weight: 700; font-size: 12px; }
.o-body { width: 100%; border-collapse: collapse; }
.o-side { width: 180px; background: #deb887; border-right: 2px groove #8b5a2b; padding: 12px; vertical-align: top; font-size: 12px; }
.o-main { padding: 12px 18px; text-align: justify; vertical-align: top; }
.o-main h2 { margin: 0 0 8px; font: bold 22px "Comic Sans MS", cursive; color: #8b0000; }
.o-ph { float: right; width: 240px; height: 150px; margin: 4px 0 8px 14px; background: #ccc; border: 2px inset #888; display: grid; place-items: center; text-align: center; font: 11px Arial; color: #555; }
.o-small { font-size: 11px; color: #444; }
.blink { color: #c00; font-weight: 700; animation: oblink 1s steps(2, start) infinite; }
@keyframes oblink { to { visibility: hidden; } }
.fb { background: #3b5998; color: #fff; font-weight: 700; padding: 0 5px; }
.o-foot { background: #8b0000; color: #fff; padding: 7px; text-align: center; font-size: 11px; }
.cnt { font-family: "Courier New", monospace; background: #000; color: #0f0; padding: 0 5px; letter-spacing: 2px; }

/* ---------- DOPO ---------- */
#nuovo { --cream: #f7f1e8; --deep: #2a1418; --terra: #7a1f2e; --olive: #55705a; --gold: #8a9a7b; --serif: ui-serif, Georgia, "Times New Roman", serif;
  position: relative; background: var(--cream); color: var(--deep); font: 18px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; overflow-x: clip; }
#nuovo h1, #nuovo h2, #nuovo h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
#nuovo em { color: var(--terra); font-style: italic; }
.kick { margin: 0 0 12px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); }
.sub { max-width: 56ch; color: #6b4a50; margin: 12px 0 0; }
.n-btn { display: inline-block; text-decoration: none; background: var(--terra); color: var(--cream); font-weight: 700; padding: 14px 26px; border-radius: 99px; border: 0; cursor: pointer; font-size: 16px; transition: transform .25s, background .25s, box-shadow .25s; box-shadow: 0 8px 22px #7a1f2e55; }
.n-btn:hover { background: #5b1722; transform: translateY(-3px); box-shadow: 0 14px 30px #7a1f2e66; }
.n-btn.sm { padding: 9px 18px; font-size: 14px; box-shadow: none; }
.n-btn.big { width: 100%; margin-top: 10px; }
.n-link { text-decoration: none; color: var(--deep); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
#nuovo :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.n-top { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 44px); }
.n-logo { font: 700 26px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.n-logo i { display: block; font: 400 11px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; margin-top: 4px; color: var(--terra); }
.n-top nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); }
.n-top nav a:not(.n-btn) { text-decoration: none; font-size: 15px; }
.n-top nav a:not(.n-btn):hover { color: var(--terra); }
@media (max-width: 720px) { .n-top nav a:not(.n-btn) { display: none; } }

/* hero a strati */
.n-hero { position: relative; min-height: min(100svh - 48px, 860px); min-height: min(100vh - 48px, 860px); overflow: hidden; background: linear-gradient(#efd9cc 0%, #f4e6da 45%, var(--cream) 80%); display: flex; align-items: flex-start; }
.scene { position: absolute; inset: 0; pointer-events: none; }
.ly { position: absolute; left: 0; width: 100%; will-change: transform; }
.sun { top: 26%; left: auto; right: 12%; width: clamp(170px, 26vw, 360px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f3c3b3, #d9807a 70%, #b9524f); box-shadow: 0 0 120px 40px #e8a08e55; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }
.hills { bottom: 0; height: 46%; } .hills path { stroke: none; }
.h3 { fill: #dbc9b6; height: 52%; } .h2 { fill: #a4ae96; height: 42%; } .h1 { fill: var(--olive); height: 32%; }
.n-hero-in { position: relative; z-index: 2; padding: clamp(110px, 18vh, 170px) clamp(16px, 5vw, 70px) 0; max-width: 760px; }
.n-hero h1 { font-size: clamp(52px, 10.5vw, 128px); line-height: .94; letter-spacing: -.025em; }
.n-hero h1 em { display: inline-block; }
.n-hero .ch { display: inline-block; transform: translateY(105%) rotate(6deg); opacity: 0; animation: chup .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 45ms + 150ms); }
.n-hero .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
@keyframes chup { to { transform: none; opacity: 1; } }
.lead { margin: 22px 0 28px; max-width: 34ch; font-size: clamp(18px, 2.2vw, 23px); color: #5b3b42; }
.n-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream); animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(-50%, 6px); } }

/* fascia */
.n-marq { background: var(--deep); color: var(--cream); overflow: hidden; padding: 16px 0; white-space: nowrap; font: italic 400 clamp(24px, 4vw, 44px)/1.2 var(--serif); }
.n-marq > div { display: inline-flex; gap: 30px; align-items: center; will-change: transform; } .n-marq i { color: var(--gold); font-style: normal; font-size: .6em; }

/* sezioni */
.n-sec { padding: clamp(60px, 10vw, 120px) clamp(16px, 5vw, 70px); max-width: 1180px; margin: 0 auto; }
.n-sec h2 { font-size: clamp(34px, 6vw, 68px); line-height: 1.04; letter-spacing: -.02em; }
.n-sec.dark { max-width: none; background: #3a1620; color: var(--cream); padding-left: 0; padding-right: 0; }
.n-sec.dark .kick, .n-sec.dark h2 { padding-left: clamp(16px, 5vw, 70px); } .n-sec.dark em { color: #c3d0b5; } .n-sec.dark .kick { color: #c3d0b5; }

/* menù con tab */
.tabs { position: relative; display: flex; gap: 2px; margin: 28px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #2a141833; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; width: max-content; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { all: unset; cursor: pointer; padding: 10px clamp(10px, 2.4vw, 18px); font-size: 16px; color: #7a5a60; transition: color .25s; white-space: nowrap; }
.tabs button[aria-selected=true], .tabs button:hover { color: var(--deep); }
.tabs button:focus-visible { outline: 3px solid var(--gold); border-radius: 8px; }
.tabs .ink { position: absolute; bottom: -1px; left: 0; height: 3px; width: 60px; background: var(--terra); border-radius: 3px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1); }
.dishes { list-style: none; margin: 0; padding: 0; display: none; }
.dishes.on { display: block; animation: pin .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes pin { from { opacity: 0; transform: translateY(14px); } }
.dishes li { position: relative; padding: 26px 230px 26px 0; min-height: 124px; border-bottom: 1px solid #2a141822; cursor: default; display: block; }
.dishes .nm { display: block; font: 400 clamp(26px, 3.6vw, 40px)/1.15 var(--serif); transition: transform .4s cubic-bezier(.2, .8, .2, 1), color .3s; }
.dishes .ds { display: block; color: #7a5a60; margin-top: 4px; font-size: 16px; }
.dishes li:hover .nm, .dishes li:focus-visible .nm, .dishes li.open .nm { transform: translateX(14px); color: var(--terra); }
/* scorrimento orizzontale */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px clamp(16px, 5vw, 70px) 40px; scrollbar-width: thin; scrollbar-color: #c3d0b533 transparent; }
.card { flex: 0 0 min(76vw, 300px); aspect-ratio: 3 / 4; scroll-snap-align: center; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); position: relative; overflow: hidden;
  background: radial-gradient(circle at 78% 14%, var(--c2) 0 12%, transparent 13%), linear-gradient(165deg, var(--c1), #2a1418); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; box-shadow: 0 20px 40px #0006; }
.card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), #ffffff2e, transparent 60%); pointer-events: none; }
.card .tag { position: absolute; top: 18px; left: 22px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.card h3 { font-size: 28px; line-height: 1.1; margin-bottom: 6px; } .card p { margin: 0; opacity: .85; font-size: 16px; }

/* testo che si riempie */
.story { max-width: 1000px; }
.fill { font: 400 clamp(26px, 4.4vw, 54px)/1.22 var(--serif); letter-spacing: -.01em; margin: 0; }
.fill .w { opacity: .16; transition: opacity .35s, color .35s; } .fill .w.lit { opacity: 1; }

/* prenotazione */
.resv { margin-top: 30px; max-width: 640px; background: #fffcf7; border: 1px solid #2a141822; border-radius: 26px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 24px 60px #2a141826; }
.row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #2a141814; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 8px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .step button { font: inherit; font-size: 15px; cursor: pointer; border: 1px solid #2a141838; background: #fff; color: var(--deep); border-radius: 99px; padding: 9px 16px; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.chips button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--terra); }
.chips button[aria-pressed=true] { background: var(--terra); color: var(--cream); border-color: var(--terra); }
.chips button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.step { display: flex; align-items: center; gap: 14px; } .step output { min-width: 2ch; text-align: center; font: 400 30px var(--serif); } .step button { width: 42px; height: 42px; padding: 0; font-size: 22px; }
.r-out { margin: 16px 0 0; font: 400 21px/1.3 var(--serif); min-height: 2.6em; color: var(--terra); }
.r-demo { margin: 6px 0 0; font-size: 13px; color: #8a6a70; }

/* piè */
.n-foot { background: var(--deep); color: var(--cream); padding: clamp(30px, 6vw, 64px) clamp(16px, 5vw, 70px) 30px; overflow: hidden; }
.giant { font: italic 400 clamp(80px, 24vw, 330px)/.9 var(--serif); letter-spacing: -.03em; text-align: center; color: transparent; -webkit-text-stroke: 1.5px #f7f1e888; background: linear-gradient(90deg, var(--gold) var(--fill, 0%), transparent var(--fill, 0%)); -webkit-background-clip: text; background-clip: text; padding-bottom: .08em; }
.info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; font-size: 14px; color: #d9c4c0; }

@media (prefers-reduced-motion: reduce) { .n-hero .ch { animation: none; transform: none; opacity: 1; } .sun, .scroll-hint { animation: none; } .dishes.on { animation: none; } }

/* foto dei piatti: a destra, si scoprono al passaggio (sempre visibili col dito) */
.ph { position: absolute; right: 0; top: 50%; width: 210px; height: 158px; margin-top: -79px; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 36px #2a143840;
  clip-path: inset(0 0 0 100% round 14px); transform: rotate(3deg) scale(.96); opacity: 0; transition: clip-path .6s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.dishes li:hover .ph, .dishes li:focus-visible .ph, .dishes li.open .ph { clip-path: inset(0 0 0 0 round 14px); transform: rotate(-1.5deg) scale(1); opacity: 1; }
@media (hover: none), (max-width: 640px) { .dishes li { padding-right: 128px; min-height: 100px; } .ph { width: 108px; height: 81px; margin-top: -40px; clip-path: inset(0 round 12px); transform: none; opacity: 1; } }
/* piatti del giorno con foto */
.card { background: #1d0c11; padding: 0; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card:hover img { transform: scale(1.06); }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 38%, #1d0c11f0); z-index: 1; }
.card .tag { z-index: 2; background: #f7f1e8; color: #2a1418; padding: 5px 12px; border-radius: 99px; top: 16px; left: 16px; opacity: 1; }
.card .cap { position: relative; z-index: 2; padding: 22px; } .card::after { z-index: 2; }
