@import url('https://fonts.googleapis.com/css2?family=Paytone+One&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --blue: #003CA6;
  --yellow: #E2AB20;
  --cream: #FBEFE0;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display', serif;
  color: var(--blue);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, .chunky-text {
  font-family: 'Paytone One', sans-serif;
  text-transform: uppercase;
  margin: 0;
  color: var(--blue);
  text-shadow: 3px 3px 0px var(--yellow);
}

/* Navbar (NEW) */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 100, 0.05);
  z-index: 1000;
}
.nav-brand {
  font-family: 'Paytone One', sans-serif;
  color: var(--blue);
  font-size: 1.8rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px var(--yellow);
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 700;
  transition: opacity 0.2s;
}
.nav-links a:hover {
  opacity: 0.7;
}
.btn-prenota {
  background-color: var(--blue);
  color: var(--white) !important;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-family: 'Paytone One', sans-serif;
  text-transform: uppercase;
  font-size: 1rem !important;
  box-shadow: 4px 4px 0px var(--yellow);
}
.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: 'Paytone One', sans-serif;
  text-transform: uppercase;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--white);
  transition: transform 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
}

/* Sfondi a strisce verticali stile tendalini */
.stripe-yellow {
  background: repeating-linear-gradient(
    90deg,
    var(--yellow),
    var(--yellow) 60px,
    var(--white) 60px,
    var(--white) 120px
  );
}

.stripe-blue {
  background: repeating-linear-gradient(
    90deg,
    var(--blue),
    var(--blue) 60px,
    var(--white) 60px,
    var(--white) 120px
  );
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: calc(2rem + 80px);
  border-bottom: 6px solid var(--yellow);
}
.hero-content {
  background: var(--white);
  padding: 4rem 5rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 60, 166, 0.2);
  border: 6px solid var(--blue);
}
.hero h1 {
  font-size: 6rem;
  color: var(--blue);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 4px 4px 0px var(--yellow);
}
.hero p {
  font-size: 2.2rem;
  font-style: italic;
  color: var(--blue);
  font-weight: 700;
  margin: 0;
}
.hero.stripe-yellow {
  background: linear-gradient(90deg, var(--yellow) 50%, var(--white) 50%);
  background-size: calc(100% / 11.5) 100%;
}

/* Vibe Section */
.vibe {
  background-color: var(--blue);
  color: var(--cream);
  text-align: center;
  padding: 8rem 2rem;
}
.vibe p {
  font-size: 3.5rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.4;
  font-style: italic;
}

