/* ==========================================================================
   Boteco Miami — tema Foundatyon
   Design fedele al sito originale (giallo #FFDF01, verde #00A652, Neucha)
   con palette corretta per WCAG 2.1 AA:
   - testi su giallo:  #1D1D23 (12.6:1) · titoli #0E6630 (5.3:1)
   - bottoni verdi:    #0E6630 con testo bianco (7.1:1)
   - testo su giallo dei bottoni: #03498F (6.7:1)
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Neucha';
  src: url('/assets/fonts/neucha-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */
:root {
  --yellow:      #FFDF01;
  --green:       #00A652;
  --green-deep:  #0E6630;
  --blue:        #03498F;
  --ink:         #1D1D23;
  --paper:       #FFFFFF;
  --error:       #9B1C1C;
  --font-hand:   'Neucha', 'Comic Sans MS', cursive;
  --font-body:   'Roboto', system-ui, -apple-system, sans-serif;
  --wave-h:      clamp(26px, 4.5vw, 54px);
  --radius:      10px;
  --maxw:        1140px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--green-deep); }

/* Focus sempre visibile, su qualunque sfondo (anello scuro + alone chiaro). */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(255, 255, 255, .55);
  border-radius: 4px;
}

/* --------------------------------------------------------------- utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink); color: #fff;
  padding: .8rem 1.6rem;
  border-radius: 0 0 10px 10px;
  font-weight: 600; text-decoration: none;
  transition: top .15s ease-out;
}
.skip-link:focus { top: 0; color: #fff; }

/* -------------------------------------------------------------- bottoni */
.btn {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .65rem 2rem;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--blue); border-color: var(--blue); }
.btn-yellow:hover { background: #fff; color: var(--blue); }
.btn-green { background: var(--green-deep); color: #fff; }
.btn-green:hover { background: var(--ink); color: #fff; }
.btn-outline-yellow {
  background: rgba(0, 0, 0, .65);
  color: var(--yellow); border-color: var(--yellow);
  border-radius: 999px;
}
.btn-outline-yellow:hover { background: var(--yellow); color: var(--ink); }
.btn-outline-green {
  background: #fff;
  color: var(--green-deep); border-color: var(--green-deep);
}
.btn-outline-green:hover { background: var(--green-deep); color: #fff; }
.btn-note { font-size: .85em; }

/* --------------------------------------------------------------- header */
.site-header {
  background: var(--green-deep);
  padding: 1rem 1rem 0;
}
.site-header.over-hero {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  background: linear-gradient(rgba(0, 20, 10, .55), rgba(0, 20, 10, 0));
  padding-bottom: 1rem;
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem;
}
.brand img { width: 110px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .25rem 1.4rem;
}
.nav-list a {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow);
  text-decoration: none;
  padding: .55rem .35rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.nav-list a:hover,
.nav-list a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* sopra l'hero la lista ha un fondo scuro garantito per il contrasto */
.over-hero .nav-list {
  background: rgba(0, 20, 10, .7);
  border-radius: 999px;
  padding: .15rem 1.2rem;
}
.nav-cta a {
  background: var(--green);
  color: var(--ink);
  text-shadow: none;
  border-radius: 999px;
  padding: .55rem 1.4rem;
  border: 2px solid rgba(0, 0, 0, .35);
}
.nav-cta a:hover, .nav-cta a:focus-visible { background: var(--yellow); color: var(--ink); }
.nav-toggle {
  display: none;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(0, 0, 0, .45);
  border: 2px solid var(--yellow);
  border-radius: 8px;
  padding: .5rem 1.2rem;
  min-height: 44px;
  cursor: pointer;
  align-items: center; gap: .6rem;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-list {
    display: none;
    flex-direction: column;
    background: var(--green-deep);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: .5rem;
    width: min(92vw, 360px);
  }
  .js .nav-list.is-open { display: flex; }
  .js .nav-list a { text-shadow: none; }
}

/* ------------------------------------------------------------------ wave */
.wave { position: absolute; left: 0; right: 0; line-height: 0; pointer-events: none; z-index: 3; }
.wave svg { display: block; width: 100%; height: var(--wave-h); transform: scaleY(-1); }
.wave-bottom { bottom: -1px; }
.wave-top { top: calc(-1 * var(--wave-h) + 1px); }
.fill-yellow svg path { fill: var(--yellow); }
.fill-green  svg path { fill: var(--green); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: max(92svh, 560px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: #15301f;
  overflow: hidden;
  padding: 7rem 1rem 5rem;
}
.hero-slides, .hero-slide, .hero-scrim { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-scrim {
  /* abbastanza scura da garantire 4.5:1 al giallo anche su un pixel bianco */
  background: linear-gradient(rgba(8, 28, 16, .74), rgba(8, 28, 16, .62) 45%, rgba(8, 28, 16, .74));
}
.hero-inner { position: relative; z-index: 2; max-width: 56rem; }
.hero-heart { margin-inline: auto; width: 64px; }
.hero h1 {
  font-family: var(--font-hand);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  letter-spacing: .12em;
  color: var(--yellow);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
  margin: .5rem 0 .25rem;
  line-height: 1.1;
}
.hero-sub {
  font-family: var(--font-hand);
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  letter-spacing: .18em;
  color: var(--yellow);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
  margin: 0 0 1.8rem;
}
.hero-cta { margin: 0; }

/* Controlli pausa (slideshow e video) */
.media-pause {
  position: absolute;
  right: 1rem; bottom: calc(var(--wave-h) + 1rem);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.media-pause:hover { background: var(--green-deep); }
.media-pause[aria-pressed="true"] span::before { content: '▶'; }
.media-pause[aria-pressed="true"] span { font-size: 0; }
.media-pause[aria-pressed="true"] span::before { font-size: 1rem; }

/* --------------------------------------------------------------- sezioni */
.section { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 1rem; }
.section-inner { max-width: var(--maxw); margin-inline: auto; position: relative; z-index: 2; }
.section-yellow { background: var(--yellow); }
.section-title {
  font-family: var(--font-hand);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: .06em;
  line-height: 1.15;
  color: var(--green-deep);
  margin: 0 0 1.2rem;
}
.prose {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  line-height: 1.55;
}
.prose p { margin: 0 0 1.1rem; }
.prose a { color: var(--blue); }
.prose strong { letter-spacing: .02em; }

/* --------------------------------------------------- brazilian heart */
.bh-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .bh-grid { grid-template-columns: 1fr; } }

.carousel-track {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.carousel-track img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }
/* con JS: carosello manuale */
.is-carousel .carousel-track { display: block; }
.is-carousel .carousel-track li { display: none; }
.is-carousel .carousel-track li.is-current { display: block; }
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: .9rem;
}
.carousel-controls button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--green-deep);
  background: var(--green-deep); color: #fff;
  font-size: 1.2rem; cursor: pointer;
}
.carousel-controls button:hover { background: var(--ink); border-color: var(--ink); }
.carousel-status { font-family: var(--font-body); font-size: .95rem; min-width: 7ch; text-align: center; }

/* ------------------------------------------------------------ video strip */
.video-strip { position: relative; height: clamp(300px, 46vw, 560px); overflow: hidden; background: #000; }
.video-holder, .video-holder video, .video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.video-strip .media-pause { bottom: 1rem; }

/* ------------------------------------------------------------------ menu */
.menu-section {
  background-color: var(--green);
  padding-top: calc(var(--wave-h) + 2rem);
  padding-bottom: calc(var(--wave-h) + 3rem);
}
.menu-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/bg/mural-drawing.jpg') center / cover;
  opacity: .22;
}
.order-cta { text-align: center; margin: 1rem 0 2rem; }

.food-gallery {
  list-style: none;
  margin: 0 auto 2.5rem; padding: 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 150px));
  justify-content: center;
  gap: 14px;
}
.food-gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px;
  border: 3px solid rgba(255, 255, 255, .75);
}

