/* Alimentari Mediterranea — carta da banco, peperoncino, olio */
:root {
  --cream: #f4ecdc;
  --cream-2: #ebe0ca;
  --paper: #fbf7ee;
  --red: #9e2a1f;
  --red-dark: #7a1f16;
  --olive: #3f4a2a;
  --olive-2: #59663b;
  --ink: #2a1e18;
  --muted: #6b5a4c;
  --line: rgba(42, 30, 24, .16);
  --disp: 'Ultra', 'Rockwell', Georgia, serif;
  --body: 'PT Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 1.1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 14px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--olive-2); outline-offset: 3px; }

.preview-strip { height: 28px; line-height: 28px; font-size: .78rem; letter-spacing: .04em; text-align: center; background: var(--red-dark); color: #f6dcc9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 3px double rgba(158, 42, 31, .45); }
.header-in { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .3s var(--ease); }
.site-header.is-compact .header-in { height: 60px; }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1; }
.brand-name { font-family: var(--disp); font-size: 1.65rem; color: var(--red); letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-top: 5px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover, .nav a:focus-visible { color: var(--red); border-color: var(--red); }
.head-tel { font-weight: 700; text-decoration: none; background: var(--red); color: var(--paper); padding: 10px 16px; border-radius: 3px; font-size: .95rem; letter-spacing: .02em; transition: background .2s; }
.head-tel:hover { background: var(--red-dark); }
.menu-btn { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; font: 700 1rem/1.2 var(--body); text-decoration: none; border-radius: 3px; border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--paper); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.arrow-link { font-weight: 700; text-decoration: none; color: var(--red); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.arrow-link::after { content: " →"; }

/* hero */
.hero { position: relative; padding: clamp(150px, 15vw, 190px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.garland { position: absolute; top: 0; left: 0; width: 100%; height: clamp(120px, 12vw, 170px); overflow: visible; pointer-events: none; }
.garland-string { fill: none; stroke: #8a6a45; stroke-width: 2; stroke-dasharray: 5 2; }
.chili-body { fill: #b8261b; }
.chili-shine { fill: none; stroke: rgba(255, 220, 200, .45); stroke-width: 2; stroke-linecap: round; }
.chili-cap { fill: #4f6b2a; }
.chili-stem { stroke: #4f6b2a; stroke-width: 2.4; stroke-linecap: round; }
.garland .swing { transform: rotate(calc(var(--s, 0) * 1deg)); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.js .garland .sw { animation: sway 4.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.37s); }
.js .garland .sw use { opacity: 0; }
.js .garland.hung .sw use { animation: drop .7s cubic-bezier(.3, 1.5, .5, 1) forwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes drop { from { opacity: 0; translate: 0 -26px; } to { opacity: 1; translate: 0 0; } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .22em; font-weight: 700; color: var(--olive-2); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); color: var(--ink); margin-bottom: 24px; max-width: 9.5em; }
.hero h1 .red { color: var(--red); }
.lead { font-size: clamp(1.25rem, 2vw, 1.55rem); font-style: italic; color: var(--ink); max-width: 24em; margin-bottom: 14px; }
.hero-sub { color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.now { display: flex; align-items: center; gap: 10px; font-size: .98rem; color: var(--muted); margin: 0; }
.now .dot { width: 10px; height: 10px; border-radius: 50%; background: #a39280; flex: none; }
.now.is-open .dot { background: #4f7a2a; box-shadow: 0 0 0 4px rgba(79,122,42,.18); }
.now.is-closed .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(158,42,31,.15); }

.hero-photo { position: relative; margin: 0; }
.paper-wrap {
  padding: 14px; transform: rotate(-1.8deg);
  background:
    repeating-linear-gradient(45deg, rgba(158,42,31,.13) 0 2px, transparent 2px 9px),
    var(--paper);
  box-shadow: 0 24px 46px -28px rgba(60, 30, 15, .55);
}
.paper-wrap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-photo figcaption { margin-top: 16px; font-size: .9rem; color: var(--muted); text-align: right; padding-right: 6px; }
.hero-photo figcaption span, .shop-photo figcaption, .counter-photo figcaption { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.stamp { position: absolute; left: -46px; bottom: 40px; width: 132px; height: 132px; transform: rotate(-14deg); }
.stamp svg { width: 100%; height: 100%; }
.st-o { fill: var(--cream); stroke: var(--red); stroke-width: 3; }
.st-i { fill: none; stroke: var(--red); stroke-width: 1.5; }
.st-t { font: 700 10.5px var(--body); letter-spacing: 2.2px; fill: var(--red); }
.st-s { font: italic 400 12px var(--body); fill: var(--red); }
.st-y { font: 400 21px var(--disp); fill: var(--red); }

/* fatti */
.facts { list-style: none; margin: 0; padding: 18px 20px; background: var(--red); color: var(--paper); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; }
.facts li { display: flex; align-items: center; }
.facts li + li::before { content: ""; width: 7px; height: 7px; background: var(--cream); opacity: .7; transform: rotate(45deg); margin: 0 22px; }

/* negozio */
.shop { padding: clamp(70px, 10vw, 130px) 0; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.shop-photo { margin: 0; position: relative; }
.shop-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 2px; box-shadow: 18px 18px 0 var(--cream-2); }
.shop-photo figcaption { margin-top: 26px; color: var(--muted); }
.shop h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--red); margin-bottom: 26px; }
.shop .big { font-size: clamp(1.3rem, 2.1vw, 1.6rem); font-style: italic; line-height: 1.45; color: var(--ink); }
.shop-text p { max-width: 32em; }
.sign { font-weight: 700; color: var(--olive-2); margin-top: 22px; }

/* al banco */
.counter {
  padding: clamp(70px, 10vw, 130px) 0; background-color: var(--cream-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%239e2a1f' fill-opacity='.09'%3E%3Cpath d='M30 26c-4 10-3 22 5 32 2 2 4 1 3-1-4-9-4-20-2-31-2-2-4-2-6 0z'/%3E%3Cpath d='M100 96c-4 10-3 22 5 32 2 2 4 1 3-1-4-9-4-20-2-31-2-2-4-2-6 0z'/%3E%3C/g%3E%3Cg fill='%233f4a2a' fill-opacity='.12'%3E%3Cpath d='M27 26c2-4 9-4 11 0-3 2-8 2-11 0zM97 96c2-4 9-4 11 0-3 2-8 2-11 0z'/%3E%3C/g%3E%3C/svg%3E");
}
.counter-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 50px; }
.counter h2 { font-size: clamp(2.6rem, 6vw, 5rem); color: var(--ink); }
.counter-head p { margin: 0 0 8px; color: var(--muted); max-width: 28em; font-size: 1.15rem; }
.tags { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.tag {
  position: relative; padding: 34px 22px 26px; background: var(--red); color: var(--paper); transform: rotate(var(--r, 0));
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
  transition: transform .35s var(--ease);
}
.tag:hover { transform: rotate(0) translateY(-4px); }
.tag-hole { position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--cream-2); box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); }
.tag h3 { font-size: 1.45rem; margin-bottom: 8px; }
.tag p { margin: 0; font-size: 1rem; opacity: .9; }
.tag-white { background: var(--paper); color: var(--ink); }
.tag-green { background: var(--olive); }
.js .tag.reveal { transform: translateY(16px) rotate(var(--r, 0)); }
.js .tag.reveal.in { transform: rotate(var(--r, 0)); }
.js .tag.reveal.in:hover { transform: rotate(0) translateY(-4px); }
.counter-low { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.counter-photo { margin: 0; }
.counter-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.counter-photo figcaption { margin-top: 10px; color: var(--muted); }
.board {
  background: #23261c; color: #ece6d6; padding: clamp(28px, 4vw, 44px); border: 10px solid #6e4f31; border-radius: 4px;
  box-shadow: inset 0 0 60px rgba(0,0,0,.45); display: flex; flex-direction: column; justify-content: center; margin-bottom: 28px;
}
.board-k { font-family: var(--disp); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; color: #f3ead8; margin-bottom: 12px; }
.board-v { font-size: 1.2rem; font-style: italic; color: #d9d1bf; }
.board-tel { font-family: var(--disp); font-size: clamp(1.7rem, 3vw, 2.4rem); color: #f2c9a6; text-decoration: none; margin: 6px 0 16px; letter-spacing: .01em; }
.board-tel:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.board-note { font-size: .95rem; color: #b8b09e; margin: 0; border-top: 1px dashed rgba(236,230,214,.3); padding-top: 14px; }

/* lista */
.list { padding: clamp(70px, 10vw, 130px) 0; }
.list-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "head form" "head receipt"; gap: 0 clamp(32px, 6vw, 90px); align-items: start; }
.list-head { grid-area: head; }
.form { grid-area: form; }
.receipt { grid-area: receipt; }
.list h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--red); margin-bottom: 22px; }
.list-head p { max-width: 26em; }
.small { font-size: .95rem; color: var(--muted); }
.form { display: grid; gap: 18px; background: var(--paper); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(60,30,15,.5); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form label, .form legend { font-weight: 700; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
.form input[type=text], .form textarea { width: 100%; font: 400 1.05rem/1.45 var(--body); color: var(--ink); background: #fff; border: 1.5px solid #cdbfa8; border-radius: 3px; padding: 12px 14px; }
.form textarea { resize: vertical; background-image: repeating-linear-gradient(transparent 0 29px, rgba(158,42,31,.14) 29px 30px); background-attachment: local; line-height: 30px; padding: 0 14px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(158,42,31,.15); }
.form [aria-invalid=true] { border-color: var(--red) !important; background-color: #fff6f3; }
.err { color: var(--red); font-size: .9rem; margin: 0; font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts legend { width: 100%; margin-bottom: 6px; padding: 0; }
.opts label { cursor: pointer; font-weight: 400; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts span { display: inline-block; padding: 10px 16px; border: 1.5px solid #cdbfa8; border-radius: 3px; background: #fff; transition: background .2s, border-color .2s, color .2s; }
.opts input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--paper); font-weight: 700; }
.opts input:focus-visible + span { outline: 3px solid var(--olive-2); outline-offset: 2px; }
.form .btn { justify-self: start; }
.receipt { margin-top: 26px; background: #fffdf8; padding: 26px 24px 22px; border: 1px solid var(--line); position: relative; box-shadow: 0 18px 40px -30px rgba(60,30,15,.5); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 8px -2px, transparent 9px, #fffdf8 10px) 0 0 / 16px 10px repeat-x; }
.receipt:focus { outline: none; }
.rc-head { font-family: var(--disp); color: var(--red); font-size: 1.3rem; text-align: center; line-height: 1.2; border-bottom: 2px dashed var(--line); padding-bottom: 14px; }
.rc-head span { font-family: var(--body); font-size: .85rem; color: var(--muted); letter-spacing: .08em; }
.rc-body { font: 400 1rem/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace; white-space: pre-wrap; word-break: break-word; margin: 0 0 18px; color: var(--ink); }
.rc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rc-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }

/* orari */
.where { padding: clamp(70px, 10vw, 130px) 0; background: var(--paper); border-top: 3px double rgba(158, 42, 31, .35); }
.where-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.where h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.badge-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.badge { font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 3px; background: var(--cream-2); }
.badge.open { background: #e3ecd6; color: #345017; }
.badge.closed { background: #f6dfd9; color: var(--red-dark); }
.badge-sub { color: var(--muted); font-size: .98rem; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 2px solid var(--ink); margin-bottom: 30px; }
.hours th, .hours td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 400; width: 36%; }
.hours td span { white-space: nowrap; }
.hours td span + span::before { content: "e"; margin: 0 .6em; color: var(--muted); }
.hours td em { font-size: .85rem; color: var(--muted); margin-left: .5em; }
.hours tr.today { background: #fff6e6; }
.hours tr.today th { font-weight: 700; color: var(--red); }
.hours tr.today th::after { content: " · oggi"; font-weight: 400; font-size: .85rem; color: var(--muted); }
.addr { font-style: normal; line-height: 1.6; }
.addr strong { font-family: var(--disp); font-weight: 400; font-size: 1.4rem; color: var(--red); }
.map { border: 3px solid var(--ink); aspect-ratio: 4 / 3; background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }

/* footer */
.site-footer { background: var(--ink); color: #d9ccb8; padding: 50px 0 36px; font-size: .98rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; }
.foot-brand { font-family: var(--disp); font-size: 2.2rem; color: #f0b9a3; margin-bottom: 10px; line-height: 1; }
.site-footer a { color: #fff3e3; }
.foot-hours strong { color: #fff3e3; }
.foot-small { grid-column: 1 / -1; font-size: .8rem; color: #a6988a; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin: 6px 0 0; }

.action-bar { display: none; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav ul { gap: 18px; }
  .hero-grid, .shop-grid, .list-grid, .where-grid, .counter-low { grid-template-columns: 1fr; }
  .list-grid { grid-template-areas: "head" "form" "receipt"; }
  .hero-photo { max-width: 520px; margin: 0 auto 0 60px; }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counter-head { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 2px solid var(--ink); border-radius: 3px; padding: 8px 12px; font: 700 .9rem var(--body); color: var(--ink); cursor: pointer; }
  .menu-ic { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
  .menu-ic::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
  .menu-btn[aria-expanded=true] .menu-ic { border-color: transparent; }
  .menu-btn[aria-expanded=true] .menu-ic::after { transform: rotate(45deg); box-shadow: none; }
  .menu-btn[aria-expanded=true] .menu-ic::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; transform: rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 3px solid var(--red); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 6px 20px 18px; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .head-tel { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1.05rem; padding-bottom: 68px; }
  .wrap { width: calc(100% - 32px); }
  .header-in { height: 64px; }
  .brand-name { font-size: 1.4rem; }
  .brand-sub { font-size: .64rem; letter-spacing: .14em; }
  .hero { padding-top: 112px; }
  .garland { height: 112px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-photo { margin: 10px 0 0 34px; }
  .stamp { width: 100px; height: 100px; left: -34px; bottom: 30px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; text-align: center; font-size: .95rem; padding: 18px 16px; }
  .facts li { justify-content: center; }
  .facts li + li::before { display: none; }
  .shop-photo img { box-shadow: 10px 10px 0 var(--cream-2); }
  .tags { grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 44px; }
  .tag { padding: 30px 14px 18px; }
  .tag h3 { font-size: 1.15rem; }
  .tag p { font-size: .9rem; }
  .board { border-width: 8px; }
  .form .btn { justify-self: stretch; }
  .rc-actions .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .action-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--red); color: var(--paper); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 18px -10px rgba(0,0,0,.4); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; text-decoration: none; font-size: .78rem; font-weight: 700; }
  .action-bar a + a { border-left: 1px solid rgba(255,255,255,.18); }
  .action-bar svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .garland .sw use { opacity: 1; }
  .js .tag.reveal { transform: rotate(var(--r, 0)); }
}