/* Menu Section */
.menu {
  background-color: var(--cream);
  padding: 6rem 2rem;
}
.menu h2 {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 4rem;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background-color: var(--white);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  border: 4px solid var(--blue);
  box-shadow: 10px 10px 0px var(--yellow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 15px 15px 0px var(--yellow);
}

.card h3 {
  font-size: 2.2rem;
  color: var(--blue);
  margin-bottom: 1rem;
}
.card p {
  font-size: 1.4rem;
  color: var(--blue);
  line-height: 1.5;
  margin: 0;
}
.card.stripe-blue {
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 10px 10px 0px var(--yellow);
}
.card.stripe-blue h3, .card.stripe-blue p {
  background: var(--white);
  padding: 0.5rem;
  border-radius: 8px;
  display: inline-block;
  border: 2px solid var(--blue);
}
.card.stripe-blue:hover {
  box-shadow: 15px 15px 0px var(--yellow);
}

.card.stripe-yellow {
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 10px 10px 0px var(--blue);
}
.card.stripe-yellow h3, .card.stripe-yellow p {
  background: var(--white);
  padding: 0.5rem;
  border-radius: 8px;
  display: inline-block;
  border: 2px solid var(--blue);
}
.card.stripe-yellow:hover {
  box-shadow: 15px 15px 0px var(--blue);
}

/* Gallery Section (NEW) */
.gallery {
  padding: 6rem 2rem;
  background-color: var(--cream);
  border-top: 6px solid var(--blue);
  border-bottom: 6px solid var(--blue);
}
.gallery h2 {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 4rem;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-item {
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  border: 4px solid var(--blue);
  box-shadow: 10px 10px 0px var(--yellow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-item:hover {
  transform: translate(-5px, -5px);
  box-shadow: 15px 15px 0px var(--yellow);
}
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-wide {
  grid-column: span 2;
}
.img-1 { background-image: url('images/amalfi_panorama_1782854092263.png'); background-size: cover; background-position: center; }
.img-2 { background-image: url('images/amalfi_lemons_1782854100187.png'); background-size: cover; background-position: center; }
.img-3 { background-image: url('images/amalfi_pasta_1782854109248.png'); background-size: cover; background-position: center; }
.img-4 { background-image: url('images/amalfi_spritz_1782854117213.png'); background-size: cover; background-position: center; }
.img-5 { background-image: url('images/amalfi_table_1782854126779.png'); background-size: cover; background-position: center; }
.img-6 { background-image: url('images/amalfi_fritto_1782855008702.png'); background-size: cover; background-position: center; }
.img-7 { background-image: url('images/amalfi_wine_1782855017975.png'); background-size: cover; background-position: center; }

/* Reviews Section (NEW) */
.reviews {
  padding: 6rem 2rem;
  color: var(--blue);
  border-bottom: 6px solid var(--blue);
}
.reviews.stripe-blue {
  background: linear-gradient(90deg, var(--blue) 50%, var(--white) 50%);
  background-size: calc(100% / 11.5) 100%;
}
.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.reviews-container h2 {
  font-size: 3.5rem;
  margin: 0;
  color: var(--blue);
}
.reviews-header {
  background: var(--white);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 3rem;
  border-radius: 16px;
  border: 4px solid var(--blue);
  box-shadow: 10px 10px 0px var(--yellow);
  margin-bottom: 4rem;
}
.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #333;
}
.google-g {
  background: #4285F4;
  color: white;
  font-weight: bold;
  font-family: sans-serif;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.review-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 4px solid var(--blue);
  box-shadow: 8px 8px 0px var(--yellow);
  transition: transform 0.3s ease;
}
.review-card:hover {
  transform: translateY(-5px);
}
.stars {
  color: var(--yellow);
  font-size: 1.5rem;
  margin: 0 0 0.2rem 0;
}
.review-card p {
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 1rem;
  line-height: 1.6;
}
.author {
  font-family: 'Paytone One', sans-serif;
  font-size: 1.1rem;
  color: var(--blue);
}

/* Booking & Hours Section (NEW) */
.booking {
  background-color: var(--yellow);
  padding: 6rem 2rem;
  border-bottom: 6px solid var(--blue);
}
.daydate-massive-widget {
  background-color: var(--white);
  border-radius: 24px;
  border: 6px solid var(--blue);
  box-shadow: 12px 12px 0px var(--yellow);
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.dd-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 4px dashed var(--cream);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.dd-header h2 {
  font-size: 3rem;
  color: var(--blue);
  margin: 0;
  text-shadow: 3px 3px 0px var(--yellow);
}
.daydate-brand {
  font-size: 1rem;
  color: var(--blue);
  font-family: sans-serif;
}
.daydate-brand strong {
  font-family: 'Paytone One', sans-serif;
  font-size: 1.2rem;
}
.dd-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr;
  gap: 3rem;
}
.dd-body h3 {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1.5rem;
  text-shadow: none;
}
.mock-calendar {
  background: var(--white);
  border: 4px solid var(--blue);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 8px 8px 0px var(--yellow);
}
.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-family: 'Paytone One', sans-serif;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.cal-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-family: 'Paytone One', sans-serif;
  color: var(--blue);
  font-size: 1.1rem;
  border-radius: 8px;
}
.cal-grid span:not(.empty) {
  background: var(--white);
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: all 0.2s;
}
.cal-grid span:not(.empty):hover {
  background: var(--yellow);
  transform: scale(1.1);
  box-shadow: 2px 2px 0px var(--blue);
}
.cal-grid span.selected {
  background: var(--yellow) !important;
  box-shadow: 3px 3px 0px var(--blue);
  transform: scale(1.1);
}
.dd-selection-group {
  margin-bottom: 2rem;
}
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cal-nav-btn {
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-family: 'Paytone One', sans-serif;
  color: var(--blue);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-nav-btn:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px var(--blue);
}
.guest-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 4px solid var(--blue);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 4px 4px 0px var(--yellow);
}
.stepper-btn {
  background: var(--cream);
  border: 3px solid var(--blue);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-family: 'Paytone One', sans-serif;
  color: var(--blue);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper-btn:hover {
  background: var(--yellow);
  box-shadow: 2px 2px 0px var(--blue);
}
.stepper-value {
  font-family: 'Paytone One', sans-serif;
  color: var(--blue);
  font-size: 1.2rem;
}
.time-bento {
  background: var(--white);
  border: 4px solid var(--blue);
  border-radius: 16px;
  padding: 1.5rem;
  padding-right: 0.5rem;
  box-shadow: 8px 8px 0px var(--yellow);
}
.time-scroll-container {
  overflow-y: auto;
  padding-right: 0.5rem;
}
.time-scroll-container::-webkit-scrollbar {
  width: 10px;
}
.time-scroll-container::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 10px;
  border: 2px solid var(--blue);
}
.time-scroll-container::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 10px;
  border: 2px solid var(--blue);
}
.time-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}
.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.dd-pill {
  width: 100%;
  padding: 0.8rem;
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 12px;
  font-family: 'Paytone One', sans-serif;
  color: var(--blue);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dd-pill:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--yellow);
}
.dd-pill.selected {
  background: var(--yellow);
  box-shadow: 4px 4px 0px var(--blue);
}
.hours-bento {
  background: var(--white);
  border: 4px solid var(--blue);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 8px 8px 0px var(--yellow);
  height: 100%;
}
.hours-bento h3 {
  color: var(--blue);
  margin-bottom: 1.5rem;
  text-align: center;
}
.hours-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hours-row strong {
  font-family: 'Paytone One', sans-serif;
  color: var(--blue);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.hours-row span {
  font-size: 1.1rem;
  color: #333;
}
.hours-divider {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--blue), var(--blue) 8px, transparent 8px, transparent 16px);
  margin: 1.5rem 0;
  opacity: 0.5;
}