.menu-card {
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.menu-card .section-title { margin-bottom: 1.6rem; }
.menu-body { text-align: left; }
.menu-body h3 {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--green-deep);
  border-bottom: 3px solid var(--yellow);
  padding-bottom: .3rem;
  margin: 2rem 0 .8rem;
}
.menu-body h3:first-child { margin-top: 0; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: baseline;
  padding: .55rem 0;
  border-bottom: 1px dotted #9a9a9a;
}
.menu-list .dish { font-weight: 600; font-size: 1.05rem; }
.menu-list .price { font-weight: 700; color: var(--green-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-list .note { grid-column: 1 / -1; color: #444; font-size: .95rem; padding-top: .1rem; }
.menu-download { text-align: center; margin: 2rem 0 0; }

/* Tabs (solo con JS) */
.menu-tabs-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}
.menu-tabs-nav [role="tab"] {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-deep);
  background: #fff;
  border: 2px solid var(--green-deep);
  border-radius: 999px;
  padding: .5rem 1.2rem;
  min-height: 44px;
  cursor: pointer;
}
.menu-tabs-nav [role="tab"]:hover { background: var(--yellow); }
.menu-tabs-nav [role="tab"][aria-selected="true"] { background: var(--green-deep); color: #fff; }
[data-menu-tabs] [role="tabpanel"] h3 { margin-top: 0; }
[data-menu-tabs] [role="tabpanel"][hidden] { display: none; }

/* --------------------------------------------------------------- catering */
.catering-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  align-content: start;
}
@media (max-width: 560px) { .catering-grid { grid-template-columns: 1fr 1fr; } }
.catering-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* ----------------------------------------------------------- where we are */
.where-we-are {
  background: url('/assets/images/bg/mural-painted.jpg') center / cover;
  padding-top: calc(var(--wave-h) + 3rem);
  padding-bottom: 0;
  text-align: center;
}
.where-we-are::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(24, 10, 6, .45);
}
.where-inner { padding-bottom: 3rem; }
.where-panel {
  display: inline-block;
  background: rgba(10, 8, 6, .72);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3.5rem);
}
.where-panel .section-title { color: #fff; }
.where-address { color: #fff; font-size: 1.1rem; margin: 0 0 1rem; }
.where-phone { margin: 0 0 1.5rem; }
.where-phone a {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--yellow);
  text-decoration: none;
}
.where-phone a:hover { text-decoration: underline; text-underline-offset: 5px; }
.where-directions { margin: 0; }
.map-holder { position: relative; z-index: 2; background: #e8e6e1; }
.map-holder iframe { display: block; border: 0; width: 100%; }

/* ---------------------------------------------------------------- contact */
.contact { padding-bottom: clamp(3rem, 7vw, 5rem); }
.contact-inner { max-width: 760px; text-align: center; }
.contact-form { text-align: left; margin-top: 1.5rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: .3rem;
}
.req { color: var(--error); font-weight: 700; }
.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--green-deep);
  border-radius: 6px;
  padding: .7rem .8rem;
}
.form-row [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 600; margin: .35rem 0 0; }
.form-note { font-size: .95rem; margin: .5rem 0 1.2rem; }
.btn-send { width: 100%; font-size: 1.4rem; }
.form-success,
.form-errors {
  text-align: left;
  background: #fff;
  border-left: 8px solid var(--green-deep);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}
