--- START OF FILE style.css ---

/* GERAL & RESET - Já existentes e mantidos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #121212; 
    --secondary-dark: #1e1e1e; 
    --accent-orange: #e67e22; 
    --accent-red: #c0392b; 
    --accent-red-darker: #a03020; /* Para hover do botão vermelho */
    --accent-yellow: #f1c40f; 
    --text-light: #f5f5f5; 
    --text-muted: #a0a0a0; 
    --border-color: #333333; 

    --font-primary: 'Open Sans', sans-serif;
    --font-headings: 'Playfair Display', serif; 
    
    --border-radius-subtle: 8px;
    --border-radius-medium: 12px;
    --border-radius-buttons: 30px; /* Para os novos botões */
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary); 
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px; 
    overflow-x: hidden; 
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-yellow);
}

/* Estilos de Título Padrão do Site (H1 global, H2, etc.) */
h1 { font-family: var(--font-headings); font-size: 2.8rem; } 
h2 { font-family: var(--font-headings); font-size: 2.2rem; text-align: center; margin-bottom: 1.5em; }
h3 { font-family: var(--font-headings); font-size: 1.6rem; color: var(--accent-orange); }
h4 { font-family: var(--font-headings); font-size: 1.2rem; color: var(--accent-yellow); }

p { /* Parágrafo global */
    margin-bottom: 1em;
    color: var(--text-muted);
}
p strong {
    color: var(--text-light);
}

/* UTILIDADES */
.py-1 { padding-top: 2rem; padding-bottom: 2rem; }
.py-2 { padding-top: 3rem; padding-bottom: 3rem; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; } 
.mt-4 { margin-top: 4rem !important; } 
.text-center { text-align: center; }
.bg-dark-accent { background-color: var(--secondary-dark); }
.important-note { font-size: 0.9em; color: var(--accent-yellow); font-style: italic; }
.important-note strong { color: var(--accent-orange); }


/* HEADER & NAVEGAÇÃO PRINCIPAL */
header {
    background-color: rgba(18, 18, 18, 0.85); 
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; 
    backdrop-filter: blur(10px); 
    box-shadow: var(--shadow-soft);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 50px; width: auto; }
.main-nav ul { list-style: none; display: flex; }
.main-nav ul li { margin-left: 25px; }
.main-nav ul li a { color: var(--text-light); font-weight: 600; padding: 0.5rem 0.2rem; position: relative; transition: color 0.3s ease; }
.main-nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-orange); transition: width 0.3s ease; }
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--accent-orange); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 25px; height: 3px; background-color: var(--text-light); margin: 5px 0; border-radius: 3px; transition: all 0.3s ease-in-out; }


/* ==== EFEITO HERO SCROLL - ESTILOS ADAPTADOS ==== */
@import url('https://fonts.googleapis.com/css?family=Raleway:700,900');

.section { 
  height: 100vh;
  min-height: 600px; 
  position: relative;
  overflow: hidden; 
}

.content-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2; /* Acima do overlay/background da seção, abaixo do .content-inner */
  clip: rect(auto, auto, auto, auto); 
  pointer-events: none; 
}

.content-inner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  padding: 20px; 
  z-index: 10; /* Acima de tudo dentro da .section, mas abaixo do header principal */
  display: flex; 
  align-items: center; 
  justify-content: center; 
  
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  -webkit-perspective: 1000;
  perspective: 1000;
  pointer-events: all; 
}

/* MODIFICADO para centralizar o texto e posicionar o botão abaixo */
.content-center {
  display: flex;
  flex-direction: column;
  align-items: center;    /* Centraliza horizontalmente */
  justify-content: center; /* Centraliza verticalmente o conjunto (bloco de texto + botão) */
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  height: 100%; 
  /* padding: 5vh 0;  Removido padding geral para ter mais controle com margens */
}

/* .hero-text-block removido por estar vazio */


/* Adaptação de Cores e Fontes para FORNALHA81 */
.hero-scroll-top-section {
  background-color: var(--accent-red); 
  position: relative; /* Para o overlay */
}
/* ADICIONADO OVERLAY */
.hero-scroll-top-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); 
    z-index: 1; /* Abaixo do .content-container */
}
/* REMOVIDA A REGRA QUE CAUSAVA PROBLEMA:
.hero-scroll-top-section .content-container { 
    position: relative; 
    z-index: 2;
}
*/


.hero-scroll-bottom-section {
  background-color: var(--primary-dark); 
}

/* Títulos e Parágrafos dentro do Efeito de Scroll */
.hero-scroll-title {
  font-family: var(--font-headings); 
  font-size: clamp(3.5rem, 12vw, 8rem); 
  font-weight: 700; 
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.2em; 
}

.hero-scroll-subtitle {
  font-family: var(--font-primary); 
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 400; 
  letter-spacing: 2px; 
  text-transform: uppercase;
  line-height: 1.5;
  /* margin-bottom: 1.5em;  Movido para o wrapper .hero-text-block se necessário, ou para o margin-top do botão */
}

