html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /* overflow-x: hidden; */
  scroll-padding-top: 200px;
  /* Adjust to match your header height */
  scroll-behavior: smooth;
  /* Optional: adds smooth scrolling */

}

body {
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0;
  font-family: Open Sans;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(14px, 6vw - 14px, 16px);
  letter-spacing: .03em;
  line-height: 1.8em;
  text-transform: none;
  color: #262626;
  background-color: #fff;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  /* overflow: hidden; */
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline
}

audio:not([controls]) {
  display: none;
  height: 0
}

[hidden],
template {
  display: none
}

a {
  background-color: transparent;
  text-decoration: none !important;
  color: inherit;
}

li {
  list-style: none;
}

a:active,
a:hover {
  outline: 0;
}


.no-outline-btn {
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  padding: 0;
  /* Make flag larger */
  line-height: 1;
  color: inherit;
}

.no-outline-btn::after {
  display: none;
}

.no-outline-btn:focus,
.no-outline-btn:hover {
  background-color: transparent;
}

.hero-subtitle h2 {
  font-family: Gabriela;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(16px, 3vw - 6px, 24px);
  letter-spacing: 0em;
  line-height: 1.26em;
  text-transform: none;
  color: #333;
}

h1,
h2,
h3 {
  text-rendering: optimizeLegibility;
}

