/* ==========================================================================
   Caffetteria August - Main Stylesheet
   Design System: Cormorant Garamond + Inter, HSL-based Light/Dark themes
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts & CSS Custom Properties
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Light Theme Colors (HSL) */
  --background: 36 78% 97%;          /* #FAF5EE Warm Crema */
  --foreground: 15 33% 12%;          /* #291914 Dark Espresso */
  --card: 0 0% 100%;                 /* #FFFFFF Pure White */
  --card-foreground: 15 33% 12%;     /* #291914 */
  --popover: 0 0% 100%;
  --popover-foreground: 15 33% 12%;
  --primary: 15 33% 12%;
  --primary-foreground: 36 78% 97%;
  --secondary: 31 33% 88%;           /* #E9E1D8 */
  --secondary-foreground: 15 33% 12%;
  --muted: 31 33% 88%;               /* #E9E1D8 */
  --muted-foreground: 20 15% 40%;    /* #755B51 */
  --accent: 39 48% 56%;              /* #B88E56 Warm Gold */
  --accent-foreground: 15 33% 12%;
  --border: 37 29% 86%;              /* #E5DDCF Soft Border */
  --input: 37 29% 86%;
  --ring: 39 48% 56%;

  /* Brand Palette */
  --espresso: 15 33% 12%;            /* #291914 Deep Espresso */
  --espresso-light: 15 28% 17%;      /* #38251E */
  --crema: 36 78% 97%;               /* #FAF5EE Soft Crema */
  --gold: 39 48% 56%;                /* #B88E56 Italian Gold */
  --gold-light: 39 52% 63%;          /* #C59F6C Bright Gold */
  --gold-glow: rgba(184, 142, 86, 0.25);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 1rem;
  --header-height: 80px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark {
  /* Dark Theme Colors (HSL) */
  --background: 20 20% 8%;           /* #181310 Deep Night Espresso */
  --foreground: 36 55% 93%;          /* #F5EFE6 Soft Crema */
  --card: 20 16% 12%;                /* #231D19 Dark Card */
  --card-foreground: 36 55% 93%;
  --popover: 20 16% 12%;
  --popover-foreground: 36 55% 93%;
  --primary: 36 55% 93%;
  --primary-foreground: 15 33% 12%;
  --secondary: 20 14% 17%;           /* #2F2722 */
  --secondary-foreground: 36 55% 93%;
  --muted: 20 14% 17%;               /* #2F2722 */
  --muted-foreground: 33 18% 68%;    /* #B5A99E */
  --accent: 39 48% 56%;              /* #B88E56 */
  --accent-foreground: 15 33% 12%;
  --border: 25 14% 24%;              /* #443831 */
  --input: 25 14% 24%;
  --ring: 39 48% 56%;
  --gold-glow: rgba(184, 142, 86, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* --------------------------------------------------------------------------
   3. Typography Utility Classes
   -------------------------------------------------------------------------- */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.section-tag {
  color: hsl(var(--gold));
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-divider {
  width: 48px;
  height: 1.5px;
  background-color: hsl(var(--gold));
  margin: 1.25rem auto 2.5rem;
  opacity: 0.8;
}

.section-divider.left {
  margin: 1.25rem 0 2.5rem;
}

/* --------------------------------------------------------------------------
   4. Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 7.5rem 0;
  }
}

.bg-muted-custom {
  background-color: hsl(var(--muted) / 0.4);
}

.bg-espresso-custom {
  background-color: hsl(var(--espresso));
  color: hsl(var(--crema));
}

/* --------------------------------------------------------------------------
   5. Buttons & Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  min-height: 48px;
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.btn-gold {
  background-color: hsl(var(--gold));
  color: hsl(var(--espresso));
  border: 1px solid hsl(var(--gold));
}

.btn-gold:hover {
  background-color: hsl(var(--gold-light));
  border-color: hsl(var(--gold-light));
  box-shadow: 0 6px 20px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background-color: transparent;
  color: hsl(var(--gold));
  border: 1px solid hsl(var(--gold));
}

.btn-outline-gold:hover {
  background-color: hsl(var(--gold));
  color: hsl(var(--espresso));
  box-shadow: 0 6px 20px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-outline-crema {
  background-color: transparent;
  color: hsl(var(--crema));
  border: 1px solid hsl(var(--crema) / 0.6);
}

.btn-outline-crema:hover {
  background-color: hsl(var(--crema));
  color: hsl(var(--espresso));
  border-color: hsl(var(--crema));
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.8125rem;
  min-height: 40px;
}

/* Icon button circles */
.btn-icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid hsl(var(--gold) / 0.4);
  color: hsl(var(--gold));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-icon-circle:hover {
  background-color: hsl(var(--gold));
  color: hsl(var(--espresso));
  border-color: hsl(var(--gold));
  transform: translateY(-1px);
}

/* Language switch pill */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--gold) / 0.4);
  border-radius: 9999px;
  padding: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  gap: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 9999px;
  color: hsl(var(--crema) / 0.75);
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background-color: hsl(var(--gold));
  color: hsl(var(--espresso));
  font-weight: 700;
}

