/* ==========================================================================
   Panificio Bonomi · Dal 1938 · Gardone Val Trompia
   Styles CSS Vanilla — 100% Autonome
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Palette officielle */
  --color-cream: #FDFBF7;
  --color-brown: #5E4033;
  --color-dark: #2A2A2A;
  --color-gold: #D4AF37;
  --color-gold-hover: #b89327;
  --color-gold-light: rgba(212, 175, 55, 0.12);
  --color-gold-glow: rgba(212, 175, 55, 0.25);

  /* Couleurs de texte */
  --text-dark: #2A2A2A;
  --text-cream: #FDFBF7;
  --text-muted-brown: rgba(94, 64, 51, 0.8);
  --text-muted-cream: rgba(253, 251, 247, 0.75);

  /* Bordures */
  --border-light: rgba(94, 64, 51, 0.12);
  --border-dark: rgba(253, 251, 247, 0.12);
  --border-gold: rgba(212, 175, 55, 0.3);

  /* Ombres & Transitions */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 35px rgba(0, 0, 0, 0.2);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
.font-serif-display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.text-gold {
  color: var(--color-gold);
}

.section-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.section-subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 600px;
}

/* --------------------------------------------------------------------------
   4. TEXTURE DE GRAIN & OVERLAYS
   -------------------------------------------------------------------------- */
.grain-overlay {
  position: relative;
}

.grain-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(94, 64, 51, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.header-logo-badge {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: var(--color-brown);
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.logo-link:hover .header-logo-badge {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-cream);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.header.scrolled .logo-title {
  color: var(--color-dark);
}

.logo-sub {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(253, 251, 247, 0.7);
  margin-top: 3px;
  transition: color var(--transition-fast);
}

.header.scrolled .logo-sub {
  color: rgba(94, 64, 51, 0.7);
}

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

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(253, 251, 247, 0.9);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.header.scrolled .nav-link {
  color: var(--color-dark);
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Lang switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 2px;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.header.scrolled .lang-switcher {
  background: rgba(94, 64, 51, 0.08);
  border-color: rgba(94, 64, 51, 0.15);
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  color: rgba(253, 251, 247, 0.8);
  transition: all var(--transition-fast);
}

.header.scrolled .lang-btn {
  color: var(--text-dark);
}

.lang-btn.active {
  background-color: var(--color-gold);
  color: #1a1a1a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Header CTA */
.btn-cta-nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  background-color: var(--color-gold);
  color: #1a1a1a;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

@media (min-width: 640px) {
  .btn-cta-nav {
    display: inline-flex;
  }
}

.btn-cta-nav:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* Mobile toggle button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--color-cream);
  transition: all var(--transition-fast);
}

.header.scrolled .mobile-menu-btn {
  color: var(--color-dark);
}

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

/* Mobile drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background-color: var(--color-cream);
  z-index: 160;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: auto;
}

.mobile-drawer-link {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

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

.mobile-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION (#top)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background-color: #2A2A2A;
  overflow: hidden;
  padding-bottom: 4rem;
  padding-top: 6rem;
}

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

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(42, 42, 42, 0.96) 0%,
    rgba(42, 42, 42, 0.75) 45%,
    rgba(42, 42, 42, 0.45) 80%,
    rgba(42, 42, 42, 0.6) 100%
  );
}

.hero-content {
  max-width: 820px;
  color: var(--color-cream);
}

.hero-content .section-tagline {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.875rem;
  line-height: 1.08;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 1.25rem;
  white-space: pre-line;
}

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

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

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(253, 251, 247, 0.85);
  max-width: 640px;
  margin-bottom: 2rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--color-gold);
  color: #1a1a1a;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: rgba(253, 251, 247, 0.1);
  border: 1px solid rgba(253, 251, 247, 0.25);
  color: var(--color-cream);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(253, 251, 247, 0.2);
  border-color: rgba(253, 251, 247, 0.4);
  transform: translateY(-2px);
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(253, 251, 247, 0.15);
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

.hero-oven-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(253, 251, 247, 0.9);
}

.pulsing-dot {
  position: relative;
  display: inline-flex;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-gold);
  flex-shrink: 0;
}

.pulsing-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: inherit;
  opacity: 0.75;
  animation: pulse-ring 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.hero-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(253, 251, 247, 0.6);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}

.hero-scroll-link:hover {
  color: var(--color-gold);
}

.hero-scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(3px); }
}

/* --------------------------------------------------------------------------
   7. SECTION STORIA (#storia)
   -------------------------------------------------------------------------- */
.section-storia {
  padding: 6rem 0;
  background-color: var(--color-cream);
}

@media (min-width: 640px) {
  .section-storia {
    padding: 8rem 0;
  }
}

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

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

.storia-image-wrapper {
  position: relative;
  order: 2;
}

@media (min-width: 1024px) {
  .storia-image-wrapper {
    order: 1;
  }
}

.storia-image-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.storia-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.storia-badge-floating {
  position: absolute;
  bottom: -1.5rem;
  right: -0.5rem;
  background-color: var(--color-dark);
  color: var(--color-cream);
  padding: 1.25rem 1.75rem;
  border-radius: 4px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

@media (min-width: 640px) {
  .storia-badge-floating {
    right: 1.5rem;
  }
}

.storia-badge-floating .since-yr {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-gold);
  display: block;
}

.storia-badge-floating .since-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(253, 251, 247, 0.7);
  margin-top: 0.375rem;
  display: block;
}

.storia-content {
  order: 1;
}

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

.storia-title {
  color: var(--color-dark);
  white-space: pre-line;
}

.storia-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted-brown);
  margin-bottom: 1.25rem;
}