.outer-container-body {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* HEADER */
header {
  background-color: #fff;
  z-index: 150;
  opacity: 0.9;
}

.Header-inner {
  padding: 10px 6% 0 6%;
}

.icon-bars button {
  background-color: transparent;
  border: none;
  color: inherit;
}

/* Override offcanvas toggle button active state */
.icon-bars button:hover,
.icon-bars button:focus,
.icon-bars button.active,
.icon-bars button[aria-expanded="true"] {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

/* add a subtle effect to show it's active */
.icon-bars button[aria-expanded="true"] svg {
  opacity: 0.7;
}

.Header-nav {
  font-family: Open Sans;
  font-weight: 600;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1em;
  padding: 10px;
}

.Header-branding {
  max-width: 92px;
  padding: 10px;
}

.Header-nav--offcanvas button,
.Header-nav--offcanvas a {
  font-family: Open Sans;
  font-weight: 600;
  font-style: normal;
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: inherit;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.Header-nav button,
.Header-nav a {
  font-family: Open Sans;
  font-weight: 600;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: inherit;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.Header-nav button:focus,
.Header-nav button:hover,
.header-nav--a-link:focus,
.header-nav--a-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px) scale(1.08);
}

.Header-nav--offcanvas button:focus,
.Header-nav--offcanvas button:hover,
.Header-nav--offcanvas a:focus,
.Header-nav--offcanvas a:hover {
  text-decoration: none;
  transform: translateY(-1px) scale(1.04);
}

.no-outline-btn .current-language-flag {
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(.4, 2, .3, 1);
}

.no-outline-btn:focus .current-language-flag,
.no-outline-btn:hover .current-language-flag {
  transform: translateY(-2px) scale(1.08);
}

.Header-nav-item {
  margin-top: 0;
  margin-bottom: 0;
}

/* If needed, also target multilingual-text links */
.Header-nav-item .multilingual-text {
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.Header-nav-folder {
  background-color: #333;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  color: grey;
  border-radius: 0px;
  padding: 0.5rem 1rem;
  line-height: 1.5;
}

.Header-nav-folder a:focus,
.Header-nav-folder a:hover {
  color: white;
  background-color: inherit;
}


/* ------------------------------------ */
/* MAIN HOME PAGE CONTENT */
/* ------------------------------------ */

/* Hero Section */
.hero-section {
  margin-bottom: 126px;
}

#kaleidoscope {
  width: 100%;
  overflow: hidden;
  padding: 20px 6%;
}

#kaleidoscope > div {
  margin-left: -17px;
  margin-right: -17px;
}

.hero-kaleidoscope {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.hero-kaleidoscope img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hero-kaleidoscope img.active {
  opacity: 1;
}

.hero-subtitle {
  padding: 8px 24px;
}

.hero-subtitle > h2 {
  padding-bottom: 12px;
}

/* Product Categories */
.Index-gallery-item {
  float: left;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.Index-gallery-item-content-heading {
  font-family: Cormorant Infant;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(30px, 3vw - 6px, 42px);
  letter-spacing: 0em;
  line-height: 1em;
  text-transform: none;
  color: rgba(0, 0, 0, .8);
  max-width: 12ch;
  text-align: left;
}

#main-ravioli {
  background-image: url("/assets/images/product-categories/category_thumb_2@0.5x.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#main-pasta {
  background-image: url("/assets/images/product-categories/category_thumb_4@0.5x.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#main-dough {
  background-image: url("/assets/images/product-categories/category_thumb_3@1x.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#main-wrappers {
  background-image: url("/assets/images/product-categories/category_thumb_5@0.5x.webp");
  background-size: 105%;
  background-repeat: repeat-y;
  background-position: 10% center;
}

#main-filled {
  background-image: url("/assets/images/product-categories/category_thumb_1@0.5x.png");
  background-size: cover;
  background-position: 10% center;
  background-repeat: repeat;
}

#main-wrappers,
#main-filled {
  flex: 1 1 50%;
  min-height: 0;
  /* Prevent overflow issues */
}

.categories-1st-row {
  height: 88dvh;
}

.categories-2nd-row {
  height: 70vh;
}

/* Video Section - Responsive TV Screen */
.video-section {
  width: 100%;
  height: clamp(225px, 20vw + 50px, 500px);
  /* Responsive height as requested */
  position: relative;
  overflow: hidden;
  /* Essential for cropping video */
  background: #000;
}

/* Video Element - Parallax Behavior */
.parallax-video,
.artwork-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  /* Ensure video is larger than container for parallax movement */
  object-fit: cover;
  /* Maintain aspect ratio, crop as needed */
  object-position: center center;
  z-index: 1;
  transform: translateY(0);
  /* Initial position, controlled by JS */
  transition: transform 0.1s ease-out;
  /* Smooth movement */
  pointer-events: none;
}

/* Section recipes */
.our-recipes {
  margin-top: clamp(60px, 10vw - 23px, 193px);
  width: 100%;
  padding: 20px 6%;
  box-sizing: border-box;
}

.my-recipes-container {
  margin-left: -17px;
  margin-right: -17px;
  /* background-color: white; */
  min-height: 300px;
}

.my-recipes-container h1 {
  font-family: Cormorant Infant;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(30px, 6vw - 20px, 48px);
  letter-spacing: 0em;
  line-height: 1.2em;
  text-transform: none;
}

.recipe-title,
.recipe-text {
  padding: 17px;
  padding: 17px;
}

.recipe-text p {
  word-wrap: break-word;
  max-width: 60ch;
}

.recipe-divider {
  padding: 17px;
  margin-left: -17px;
  margin-right: -17px;
}

.main-recipe-title {
  font-size: clamp(20px, 6vw - 14px, 30px);
  line-height: 1.2em;
  font-weight: 300;
  font-style: normal;
  letter-spacing: .03em;
}

.main-recipe-subtitle {
  font-size: 13px;
  line-height: 1.4em;
  text-transform: none;
  opacity: .7;
}

.regular-recipe-title {
  font-size: clamp(16px, 6vw - 16px, 18px);
  line-height: 1.2em;
  letter-spacing: .03em;
  font-weight: 300;
  /* text-transform: capitalize; */
}

.video-recipes--card img {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.button-recipe-container a {
  text-decoration: none;
}

.button-recipe-more {
  padding: 13px 26px;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .05em;
  background-color: rgba(0, 0, 0, .1);
  border-color: rgba(0, 0, 0, .1);
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, .1);
  color: rgba(28, 28, 28, .79);
}

/* FOOTER */
.footer-container {
  padding: 30px 6%;
  box-sizing: border-box;
  background-color: #f8f6f7;
  min-height: 228px;
}

#footer-nav {
  padding: 20px 0;

}

.footer--company-details {
  padding: 20px 0 10px 0;
}



.footer--company-details-text a {
  padding-bottom: .05em;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: rgba(0, 0, 0, .3);
  text-decoration: none;
  color: #000;
  font-size: 16px;
}

.footer--company-details-text p {
  opacity: .7;
}

.footer--company-details-text a:hover {
  border-bottom-color: rgba(0, 0, 0, .8);
  opacity: .7;
}

/* DOUGH FOR BAKING STYLES */

.dough-page-container {
  padding: 0 6%;
}

.dough-hero-title {
  padding-top: 100px;
}

.dough-hero-title h1 {
  font-family: Cormorant Infant;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(24px, 3vw, 48px);
  letter-spacing: 0em;
  line-height: 1.2em;
  text-transform: none;
  max-width: 40ch;
}

.dough-hero-title p {
  max-width: 105ch;
}

/* Product image hover effect */
.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 25%;
  /* Creates 2:1 aspect ratio */
  margin-top: -100px;
  overflow: hidden;
}