.lang-btn:hover:not(.active) {
  color: hsl(var(--gold));
}

/* Scrolled Header Language Switch adaptations */
header#main-header.scrolled .lang-switch {
  border-color: hsl(var(--gold) / 0.4);
}

header#main-header.scrolled .lang-btn {
  color: hsl(var(--foreground) / 0.65);
}

header#main-header.scrolled .lang-btn.active {
  background-color: hsl(var(--gold));
  color: hsl(var(--espresso));
}

header#main-header.scrolled .lang-btn:hover:not(.active) {
  color: hsl(var(--gold));
}

/* --------------------------------------------------------------------------
   6. Preloader (Coffee Cup Fill Animation)
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--background));
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-cup-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  color: hsl(var(--foreground));
}

.preloader-steam {
  animation: steamRise 2s infinite ease-in-out;
  transform-origin: center bottom;
}

@keyframes steamRise {
  0%, 100% {
    transform: translateY(0) scaleY(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-4px) scaleY(1.15);
    opacity: 0.7;
  }
}

.preloader-brand {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
}

.preloader-line {
  margin-top: 0.75rem;
  height: 1px;
  width: 48px;
  background-color: hsl(var(--gold));
  opacity: 0.4;
}

.preloader-pct {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   7. Header / Navigation
   -------------------------------------------------------------------------- */
header#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  background-color: transparent;
}

header#main-header.scrolled {
  background-color: hsl(var(--background) / 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid hsl(var(--border) / 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.brand-logo-link:hover {
  transform: scale(1.03);
}

.brand-logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: hsl(var(--crema));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

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

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: hsl(var(--crema));
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

header#main-header.scrolled .nav-link {
  color: hsl(var(--foreground));
}

.nav-link:hover {
  color: hsl(var(--gold)) !important;
}

.nav-cta-btn {
  margin-left: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: hsl(var(--crema));
  transition: color 0.3s ease;
}

header#main-header.scrolled .mobile-menu-btn {
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer */
#mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border) / 0.6);
  padding: 1.5rem 2rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
}

#mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  text-align: left;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: hsl(var(--gold));
}

/* --------------------------------------------------------------------------
   8. Section 1: Hero
   -------------------------------------------------------------------------- */
#home {
  position: relative;
  background-color: hsl(var(--espresso));
  color: hsl(var(--crema));
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-tag {
  color: hsl(var(--gold));
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-block;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: hsl(var(--crema));
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: hsl(var(--crema) / 0.9);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.0625rem;
  color: hsl(var(--crema) / 0.7);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 auto 2.5rem;
}