/* Temas de Cor para o Conteúdo Sobreposto */
.content-theme-fornalha-dark .hero-scroll-title {
  color: #ffffff; 
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.content-theme-fornalha-dark .hero-scroll-subtitle {
  color: #ffffff ; 
}

.content-theme-fornalha-accent .hero-scroll-title {
  color: var(--accent-red); 
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.content-theme-fornalha-accent .hero-scroll-subtitle {
  color: var(--accent-red); 
}

/* Botão de CTA dentro do efeito de scroll - MODIFICADO */
.btn-hero-scroll-cta {
    margin-top: 18vh; /* MODIFICADO: Ajuste este valor para o espaçamento desejado abaixo do texto. Ex: 15vh, 20vh... */
    /*  margin-bottom: 5vh;  Pode ser mantido se quiser um espaço mínimo da borda inferior */
}

/* ==== FIM DO EFEITO HERO SCROLL ==== */


/* BOTÕES (Estilo genérico) */
.btn { 
    display: inline-block; 
    text-transform: uppercase; 
    border: none; 
    cursor: pointer; 
    transition: all 0.4s ease; 
    letter-spacing: 0.5px; 
    outline: none;
    position: relative;
    overflow: hidden; 
    font-weight: bold; 
}

/* NOVO BTN-PRIMARY */
.btn-primary {
    padding: 15px 30px;
    font-size: 1.1rem; 
    border-radius: var(--border-radius-buttons);
    box-shadow: none; 
    
    background-color: var(--accent-red);
    color: #ffffff;
    border: 2px solid var(--accent-red);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.btn-primary:hover::after {
    transform: scale(4);
}

.btn-primary:hover {
    background-color: var(--accent-red-darker);
    border-color: var(--accent-red-darker);
    color: #ffffff;
}

/* Botão primário DENTRO da seção HERO VERMELHA (hero-scroll-top-section) */
.hero-scroll-top-section .btn-primary { 
    background-color: #ffffff;
    color: var(--accent-red);
    border: 2px solid #ffffff;
}

.hero-scroll-top-section .btn-primary::after {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero-scroll-top-section .btn-primary:hover {
    background-color: #f0f0f0; 
    border-color: #f0f0f0;
    color: var(--accent-red);
}

/* NOVO BTN-SECONDARY */
.btn-secondary {
    padding: 13px 28px; 
    font-size: 1rem;
    border-radius: var(--border-radius-buttons);
    box-shadow: none; 
    
    background-color: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
}

.btn-secondary:hover {
    background-color: var(--accent-orange);
    color: #ffffff;
    border-color: var(--accent-orange);
    transform: translateY(-2px); 
}


/* Botão iFood */
.btn-ifood {
    border-radius: var(--border-radius-subtle); 
    box-shadow: var(--shadow-soft); 
    font-weight: 600; 
}
.btn-ifood::after {
    display: none; 
}

.btn-ifood { background-color: #EA1D2C; color: white; }
.btn-ifood:hover { background-color: #c01723; color: white; transform: translateY(-2px); }

.delivery-buttons .btn { margin: 0.5rem; }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }


/* SEÇÕES GENÉRICAS DE CONTEÚDO (Pizzas, CTA, Sobre) */
#popular-pizzas, #mini-sobre, #cta-delivery, 
#pizzas-list, #parmegiana-section, #bebidas-section,
#sobre-content, #contato-info {
    /* animation: fadeInSection 0.8s ease-in-out;  A animação é aplicada via JS */
    position: relative; 
    z-index: 1; 
    background-color: var(--primary-dark); 
}
@keyframes fadeInSection { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.pizza-grid, .pilares-grid, .contato-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.single-item-grid { grid-template-columns: minmax(280px, 500px); justify-content: center; }
.pizza-card, .pilar-card, .sobre-card, .contato-card { background-color: var(--secondary-dark); padding: 1.5rem; border-radius: var(--border-radius-medium); box-shadow: var(--shadow-soft); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pizza-card:hover, .pilar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.pizza-card img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--border-radius-subtle); margin-bottom: 1rem; }
.pizza-card h3 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.pizza-card p { font-size: 0.95rem; color: var(--text-muted); }
.sobre-card { margin-bottom: 2rem; padding: 2rem; text-align: left; }
.sobre-card h3 { text-align: left; }
.pilar-card h4 { margin-bottom: 0.5rem; }
#menu-hero, #sobre-hero, #contato-hero { padding-top: calc(4rem + 70px); padding-bottom: 2rem; } 
#menu-hero h1, #sobre-hero h1, #contato-hero h1 { font-size: 2.5rem; } 
#menu-hero p, #sobre-hero p, #contato-hero p { font-size: 1.2rem; }
.menu-grid .pizza-card img { height: 220px; }
.beverages-list { list-style: none; padding-left: 0; text-align: center; }
.beverages-list li { font-size: 1.1rem; color: var(--text-light); padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.beverages-list li:last-child { border-bottom: none; }
.contato-card { text-align: left; }
.contato-card h3 { text-align: left; }
.contact-link { font-size: 1.1rem; font-weight: 600; display: inline-block; margin-top: 0.5rem; }
.contact-link img { display: inline-block; vertical-align: middle; width: 24px; height: 24px; }
#map-container { margin-top: 2rem; }
.map-placeholder { background-color: var(--secondary-dark); padding: 2rem; border-radius: var(--border-radius-medium); text-align: center; min-height: 300px; }
.map-placeholder iframe { margin-top: 1rem; }


/* FOOTER */
footer { background-color: var(--secondary-dark); color: var(--text-muted); padding: 3rem 0 1rem; margin-top: 3rem; border-top: 3px solid var(--accent-orange); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-logo-area .footer-logo { height: 60px; margin-bottom: 0.5rem; }
.footer-logo-area p { font-size: 0.9em; }
.footer-contact p, .footer-hours p { font-size: 0.9em; margin-bottom: 0.3em; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent-orange); }
.footer-social .social-icon { width: 28px; height: 28px; margin: 0 8px 8px 0; transition: transform 0.3s ease; vertical-align: middle; }
.footer-social .social-icon:hover { transform: scale(1.1); }
.footer-social a { display: inline-block; margin-bottom: 5px; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border-color, #222); font-size: 0.85em; }
.developer-credit { margin-top: 0.5rem; font-size: 0.9em; color: var(--text-muted, #aaa); }
.developer-credit a { color: var(--accent-yellow, #F0AD4E); text-decoration: none; }
.developer-credit a:hover { color: var(--accent-orange, #D9534F); text-decoration: underline; }

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    body { font-size: 15px; }

    /* Header Mobile */
    .main-nav ul { display: none; flex-direction: column; width: 100%; position: absolute; top: 70px; left: 0; background-color: var(--secondary-dark); padding: 1rem 0; box-shadow: var(--shadow-soft); }
    .main-nav ul.active { display: flex; }
    .main-nav ul li { margin: 0; width: 100%; text-align: center; }
    .main-nav ul li a { display: block; padding: 1rem; border-bottom: 1px solid var(--border-color); }
    .main-nav ul li:last-child a { border-bottom: none; }
    .main-nav ul li a::after { display: none; } 
    .nav-toggle { display: block; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Responsividade para o Efeito Hero Scroll */
    .section { min-height: 450px; } 

    .hero-scroll-title {
        font-size: clamp(2.5rem, 10vw, 5rem); 
        line-height: 1.2;
    }
    .hero-scroll-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.3rem); 
        letter-spacing: 1px;
        /* margin-bottom: 1.2em; */ /* Ajustado pelo margin-top do botão */
    }
    /* Responsividade do botão no Hero */
    .btn-hero-scroll-cta {
        margin-top: 10vh; /* Ajuste o margin-top para mobile se necessário */
        /* padding: 12px 28px; */ /* O padding já está no .btn-primary */
        /* font-size: 0.95rem; */ /* O font-size já está no .btn-primary */
    }
    .btn-primary { 
        padding: 12px 25px;
        font-size: 1rem;
    }
    .btn-secondary { 
        padding: 10px 23px;
        font-size: 0.95rem;
    }


    /* Responsividade para Títulos Globais e Conteúdo Geral */
    h1 { font-size: 2.0rem; } 
    h2 { font-size: 1.7rem; } 
    h3 { font-size: 1.4rem; }

    .pizza-grid, .pilares-grid, .contato-grid { grid-template-columns: 1fr; }
    .footer-content { text-align: center; }
    .footer-logo-area .footer-logo { margin-left: auto; margin-right: auto;}
    .footer-social a { display: inline-block; } 
}

/* ESTILOS PARA PIZZA CARDS CLICÁVEIS */
.pizza-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pizza-card-link:hover .pizza-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* PIZZA GRID E CARDS */
/* Nenhuma mudança direta aqui, o problema é a altura dos filhos */

.pizza-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

.pizza-card-link .pizza-card {
    background-color: var(--secondary-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pizza-card-link .pizza-card > * {
    pointer-events: none;
}

.pizza-card-link .pizza-card img { 
    flex-shrink: 0; 
}

.pizza-card-link .pizza-card h3 {
    flex-shrink: 0; 
}

.pizza-card-link .pizza-card p {
    flex-grow: 1; 
    margin-bottom: 0; 
}

.pizza-card-link:hover .pizza-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* ... (resto do seu CSS) ... */

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    /* ... */
    .pizza-grid, .pilares-grid, .contato-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; /* Pode reduzir o gap no mobile se desejar */
    }
    /* ... */
}

/* Se a parmegiana não precisa se igualar em altura, podemos resetar o flex aqui ou não aplicar */
/* display: block; // Resetaria o flex se aplicado diretamente */