.storia-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.pillar-item {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.pillar-icon {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted-brown);
}

/* --------------------------------------------------------------------------
   8. SECTION PRODOTTI (#prodotti)
   -------------------------------------------------------------------------- */
.section-prodotti {
  padding: 6rem 0;
  background-color: var(--color-brown);
  color: var(--color-cream);
  overflow: hidden;
}

@media (min-width: 640px) {
  .section-prodotti {
    padding: 8rem 0;
  }
}

.prodotti-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem auto;
}

.prodotti-title {
  color: var(--color-cream);
  white-space: pre-line;
}

.prodotti-subtitle {
  color: var(--text-muted-cream);
  margin: 0 auto;
}

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

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

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

.product-card {
  position: relative;
  background-color: rgba(253, 251, 247, 0.05);
  border: 1px solid rgba(253, 251, 247, 0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  background-color: rgba(253, 251, 247, 0.08);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted-cream);
}

/* --------------------------------------------------------------------------
   9. SECTION PERCHÉ NOI (#perche)
   -------------------------------------------------------------------------- */
.section-perche {
  padding: 6rem 0;
  background-color: var(--color-cream);
}

@media (min-width: 640px) {
  .section-perche {
    padding: 8rem 0;
  }
}

.perche-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .perche-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }
}

.perche-sticky-col {
  position: static;
}

@media (min-width: 1024px) {
  .perche-sticky-col {
    position: sticky;
    top: 7rem;
    align-self: flex-start;
  }
}

.perche-title {
  color: var(--color-dark);
  white-space: pre-line;
}

.perche-subtitle {
  color: var(--text-muted-brown);
  margin-top: 1rem;
}

.perche-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

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

.why-card {
  background-color: var(--color-cream);
  padding: 1.75rem;
  display: flex;
  gap: 1rem;
  transition: background-color var(--transition-fast);
}

.why-card:hover {
  background-color: rgba(212, 175, 55, 0.05);
}

.why-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(94, 64, 51, 0.08);
  color: var(--color-brown);
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.why-card:hover .why-icon-wrap {
  background-color: var(--color-gold);
  color: #1a1a1a;
}

.why-card-content h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.35rem;
}

.why-card-content p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted-brown);
}

/* --------------------------------------------------------------------------
   10. SECTION GALLERIA (#galleria)
   -------------------------------------------------------------------------- */
.section-galleria {
  padding: 6rem 0;
  background-color: var(--color-cream);
}

@media (min-width: 640px) {
  .section-galleria {
    padding: 8rem 0;
  }
}

.galleria-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.galleria-title {
  color: var(--color-dark);
  white-space: pre-line;
}

.galleria-subtitle {
  color: var(--text-muted-brown);
  margin: 0 auto;
}

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

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

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

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: #2A2A2A;
  box-shadow: var(--shadow-md);
}

.gallery-item.span-2 {
  aspect-ratio: 16/9;
}

@media (min-width: 1024px) {
  .gallery-item.span-2 {
    grid-column: span 2;
    aspect-ratio: auto;
    height: 100%;
  }
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   11. SECTION RECENSIONI (#recensioni)
   -------------------------------------------------------------------------- */
.section-recensioni {
  padding: 6rem 0;
  background-color: var(--color-dark);
  color: var(--color-cream);
}

@media (min-width: 640px) {
  .section-recensioni {
    padding: 8rem 0;
  }
}

.recensioni-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem auto;
}

.recensioni-title {
  color: var(--color-cream);
  white-space: pre-line;
}

.recensioni-subtitle {
  color: var(--text-muted-cream);
  margin: 0 auto;
}

.rating-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background-color: rgba(253, 251, 247, 0.08);
  border: 1px solid rgba(253, 251, 247, 0.15);
  border-radius: 9999px;
  margin-top: 1.5rem;
}

