/* ==========================================================================
   ÍTALO BRASILIANO PIZZERIA — HOME V2 (geometria Framer + paleta dark)
   Arquivo novo e isolado: não altera index.html nem style.css.
   Medidas extraídas do mirror Framer (sandbox/italo-mirror/home/rendered.html):
   - Hero e cards bento: raio 12px • coluna direita max 400px, gap 12px
   - Entalhes: SVG 18px (paths do Framer), cantos 20px nav / 18px badges
   - Tokens dark do próprio Framer (@media prefers-color-scheme:dark)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600;1,700&family=Sorts+Mill+Goudy:ital@0;1&display=swap');

.v2 {
  /* Tokens dark autorais do Framer */
  --v2-canvas: #0f1f12;   /* fundo página, cápsula, overlays, etiquetas */
  --v2-card: #162e1a;     /* bento cards */
  --v2-card2: #161813;    /* superfície alternativa */
  --v2-line: #2a3e1e;     /* linhas e divisórias */
  --v2-ink: #f5f0e8;      /* títulos */
  --v2-bright: #fffcf4;   /* texto claro */
  --v2-muted: #f5f0e873;  /* texto secundário (kicker, nav) */
  --v2-faint: #fffcf499;  /* texto terciário */
  --v2-action: #b8491a;   /* card Reservas (terracota nos dois temas) */
  --v2-accent: #d05a20;
  --v2-gold: #c8874a;
  --v2-deep: #8b3210;

  --v2-serif: 'Sorts Mill Goudy', Georgia, serif;
  --v2-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --v2-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.v2 *, .v2 *::before, .v2 *::after { box-sizing: border-box; margin: 0; padding: 0; }

.v2 {
  min-height: 100vh;
  background: var(--v2-canvas);
  color: var(--v2-bright);
  font-family: var(--v2-sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
}

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

/* Moldura + split (Framer: coluna direita max 400px, gap 12px) */
.v2-layout {
  width: 100%;
  max-width: 1360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 12px;
  height: calc(100vh - 24px);
  min-height: calc(100vh - 24px);
  position: relative;
}

/* ================= COLUNA ESQUERDA / HERO ================= */
.v2-left {
  position: sticky;
  top: 0;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--v2-card);
  isolation: isolate;
}

.v2-hero-media { position: absolute; inset: 0; }
.v2-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--v2-ease);
}
.v2-hero-slide.active { opacity: 1; }
.v2-hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Cápsula de navegação — bg canvas, canto 20px, scoops SVG 18px */
.v2-nav {
  position: absolute;
  top: 0; left: 0;
  z-index: 20;
  background: var(--v2-canvas);
  border-bottom-right-radius: 20px;
}
.v2-nav-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 4px 16px 12px;
}
.v2-brand {
  font-family: var(--v2-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--v2-ink);
  white-space: nowrap;
}
.v2-nav-links { display: flex; align-items: center; gap: 20px; }
.v2-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--v2-muted);
  transition: color 0.25s ease;
  white-space: nowrap;
}
.v2-nav-links a:hover { color: var(--v2-bright); }

/* Scoops da cápsula (SVG 18px do Framer, fill = canvas) */
.v2-scoop {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  z-index: 20;
}
.v2-scoop svg { display: block; width: 100%; height: 100%; }
.v2-nav .v2-scoop--r { top: 0; right: -18px; }
.v2-nav .v2-scoop--b { bottom: -18px; left: 0; }

/* Setas do slider — Framer: 32px, raio 4px, fundo escuro translúcido */
.v2-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 32px; height: 32px;
  border-radius: 4px;
  border: none;
  background: rgba(14, 16, 17, 0.45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s var(--v2-ease);
}
.v2-slider-btn:hover { background: rgba(14, 16, 17, 0.7); }
.v2-slider-btn.prev { left: 16px; }
.v2-slider-btn.next { right: 16px; }

.v2-diamond {
  font-size: 11px;
  color: var(--v2-muted);
  opacity: 0.6;
}
.v2-diamond--end {
  margin-left: 8px;
}

/* Card Opening Story — CRAVADO (bottom 0 / left 0, raio 20 no canto superior direito) */
.v2-story-float {
  position: absolute;
  bottom: 0; left: 0;
  z-index: 20;
  width: 440px;
  max-width: calc(100% - 60px);
  background: var(--v2-canvas);
  border-radius: 0 20px 0 0;
  padding: 24px 28px 24px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.v2-story-float .v2-scoop--t {
  top: -18px; left: 0;
}
.v2-story-float .v2-scoop--r {
  bottom: 0; right: -18px;
}
.v2-kicker {
  font-size: 11px; font-weight: 600; line-height: 100%;
  letter-spacing: 0.08em;
  color: #c8874a;
  text-transform: uppercase;
}
.v2-tagline {
  font-family: var(--v2-serif);
  font-size: 32px; font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.1;
  color: var(--v2-ink);
  text-wrap: balance;
}
.v2-subtitle {
  font-size: 13px; font-weight: 400; line-height: 1.4;
  color: var(--v2-muted);
}
.v2-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00c853;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  width: fit-content;
  margin-top: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.25);
}
.v2-whatsapp-btn:hover {
  background: #00b348;
  transform: translateY(-1px);
}

