/* --- RESET E VARIABILI --- */
:root {
    --colore-primario: #d32f2f; /* Rosso pomodoro */
    --colore-sfondo: #fafafa;
    --colore-testo: #333333;
    --colore-dettagli: #ffb300; /* Giallo crosta */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--colore-sfondo);
    color: var(--colore-testo);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* --- NAVIGAZIONE --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #1a1a1a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Oleo Script', cursive;
    font-size: 2.2rem;
    color: white;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    line-height: 0.8; 
}

.testo-pizzeria {
    font-family: 'Poppins', sans-serif; 
    font-size: 0.8rem; 
    font-weight: 600;
    letter-spacing: 4px; 
    text-transform: uppercase;
    color: white;
    margin-bottom: 2px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--colore-dettagli);
}

/* --- TASTO PRENOTA IN ALTO A DESTRA --- */
.btn-prenota {
    background-color: var(--colore-primario);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    transition: all 0.3s ease;
    text-decoration: none; 
    display: inline-block;
}

.btn-prenota:hover {
    background-color: #b71c1c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('./images/vetrinafinal.jpg') center/cover;
    background-position: center 30%; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    margin-top: 25vh; 
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white; 
    text-shadow: 2px 4px 8px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    text-decoration: none;
    background-color: var(--colore-primario);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: transform 0.3s, background-color 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: scale(1.05);
}

/* --- SEZIONE TRADIZIONE E FORNO A LEGNA --- */
.tradizione-section {
    background-color: #1a1a1a; 
    color: white;
    overflow: hidden;
}

.tradizione-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.tradizione-img {
    flex: 1;
}

.tradizione-img img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: none; 
    box-shadow: none; 
    background: transparent;
}

.tradizione-text {
    flex: 1;
}

.tradizione-text h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.5rem; 
    color: var(--colore-dettagli); 
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-weight: normal;
}

.tradizione-text p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem; 
    color: #e0e0e0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testo-rosso {
    color: var(--colore-primario);
    font-weight: bold;
    font-style: normal; 
}

/* --- ANIMAZIONI SU SCROLL (ACCENSIONE NEON E FADE TESTO) --- */
.accensione-neon {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.accensione-neon.visible {
    opacity: 1;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.4s;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- MENU SECTION --- */
.menu-section {
    background-color: var(--colore-sfondo);
}

.menu-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--colore-primario);
}

.menu-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3rem;
}

.menu-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--colore-primario);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-header h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
}

.price-headers {
    display: flex;
    gap: 1.5rem;
    font-weight: 600;
    color: var(--colore-primario);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.price-headers span {
    width: 50px;
    text-align: right;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 0.5rem;
}

.item-details {
    flex: 1;
    padding-right: 1rem;
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
    text-transform: uppercase;
}

.item-desc {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.item-prices {
    display: flex;
    gap: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.item-prices span {
    width: 50px;
    text-align: right;
}

.extra-requests {
    margin: 2rem auto 0; 
    padding: 1.5rem 3rem 1.5rem 2rem; 
    background-color: #fff9e6;
    border-left: 4px solid var(--colore-dettagli);
    border-radius: 4px;
    width: fit-content; 
}

.extra-requests h4 {
    color: #1a1a1a;
    margin-bottom: 1rem; 
    text-transform: uppercase;
    font-size: 1.1rem;
}

.extra-list li {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    gap: 2rem; 
    border-bottom: 1px dotted #ccc;
    padding-bottom: 0.3rem;
}

.extra-list li:last-child {
    border-bottom: none;
}

.extra-list span {
    font-size: 0.95rem;
    color: #444;
}

.extra-price {
    font-weight: bold;
    color: var(--colore-primario) !important; 
}

/* --- FOOTER IN EVIDENZA --- */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content-prominent {
    display: flex;
    justify-content: center;
    text-align: center; 
    padding-bottom: 2rem;
}

.info-prominent {
    max-width: 600px;
}

.info-prominent h3 {
    color: var(--colore-dettagli);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.info-prominent p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #e0e0e0;
}

.phone-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333; 
}

.phone-container p {
    font-size: 1.2rem;
    color: white;
}

.phone-link {
    display: inline-block;
    font-size: 2.5rem; 
    font-weight: bold;
    color: var(--colore-primario);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: transform 0.3s, color 0.3s;
}

.phone-link:hover {
    transform: scale(1.05); 
    color: #ff5252; 
}

/* --- SEZIONE MAPPA --- */
.mappa-footer-container {
    width: 100%;
    max-width: 450px; 
    margin: 1.5rem auto; 
}

.mappa-footer-container a {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1); 
}

.mappa-footer-container a:hover {
    transform: translateY(-3px);
}

.mappa-img {
    width: 100%;
    height: auto;
    display: block;
}

.mappa-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(183, 28, 28, 0.95); 
    color: white;
    padding: 0.8rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVITÀ PER SMARTPHONE, TABLET E PC --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; 
    }

    .container {
        padding: 2rem 1rem; 
    }

    /* Adattamenti Sezione Tradizione */
    .tradizione-container {
        flex-direction: column; 
        text-align: center;
        gap: 2rem;
    }
    
    .tradizione-text h2 {
        font-size: 2rem; 
    }

    .tradizione-text p {
        font-size: 1.05rem;
    }

    /* Adattamenti Menu */
    .menu-category {
        padding: 1.5rem 1rem; 
    }

    .item-prices, .price-headers {
        gap: 0.5rem; 
    }

    .item-prices span, .price-headers span {
        width: 45px; 
        font-size: 0.95rem; 
    }
}

@media (min-width: 992px) {
    .menu-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 4rem;
    }
}

/* --- BOTTOM BAR FOOTER (P.IVA E CREDITS) --- */
.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 5% 0 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Crea una linea sottile di separazione */
    width: 100%;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Su smartphone sovrappone P.IVA e nome */
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6); /* Colore bianco sfumato per non distrarre */
}

.footer-bottom-content a {
    color: var(--colore-dettagli); /* Il tuo colore giallo/oro per il tuo nome */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom-content a:hover {
    color: white; /* Il tuo nome si illumina di bianco al passaggio del mouse */
    text-decoration: underline;
}

/* Regola per schermi più grandi (PC e Tablet) */
@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row; /* Affianca P.IVA a sinistra e firma a destra */
        justify-content: space-between;
    }
}