/* Contacts & Map Section (NEW) */
.contacts {
  padding: 6rem 2rem;
  background-color: var(--white);
}
.contacts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}
.map {
  width: 100%;
  min-height: 300px;
  height: 100%;
}
.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.social-links {
  margin-top: 2rem;
}
.social-links a {
  color: var(--blue);
  font-family: 'Paytone One', sans-serif;
  text-decoration: none;
  font-size: 1.2rem;
  margin-right: 1rem;
}
.map-box {
  width: 100%;
  height: 300px;
  background-color: var(--cream);
  border: 4px solid var(--blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Paytone One', sans-serif;
  color: var(--blue);
}
/* Footer Section */
footer {
  background-color: var(--yellow);
  color: var(--blue);
  text-align: center;
  padding: 4rem 2rem 2rem 2rem; /* Adjusted for new legal line */
  border-top: 6px solid var(--blue);
}
footer h3, footer h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Paytone One', sans-serif;
  text-transform: uppercase;
  text-align: center;
}
footer p {
  font-size: 1.5rem;
  font-weight: bold;
  font-style: italic;
  margin: 0;
  margin-bottom: 0.8rem;
  text-align: center;
}
footer p:last-child {
  margin-bottom: 0;
}
.footer-bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  text-align: left;
}
.footer-box {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 4px solid var(--blue);
  box-shadow: 10px 10px 0px var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.social-links-footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.social-links-footer a {
  color: var(--blue);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-links-footer a:hover {
  color: var(--yellow);
  filter: drop-shadow(2px 2px 0px var(--blue));
  transform: translateY(-3px);
}
.footer-legal {
  border-top: 2px solid var(--blue);
  padding-top: 2rem;
  margin-top: 2rem;
  font-size: 1rem;
  font-style: normal;
}
.footer-legal p {
  font-size: 1rem;
  font-weight: normal;
  font-style: normal;
}
.footer-legal a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

/* =========================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================= */
.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 15px 15px 0px var(--yellow);
}

.footer-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.footer-box:hover {
  transform: translate(-5px, -5px);
  box-shadow: 12px 12px 0px var(--yellow);
}

.animate-on-scroll {
  opacity: 0;
}
.animate-on-scroll.visible {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero h1 { font-size: 4rem; }
  .hero p { font-size: 1.8rem; }
  .vibe p { font-size: 2.5rem; }
  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dd-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .dd-selections-col, .dd-info-col {
    height: auto !important;
    min-height: 0 !important;
  }
  .dd-calendar-col {
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .stripe-yellow, .stripe-blue {
    background-size: 80px 100%;
  }
  .hero-content { padding: 3rem 2rem; }
  .hero h1 { font-size: 3rem; text-shadow: 3px 3px 0px var(--yellow); }
  .hero p { font-size: 1.4rem; }
  .hero.stripe-yellow {
    background-size: calc(100% / 3.5) 100%;
  }
  .reviews.stripe-blue {
    background-size: calc(100% / 3.5) 100%;
  }
  .vibe { padding: 5rem 1.5rem; }
  .vibe p { font-size: 2rem; }
  .menu { padding: 4rem 1.5rem; }
  .menu h2 { font-size: 3rem; }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  .bento-large, .bento-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .dd-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .dd-info-col {
    order: -1;
  }
  .contacts-container {
    grid-template-columns: 1fr;
  }
  .footer-bento-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Modal Prenotazione */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 60, 166, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  background: var(--white);
  padding: 2.5rem;
  width: 90%;
  max-width: 500px;
  transform: translateY(0);
  transition: transform 0.3s ease;
  position: relative;
}
.modal-overlay.hidden .modal-content {
  transform: translateY(50px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.modal-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--blue);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: var(--yellow);
}
.modal-body {
  display: flex;
  flex-direction: column;
}
.input-field {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  border: 3px solid var(--blue);
  border-radius: 12px;
  font-size: 1.1rem;
  font-family: sans-serif;
  color: var(--blue);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.input-field:focus {
  background: var(--white);
  border-color: var(--yellow);
}
.bento-panel {
  border: 4px solid var(--blue);
  border-radius: 16px;
  box-shadow: 12px 12px 0px var(--yellow);
}