.form-errors { border-left-color: var(--error); }
.form-errors ul { margin: .5rem 0 0; }
.form-errors a { color: var(--error); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; top: auto; }

.instagram-block { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ----------------------------------------------------------------- footer */
.site-footer {
  position: relative;
  background: #10130f url('/assets/images/hero/hero-4.jpg') center / cover;
  padding: calc(var(--wave-h) + 3rem) 1rem 2rem;
  text-align: center;
  color: #fff;
}
.site-footer::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10, 12, 10, .78);
}
.footer-inner { position: relative; max-width: var(--maxw); margin-inline: auto; }
.footer-note { max-width: 46rem; margin: 0 auto 1.5rem; font-size: .95rem; color: #fff; }
.footer-logo { margin: 0 auto 1rem; width: 110px; }
.footer-nav ul {
  list-style: none;
  margin: 0 0 1.2rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .3rem 1.6rem;
}
.footer-nav a { color: #fff; text-decoration: underline; text-underline-offset: 3px; padding: .5rem .2rem; display: inline-block; }
.footer-nav a:hover { color: var(--yellow); }
.footer-copy {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  font-size: .9rem; color: #fff; margin: 0;
}
.footer-copy a { color: var(--yellow); }

/* ----------------------------------------------------------------- to top */
.to-top {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 50;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--green-deep);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.to-top:hover { background: var(--ink); }

/* --------------------------------------------------------- pagine interne */
.page-hero { background: var(--yellow); padding: 2.5rem 1rem; }
.page-hero h1 {
  font-family: var(--font-hand);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green-deep);
  margin: 0;
  max-width: var(--maxw); margin-inline: auto;
}
.page-content { padding: 2.5rem 1rem 4rem; max-width: 820px; }
.page-content .prose { font-size: 1.15rem; font-family: var(--font-body); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { border-bottom: 1px solid #ddd; padding: 1.2rem 0; }
.news-list h2 { margin: 0 0 .3rem; font-size: 1.4rem; }
.news-date { color: #555; font-size: .95rem; }
.post-image { border-radius: var(--radius); margin-bottom: 1.2rem; }

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

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .site-footer, .to-top, .media-pause, .skip-link, .wave,
  .video-strip, .hero-slides, .hero-scrim { display: none !important; }
  .hero { min-height: 0; background: #fff; color: #000; padding: 1rem; }
  .hero h1, .hero-sub { color: #000; text-shadow: none; }
  .section { background: #fff !important; }
}
