:root {
    --background: #1a1d21;
    --foreground: #f5f3ef;
    --card: #202429;
    --card-foreground: #f5f3ef;
    --primary: #ef1e25;
    --primary-foreground: #ffffff;
    --secondary: #fbbd1c;
    --secondary-foreground: #1a1d21;
    --muted: #282a2e;
    --muted-foreground: #a0a0a0;
    --border: #2d3136;
    --radius: 1rem;
    --font-sans: 'Lato', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: linear-gradient(rgba(26, 29, 33, 0.97), rgba(26, 29, 33, 0.97)),
        url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%23282a2e' fill-opacity='0.4'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: var(--font-serif);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
}

nav .nav-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0, 0, 0);
    backdrop-filter: blur(8px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo img {
    height: 70px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, filter 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-links a:hover {
    transform: scale(1.1);
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-contain: cover;
    filter: brightness(0.4);
    transform: scale(1.1);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent, var(--background));
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #d1d1d1;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(239, 30, 37, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(239, 30, 37, 0.5);
    background: #d41a20;
}

/* Sections */
section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title span {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Promo Grid */
.promo-grid {
    column-count: 1;
    /* 1 coluna no mobile */
    column-gap: 2rem;
    display: block;
    /* Remove o grid para usar colunas */
}

/* No desktop, 2 colunas que se encaixam (Masonry) */
@media (min-width: 768px) {
    .promo-grid {
        column-count: 2;
    }
}

.promo-item {
    display: inline-block;
    /* Necessário para o layout de colunas */
    width: 100%;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: var(--card);
    margin-bottom: 2rem;
    /* Espaço entre os itens que se empilham */
    break-inside: avoid;
    /* Impede que o card seja cortado entre colunas */
}

.promo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s;
}

.promo-item:hover img {
    transform: scale(1.05);
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.promo-item:hover .promo-overlay {
    opacity: 0.4;
}

/* Mosaic Galery */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
}

.mosaic-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

.mosaic-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item.vertical {
    grid-row: span 2;
}

/* Carousel Section */
.carousel-container {
    padding: 4rem 0;
    position: relative;
    background: rgba(239, 30, 37, 0.05);
    border-top: 1px solid rgba(239, 30, 37, 0.1);
    border-bottom: 1px solid rgba(239, 30, 37, 0.1);
}

.carousel-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-track-wrap {
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.1s linear;
    width: max-content;
}

.pizza-card {
    width: 280px;
    background: var(--background);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s;
}

.pizza-card:hover {
    border-color: rgba(239, 30, 37, 0.3);
    transform: translateY(-5px);
}

.pizza-card .header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.pizza-number {
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(239, 30, 37, 0.1);
    color: var(--primary);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.pizza-type {
    font-size: 0.6rem;
    font-weight: 700;
    background: #ec4899;
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.pizza-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pizza-card p {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(239, 30, 37, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 30, 37, 0.05);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
    transition: 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted-foreground);
}

/* CTA Section */
.cta {
    background: var(--card);
    border-top: 1px solid rgba(239, 30, 37, 0.2);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.whatsapp-btn {
    background: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.cta-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-image {
    position: relative;
}

.cta-image img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s;
}

.cta-image:hover img {
    transform: scale(1.05);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-whatsapp img {
    width: 65px;
    height: 65px;
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 90px;
    mix-blend-mode: screen;
}

.footer-info {
    text-align: right;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .mosaic-item {
        height: 250px;
    }

    .mosaic-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-item.vertical {
        grid-row: span 1;
    }

    .mosaic-item:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}