/* Badge de endereço — cravada bottom/right, canto 18px, scoops SVG */
.v2-addr {
  position: absolute;
  bottom: 0; right: 0;
  z-index: 20;
  background: var(--v2-canvas);
  border-radius: 18px 0 0 0;
  padding: 8px 16px 12px;
  font-size: 15px; font-weight: 400; line-height: 120%;
  color: var(--v2-ink);
  max-width: 60%;
}
.v2-addr .v2-scoop--t { top: -18px; right: 0; }
.v2-addr .v2-scoop--l { bottom: 0; left: -18px; }

/* ================= COLUNA DIREITA ================= */
.v2-right {
  display: flex; flex-direction: column;
  gap: 12px;
  height: 100%; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 20px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--v2-line) transparent;
}
.v2-right > * { flex-shrink: 0; }
.v2-right::-webkit-scrollbar { width: 5px; }
.v2-right::-webkit-scrollbar-track { background: transparent; }
.v2-right::-webkit-scrollbar-thumb { background: var(--v2-line); border-radius: 4px; }

/* Cards de imagem 230px + etiqueta notch 18px */
.v2-img-card {
  position: relative;
  display: block;
  height: 230px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--v2-card);
  isolation: isolate;
}
.v2-img-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--v2-ease);
}
.v2-img-card:hover img { transform: scale(1.03); }
.v2-tag {
  position: absolute;
  top: 0; left: 0;
  z-index: 10;
  background: var(--v2-canvas);
  border-bottom-right-radius: 18px;
  padding: 8px 16px 10px;
  font-size: 15px; font-weight: 400; line-height: 120%;
  color: var(--v2-ink);
}
.v2-tag .v2-scoop--r { top: 0; right: -18px; }
.v2-tag .v2-scoop--b { bottom: -18px; left: 0; }

/* Card Reservas — Framer Primary: 58px, terracota flat, padding 20px */
.v2-book {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  height: 58px;
  padding: 20px;
  border-radius: 12px;
  background: var(--v2-action);
  color: #fff;
  font-size: 15px; font-weight: 500;
  transition: transform 0.28s var(--v2-ease), filter 0.28s ease;
}
.v2-book:hover { transform: translateY(-2px); filter: brightness(1.08); }
.v2-book .v2-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none;
  transition: transform 0.28s var(--v2-ease);
}
.v2-book:hover .v2-ico { transform: translateX(4px); }
.v2-book svg { width: 20px; height: 20px; }

/* Sociais — mesmo padrão Primary sobre fundo card */
.v2-social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-social {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--v2-card);
  color: var(--v2-ink);
  font-size: 15px; font-weight: 500;
  transition: background 0.28s ease, transform 0.28s var(--v2-ease);
}
.v2-social:hover { background: var(--v2-card2); transform: translateY(-2px); }
.v2-social .v2-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: none;
  color: var(--v2-faint);
}
.v2-social svg { width: 18px; height: 18px; }

/* Card Sobre/Osmar & Tiago — 280px, raio 12, gap 16 */
.v2-sobre {
  position: relative;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 16px;
  padding: 24px;
  color: #fff;
}
.v2-sobre > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-sobre::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 31, 18, 0.05) 0%, rgba(15, 31, 18, 0.88) 100%);
}
.v2-sobre-content { position: relative; display: flex; flex-direction: column; gap: 8px; }
.v2-sobre h2 {
  font-family: var(--v2-serif); font-style: italic;
  font-size: 28px; font-weight: 400; line-height: 1.1;
}
.v2-sobre p { font-size: 14px; color: var(--v2-faint); line-height: 1.45; }
.v2-sobre a {
  font-size: 14px; font-weight: 600; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  align-self: flex-start; padding-bottom: 2px;
}

/* Blocos de conteúdo — bg card, raio 12, padding 40/32 */
.v2-panel {
  background: var(--v2-card);
  border-radius: 12px;
  padding: 32px;
}
.v2-review-quote {
  font-family: var(--v2-serif); font-style: italic;
  font-size: 21px; line-height: 1.25;
  color: var(--v2-ink);
  margin-bottom: 10px;
}
.v2-review-text { font-size: 13px; line-height: 1.5; color: var(--v2-faint); margin-bottom: 16px; }
.v2-review-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-avatars { display: flex; }
.v2-avatars img {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--v2-card); object-fit: cover;
  margin-left: -8px;
}
.v2-avatars img:first-child { margin-left: 0; }
.v2-score { font-size: 15px; font-weight: 700; color: var(--v2-ink); }
.v2-stars { color: var(--v2-gold); font-size: 12px; letter-spacing: 1px; }
.v2-count { font-size: 12px; color: var(--v2-muted); }

