/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette from Figma Design */
  /* Primary colors */
  --primary: #35748b; /* Blu petrolio - Primary buttons, links, borders */
  --primary-foreground: #fdfffe; /* Bianco puro - Text on primary */

  /* Secondary colors */
  --secondary: #bcd7db; /* Azzurro desaturato - Secondary elements, muted, borders */
  --secondary-foreground: #35748b; /* Blu petrolio - Text on secondary */

  /* Accent colors */
  --accent: #81b6c6; /* Azzurro medio freddo - Accent highlights, ring */
  --accent-foreground: #376678; /* Blu profondo - Text on accent */

  /* Background and foreground */
  --background: #ebe6db; /* Avorio chiaro - Main page background, cards */
  --foreground: #376678; /* Blu profondo - Main text color, foreground */

  /* Muted colors */
  --muted: #bcd7db; /* Azzurro desaturato - Muted backgrounds */
  --muted-foreground: #376678; /* Blu profondo - Muted text */

  /* Border and input */
  --border: #bcd7db; /* Azzurro desaturato - Border colors */
  --input: #bcd7db; /* Azzurro desaturato - Input borders */
  --ring: #35748b; /* Blu petrolio - Focus ring */

  /* Legacy variable names for compatibility */
  --text: var(--foreground);
  --text-light: var(--muted-foreground);

  /* Status colors */
  --error: #d32f2f;
  --success: #2e7d32;

  /* Utility classes */
  --card-bg: var(--muted);
}

.bg-card {
  background-color: var(--card-bg);
}

body {
  font-family: "Quicksand", sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: 1047px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  min-height: 100px; /* Reduced header height */
}

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

.logo-link {
  text-decoration: none;
}

.logo-placeholder {
  width: 120px;
  height: 120px;
  background-color: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  overflow: hidden;
}

.logo-link:hover .logo-placeholder {
  transform: scale(1.05);
  background-color: transparent;
}

.logo-icon {
  font-size: 3rem;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.brand-name {
  font-size: 2.75rem;
  color: var(--primary);
  margin: 0;
  font-weight: bold;
}

.brand-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.nav-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.social-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.social-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.social-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-button:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.1);
}

.social-button.instagram:hover {
  background-color: #e4405f;
  color: white;
}

.social-button.whatsapp:hover {
  background-color: #25d366;
  color: white;
}

.social-button.youtube:hover {
  background-color: #ff0000;
  color: white;
}

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

