:root {
    --radius: 10px;

    /* Palette "candelotto di dinamite": rosso TNT, nero, giallo scintilla */
    --red: #E31C1C;
    --red-dark: #B01414;
    --black: #121212;
    --yellow: #FFC700;
    --cream: #FFF7E8;
    --white: #FFFFFF;

    --border-w: 3px;
    --shadow-off: 6px;

    --font-display: 'Lexend Mega', system-ui, sans-serif;
    --font-body: 'Public Sans', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

body {
    background: var(--cream);
    color: var(--black);
    font: 400 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.05;
    text-transform: uppercase;
    text-wrap: balance;
}

.wrap {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0);
}

svg.icon {
    width: 1.2em; height: 1.2em; flex-shrink: 0;
    fill: none; stroke: currentColor;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Banda pericolo (nastro da cantiere) ---------- */
.hazard-strip {
    height: 14px;
    background: repeating-linear-gradient(45deg, var(--black) 0 18px, var(--yellow) 18px 36px);
}

.hazard-marquee {
    overflow: hidden;
    background: var(--black);
    border-bottom: var(--border-w) solid var(--black);
}

.hazard-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-x 20s linear infinite;
}

.hazard-marquee-track span {
    flex-shrink: 0;
    padding: 10px 28px;
    font: 700 .8rem var(--font-body);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--yellow);
    white-space: nowrap;
}

@keyframes marquee-x {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hazard-marquee-track { animation: none; }
}

/* ---------- Bottoni neubrutalist: bordo nero + ombra a blocco ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: var(--radius);
    padding: 0 26px;
    font: 700 .95rem var(--font-body);
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    border: var(--border-w) solid var(--black);
    box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--black);
    transition: transform .12s ease, box-shadow .12s ease;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-off) + 2px) calc(var(--shadow-off) + 2px) 0 var(--black);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--black);
}

.btn:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 3px;
}

.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-white { background: var(--white); color: var(--black); }
.btn-red { background: var(--red); color: var(--white); }

.btn-sm {
    min-height: 44px;
    padding: 0 20px;
    font-size: .82rem;
    box-shadow: 4px 4px 0 var(--black);
}

.btn-sm:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--black); }
.btn-sm:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--black); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .38;
}

.hero-scrim {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(227,28,28,.35), transparent 60%),
                linear-gradient(to top, var(--black) 5%, rgba(18,18,18,.65) 60%);
}

.hero-inner {
    position: relative;
    display: flex;
    min-height: 82svh;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 20px 40px;
    color: var(--white);
}

.badge-open {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--black);
    border: var(--border-w) solid var(--black);
    box-shadow: 4px 4px 0 var(--black);
    font: 800 .78rem var(--font-body);
    text-transform: uppercase;
    letter-spacing: .06em;
    transform: rotate(-3deg);
}

.badge-open .dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: #16A34A;
}

.badge-open.is-closed .dot {
    background: var(--red);
}

.hero-name {
    margin-top: 20px;
    /* Scala in base alla larghezza disponibile: la parola più lunga (STREETFOOD)
       riempie ~85% del box senza mai andare in overflow, su qualunque schermo. */
    font-size: clamp(1.5rem, calc(9.5vw - 6px), 6.25rem);
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.hero-name .accent {
    color: var(--red);
    -webkit-text-stroke: 2px var(--yellow);
}

.hero-lead {
    margin-top: 18px;
    max-width: 32ch;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgb(255 255 255 / 90%);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
    background: var(--red);
    border-top: var(--border-w) solid var(--black);
    border-bottom: var(--border-w) solid var(--black);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.trust-item .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    background: var(--yellow);
    border: 2px solid var(--black);
    color: var(--black);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.trust-item span {
    display: block;
    font-size: .74rem;
    color: rgb(255 255 255 / 85%);
}

/* ---------- Sezione menu ---------- */
.menu-section {
    padding: 56px 0;
    background: var(--yellow);
    border-bottom: var(--border-w) solid var(--black);
}

.menu-section > h2 {
    font-size: clamp(2rem, 7vw, 2.8rem);
    color: var(--black);
}

.menu-subtitle {
    margin-top: 8px;
    font-weight: 600;
    color: var(--red-dark);
}

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.menu-tab {
    min-height: 46px;
    border: var(--border-w) solid var(--black);
    border-radius: var(--radius);
    padding: 0 18px;
    background: var(--white);
    box-shadow: 4px 4px 0 var(--black);
    font: 700 .8rem var(--font-body);
    text-transform: uppercase;
    color: var(--black);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.menu-tab:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--black);
}