.stars-row {
  display: flex;
  gap: 3px;
  color: #fbbf24;
}

.rating-num {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-cream);
}

.rating-count {
  font-size: 0.8125rem;
  color: var(--text-muted-cream);
}

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

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

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

.review-card {
  background-color: rgba(253, 251, 247, 0.04);
  border: 1px solid rgba(253, 251, 247, 0.08);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.review-card:hover {
  background-color: rgba(253, 251, 247, 0.08);
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.review-stars {
  display: flex;
  gap: 3px;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(253, 251, 247, 0.9);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted-cream);
}

.google-icon-svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   12. SECTION VISITA & ORARI (#visita)
   -------------------------------------------------------------------------- */
.section-visita {
  padding: 6rem 0;
  background-color: var(--color-cream);
}

@media (min-width: 640px) {
  .section-visita {
    padding: 8rem 0;
  }
}

.visita-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.visita-title {
  color: var(--color-dark);
  white-space: pre-line;
}

.visita-subtitle {
  color: var(--text-muted-brown);
  margin: 0 auto;
}

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

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

.visita-info-card {
  background-color: var(--color-dark);
  color: var(--color-cream);
  border-radius: 4px;
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  align-self: flex-start;
  transition: all var(--transition-fast);
}

.live-status-badge .pulsing-dot {
  width: 8px;
  height: 8px;
}

.live-status-badge.open {
  background-color: rgba(127, 176, 105, 0.15);
  border: 1px solid rgba(127, 176, 105, 0.4);
  color: #7FB069;
}

.live-status-badge.open .pulsing-dot {
  background-color: #7FB069;
}

.live-status-badge.closed {
  background-color: rgba(212, 118, 58, 0.15);
  border: 1px solid rgba(212, 118, 58, 0.35);
  color: #D4763A;
}

.live-status-badge.closed .pulsing-dot {
  background-color: #D4763A;
}

.live-status-badge.closed .pulsing-dot::before {
  animation: none;
  display: none;
}

.hours-table-wrap h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(253, 251, 247, 0.8);
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(253, 251, 247, 0.1);
}

.hours-row.active-day {
  color: var(--color-gold);
  font-weight: 600;
  border-bottom-color: rgba(212, 175, 55, 0.35);
}

.hours-time {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(253, 251, 247, 0.7);
}

.hours-row.active-day .hours-time {
  color: var(--color-gold);
}

.visita-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  border-top: 1px solid rgba(253, 251, 247, 0.15);
  padding-top: 1.5rem;
}

@media (min-width: 640px) {
  .visita-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-block h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: 0.35rem;
}

.detail-block p, .detail-block a {
  font-size: 0.9375rem;
  color: var(--color-cream);
  line-height: 1.5;
}

.visita-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-gold);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

.btn-directions:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-1px);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: rgba(253, 251, 247, 0.1);
  border: 1px solid rgba(253, 251, 247, 0.2);
  color: var(--color-cream);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

.btn-call:hover {
  background-color: rgba(253, 251, 247, 0.18);
  border-color: rgba(253, 251, 247, 0.35);
}

.map-container {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 100%;
  min-height: 380px;
  background-color: #e5e5e5;
}

.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(15%) contrast(105%);
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-dark);
  color: var(--color-cream);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(253, 251, 247, 0.12);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.footer-brand-badge {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: var(--color-gold);
  color: var(--color-dark);
  flex-shrink: 0;
}

.footer-brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-cream);
  line-height: 1;
  display: block;
}

.footer-brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.5);
  margin-top: 3px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(253, 251, 247, 0.6);
  max-width: 20rem;
  line-height: 1.625;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(253, 251, 247, 0.4);
  margin-bottom: 1rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(253, 251, 247, 0.75);
  transition: color var(--transition-fast);
  text-decoration: none;
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-gold);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: rgba(253, 251, 247, 0.75);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-contact-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text {
  white-space: pre-line;
}

.footer-contact-link {
  color: rgba(253, 251, 247, 0.75);
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: rgba(253, 251, 247, 0.4);
}

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

.footer-bottom-copy {
  font-size: 0.75rem;
  color: rgba(253, 251, 247, 0.4);
}

.footer-credit {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(253, 251, 247, 0.5);
}

/* --------------------------------------------------------------------------
   14. ANIMATIONS & TRANSITIONS
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}
