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

html {
    scroll-behavior: smooth;
}

body {
    font: 400 1rem 'Poppins', sans-serif;
    color: #333;
    background: #fcfcfc;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== VARIÁVEIS ===== */
:root {
    --header-height: 4.5rem;

    /* Cores */
    --color-red: #CD212A;
    --color-green: #008C45;
    --color-white: #FFFFFF;
    --color-dark: #212121;
    --color-gray: #4F4F4F;
    --color-light-gray: #f4f4f4;

    /* Fontes */
    --title-font: 'Teko', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* ===== LAYOUT GERAL ===== */
.container {
    max-width: 1200px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    padding: 0 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: calc(5rem + var(--header-height)) 0;
}

.section header {
    margin-bottom: 4rem;
    text-align: center;
}

.section .title {
    font-family: var(--title-font);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.section .subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
}

.divider-1 {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-red), transparent);
}

.divider-2 {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-green), transparent);
}


/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-red);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.pizza-spinner .pizza-slice {
    animation: spin 1.5s linear infinite;
    border-radius: 50%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== HEADER ===== */
#header {
    width: 100%;
    border-bottom: 1px solid #e4e4e4;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
}

#header.scroll {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#header nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ESTILO ATUALIZADO PARA A LOGO */
.logo img {
    height: 60px; /* Ajuste a altura da sua logo conforme necessário */
    width: auto;
}

#header .menu {
    margin-left: auto;
}

#header .menu ul {
    display: flex;
    gap: 2rem;
}

#header .menu ul li a.title {
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
}

#header .menu ul li a.title::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    transition: width 0.3s;
}

#header .menu ul li a.title:hover,
#header .menu ul li a.title.active {
    color: var(--color-red);
}
#header .menu ul li a.title:hover::after,
#header .menu ul li a.title.active::after {
    width: 100%;
}

.btn-primary {
    background: var(--color-red);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
    margin-left: 2rem;
}

.btn-primary:hover {
    background: #a71c23;
    transform: translateY(-3px);
}

.toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: none; /* Escondido por padrão */
}

/* ===== HOME SECTION ===== */
#home {
    overflow: hidden;
}

#home .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

#home .image img {
    border-radius: 1rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

#home .text h1 {
    font-family: var(--title-font);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

#home .text p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--color-gray);
}

#home .button {
    background: var(--color-green);
    min-height: 50px;
    min-width: 250px;
    text-align: center;
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
}

#home .button:hover {
    background: #006a35;
    transform: translateY(-3px);
}

/* ===== MENU DE SABORES (CARROSSEL) ===== */
#menu-sabores {
    background: var(--color-light-gray);
}

.swiper-container {
    width: 100%;
    padding: 2rem 0;
}

.swiper {
    padding: 0 2rem 3rem 2rem; /* Espaço para as setas e paginação */
}

.pizza-card {
    background: var(--color-white);
    border-radius: 1rem;
    overflow: hidden;
    max-height: 700px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 1.5rem;
}

.pizza-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.pizza-image img {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    max-height: 380px;
}

.pizza-title {
    font-family: var(--title-font);
    font-size: 1.8rem;
    color: var(--color-red);
    margin-bottom: 0.5rem;
}

.pizza-description {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
    min-height: 55px; /* Para alinhar os botões */
}

.pizza-price {
    display: block;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: var(--color-red);
}

.swiper-button-next {
    color: var(--color-red) !important;
    right: -2px !important; /* Afasta o botão da direita */
}

.swiper-button-prev {
    color: var(--color-red) !important;
    left: -2px !important; /* Afasta o botão da esquerda */
}


/* ===== ABOUT SECTION ===== */
#about .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

#about .image img {
    border-radius: 1rem;
}

#about .text .title {
    text-align: left;
}

#about .text p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===== LOCATION SECTION ===== */
#location {
    background: var(--color-light-gray);
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1; /* Para o mapa aparecer corretamente */
}

.address-info {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* ===== CTA FINAL ===== */
#cta-final {
    background: url('/images/banner_final.jpg') no-repeat center center;
    background-size: cover;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

#cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

#cta-final .container {
    position: relative;
    z-index: 2;
}

#cta-final .title {
    color: var(--color-white);
}

#cta-final p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary-lg {
    background: var(--color-red);
    color: var(--color-white);
    padding: 1.2rem 3rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.3s;
}

.btn-primary-lg:hover {
    background: #a71c23;
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
footer.section {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-gray);
}

.footer-title {
    font-family: var(--title-font);
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 2rem;
}

.footer-links ul li a {
    color: #a0a0a0;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--color-white);
}

.footer-brand {
    text-align: center;
}

.footer-brand .logo-alt {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand .logo-alt span {
    color: var(--color-red);
}

.footer-description {
    color: #a0a0a0;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #a0a0a0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #a0a0a0;
    font-weight: bold;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    margin-left: 20px;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.developer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.developer .logo-dev {
    font-family: var(--title-font);
    font-size: 1.5rem;
    margin-right: 30px;
    color: #2e2ed2;
    transition: color 0.3s;
}

.developer .logo-dev:hover {
    color: var(--color-white);
}


/* ===== RESPONSIVIDADE (MOBILE) ===== */
@media (max-width: 992px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .section .title {
        font-size: 2.5rem;
    }
    
    /* Menu Mobile */
    #header .menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease;
    }

    #header .menu.show {
        left: 0;
    }

    #header .menu ul {
        flex-direction: column;
        text-align: center;
    }

    #header .menu ul li a.title {
        font-size: 1.5rem;
    }

    .btn-primary {
        display: none; /* Esconde o botão principal no mobile */
    }

    .toggle {
        display: block; /* Mostra o ícone do menu */
    }

    .icon-close {
        display: none;
    }
    
    body.nav-open .icon-menu { display: none; }
    body.nav-open .icon-close { display: block; }
    
    #home .container, #about .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    #home .image {
        order: -1; /* Imagem vem antes do texto */
        margin-bottom: 2rem;
    }
    
    #home .text h1 {
        font-size: 3.5rem;
    }
    
    #about .text .title {
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    .btn-primary-lg {
        margin-top: 20px;
        font-size: 0.9rem;
    }
}

/* ===== RESPONSIVIDADE (DEPOIS DE 1200PX) ===== */
@media (min-width: 1200px) {
    /* Ajusta o container para ter um padding maior e ficar mais centralizado */
    .container {
        max-width: 1400px; /* Ou um valor maior, dependendo do design */
        margin-left: auto;
        margin-right: auto;
        padding: 0 4rem; /* Aumenta o espaçamento lateral em telas grandes */
    }

    /* Aumenta o espaçamento vertical entre as seções para dar mais "respiro" */
    .section {
        padding: 10rem 0;
    }

    /* Ajusta o tamanho da fonte para os títulos principais */
    .section .title {
        font-size: 4.5rem;
    }

    /* Aumenta o espaçamento do grid para telas maiores */
    .grid {
        gap: 4rem;
    }

    /* Ajusta o layout da seção Home para telas grandes */
    #home .text h1 {
        font-size: 5.5rem; /* Aumenta o tamanho do título principal */
        margin-bottom: 2rem;
    }

    #home .text p {
        font-size: 1.5rem; /* Aumenta o tamanho da fonte do parágrafo */
    }

    /* Ajusta a largura da imagem na seção About para evitar que fique muito larga */
    #about .image img {
        max-width: 600px;
    }

    /* Garante que o footer ocupe a largura total e o conteúdo se alinhe */
    .footer-grid {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 4rem;
        gap: 6rem;
    }
}