.v2-hours-title {
  font-size: 15px; font-weight: 400; line-height: 120%;
  color: var(--v2-muted);
  margin-bottom: 20px;
}
.v2-hours-list { display: flex; flex-direction: column; gap: 12px; }
.v2-hours-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 15px; color: var(--v2-ink);
}
.v2-hours-day { font-weight: 600; white-space: nowrap; }
.v2-hours-dots {
  flex: 1; min-width: 24px; height: 1px;
  border-bottom: 1px dashed rgba(255, 252, 244, 0.25);
  transform: translateY(-4px);
}
.v2-hours-time { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v2-hours-time.closed { color: #f87171; font-weight: 600; }

.v2-map { height: 280px; border-radius: 12px; overflow: hidden; background: var(--v2-card); }
.v2-map img { width: 100%; height: 100%; object-fit: cover; }

.v2-contact-label { font-size: 15px; color: var(--v2-muted); margin-bottom: 8px; }
.v2-contact-value { font-size: 17px; font-weight: 500; color: var(--v2-ink); line-height: 1.5; }
.v2-contact-sec { margin-bottom: 24px; }
.v2-contact-sec:last-child { margin-bottom: 0; }
.v2-contact-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 16px; color: var(--v2-ink); }
.v2-contact-row a:hover { text-decoration: underline; }

/* Rodapé — colunas estilo Framer (título + nav vertical) */
.v2-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--v2-card);
  border-radius: 12px;
  padding: 32px;
}
.v2-footer-brand {
  font-family: var(--v2-serif); font-style: italic;
  font-size: 26px; color: var(--v2-ink);
  margin-bottom: 6px;
}
.v2-footer-tag { font-size: 13px; color: var(--v2-muted); line-height: 1.5; }
.v2-footer h3 { font-size: 15px; font-weight: 600; color: var(--v2-ink); margin-bottom: 12px; }
.v2-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--v2-faint); }
.v2-footer nav a:hover { color: var(--v2-bright); }
.v2-footer-credit {
  grid-column: 1 / -1;
  font-size: 12px; color: var(--v2-muted);
  border-top: 1px solid var(--v2-line);
  padding-top: 16px;
}

/* Mobile top bar + overlay + flutuantes (mesmo comportamento da v1) */
.v2-mobile-bar { display: none; }
.v2-menu-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.v2-menu-overlay.open { opacity: 1; visibility: visible; }
.v2-menu-panel {
  background: var(--v2-card);
  border-radius: 12px;
  border: 1px solid var(--v2-line);
  width: 100%; max-width: 440px;
  padding: 24px;
  transform: translateY(20px);
  transition: transform 0.3s var(--v2-ease);
}
.v2-menu-overlay.open .v2-menu-panel { transform: translateY(0); }
.v2-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--v2-line);
}
.v2-menu-head .v2-brand { font-size: 20px; }
.v2-menu-close {
  background: var(--v2-card2); color: var(--v2-ink);
  border: 1px solid var(--v2-line); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.v2-menu-list { display: flex; flex-direction: column; gap: 8px; }
.v2-menu-list a {
  background: var(--v2-card2);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 17px; font-weight: 500; color: var(--v2-ink);
  display: flex; align-items: center; justify-content: space-between;
}
.v2-menu-list a.hot { background: var(--v2-action); color: #fff; }

.v2-wa {
  position: fixed; bottom: 24px; left: 24px; z-index: 95;
  display: flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff;
  border-radius: 999px; padding: 12px 20px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ================= RESPONSIVO ================= */
@media (max-width: 1200px) {
  .v2-nav-inner { gap: 12px; padding: 4px 14px 10px; }
  .v2-brand { font-size: 18px; }
  .v2-nav-links { gap: 12px; }
  .v2-story-float { width: 62%; padding: 22px 24px; }
  .v2-addr { font-size: 13px; }
}

@media (max-width: 960px) {
  .v2 { display: block; padding: 12px; }
  .v2-layout { display: flex; flex-direction: column; height: auto; gap: 14px; }
  .v2-mobile-bar {
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 12px; z-index: 90;
    margin-bottom: 12px;
  }
  .v2-mobile-bar .v2-brand {
    background: var(--v2-card);
    border: 1px solid var(--v2-line);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 20px;
  }
  .v2-mobile-bar button {
    background: var(--v2-card); color: var(--v2-ink);
    border: 1px solid var(--v2-line); border-radius: 999px;
    padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  }
  .v2-left { display: none; }
  .v2-right { overflow: visible; padding: 0 0 32px; }
  .v2-footer { grid-template-columns: 1fr; }
  .v2-wa { bottom: 16px; left: 16px; padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 480px) {
  .v2-panel { padding: 24px 20px; }
  .v2-social { padding: 14px 16px; font-size: 14px; }
  .v2-wa { max-width: 62vw; overflow: hidden; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-hero-slide, .v2-img-card img, .v2-book, .v2-social, .v2-slider-btn { transition: none; }
}