.nav-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-button:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.nav-button.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.nav-button-contact {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.nav-button-contact:hover {
  background-color: var(--muted);
}

/* Products Dropdown */
.dropdown-container {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 224px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
  z-index: 50;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 0.15s;
}

.dropdown-menu a:hover {
  background-color: var(--muted);
}

.dropdown-menu a.active {
  background-color: var(--muted);
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Main About Section with Decorative Image */
.main-about-section {
  padding: 5rem 0;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.main-about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  min-height: 500px;
}

.main-about-text {
  flex: 1;
  max-width: 55%;
  z-index: 10;
  position: relative;
}

.main-about-text h2 {
  font-size: 2.5rem;
  color: var(--secondary-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.main-about-text p {
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.main-about-text p:last-child {
  margin-bottom: 0;
}

.main-about-text strong {
  color: var(--secondary-foreground);
  font-weight: 600;
}

/* Decorative Image with Horizontal Fade */
.main-about-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  z-index: 1;
  /* 
    TO ADJUST THE FADE:
    Change these CSS custom properties to control the fade:
    - --fade-start: where fade begins (from left, as percentage)
    - --fade-end: where fade completes (from left, as percentage)
    Current values: fade starts at 40%, completes at 80%
  */
  --fade-start: 40%;
  --fade-end: 80%;
}

.main-about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/sfondo-fade.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  /* Horizontal gradient mask: transparent on left, opaque on right */
  /* The fade blends seamlessly with the tan background (#ebe6db) */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent calc(var(--fade-start) - 5%),
    rgba(0, 0, 0, 0) var(--fade-start),
    rgba(0, 0, 0, 0.3) calc(var(--fade-start) + 10%),
    rgba(0, 0, 0, 0.7) calc(var(--fade-end) - 10%),
    rgba(0, 0, 0, 1) var(--fade-end),
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent calc(var(--fade-start) - 5%),
    rgba(0, 0, 0, 0) var(--fade-start),
    rgba(0, 0, 0, 0.3) calc(var(--fade-start) + 10%),
    rgba(0, 0, 0, 0.7) calc(var(--fade-end) - 10%),
    rgba(0, 0, 0, 1) var(--fade-end),
    rgba(0, 0, 0, 1) 100%
  );
}

/* Responsive Design */
@media (max-width: 968px) {
  .main-about-content {
    flex-direction: column;
    gap: 2rem;
    min-height: auto;
  }

  .main-about-text {
    max-width: 100%;
  }

  .main-about-image {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 2rem;
  }

  .main-about-image::before {
    /* On mobile, show image with less fade for better visibility */
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 20%,
      rgba(0, 0, 0, 0.5) 40%,
      rgba(0, 0, 0, 1) 60%,
      rgba(0, 0, 0, 1) 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 20%,
      rgba(0, 0, 0, 0.5) 40%,
      rgba(0, 0, 0, 1) 60%,
      rgba(0, 0, 0, 1) 100%
    );
  }
}

@media (max-width: 640px) {
  .main-about-section {
    padding: 3rem 0;
  }

  .main-about-text h2 {
    font-size: 2rem;
  }

  .main-about-text p {
    font-size: 1rem;
  }
}

/* Product Sections with Horizontal Scroll */
.product-section-scroll {
  padding: 3rem 0;
  background-color: var(--background);
}

.product-section-scroll.bg-card {
  background-color: var(--muted);
}

.product-section-scroll h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--secondary-foreground);
  text-align: center;
}

.product-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  cursor: grab;
  user-select: none;
}

.product-scroll-container:active {
  cursor: grabbing;
}

.product-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.product-scroll-content {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
  min-width: min-content;
}

.product-card {
  flex-shrink: 0;
  width: 320px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-card .product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.product-card .product-info {
  padding: 1rem;
}

.product-card .product-info h3 {
  font-size: 1.125rem;
  color: var(--secondary-foreground);
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.3s;
}

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

/* Intro Section */
.intro-section {
  padding: 4rem 0;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content p {
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.8;
}

/* Products Grid Section */
.products-grid-section {
  padding: 3rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-grid-card {
  background-color: var(--background);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}

.product-grid-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-grid-card .product-image {
  aspect-ratio: 4/3;
  overflow: visible;
  transition: transform 0.3s;
  position: relative;
  z-index: 2;
  margin: -10px -10px 10px -10px;
  border-radius: 8px;
  background-color: transparent;
}

.product-grid-card:hover .product-image {
  transform: scale(1.05);
}

.product-grid-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-grid-card:hover .product-image img {
  transform: scale(1.05);
}

.product-grid-card .product-info {
  padding: 1.5rem;
}

.product-grid-card .product-info h3 {
  font-size: 1.25rem;
  color: var(--secondary-foreground);
  margin-bottom: 0.75rem;
}

.product-grid-card .product-info p {
  color: var(--foreground);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.product-grid-card .product-info .btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

/* Mission Section */
.mission-section {
  padding: 4rem 0;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
}

.mission-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-foreground);
}

.mission-content p {
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.8;
}

/* Values Section */
.values-section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary-foreground);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  padding: 2rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.value-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  color: var(--secondary-foreground);
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--foreground);
  opacity: 0.8;
  line-height: 1.6;
}

/* About Gallery */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-gallery .gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
}

.about-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

/* Gallery */
.gallery-section {
  padding: 3rem 0;
}

.gallery-section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--primary-foreground);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal-close:hover {
  opacity: 0.7;
}

/* Contact Content Section */
.contact-content-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form-container,
.contact-info-container {
  background-color: var(--background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2,
.contact-info-container h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-foreground);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-foreground);
}

.contact-info-item p {
  color: var(--foreground);
  opacity: 0.8;
  line-height: 1.6;
  margin: 0;
}

