/* style.css */

/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================================================== */
   :root {
    /* Color Palette */
    --bg-primary: #FAF7F2;        /* Warm Cream */
    --bg-surface: #FFFFFF;        /* Pure White */
    --bg-secondary: #F2ECE1;      /* Soft Beige */
    --bg-dark: #1C1917;           /* Warm Dark Charcoal */
    --bg-dark-card: #262321;      /* Slightly lighter dark */
    
    --text-dark: #1C1917;         /* High Contrast Dark */
    --text-muted: #645E59;        /* Warm Gray Text */
    --text-light: #FAF7F2;        /* Light Cream */
    --text-light-muted: #A8A29E;  /* Muted Light Gray */

    --color-primary: #C85A32;      /* Terracotta / Brick Red */
    --color-primary-hover: #B04B25;
    --color-accent: #6B705C;       /* Olive Green */
    --color-accent-light: #EBECE8;
    
    --border-color: #E5DEC9;
    --border-dark: #383330;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
    --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.12);

    /* Layout */
    --site-max-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-dark);
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-subtitle.light {
    color: var(--color-primary);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-title.light {
    color: var(--text-light);
}

.section-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

.container {
    width: 90%;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   3. COMPONENTS (Buttons, Badges, Header)
   ========================================================================== */

/* Top Demo Bar */
.demo-top-bar {
    background-color: var(--bg-dark);
    color: var(--text-light-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-dark);
}
.demo-top-bar strong {
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 1.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--text-dark);
    color: var(--text-dark);
}
.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-secondary-light {
    background-color: var(--bg-surface);
    color: var(--text-dark);
}
.btn-secondary-light:hover {
    background-color: var(--bg-secondary);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
}
.btn-whatsapp:hover {
    background-color: #1EBE5A;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* Navbar Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-top: 2px;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    cursor: pointer;
}

.hamburger-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 3rem 0 5rem 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content .overline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.hero-media {
    position: relative;
}

.main-hero-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.badge-overlay {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 1.2rem 1.8rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.badge-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light-muted);
}

/* ==========================================================================
   5. FEATURES SECTION
   ========================================================================== */
.section-intro {
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.feature-card {
    background: var(--bg-surface);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   6. MENU / FEATURED PIZZAS
   ========================================================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 3.5rem 0;
}

.pizza-card {
    background-color: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pizza-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pizza-img-box {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.pizza-img-box img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.pizza-card:hover .pizza-img-box img {
    transform: scale(1.05);
}

.pizza-price {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.pizza-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pizza-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.pizza-title {
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}

.pizza-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(200, 90, 50, 0.1);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.pizza-tag.tag-green {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.pizza-ingredients {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   7. MANIFESTO & STORY
   ========================================================================== */
.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image-group {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 1rem;
}

.story-img-1 {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.story-img-2 {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 3rem;
    box-shadow: var(--shadow-md);
}

.story-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.quote-box {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-primary);
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
}

/* ==========================================================================
   8. IL LOCALE
   ========================================================================== */
.section-locale {
    background-color: var(--bg-secondary);
}

.locale-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.locale-img-main {
    grid-column: 1 / -1;
    border-radius: 8px;
    overflow: hidden;
}

.locale-img-sub {
    grid-column: 1 / -1;
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================================================
   9. REVIEWS
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.review-card {
    background-color: var(--bg-surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stars {
    color: #F59E0B;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.review-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.review-author {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.review-author strong {
    color: var(--text-dark);
}

.review-author span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ==========================================================================
   10. BOOKING SECTION
   ========================================================================== */
.section-booking {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.booking-desc {
    color: var(--text-light-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.quick-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-form-box {
    background-color: var(--bg-dark-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.booking-form label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-light-muted);
}

.booking-form input,
.booking-form select {
    background-color: #161413;
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: var(--color-primary);
}

.error-msg {
    font-size: 0.75rem;
    color: #EF4444;
    display: none;
}

.form-group.error input,
.form-group.error select {
    border-color: #EF4444;
}

.form-group.error .error-msg {
    display: block;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-light-muted);
    text-align: center;
    margin-top: 0.8rem;
}

.booking-success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
}

.booking-success-message h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.booking-success-message p {
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

.demo-badge-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--color-primary);
}

/* ==========================================================================
   11. CONTACTS & MAP
   ========================================================================== */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 2rem;
}

.contact-item strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-muted);
}

.concept-map-card {
    background-color: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-inner {
    text-align: center;
    padding: 2rem;
}

.map-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.map-pin {
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.map-text h4 {
    font-size: 1.5rem;
}

.map-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.map-note {
    font-size: 0.75rem;
    color: var(--color-primary);
    display: block;
    margin-top: 0.5rem;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.brand-logo.light {
    color: var(--text-light);
}

.footer-desc {
    color: var(--text-light-muted);
    font-size: 0.88rem;
    margin-top: 1rem;
    max-width: 360px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-light-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light-muted);
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--text-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light-muted);
}

.footer-bottom strong {
    color: var(--text-light);
}

.disclaimer-text {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-3px);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.menu-cat {
    margin-bottom: 1.5rem;
}

.menu-cat h4 {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
}

.menu-cat ul li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container,
    .grid-split,
    .booking-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-media {
        order: -1;
    }

    .badge-overlay {
        bottom: 10px;
        left: 10px;
        padding: 0.8rem 1.2rem;
    }

    .story-image-group {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-cta {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-form-box {
        padding: 1.5rem;
    }
}