@media (min-width: 1024px) {
  .hero-desc {
    margin: 0 0 2.5rem 0;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-image-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.hero-image-card {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 75vh;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  background-color: hsl(var(--espresso-light));
  border: 1px solid hsl(var(--gold) / 0.2);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   9. Section 2: Chi Siamo (About)
   -------------------------------------------------------------------------- */
#chi-siamo {
  background-color: hsl(var(--background));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-visual-col {
  position: relative;
  order: 2;
}

@media (min-width: 1024px) {
  .about-visual-col {
    order: 1;
  }
}

.about-image-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
  border: 1px solid hsl(var(--border) / 0.6);
  background-color: hsl(var(--muted) / 0.5);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-card:hover img {
  transform: scale(1.03);
}

.about-deco-border {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  border: 2px solid hsl(var(--gold));
  border-radius: 1rem;
  z-index: -1;
  display: none;
}

@media (min-width: 1024px) {
  .about-deco-border {
    display: block;
  }
}

.about-content-col {
  order: 1;
}

@media (min-width: 1024px) {
  .about-content-col {
    order: 2;
  }
}

.about-lead {
  font-size: 1.125rem;
  color: hsl(var(--foreground) / 0.85);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.about-body-text {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

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

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

.feature-mini-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-mini-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-mini-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Section 3: L'Esperienza (Features)
   -------------------------------------------------------------------------- */
#esperienza {
  background-color: hsl(var(--muted) / 0.4);
}

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

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

.experience-card {
  text-align: center;
  transition: transform 0.4s ease;
}

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

.experience-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--gold) / 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--gold));
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.experience-card:hover .experience-icon-circle {
  border-color: hsl(var(--gold));
  box-shadow: 0 6px 16px var(--gold-glow);
}

.experience-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.experience-desc {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   11. Section 4: Galleria (Gallery)
   -------------------------------------------------------------------------- */
#galleria {
  background-color: hsl(var(--background));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.4);
  background-color: hsl(var(--muted) / 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #FFFFFF;
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   12. Section 5: Recensioni (Reviews)
   -------------------------------------------------------------------------- */
#recensioni {
  background-color: hsl(var(--background));
}

.reviews-grid-desktop {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .reviews-grid-desktop {
    display: grid;
  }
}

.reviews-slider-mobile {
  display: block;
}

@media (min-width: 768px) {
  .reviews-slider-mobile {
    display: none;
  }
}

.review-card {
  background-color: hsl(var(--card));
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-quote-icon {
  width: 32px;
  height: 32px;
  color: hsl(var(--gold) / 0.35);
  margin-bottom: 1rem;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.star-icon {
  width: 16px;
  height: 16px;
  fill: hsl(var(--gold));
  color: hsl(var(--gold));
}

.star-icon.empty {
  fill: hsl(var(--muted));
  color: hsl(var(--muted));
}

.review-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: hsl(var(--foreground) / 0.85);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.review-footer {
  border-top: 1px solid hsl(var(--border) / 0.4);
  padding-top: 1rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.review-date {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  font-style: italic;
}

.reviews-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.reviews-page-count {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   13. Section 6: Orari di Apertura (Hours)
   -------------------------------------------------------------------------- */
#orari {
  background-color: hsl(var(--muted) / 0.4);
}

.hours-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--gold) / 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--gold));
  margin-bottom: 1.5rem;
}

.hours-card {
  background-color: hsl(var(--card));
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.75rem;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  transition: background-color 0.2s ease;
}

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

.hours-row.is-today {
  background-color: hsl(var(--gold) / 0.12);
}

.hours-day {
  font-weight: 500;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.today-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: hsl(var(--gold));
  color: hsl(var(--espresso));
  padding: 2px 8px;
  border-radius: 9999px;
}

.hours-time {
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
}

/* --------------------------------------------------------------------------
   14. Section 7: Dove Siamo (Location)
   -------------------------------------------------------------------------- */
#dove-siamo {
  background-color: hsl(var(--background));
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .location-grid {
    grid-template-columns: 2fr 3fr;
    gap: 3.5rem;
  }
}

.location-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-icon-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.location-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: hsl(var(--muted) / 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--gold));
}

.location-address-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: hsl(var(--foreground));
}

.location-text {
  font-size: 1.125rem;
  color: hsl(var(--foreground) / 0.8);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.location-text-sub {
  font-size: 1.125rem;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 2rem;
}

.map-wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid hsl(var(--border) / 0.5);
  min-height: 340px;
  height: 100%;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: none;
  display: block;
}

/* --------------------------------------------------------------------------
   15. Section 8: Social Banner
   -------------------------------------------------------------------------- */
#social-banner {
  background-color: hsl(var(--espresso));
  color: hsl(var(--crema));
  text-align: center;
}

.social-banner-desc {
  color: hsl(var(--crema) / 0.7);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: 1.0625rem;
}

.social-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .social-banner-buttons {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   16. Section 9: Contattaci (Contact)
   -------------------------------------------------------------------------- */
#contatti {
  background-color: hsl(var(--muted) / 0.4);
}

.contact-card {
  background-color: hsl(var(--card));
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 3.5rem 3rem;
  }
}

.contact-brand-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.contact-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: hsl(var(--foreground) / 0.75);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--foreground) / 0.75);
  transition: color 0.3s ease;
  margin: 1.5rem 0 2rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.contact-email-link:hover {
  color: hsl(var(--gold));
}

.contact-social-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .contact-social-row {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
footer#main-footer {
  background-color: hsl(var(--espresso));
  color: hsl(var(--crema));
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--crema));
  margin-bottom: 0.25rem;
}

.footer-address {
  font-size: 0.875rem;
  color: hsl(var(--crema) / 0.6);
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid hsl(var(--crema) / 0.2);
  color: hsl(var(--crema) / 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.footer-icon-link:hover {
  border-color: hsl(var(--gold));
  color: hsl(var(--gold));
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--crema) / 0.1);
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--crema) / 0.4);
}

/* --------------------------------------------------------------------------
   18. Lightbox Modal
   -------------------------------------------------------------------------- */
#lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.75rem;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#lightbox-caption {
  color: #FFFFFF;
  margin-top: 1rem;
  font-size: 0.9375rem;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2001;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   19. Scroll Animation Utilities
   -------------------------------------------------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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