.menu-tab.active {
    background: var(--red);
    color: var(--white);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--black);
}

.menu-tab:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 2px;
}

.menu-panel { display: none; }
.menu-panel.active { display: block; }

.menu-groups { margin-top: 36px; }
.menu-group { margin-top: 40px; }
.menu-group:first-child { margin-top: 0; }

.menu-group-title {
    display: inline-block;
    font: 800 .8rem var(--font-body);
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--black);
    color: var(--yellow);
    padding: 4px 12px;
    border-radius: 6px;
    transform: rotate(-1deg);
}

.menu-items {
    margin-top: 16px;
    list-style: none;
    display: grid;
    gap: 14px;
}

.menu-items li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: var(--border-w) solid var(--black);
    border-radius: var(--radius);
    box-shadow: 5px 5px 0 var(--black);
}

.menu-item-name {
    font: 700 1rem var(--font-body);
    text-transform: uppercase;
}

.menu-item-detail {
    display: block;
    margin-top: 4px;
    font-size: .85rem;
    font-weight: 400;
    text-transform: none;
    color: #52504A;
}

.menu-item-price {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--red);
}

.menu-footnote {
    margin-top: 32px;
    font-size: .8rem;
    font-weight: 600;
    font-style: italic;
    color: var(--red-dark);
}

/* ---------- Galleria ---------- */
.gallery-section {
    padding: 56px 0;
    background: var(--black);
}

.gallery-section h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--white); }
.gallery-section .menu-subtitle { color: var(--yellow); }

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.gallery figure {
    position: relative;
    overflow: hidden;
    border: var(--border-w) solid var(--yellow);
    border-radius: var(--radius);
    background: #2A2A2A;
    aspect-ratio: 1;
    box-shadow: 5px 5px 0 var(--red);
}

.gallery img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery figure:hover img { transform: scale(1.06); }

.gallery figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 75%), transparent);
    padding: 22px 12px 10px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
}

/* ---------- CTA finale ---------- */
.final-cta {
    background: var(--red);
    border-bottom: var(--border-w) solid var(--black);
    padding: 52px 0;
    text-align: center;
    color: var(--white);
}

.final-cta h2 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.final-cta p { margin-top: 10px; font-weight: 600; opacity: .95; }
.final-cta .hero-cta { justify-content: center; margin-top: 26px; }

/* ---------- Orari + Dove siamo ---------- */
.info-section {
    padding: 56px 0;
    background: var(--cream);
}

.info-grid { display: grid; gap: 40px; }
.info-grid h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

.info-card {
    margin-top: 20px;
    background: var(--white);
    border: var(--border-w) solid var(--black);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 6px 6px 0 var(--black);
}

.hours-list { list-style: none; }
.hours-list li {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 10px 0; border-top: 2px dashed var(--black);
}
.hours-list li:first-child { border-top: none; }
.hours-day { font-weight: 700; text-transform: uppercase; }
.hours-time { font-weight: 600; color: var(--red); }

address { font-style: normal; }
.addr-item { display: flex; align-items: flex-start; gap: 12px; }
.addr-item .icon-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--yellow); border: 2px solid var(--black);
    flex-shrink: 0;
}

.map-wrap {
    margin-top: 20px;
    overflow: hidden;
    border: var(--border-w) solid var(--black);
    border-radius: var(--radius);
    box-shadow: 5px 5px 0 var(--black);
}

.map-wrap iframe { width: 100%; height: 240px; border: 0; }

.info-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Footer ---------- */
footer {
    background: var(--black);
    color: rgb(255 255 255 / 80%);
    padding: 32px 20px;
    text-align: center;
}

footer .footer-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--yellow);
    text-transform: uppercase;
}

footer p { margin-top: 8px; font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .hero-inner { min-height: 74svh; padding: 40px; }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .map-wrap iframe { height: 280px; }
}