/* Contact Form */
.contact-section {
  padding: 3rem 0;
  max-width: 600px;
  margin: 0 auto;
}

.contact-section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--input);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--background);
  color: var(--foreground);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group button {
  padding: 0.75rem 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.3s;
}

.form-group button:hover:not(:disabled) {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.form-group button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.success {
  color: var(--success);
  font-size: 1rem;
  margin-top: 0.5rem;
  display: block;
}

/* Privacy Section */
.privacy-section {
  padding: 3rem 0;
}

.privacy-section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.privacy-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.privacy-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.privacy-content a {
  color: var(--primary);
  text-decoration: underline;
}

.privacy-content a:hover {
  color: var(--accent);
}

/* Call to Action Section */
.cta-section {
  padding: 4rem 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary-foreground);
}

.cta-content p {
  margin-bottom: 2rem;
  color: var(--foreground);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-button {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Footer */
.main-footer {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 3rem 0;
  text-align: center;
  margin-top: 4rem;
}

.main-footer h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-foreground);
}

.footer-tagline {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--secondary-foreground);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-copyright {
  opacity: 0.75;
  font-size: 0.875rem;
}

footer a:hover {
  opacity: 0.8;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1.5rem;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner-content p {
  flex: 1;
  min-width: 250px;
}

.cookie-banner-content a {
  color: var(--primary-foreground);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--primary-foreground);
  background-color: transparent;
  color: var(--primary-foreground);
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
  transition: background-color 0.3s;
}

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

.cookie-btn:hover {
  opacity: 0.8;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  min-height: 3px;
  background-color: var(--primary, #35748b);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover span {
  background-color: var(--accent);
}

/* Mobile Sidebar */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background-color: var(--background);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--foreground);
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.mobile-menu-close:hover {
  color: var(--primary);
}

.mobile-nav {
  padding: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu-item {
  border-bottom: 1px solid var(--border);
}

.mobile-menu-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.2s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Only apply hover on devices that support hover (not touch devices) */
@media (hover: hover) {
  .mobile-menu-button:hover {
    background-color: var(--muted);
  }

  .mobile-menu-link:hover {
    background-color: var(--muted);
  }
}

.mobile-menu-button:focus,
.mobile-menu-button:active,
.mobile-menu-button:focus-visible {
  outline: none;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-button:active {
  background-color: var(--muted);
}

.mobile-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--foreground);
  transition: background-color 0.2s;
}

.mobile-menu-link:active {
  background-color: var(--muted);
}

.mobile-submenu-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s;
  color: var(--muted-foreground);
}

.mobile-menu-item-expandable.expanded .mobile-submenu-arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--muted);
}

.mobile-menu-item-expandable.expanded .mobile-submenu {
  max-height: 500px;
}

.mobile-submenu a {
  display: block;
  padding: 0.75rem 1.5rem 0.75rem 3rem;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 0.2s;
  border-bottom: 1px solid var(--border);
}

.mobile-submenu a:last-child {
  border-bottom: none;
}

.mobile-submenu a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-social-buttons {
  margin-top: auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 968px) {
  .main-header {
    padding: 0;
  }

  .main-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
    gap: 0;
    position: relative;
    min-height: 70px; /* Reduced mobile header height */
  }

  .nav-brand {
    position: static;
    gap: 0.5rem;
    z-index: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
  }

  .nav-brand .brand-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    width: auto;
  }

  .nav-brand .logo-link {
    position: relative;
    z-index: 1;
  }

  .mobile-menu-toggle {
    display: flex !important;
    margin-left: auto;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    order: 2;
    visibility: visible !important;
    opacity: 1 !important;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .mobile-menu-toggle span {
    background-color: var(--primary, #35748b) !important;
    width: 100% !important;
    height: 3px !important;
    min-height: 3px !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  .nav-actions {
    display: none;
  }

  .logo-placeholder {
    width: 70px;
    height: 70px;
  }

  .brand-name {
    font-size: 2.2rem;
  }

  .logo-icon {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Desktop: Hide mobile menu elements */
@media (min-width: 969px) {
  .mobile-menu-toggle,
  .mobile-sidebar,
  .mobile-menu-overlay {
    display: none !important;
  }
}
