/* ==========================================================================
   PizzaInGiro — Design System & Stylesheet
   Vanilla CSS with CSS Custom Properties, Light/Dark Modes & Responsive Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- Root Color Tokens (Light Mode Default) --- */
:root {
  --font-heading: 'Cormorant Garamond', ui-serif, Georgia, serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --bg-h: 60;
  --bg-s: 72%;
  --bg-l: 97%;
  --background: hsl(var(--bg-h), var(--bg-s), var(--bg-l)); /* #FDFCF0 */
  --foreground: hsl(0, 0%, 10%); /* #1A1A1A */
  
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 10%);
  
  --primary: hsl(6, 63%, 48%); /* #C73A2D - artisanal tomato red */
  --primary-hover: hsl(6, 70%, 42%);
  --primary-foreground: hsl(60, 72%, 97%);
  
  --secondary: hsl(144, 26%, 24%); /* #2D4C3A - basil forest green */
  --secondary-hover: hsl(144, 30%, 20%);
  --secondary-foreground: hsl(60, 72%, 97%);
  
  --muted: hsl(54, 30%, 92%);
  --muted-foreground: hsl(0, 0%, 40%);
  
  --border: hsl(54, 25%, 86%);
  --input: hsl(54, 25%, 86%);
  --ring: hsla(6, 63%, 48%, 0.2);
  --destructive: hsl(6, 63%, 48%);
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  
  --nav-height: 4.5rem;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Dark Mode Variables --- */
html.dark {
  --background: hsl(0, 0%, 6%); /* #0F0F0F */
  --foreground: hsl(0, 0%, 92%); /* #EBEBEB */
  
  --card: hsl(0, 0%, 10%);
  --card-foreground: hsl(0, 0%, 92%);
  
  --primary: hsl(6, 76%, 56%); /* #E44A3C */
  --primary-hover: hsl(6, 80%, 50%);
  --primary-foreground: hsl(0, 0%, 6%);
  
  --secondary: hsl(144, 26%, 28%);
  --secondary-hover: hsl(144, 30%, 24%);
  --secondary-foreground: hsl(60, 72%, 97%);
  
  --muted: hsl(0, 0%, 14%);
  --muted-foreground: hsl(0, 0%, 65%);
  
  --border: hsl(0, 0%, 18%);
  --input: hsl(0, 0%, 18%);
  --ring: hsla(6, 76%, 56%, 0.25);
  --destructive: hsl(6, 76%, 56%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body {
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
.font-heading {
  font-family: var(--font-heading);
}

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

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

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

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

/* --- Sections --- */
section {
  position: relative;
  width: 100%;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
  }
}

.bg-muted-section {
  background-color: hsla(54, 30%, 92%, 0.4);
}

html.dark .bg-muted-section {
  background-color: hsla(0, 0%, 14%, 0.4);
}

/* Section Header Component */
.section-header {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.05;
  color: var(--foreground);
  text-wrap: balance;
}

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

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

.section-subtitle {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

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

/* --- Navigation Header --- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all var(--transition-normal);
  background: transparent;
}

.header-nav.scrolled {
  background-color: hsla(var(--bg-h), var(--bg-s), var(--bg-l), 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

html.dark .header-nav.scrolled {
  background-color: rgba(15, 15, 15, 0.88);
}

.nav-wrapper {
  display: flex;
  height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-wrapper {
    height: 5rem;
  }
}

.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-frame {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

@media (min-width: 768px) {
  .brand-logo-frame {
    height: 3.5rem;
    width: 3.5rem;
  }
}

.brand-logo-frame img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  border-radius: var(--radius-full);
}

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

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.header-nav:not(.scrolled) .nav-link {
  color: #ffffff;
  opacity: 0.9;
}

.header-nav:not(.scrolled) .nav-link:hover {
  color: #ffffff;
  opacity: 1;
}

.nav-link:hover {
  color: var(--primary);
  opacity: 1;
}

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

@media (min-width: 640px) {
  .header-actions {
    gap: 0.75rem;
  }
}

/* Control Pills: Theme & Language */
.lang-switcher {
  display: flex;
  align-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.header-nav:not(.scrolled) .lang-switcher {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.lang-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--foreground);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.header-nav:not(.scrolled) .lang-btn {
  color: #ffffff;
}

.lang-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  opacity: 1;
}

.icon-btn {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--card);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.header-nav:not(.scrolled) .icon-btn {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.icon-btn:hover {
  background-color: var(--muted);
}

.header-nav:not(.scrolled) .icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.btn-header-cta {
  display: none;
  align-items: center;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

.btn-header-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

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

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

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem 2rem;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: slideDown 250ms ease forwards;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-link {
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid hsla(54, 25%, 86%, 0.4);
}

html.dark .mobile-nav-link {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 6.5rem;
  padding-bottom: 8rem;
  max-width: 52rem;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.25rem;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #ffffff;
  line-height: 0.95;
  font-size: 3.25rem;
  text-wrap: balance;
}

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

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

.hero-desc {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

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

.hero-quote {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta-group {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    gap: 1rem;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  padding: 1rem 1.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: scale(1.025);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem 1.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.hero-pills {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 0.75rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
}

.hero-pill-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: var(--radius-full);
  background-color: var(--primary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

@media (min-width: 768px) {
  .scroll-indicator {
    display: flex;
  }
}

.scroll-indicator:hover {
  color: #ffffff;
}

.scroll-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}

.scroll-wheel {
  width: 0.25rem;
  height: 0.5rem;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-full);
  animation: bounce 1.8s infinite;
}

/* --- Cards & Bento Styles --- */
.card-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--card-foreground);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card-box.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

.step-card {
  padding: 2rem;
}

@media (min-width: 768px) {
  .step-card {
    padding: 2.25rem;
  }
}

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

.step-icon-frame {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: hsla(6, 63%, 48%, 0.1);
  color: var(--primary);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  color: var(--border);
  transition: color var(--transition-normal);
}

.step-card:hover .step-number {
  color: hsla(6, 63%, 48%, 0.35);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.step-text {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Events Grid */
.events-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

.event-card {
  overflow: hidden;
}

.event-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.event-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.event-card:hover .event-img-wrapper img {
  transform: scale(1.06);
}

.event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.event-title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.event-body {
  padding: 1.25rem;
}

.event-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Proposal Grid */
.proposal-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

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

.proposal-card {
  overflow: hidden;
}

.proposal-img-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.proposal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.proposal-card:hover .proposal-img-wrapper img {
  transform: scale(1.06);
}

.proposal-img-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
}

.proposal-emoji-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: hsla(var(--bg-h), var(--bg-s), var(--bg-l), 0.92);
  backdrop-filter: blur(8px);
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

html.dark .proposal-emoji-badge {
  background-color: rgba(25, 25, 25, 0.92);
}

.proposal-body {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .proposal-body {
    padding: 1.5rem;
  }
}

.proposal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.proposal-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Pizza Craftsmanship Section */
.pizza-grid-2col {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .pizza-grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.feature-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 1rem;
  color: var(--foreground);
  font-weight: 500;
}

.feature-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  flex-shrink: 0;
}

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

.pizza-mosaic-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
}

.pizza-mosaic-card.offset-top {
  margin-top: 2rem;
}

.pizza-mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.pizza-mosaic-card:hover img {
  transform: scale(1.06);
}

.pizza-mosaic-card .caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.pizza-mosaic-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  pointer-events: none;
}

/* Bento Gallery Grid */
.bento-gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
}

@media (min-width: 768px) {
  .bento-gallery {
    gap: 1rem;
    grid-auto-rows: 240px;
  }
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color var(--transition-normal);
}

.gallery-item:hover::after {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Reviews / Testimonials */
.reviews-placeholder-card {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1.5px dashed var(--border);
  background-color: var(--card);
  padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
  .reviews-placeholder-card {
    padding: 3.5rem 2.5rem;
  }
}

.star-rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.star-rating-row svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* Coverage Area / Dove Arriviamo */
.coverage-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

.coverage-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .coverage-card {
    padding: 2.5rem;
  }
}

.coverage-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.coverage-visual-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 30% 40%, var(--primary) 0, transparent 40%),
                    radial-gradient(circle at 70% 70%, var(--secondary) 0, transparent 45%);
  pointer-events: none;
}

/* --- Quote Request Form (Preventivo) --- */
.form-container {
  max-width: 56rem;
  margin: 0 auto;
}

.form-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
}

