/* CSS Professionale per Pizzeria Il Semaforo */

:root {
  --primary: #c62828;
  --primary-dark: #8e0000;
  --primary-light: #ff5f52;
  --secondary: #212121;
  --accent: #ff9800;
  --light: #f8f5f2;
  --dark: #333333;
  --gray: #666666;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(198, 40, 40, 0.15);
  --transition: all 0.3s ease;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* Utility Classes */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary {
  background-color: var(--primary);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
  display: flex;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.8rem;
}
.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}
.nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  margin: 0 10px;
  position: relative;
  padding: 5px 0 !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

/* Hero Section - CORRETTO con immagine pizzeria.jpg */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('../images/pizzeria.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-features span {
  background: rgba(198, 40, 40, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 1rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}
.hero-wave svg {
  width: 100%;
  height: 100px;
  fill: var(--white);
}

/* About Section */
.about-section {
  padding: 100px 0;
  background: var(--white);
}
.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.about-years {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.years-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.years-text {
  font-size: 0.9rem;
  opacity: 0.9;
}
.about-content {
  padding-left: 30px;
}
.section-subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
}
.about-text {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  text-transform: uppercase;
}

/* Info Cards Section */
.info-section {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}
.info-card {
  background: var(--white);
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.info-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}
.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.info-highlight {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin: 10px 0;
}

/* Menu Section */
.menu-section {
  padding: 100px 0;
  background: var(--white);
}
.menu-category-card {
  background: var(--light);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  transition: var(--transition);
}
.menu-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.menu-category-card h3 {
  margin-bottom: 25px;
  font-size: 1.5rem;
  border-bottom: 2px solid rgba(198, 40, 40, 0.2);
  padding-bottom: 10px;
}
.menu-item {
  margin-bottom: 20px;
}
.menu-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.menu-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.menu-note {
  font-size: 0.9rem;
  color: var(--gray);
  font-style: italic;
  background: rgba(198, 40, 40, 0.05);
  padding: 10px;
  border-radius: 10px;
}
.menu-badge {
  text-align: right;
}
.badge {
  background: var(--primary);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
}

/* Gallery Section */
.gallery-section {
  padding: 100px 0;
  background: var(--light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Testimonials Section - MIGLIORATA */
.testimonials-section {
  padding: 100px 0;
  background: var(--white);
}
.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.testimonial-rating {
  color: #ffc107;
  margin-bottom: 15px;
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--gray);
  line-height: 1.8;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}
.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.testimonial-author h5 {
  margin-bottom: 0;
  font-size: 1.1rem;
}
.testimonial-author span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: var(--light);
}
.contact-info-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  height: 100%;
}
.contact-list {
  list-style: none;
  padding: 0;
}
.contact-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.contact-list li i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-list li strong {
  display: block;
  margin-bottom: 5px;
  color: var(--dark);
}
.contact-list li p {
  color: var(--gray);
  margin: 0;
}

/* Social Links - CORRETTO senza sfondo */
.social-links {
  display: flex;
  gap: 15px;
}
.social-link {
  display: inline-block;
  transition: var(--transition);
}
.social-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: var(--transition);
}
.social-link:hover {
  transform: translateY(-5px);
}
.social-link:hover img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(94%) saturate(2411%) hue-rotate(346deg) brightness(87%) contrast(98%);
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 400px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 80px 0 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-text {
  color: #aaa;
  line-height: 1.8;
}
.footer-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}
.footer-contact {
  list-style: none;
  padding: 0;
}
.footer-contact li {
  margin-bottom: 10px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact li i {
  color: var(--primary);
  width: 20px;
}
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}
.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}
.footer-bottom a:hover {
  color: var(--primary);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 100;
  transition: var(--transition);
  animation: pulse 2s infinite;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  animation: none;
  color: var(--white);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.show {
  display: flex;
  opacity: 1;
}
.modal-content {
  background: var(--white);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(198, 40, 40, 0.3);
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
}
.close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.close-btn:hover {
  transform: scale(1.1);
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.google-form-frame {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
}
.form-badges {
  text-align: center;
  margin-top: 15px;
}
.form-badges .badge {
  background: rgba(198, 40, 40, 0.1);
  color: var(--primary);
  padding: 5px 12px;
  margin: 0 5px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2rem; }
  .about-content { padding-left: 0; margin-top: 40px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-features { flex-direction: column; }
  .hero-buttons .btn { display: block; width: 100%; margin: 10px 0 !important; }
  .about-stats { flex-direction: column; gap: 20px; }
  .info-card { margin-bottom: 20px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .modal-content { max-height: 80vh; }
  .google-form-frame { height: 500px; }
}