/* ===== CSS Variables ===== */
:root {
  --background: hsl(35, 30%, 95%);
  --foreground: hsl(25, 40%, 12%);
  --card: hsl(35, 25%, 92%);
  --card-foreground: hsl(25, 40%, 12%);
  --primary: hsl(8, 55%, 38%);
  --primary-foreground: hsl(35, 30%, 95%);
  --secondary: hsl(35, 35%, 82%);
  --secondary-foreground: hsl(25, 40%, 12%);
  --muted: hsl(35, 20%, 88%);
  --muted-foreground: hsl(25, 15%, 45%);
  --accent: hsl(38, 60%, 55%);
  --accent-foreground: hsl(25, 40%, 12%);
  --border: hsl(30, 20%, 80%);
  --radius: 0.5rem;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.625;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

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

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

/* ===== Container ===== */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Section ===== */
.section {
  padding: 5rem 1rem;
  text-align: center;
}

.section-muted {
  background-color: hsl(35, 20%, 88%, 0.5);
}

.section-text {
  max-width: 42rem;
  margin: 0 auto 3rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section h2 {
    font-size: 3rem;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: hsl(8, 55%, 32%);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ===== Navbar ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem 0;
}

#navbar.scrolled {
  background-color: hsl(25, 40%, 12%, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.2s;
}

.nav-cta:hover {
  background-color: hsl(8, 55%, 32%);
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-hamburger {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  background-color: hsl(25, 40%, 12%, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: #fff;
}

.mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--primary);
  color: var(--primary-foreground) !important;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 48rem;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fcd34d; /* amber-300 */
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 7rem;
  }
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fde68a; /* amber-200 */
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.875rem;
  }
}

.hero-location {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-location {
    font-size: 1.125rem;
  }
}

.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
}

.star-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.star-icon.filled {
  fill: #fbbf24;
  stroke: none;
}

.star-icon.half polygon {
  stroke: none;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-scroll-down {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 1s infinite;
  transition: color 0.2s;
}

.hero-scroll-down:hover {
  color: #fff;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ===== Features Grid (Chi Siamo) ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background-color: hsl(8, 55%, 38%, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* ===== Menu Tabs ===== */
.tabs {
  margin-top: 2rem;
}

.tab-list {
  display: inline-flex;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-bottom: 2rem;
}

.tab-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border: none;
  background: none;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.tab-btn:not(.active):hover {
  color: var(--foreground);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-item {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.menu-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.menu-item h4 {
  font-size: 1.0625rem;
  font-weight: 700;
}

.menu-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.menu-item p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.menu-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-style: italic;
}

/* Tab list wrapper with fade gradient (mobile) */
.tab-list-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.tab-list-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.25rem;
  padding-bottom: 0.25rem;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.tab-list-scroll::-webkit-scrollbar {
  display: none;
}

.tab-list-scroll .tab-btn {
  flex-shrink: 0;
}

/* Fade gradients on edges */
.tab-list-wrapper::before,
.tab-list-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0.25rem;
  width: 2.5rem;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tab-list-wrapper::before {
  left: 0;
  background: linear-gradient(to right, hsl(35, 20%, 88%) 0%, transparent 100%);
  opacity: 0;
}

.tab-list-wrapper::after {
  right: 0;
  background: linear-gradient(to left, hsl(35, 20%, 88%) 0%, transparent 100%);
}

.tab-list-wrapper.fade-left-hidden::before {
  opacity: 0;
}

.tab-list-wrapper.fade-left-visible::before {
  opacity: 1;
}

.tab-list-wrapper.fade-right-hidden::after {
  opacity: 0;
}

/* Scroll hint arrow + text */
.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  animation: hint-nudge 1.5s ease-in-out infinite;
}

.scroll-hint svg {
  color: var(--primary);
}

.scroll-hint.hidden {
  opacity: 0;
}

@keyframes hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@media (min-width: 768px) {
  .tab-list-wrapper::before,
  .tab-list-wrapper::after {
    display: none;
  }
  .scroll-hint {
    display: none;
  }
  .tab-list-wrapper {
    display: flex;
    justify-content: center;
  }
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

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

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: hsl(8, 55%, 38%, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* ===== Orari ===== */
.orari-card {
  max-width: 32rem;
  margin: 2rem auto 0;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.orari-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem;
  font-weight: 700;
  font-size: 1rem;
}

.orari-list {
  padding: 0.5rem 0;
}

.orari-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

.orari-row:last-child {
  border-bottom: none;
}

.orari-row span:first-child {
  font-weight: 700;
}

.orari-row span:last-child {
  color: var(--muted-foreground);
}

/* ===== Contatti ===== */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

@media (min-width: 1024px) {
  .contatti-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contatti-info {
  display: flex;
  flex-direction: column;
}

.contatti-block {
  margin-bottom: 1.5rem;
}

.contatti-block h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.contatti-block p {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.8;
}

.contatti-block a {
  color: var(--primary);
  font-weight: 700;
  transition: opacity 0.2s;
}

.contatti-block a:hover {
  opacity: 0.8;
}

.inline-icon {
  display: inline-block;
  vertical-align: -0.125em;
  margin-right: 0.375rem;
  color: var(--primary);
}

.contatti-map {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contatti-map iframe {
  display: block;
}

/* ===== Reviews ===== */
.reviews-overall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.reviews-stars {
  display: flex;
  gap: 0.125rem;
}

.star-icon-review {
  width: 1.5rem;
  height: 1.5rem;
}

.star-icon-review.filled {
  fill: #f59e0b;
  stroke: none;
}

.star-icon-review.half polygon {
  stroke: none;
}

.reviews-score {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
}

.reviews-source {
  color: var(--muted-foreground);
  font-size: 1rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.review-header strong {
  font-size: 1rem;
}

.review-stars {
  display: flex;
  gap: 0.125rem;
}

.star-sm {
  width: 1rem;
  height: 1rem;
  fill: #f59e0b;
  stroke: none;
}

.star-sm.empty {
  fill: #f59e0b80;
}

.review-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.review-date {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  opacity: 0.7;
}

/* ===== Footer ===== */
footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 1rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--background);
}

.footer-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .inline-icon {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.feature-card.animate-on-scroll,
.service-card.animate-on-scroll,
.gallery-item.animate-on-scroll,
.review-card.animate-on-scroll {
  transition-delay: 0s;
}

.feature-card:nth-child(2).animate-on-scroll,
.service-card:nth-child(2).animate-on-scroll,
.review-card:nth-child(2).animate-on-scroll {
  transition-delay: 0.1s;
}

.feature-card:nth-child(3).animate-on-scroll,
.service-card:nth-child(3).animate-on-scroll,
.review-card:nth-child(3).animate-on-scroll {
  transition-delay: 0.2s;
}

.service-card:nth-child(4).animate-on-scroll,
.review-card:nth-child(4).animate-on-scroll {
  transition-delay: 0.3s;
}

/* ===== Language Toggle ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 0.1875rem;
}

.lang-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border: none;
  background: none;
  border-radius: 9999px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mobile-lang-toggle {
  display: none;
}