@media (min-width: 768px) {
  .form-card {
    padding: 2.5rem;
  }
}

.form-grid-2col {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.85;
}

.form-label .required {
  color: var(--primary);
}

.form-input, .form-textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--foreground);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.65;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.25rem;
}

.selection-group {
  margin-top: 1.75rem;
}

.selection-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  opacity: 0.85;
}

.selection-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-btn {
  border-radius: var(--radius-full);
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  border-color: var(--primary);
}

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

.pill-btn.selected-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--secondary-foreground);
}

.form-banner-error {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  background-color: hsla(6, 63%, 48%, 0.1);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--destructive);
}

.btn-submit-quote {
  margin-top: 2rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-submit-quote:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: scale(1.01);
}

.btn-submit-quote:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Thank You Box */
.thank-you-box {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
  animation: fadeUp 350ms ease forwards;
}

@media (min-width: 768px) {
  .thank-you-box {
    padding: 3.5rem 2.5rem;
  }
}

.thank-you-icon {
  margin: 0 auto 1.25rem;
  display: flex;
  height: 4.5rem;
  width: 4.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: hsla(6, 63%, 48%, 0.1);
  color: var(--primary);
}

/* Contacts Section */
.contacts-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

.contact-card {
  padding: 1.75rem;
  display: block;
}

.contact-icon-frame {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.contact-icon-frame.primary-tint {
  background-color: hsla(6, 63%, 48%, 0.1);
  color: var(--primary);
}

.contact-icon-frame.secondary-tint {
  background-color: hsla(144, 26%, 24%, 0.15);
  color: var(--secondary);
}

.contact-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  word-break: break-word;
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--secondary);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-whatsapp-large:hover {
  background-color: var(--secondary-hover);
  transform: scale(1.025);
}

/* --- Footer --- */
.site-footer {
  background-color: hsl(0, 0%, 10%);
  color: hsl(60, 72%, 97%);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid transparent;
}

html.dark .site-footer {
  background-color: hsl(0, 0%, 9%);
  color: var(--foreground);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }
}

.footer-grid-3col {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

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

.footer-logo-frame {
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 1rem;
}

.footer-logo-frame img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

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

.footer-link {
  font-size: 0.875rem;
  opacity: 0.75;
  color: inherit;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom-bar {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

html.dark .footer-bottom-bar {
  border-top-color: var(--border);
}

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

/* --- Fixed Mobile Bottom Bar --- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  background-color: hsla(var(--bg-h), var(--bg-s), var(--bg-l), 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.mobile-bar-btn.btn-wa {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

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

/* --- Modal Styles (Privacy & Cookies) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 200ms ease forwards;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 44rem;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--card-foreground);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 250ms ease forwards;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--background);
}

.modal-content-body {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.modal-content-body h3 {
  font-family: var(--font-heading);
  color: var(--foreground);
  font-size: 1.35rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.modal-content-body p {
  margin-bottom: 0.875rem;
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-fade-up {
  animation: fadeUp 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
