@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --rosso: #D32F2F;
  --rosso-scuro: #B71C1C;
  --verde: #2E7D32;
  --verde-scuro: #1B5E20;
  --bianco: #FFFFFF;
  --oro: #C9953C;
  --grigio-chiaro: #F9F9F9;
  --grigio: #666;
  --grigio-scuro: #333;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--grigio-scuro);
  line-height: 1.6;
  background: var(--bianco);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bianco);
  border-bottom: 3px solid var(--rosso);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rosso);
}

.navbar .logo img {
  height: 48px;
  width: auto;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--grigio-scuro);
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rosso);
  background: rgba(211, 47, 47, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--rosso);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--rosso);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === FLOAT BUTTONS === */
.float-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.float-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
}

.float-label {
  background: var(--bianco);
  color: var(--grigio-scuro);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid #e0e0e0;
}

.float-item:hover .float-label {
  opacity: 1;
  transform: translateX(0);
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--bianco);
}

.float-btn.whatsapp-float {
  background: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.float-btn.whatsapp-float:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.float-btn.phone-float {
  background: var(--rosso);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.float-btn.phone-float:hover {
  background: var(--rosso-scuro);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.5);
}

.float-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
  position: relative;
}

.phone-notification {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bianco);
  color: var(--rosso);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 2px solid var(--rosso);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(-50%) translateX(10px);
  z-index: 1000;
}

.phone-notification.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.phone-notification::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--rosso);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* === HERO / CAROUSEL === */
.hero {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 10px;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-carousel .slide.active {
  opacity: 1;
}

.hero-carousel .slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 24px;
}

.hero-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
}

.hero-logo img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--bianco);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  object-fit: cover;
}

  .deliveroo-banner {
    padding: 40px 16px;
  }

  .deliveroo-banner h3 {
    font-size: 1.5rem;
  }

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--bianco);
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--rosso);
  color: var(--bianco);
}

.btn-primary:hover {
  background: var(--rosso-scuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--bianco);
  border: 2px solid var(--bianco);
}

.btn-outline:hover {
  background: var(--bianco);
  color: var(--grigio-scuro);
}

.btn-deliveroo {
  background: #00CCBC;
  color: var(--bianco);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-deliveroo:hover {
  background: #00B3A5;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 204, 188, 0.4);
}

.btn-deliveroo svg {
  width: 20px;
  height: 20px;
  fill: var(--bianco);
}

/* === SEZIONI === */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--grigio-chiaro);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--grigio-scuro);
}

.section-title span {
  color: var(--rosso);
}

.section-subtitle {
  text-align: center;
  color: var(--grigio);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* === GALLERIA === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.gallery-item .caption {
  padding: 12px 16px;
  background: var(--bianco);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--grigio-scuro);
}

/* === PIZZE GRID === */
.pizze-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pizza-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pizza-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.pizza-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pizza-item .caption {
  padding: 10px 14px;
  background: var(--bianco);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--grigio-scuro);
  text-align: center;
}

/* === MAPPA === */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-top: 32px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* === MENU QR === */
.qr-section {
  text-align: center;
  padding: 60px 24px;
}

.qr-section img {
  max-width: 280px;
  margin: 0 auto 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.qr-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--grigio-scuro);
}

.qr-section p {
  color: var(--grigio);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 24px;
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--rosso);
  color: var(--bianco);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-pdf:hover {
  background: var(--rosso-scuro);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-pdf svg {
  width: 20px;
  height: 20px;
  fill: var(--bianco);
}

/* === DELIVEROO BANNER === */
.deliveroo-banner {
  background: linear-gradient(135deg, #2C1810, #4E342E);
  color: var(--bianco);
  text-align: center;
  padding: 60px 24px;
  width: 100%;
}

.deliveroo-banner h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 12px;
}

.deliveroo-banner p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.deliveroo-banner .order-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.deliveroo-banner .order-options .btn {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 1rem;
}

.deliveroo-banner .btn-deliveroo {
  background: var(--bianco);
  color: #2C1810;
}

.deliveroo-banner .btn-deliveroo:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.deliveroo-banner .btn-deliveroo svg {
  fill: #2C1810;
  width: 24px;
  height: 24px;
}

.deliveroo-banner .deliveroo-logo {
  height: 24px;
  width: auto;
}

.deliveroo-banner .btn-order-phone {
  background: var(--bianco);
  color: var(--rosso);
}

.deliveroo-banner .btn-order-phone:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.deliveroo-banner .btn-order-phone svg {
  fill: var(--rosso);
  width: 24px;
  height: 24px;
}

/* === PDF VIEWER === */
.pdf-viewer {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 0 auto;
}

.pdf-viewer iframe {
  width: 100%;
  height: 600px;
  border: 0;
}

/* === ABOUT === */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.about-story img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-story h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-story h2 span {
  color: var(--rosso);
}

.about-story p {
  color: var(--grigio);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-story .dual-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-story .dual-img img {
  height: 260px;
}

.about-story .awards-img {
  object-position: center 25%;
  object-fit: cover;
}

.about-story:nth-child(2) img {
  order: -1;
}

/* === CONTATTI === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--rosso);
}

.contact-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info-item .icon {
  min-width: 36px;
  height: 36px;
  background: rgba(211, 47, 47, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rosso);
  font-size: 1rem;
}

.contact-info-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info-item .label {
  font-weight: 600;
  color: var(--grigio-scuro);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.hours-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--grigio-scuro);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--grigio);
}

.hours-table .chiuso {
  color: var(--rosso);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--bianco);
}

.social-link.facebook {
  background: #1877F2;
  color: var(--bianco);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-link.instagram svg {
  fill: var(--bianco);
}

.social-link.facebook svg {
  fill: var(--bianco);
}

/* === FORM === */
.contact-form {
  background: var(--bianco);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--grigio-scuro);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--grigio-scuro);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rosso);
}

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

/* === ABOUT CARDS === */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.about-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bianco);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--rosso);
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--grigio-scuro);
}

.about-card p {
  color: var(--grigio);
  font-size: 0.9rem;
  line-height: 1.6;
}

.about-card .badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--oro), #e6b800);
  color: var(--bianco);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

/* === FOOTER === */
.footer {
  background: var(--grigio-scuro);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
  border-top: 4px solid var(--rosso);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  font-family: var(--font-serif);
  color: var(--bianco);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.footer p,
.footer a {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255,255,255,0.7);
}

.footer a:hover {
  color: var(--oro);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* === FADE-IN === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bianco);
    flex-direction: column;
    align-items: flex-end;
    padding: 20px 24px;
    gap: 12px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--rosso);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links a {
    padding: 14px 20px;
    font-size: 1.05rem;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-story img {
    height: 280px;
  }

  .about-story .dual-img {
    grid-template-columns: 1fr 1fr;
  }

  .about-story .dual-img img {
    height: 200px;
  }

  .about-story:nth-child(2) img {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .map-container iframe {
    height: 300px;
  }

  .gallery-item img {
    height: 220px;
  }

  .pizza-item img {
    height: 180px;
  }

  .pdf-viewer iframe {
    height: 400px;
  }

  .float-wrapper {
    bottom: 16px;
    right: 16px;
  }

  .float-label {
    display: none;
  }

  .float-btn {
    width: 52px;
    height: 52px;
  }

  .float-btn svg {
    width: 26px;
    height: 26px;
  }

  .phone-notification {
    display: none;
  }

  .hero-logo img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 12px;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .about-story .dual-img {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }

  .contact-form {
    padding: 20px;
  }

  .social-links {
    flex-direction: column;
  }
}