.product-image {
  transition: opacity 0.8s ease;
}

.product-image.primary {
  opacity: 1;
}

.product-image.secondary {
  position: absolute;
  top: 25%;
  left: 0;
  opacity: 0;
}

.product-image-container:hover .product-image.primary {
  opacity: 0;
}

.product-image-container:hover .product-image.secondary {
  opacity: 1;
}

/* OUR RECIPES PAGE */
.our-recipes--page {
  margin-top: clamp(20px, 10vw - 23px, 80px);
  padding: 20px 6%;
}

.recipes--list-filter {
  columns: 3;
  column-gap: 30px;
  line-height: normal;

}

.video-recipes--card-page {
  height: 440px;
  /* Adjust based on your tallest card */
  position: relative;
  overflow: hidden;
}

.video-recipes--card-page .isotope-filters {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  margin: 0;
}

.video-recipes--card-page img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.regular-recipe-title--page {
  font-size: clamp(16px, 6vw - 16px, 20px);
  line-height: 1.2em;
  letter-spacing: .03em;
  font-weight: 300;
  text-align: center;
}

/* Isotope Layout */
.isotope-filters li {
  cursor: pointer;
  padding: 0 10px;
}

.isotope-filters li.filter-active {
  background: hsl(0, 0%, 56%);
  color: white !important;
}

.isotope-filters li:hover {
  background: hsl(0, 0%, 90%);
  color: black;
}

/* RECIPE DETAILS PAGES */
.recipe-detail--container {
  /* padding: 0 6%; */
  margin-top: clamp(40px, 3vw, 80px);
  margin-bottom: clamp(40px, 3vw, 80px);
}

.recipe-detail--title h1 {
  font-family: Gabriela;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: 0em;
  line-height: 1.12em;
  text-transform: none;
  color: #262524;
}

