@import url(https://db.onlinewebfonts.com/c/92942d8d57a272e9f10db7b5b623a2a3?family=LiebeLotte);
@import url(https://db.onlinewebfonts.com/c/3c542335cb5de6ac24cf15cb9815396b?family=VinSlabPro-Light);

/* Smooth scroll tra sezioni */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'VinSlabPro-Light';
    line-height: 1.6;
    color: #333;
}
header, section, footer {
    padding: 60px 20px;
    text-align: center;
}

/* Desktop nav */
.desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 100;
}

.desktop-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 20px;
}

.nav-logo {
    width: 40px;
    height: auto;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
    nav a {
        font-size: 18px;
    }
    .nav-logo {
        width: 30px;
    }
}
.menu-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

/* NAVBAR MOBILE */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {

    .mobile-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* 👈 magia */
        align-items: center;

        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;

        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0 10px;
        z-index: 1000;
	
    }

    .nav-left {
        justify-self: start;
        display: flex;
        align-items: center;
    }

    .nav-right {
		justify-self: end;
		display: flex;
		align-items: center;
		max-width: 100%; /* 👈 evita overflow */
	}

    .nav-title {
        text-align: center;
        font-weight: bold;
        font-size: 18px;
        white-space: nowrap;
    }

    .nav-logo {
        height: 32px;
        width: auto;
    }

    .hamburger {
		width: 30px;
		height: 20px;
		border: none;
		background: none;
		padding: 0; /* 👈 IMPORTANTISSIMO */
		margin: 0;  /* 👈 evita sforamento */
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		cursor: pointer;
	}

    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background: #333;
        border-radius: 2px;
    }
	
	* {
		box-sizing: border-box;
	}
	
	/* MENU */
    .mobile-menu {
		position: fixed;
		top: 60px;
		right: 10px;

		display: flex;              /* 👈 SEMPRE flex */
		flex-direction: column;

		background: white;
		box-shadow: 0 2px 10px rgba(0,0,0,0.2);
		border-radius: 10px;

		opacity: 0;
		transform: translateY(-10px) scale(0.95); /* 👈 animazione migliore */
		pointer-events: none;

		transition: all 0.25s ease;
		z-index: 1002;
	}
	
	.mobile-menu.open {
		opacity: 1;
		transform: translateY(0) scale(1);
		pointer-events: auto;
	}

    .mobile-menu a {
        padding: 12px 20px;
        text-decoration: none;
        color: #333;
        font-weight: bold;
    }

    .mobile-menu a:hover {
        background: #f0f0f0;
    }

    /* Spazio per contenuto sotto navbar */
    body {
        padding-top: 60px;
    }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* oppure rgba(0,0,0,0.3) se vuoi scurire */
  z-index: 1001; /* deve stare sopra iframe ma sotto il menu */
  display: none; /* inizialmente nascosto */
}

/* Media query per mobile */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-buttons { display: flex; justify-content: space-between; width: 100%; padding: 0 20px; }
}

.menu-section, .location-section {
    text-align: center;
    padding: 60px 20px;
}
.menu-title, .location-title {
    font-size: 28px;
    margin-bottom: 40px;
    color: white; /* titolo leggibile sul rosso */
}

.menu-section, .location-section {
    background: #AF4133;
}

.title {
	font-family: 'LiebeLotte', cursive, bold;
}

.pizza-card {
    width: 300px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pizza-card h3 {
    margin: 10px 0 5px;
}
.pizza-card p {
    padding: 0 10px 10px;
    font-size: 14px;
}
/* Hover effetto evidenziato */
.pizza-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* Immagine "fuori" dal riquadro bianco */
.pizza-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.pizza-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch;
}
/* Contenuto uniforme con altezza minima */
.pizza-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* 🔴 tolto min-height */
}
@media (max-width: 768px) {
    .pizza-card {
        width: 80%;
    }
    nav {
        flex-direction: column;
    }
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 15px 0;
    background: #ff6347;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.contact-section {
    padding: 50px 20px;
    background-color: #fafafa;
    text-align: center;
}

.contact-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #b02e2e;
}

.contact-form {
    max-width: 600px;       /* limite su desktop */
    width: 100%;            /* sempre adattabile */
    margin: 0 auto;         /* centrato */
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;            /* 👈 i campi si adattano al box */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #b02e2e;
    outline: none;
}

.contact-form button {
    background-color: #b02e2e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #8d2424;
}

.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
}

.contact-form select:focus {
    border-color: #b02e2e;
    outline: none;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 30px 15px;
    }

    .contact-form {
        padding: 15px;
        max-width: 100%;    /* 👈 su mobile prende tutta la larghezza */
        margin: 0;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: 16px;    /* testi più leggibili */
    }
}

iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
}
footer {
    background: #333;
    color: white;
    padding: 40px 20px;
}
.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
}

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 10%;
    background-color: #fdfdfd;
    gap: 40px;
}

.welcome-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.welcome-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #b02e2e; /* colore personalizzabile */
}

.welcome-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* 📱 Responsive: su mobile testo sopra e immagine sotto */
@media (max-width: 900px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }
    .welcome-text {
        text-align: left; /* oppure center se preferisci */
    }
}

