/* ============================================================
   Trattoria Bella — CSS
   ============================================================ */

:root {
    --primary: #8b2e1a;
    --primary-hover: #6d2415;
    --primary-soft: rgba(139, 46, 26, 0.08);
    --accent: #c9a961;
    --accent-hover: #b8964a;
    --whatsapp: #25D366;

    --bg: #fdfcf8;
    --bg-alt: #f5f0e6;
    --bg-dark: #1a1614;
    --bg-dark-alt: #2a2420;

    --text: #2b2420;
    --text-dim: #7a6b5e;
    --text-bright: #ffffff;
    --text-light: #d4c8bb;

    --border: #e8dfd0;
    --border-strong: #d4c8b8;
    --border-dark: #3a332e;

    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --radius: 4px;
    --radius-lg: 12px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

    --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 13px;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.top-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-info svg { color: var(--accent); }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    background: rgba(253, 252, 248, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-text strong {
    display: block;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}
.logo-text span {
    display: block;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
}
.nav a {
    color: var(--text);
    position: relative;
}
.nav a:hover { color: var(--primary); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--t);
}
.nav a:hover::after { width: 100%; }

.menu-toggle { display: none; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--t);
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 46, 26, 0.3);
}
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 169, 97, 0.08);
}
.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 22, 20, 0.85) 0%, rgba(26, 22, 20, 0.65) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 100px 0;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 700;
}
.hero-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}
.hero-desc {
    font-size: 1.1rem;
    max-width: 620px;
    margin-bottom: 36px;
    color: var(--text-light);
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero-info {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}
.hero-info-item {
    display: flex;
    gap: 14px;
    align-items: center;
}
.hero-info-item svg { color: var(--accent); flex-shrink: 0; }
.hero-info-item strong {
    display: block;
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.hero-info-item span {
    font-size: 13.5px;
    color: var(--text-light);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section-header .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 14px;
}
.section-header h2 em {
    font-style: italic;
    color: var(--primary);
}
.section-header p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-top: 12px;
}

/* ---------- Sobre ---------- */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.sobre-image { position: relative; }
.sobre-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}
.sobre-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: var(--accent);
    padding: 28px 32px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    width: 140px;
    height: 140px;
}
.sobre-badge span {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.sobre-badge em {
    font-style: normal;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.3;
    color: var(--accent);
    margin-top: 4px;
}

.sobre-text .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 14px;
}
.sobre-text h2 {
    margin-bottom: 24px;
}
.sobre-text h2 em {
    font-style: italic;
    color: var(--primary);
}
.sobre-text p {
    color: var(--text-dim);
    margin-bottom: 18px;
    font-size: 1.02rem;
}
.sobre-text strong { color: var(--text); }

.sobre-stats {
    display: flex;
    gap: 40px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.sobre-stats > div strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}
.sobre-stats > div span {
    font-size: 13px;
    color: var(--text-dim);
}

/* ---------- Menu / Cardápio ---------- */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.menu-tab {
    padding: 12px 26px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    transition: all var(--t);
}
.menu-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.menu-tab.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}
.menu-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t);
}
.menu-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.menu-item.is-hidden { display: none; }

.menu-image {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
}
.menu-content { flex-grow: 1; }
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}
.menu-header h3 {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 600;
}
.menu-price {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}
.menu-content p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ---------- Ambiente / Galeria ---------- */
.galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 16px;
}
.galeria-item {
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    transition: transform var(--t);
    cursor: pointer;
}
.galeria-item:hover { transform: scale(1.02); }
.galeria-grande {
    grid-column: span 2;
    grid-row: span 2;
}

/* ---------- Depoimentos ---------- */
.depoimentos {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    color: var(--text-light);
}
.depoimentos .section-header h2 { color: #fff; }
.depoimentos .section-header .eyebrow { color: var(--accent); }

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.depoimento {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--t);
}
.depoimento:hover {
    border-color: var(--accent);
    background: rgba(201, 169, 97, 0.05);
    transform: translateY(-4px);
}
.depoimento .stars {
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}
.depoimento p {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 24px;
}
.depoimento strong {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ---------- Reserva ---------- */
.reservar {
    background: var(--bg-alt);
}
.reservar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.reservar-info .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 14px;
}
.reservar-info h2 { margin-bottom: 16px; }
.reservar-info > p {
    color: var(--text-dim);
    margin-bottom: 32px;
    font-size: 1.02rem;
    line-height: 1.7;
}
.reservar-list {
    list-style: none;
    display: grid;
    gap: 22px;
    margin-bottom: 32px;
}
.reservar-list li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.reservar-list svg {
    color: var(--primary);
    background: var(--primary-soft);
    width: 44px;
    height: 44px;
    padding: 12px;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.reservar-list strong {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.reservar-list span {
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.6;
}

/* ---------- Formulário ---------- */
.reservar-form {
    background: #fff;
    padding: 44px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.reservar-form h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 8px;
}
.reservar-form > p {
    color: var(--text-dim);
    font-size: 14.5px;
    margin-bottom: 28px;
}

.form-field {
    margin-bottom: 18px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text);
    transition: all var(--t);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-field textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.form-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-top: 16px;
    justify-content: center;
}
.form-privacy svg { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-dark);
}
.footer-desc {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
    color: var(--text-light);
}
.footer h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer li {
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-light);
}
.footer a:hover { color: var(--accent); }
.logo-footer .logo-icon {
    background: var(--accent);
    color: var(--primary);
}
.logo-footer .logo-text strong { color: #fff; }
.logo-footer .logo-text span { color: var(--accent); }
.footer-bottom {
    padding: 24px 0;
    font-size: 13px;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom a { color: var(--accent); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all var(--t);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

/* ---------- Demo banner ---------- */
.demo-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--bg-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
    z-index: 90;
}
.demo-banner a {
    color: var(--accent);
    font-weight: 600;
}
.demo-banner a:hover { color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
    .nav { display: none; }
    .menu-toggle { display: flex; }
    .header-actions { display: none; }

    .hero { min-height: auto; }
    .hero-content { padding: 80px 0; }
    .hero-info { gap: 24px; }

    .sobre-grid { grid-template-columns: 1fr; gap: 60px; }
    .sobre-badge { bottom: -20px; right: -20px; width: 110px; height: 110px; }
    .sobre-badge span { font-size: 2rem; }

    .menu-grid { grid-template-columns: 1fr; }
    .galeria { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 180px); }
    .galeria-grande { grid-column: span 2; grid-row: span 1; }

    .depoimentos-grid { grid-template-columns: 1fr; }
    .reservar-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 575px) {
    .container { padding: 0 18px; }
    .section { padding: 60px 0; }

    .top-bar-inner { justify-content: center; }
    .top-info { display: none; }
    .top-info:last-child { display: flex; margin: 0 auto; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .hero-info { gap: 18px; }

    .menu-item { flex-direction: column; padding: 20px; }
    .menu-image { width: 100%; height: 160px; }

    .galeria { grid-template-columns: 1fr; }
    .galeria-grande { grid-column: span 1; }

    .reservar-form { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }

    .demo-banner { bottom: 12px; left: 12px; right: 90px; font-size: 11.5px; }
    .whatsapp-float { bottom: 12px; right: 12px; width: 52px; height: 52px; }
}