.video-container {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.recipe-content h2 {
  font-family: Cormorant Infant;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(24px, 6vw - 14px, 36px);
  letter-spacing: 0em;
  line-height: 1.2em;
  text-transform: none;
  color: #262524;
  margin-top: 20px;
}

.recipe--ingredients-list li {
  list-style: disc;
  font-size: inherit;
  font-family: inherit;
  font-style: italic;
  line-height: inherit;
  padding-left: 1.2em;
  padding-bottom: 10px;
}

.recipe--ingredients-list li::marker {
  font-size: 0.7em;
}

.recipe--preparation-list li {
  list-style: decimal;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  padding-left: 1.2em;
  padding-bottom: 10px;
}

.recipe--avatars {
  padding: 20px 6%;
}

.recipe--avatars h5 {
  font-family: Cormorant Infant;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(20px, 6vw - 14px, 28px);
  letter-spacing: 0em;
  line-height: 1.2em;
  text-transform: none;
  color: #262524;
}

/* INDEX NAVIGATOR ON HOME PAGE */
.Index-nav {
  margin-right: 3rem;
}

.Index-nav--mobile {
  width: 100%;
  height: 74px;
}

.Index-nav-indicator {
  box-sizing: border-box;
  border-radius: 50%;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(0, 0, 0, .5);
  width: 12px;
  height: 12px;
  -webkit-transition: border-color 170ms ease-out, transform 170ms ease-out, margin 170ms ease-out;
  -moz-transition: border-color 170ms ease-out, transform 170ms ease-out, margin 170ms ease-out;
  -ms-transition: border-color 170ms ease-out, transform 170ms ease-out, margin 170ms ease-out;
  -o-transition: border-color 170ms ease-out, transform 170ms ease-out, margin 170ms ease-out;
  transition: border-color 170ms ease-out, transform 170ms ease-out, margin 170ms ease-out;
}

.Index-nav-text span {
  display: inline-block;
  vertical-align: middle;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* line-height: 100%; */
}

.Index-nav-text {
  white-space: nowrap;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: #111;
  padding-right: 0.8rem;
  opacity: 0;
  -webkit-transition: opacity 170ms ease-out, transform 170ms ease-out, right 0s 170ms;
  -moz-transition: opacity 170ms ease-out, transform 170ms ease-out, right 0s 170ms;
  -ms-transition: opacity 170ms ease-out, transform 170ms ease-out, right 0s 170ms;
  -o-transition: opacity 170ms ease-out, transform 170ms ease-out, right 0s 170ms;
  transition: opacity 170ms ease-out, transform 170ms ease-out, right 0s 170ms;
}

/* .Index-nav-text:hover,
.Index-nav-text:focus {
  opacity: 1;
} */

.Index-nav-item:hover .Index-nav-text,
.Index-nav-item:focus .Index-nav-text {
  opacity: 1;
}

.Index-nav-item.active .Index-nav-indicator,
.Index-nav-item--mobile.active .Index-nav-indicator {
  position: relative;
  /* Remove transform: scale(1.4) */
  width: 17px;
  height: 17px;
  border-width: 1.8px;
  /* margin: -2px; */
  /* Compensate for the size increase to keep it centered */
  box-sizing: border-box;
  border-radius: 50%;
  border-color: #111;
}

.Index-nav-item.active .Index-nav-indicator::before,
.Index-nav-item--mobile.active .Index-nav-indicator::before {
  content: '';
  position: absolute;
  /* Change from display: block */
  width: 3px;
  height: 3px;
  left: 50%;
  /* Center horizontally */
  top: 50%;
  /* Center vertically */
  transform: translate(-50%, -50%);
  /* Perfect centering */
  border-radius: 300px;
  background-color: #111;
}



/* Target touch devices only */
@media (hover: none) and (pointer: coarse) {
  .isotope-filters li:hover {
    background: hsl(0, 0%, 56%);
    color: white;
  }
}

@media (max-width: 1800px) {
  .video-recipes--card-page {
    height: 390px;
  }
}

@media (max-width: 1400px) {
  .video-recipes--card-page {
    height: 335px;
  }
}

@media (max-width: 1200px) {
  .parallax-video {
    min-height: 150%;
  }

  .product-image-container {
    margin-top: -55px;
  }

  .video-recipes--card-page {
    height: 385px;
  }
}

@media (max-width: 768px) {
  .artwork-image {
    min-height: 250%;
    bottom: 0;
    /* Much more conservative */
    object-position: center center;
    /* Keep centered */
  }

  .Header-branding {
    width: 66px;
    padding: 8px;
  }

  .categories-1st-row {
    height: auto;
  }

  .categories-1st-row > article {
    height: 35vh;
  }

  .categories-1st-row > div {
    height: 70vh;
  }

  .hero-section {
    margin-bottom: 80px;
    margin-top: 60px;
  }

  .hero-subtitle {
    padding: 20px 24px;
  }

  .recipe-hero-card-content {
    margin-bottom: 30px;
  }

  .dough-hero-title {
    padding-top: 60px;
  }

  .recipes--list-filter {
    columns: 2;
    column-gap: 20px;
  }

  .video-recipes--card-page {
    height: 360px;
  }
}



@media (max-width: 575px) {
  .video-recipes--card img {
    aspect-ratio: auto;
    object-fit: cover;
  }

  .recipe-divider {
    padding-top: 0;
  }

  .recipe-text {
    padding-bottom: 0;
  }

  .hero-section {
    margin-bottom: 55px;
    margin-top: 50px;
  }

  .dough-hero-title {
    padding-top: 30px;
  }

  .dough--row {
    margin-top: -5px;
  }

  .product-image-container {
    margin-top: -25px;
  }

  .video-recipes--card-page {
    height: 380px;
  }
}