/* C'è Pizza Per Te - Main Styles */

@font-face {
  font-family: 'Bakso Sapi';
  src: url('assets/fonts/BaksoSapi.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}


:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --card-bg: #252525;
    --primary-color: #f39c12;
    --secondary-color: #e67e22;
    --text-color: #ffffff;
    --text-secondary: #b8b8b8;
    --border-color: #3a3a3a;
    --success: #27ae60;
    --danger: #e74c3c;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 150px;
    height: 150px;
}

.pizza-loader {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f39c12;
    animation: pizza-spin 2s linear infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pizza-loader::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background-image: url('assets/img/loading.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loader-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

/* Header */
header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.logo-img.emoji {
    font-size: 60px;
    line-height: 1;
}

.logo-text {
	font-family: 'Bakso Sapi', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Main Content */
main {
    margin-top: 100px;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Hero Section with Background Image */
.hero-image {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/img/hero-pizza.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(45, 45, 45, 0.7) 50%,
        rgba(26, 26, 26, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 40px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-btn {
    display: inline-block;
    padding: 15px 45px;
    background: var(--primary-color);
    color: var(--primary-bg);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
    animation: fadeInUp 1s ease 0.6s both;
    border: 2px solid var(--primary-color);
}

.hero-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-15px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-8px); 
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Padding for Features and Offers */
main > section {
    padding-left: 5%;
    padding-right: 5%;
}

main > section#home {
    padding: 0;
}

/* Menu Page */
.menu-header {
    text-align: center;
    padding: 2rem 0 3rem;
    animation: fadeInUp 0.6s ease;
}
.mtop50{
	margin-top:150px;
}
.menu-header h1 {
	font-family: 'Bakso Sapi', sans-serif;
    font-size: 42px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

/* Section Styles */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

/* Chi Siamo Section */
.chi-siamo-section {
    padding: 80px 5%;
    width: 100%;
    background: var(--primary-bg);
}

.chi-siamo-content {
    max-width: 1200px;
    margin: 0 auto;
}

.chi-siamo-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.chi-siamo-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.value-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.2);
}

.value-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Contatti Section */
.contatti-section {
    padding: 80px 5%;
    width: 100%;
    background: var(--secondary-bg);
}

.contatti-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contatti-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    min-width: 50px;
}

.contact-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--secondary-color);
}

.contatti-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    height: 100%;
    min-height: 450px;
}

.category-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.category-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.2);
    border-color: var(--primary-color);
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-item-image {
    transform: scale(1.1);
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.menu-item-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item-price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
}

.menu-item-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 3rem 5% 1rem;
    margin-top: 0;
    width: 100%;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 20px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .contatti-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 768px) {
    /* Struttura principale della navigazione per posizionare gli elementi */
    nav {
        display: flex;
        justify-content: space-between; /* Spinge gli elementi ai margini */
        align-items: center;
        width: 100%;
        padding: 10px 20px;
    }

    /* Regola per l'elemento del logo (il tag <a>) */
    .logo {
        /* Spinge il logo al centro dello spazio rimanente */
        margin-left: auto;
        margin-right: auto;
        /* Assicura che l'hamburger non si frapponga al logo */
        order: 2; 
    }
    
    /* Regola per l'immagine del logo all'interno del link */
    .logo-img {
        display: block;
        margin: 0 auto;
    }

    /* Posiziona l'hamburger all'estrema destra */
    .hamburger {
        display: flex;
        order: 3; /* Assicura che l'hamburger sia l'ultimo elemento a destra */
    }

    /* Regola per il menu (per agire da placeholder invisibile a sinistra) */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98);
        width: 70%;
        height: 100vh;
        text-align: left;
        transition: left 0.3s ease;
        padding: 100px 2rem 2rem;
        gap: 1.5rem;
        /* L'elemento .nav-menu deve rimanere nel flusso Flexbox */
        order: 1; /* Assicura che il menu sia il primo elemento (placeholder) */
        visibility: hidden; /* Nasconde il menu dalla vista di default (puoi usare anche display:none) */
        width: 0; /* Rimuove lo spazio occupato dal placeholder quando non è attivo */
    }

    /* Stili per mostrare il menu quando è attivo */
    .nav-menu.active {
        left: 0;
        visibility: visible;
        width: 70%; /* Ripristina la larghezza per renderlo visibile */
    }

    /* Altri stili non di navigazione (mantenuti) */
    .hero-image {
        min-height: 500px;
        background-attachment: scroll;
    }
    
    .logo-text {
        font-size: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .menu-header h1 {
        font-size: 28px;
    }

    .category-title {
        font-size: 24px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .chi-siamo-section,
    .contatti-section {
        padding: 60px 4%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem 4%;
    }
    
    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

/* Card Styles for Chi Siamo */
.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.15);
    border-color: var(--primary-color);
}

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 28px;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}