* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #ffffff;
  color: #000000;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-header {
  background-color: #ebebeb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  height: 60px;
  border-top: 0.5px solid #999999;
  border-bottom: 0.5px solid #999999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1000;
}

.logo-area .logo {
  width: 220px;
  height: 50px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(3px 4px 1px rgba(0, 0, 0, 0.3));
}

.main-nav {
  margin-left: auto;
  height: 100%;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.main-nav li {
  height: 100%;
  border-left: 0.5px solid #999999;
}

.main-nav li:last-child {
  border-right: 0.5px solid #999999;
}

.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #333333;
  text-decoration: none;
  font-size: clamp(10px, 0.8vw, 15px);
  font-weight: 400;
  text-transform: uppercase;
  padding: 0 clamp(10px, 1.5vw, 35px);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
  background-color: #6d6d6d;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.main-nav li.dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  background-color: #ebebeb;
  border: 1px solid #999999;
  border-top: none;
  min-width: clamp(220px, 18vw, 320px);
  flex-direction: column;
  height: auto;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.main-nav li.dropdown:hover .dropdown-menu {
  display: flex;
}

.main-nav .dropdown-menu li {
  border: none;
  border-bottom: 1px solid #999999;
  height: auto;
  width: 100%;
}

.main-nav .dropdown-menu li:last-child {
  border-bottom: none;
}

.main-nav .dropdown-menu a {
  padding: clamp(10px, 1.5vh, 20px) clamp(15px, 2vw, 35px);
  justify-content: flex-start;
  height: auto;
  width: 100%;
  text-transform: none;
  white-space: nowrap;
}

.search-icon {
  font-size: 16px;
  cursor: pointer;
  color: #000000;
}

.hero-home {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px 80px 60px;
  overflow: hidden;
}

.hero-left-content {
  width: 36%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 20px;
  padding-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(14px, 0.85vw, 20px);
  line-height: 1.5;
  color: #555555;
  margin-bottom: clamp(10px, 2vh, 30px);
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
}

.hero-title-main {
  font-size: clamp(32px, 2.7vw, 65px);
  line-height: 1;
  font-weight: 200;
  text-transform: uppercase;
  color: #6d6d6d;
  letter-spacing: 0.05vw;
  margin-top: clamp(10px, 2vh, 30px);
  margin-bottom: auto;
}

.hero-title-main strong {
  font-weight: 700;
}

.mobile-br {
  display: none;
}

.mobile-text {
  display: none;
}

.hero-classic {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 40px 20px;
}

.hero-single {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  overflow: hidden;
  padding: 40px;
}

.hero-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

.single-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slider,
.content-area {
  position: relative;
  width: 60%;
  height: 80%;
  margin-left: auto;
  background-color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 0;
}

.pretaporter-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transition: opacity 1.5s ease-in-out;
}

.pretaporter-img.fade-out {
  opacity: 0;
  pointer-events: none;
}

.pretaporter-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 1s ease-in-out;
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide.active {
  opacity: 1;
}

.slide.zoom-in {
  animation: zoomInAnim 6s linear forwards;
}

.slide.zoom-out {
  animation: zoomOutAnim 6s linear forwards;
}

@keyframes zoomInAnim {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

@keyframes zoomOutAnim {
  0% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.mini-popup-overlay {
  position: fixed;
  top: calc(50% - 180px);
  left: calc(50% - 320px);
  width: 640px;
  aspect-ratio: 16/9;
  background-color: #000000;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  cursor: grab;
}

.mini-popup-overlay:active {
  cursor: grabbing;
}

#mini-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-close-mini {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.btn-close-mini:hover {
  background-color: #ff0000;
}

.bottom-bar {
  position: absolute;
  bottom: clamp(10%, 15vh, 20%);
  left: clamp(30px, 3.125vw, 80px);
  background-color: transparent;
  padding: 0;
  width: auto;
  z-index: 10;
  display: flex;
  gap: clamp(10px, 1vw, 25px);
}

.bottom-bar-right {
  position: absolute;
  bottom: clamp(8%, 10vh, 15%);
  right: clamp(30px, 3.125vw, 80px);
  background-color: transparent;
  padding: 0;
  width: auto;
  z-index: 10;
}

.link-video {
  background: transparent;
  color: #000000;
  border: none;
  padding: clamp(8px, 1vh, 16px) 0;
  font-size: clamp(11px, 0.75vw, 16px);
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.link-video:hover {
  color: #6d6d6d;
}

.btn-skip {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  padding: clamp(8px, 1vh, 16px) clamp(16px, 1.5vw, 36px);
  font-size: clamp(11px, 0.75vw, 16px);
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-skip:hover {
  background-color: #000000;
  color: #ffffff;
}

.video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease-in-out;
  pointer-events: auto;
}

.video-popup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-popup-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

#intro-video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

#intro-video.ready {
  opacity: 1;
}

.btn-skip-popup {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
  z-index: 10;
}

.btn-skip-popup:hover {
  background-color: #ffffff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.cucine-hub {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 40px;
}

.section-heading {
  font-size: clamp(16px, 1.5vw, 26px);
  color: #a0a0a0;
  font-weight: 400;
  letter-spacing: 0.05vw;
  margin-bottom: clamp(10px, 2vh, 30px);
  text-transform: uppercase;
}

.pretaporter-banner {
  display: block;
  width: 100%;
  margin-bottom: clamp(30px, 5vh, 80px);
  transition: opacity 0.3s ease;
}

.pretaporter-banner:hover {
  opacity: 0.9;
}

.pretaporter-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.classici-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.5vw, 30px);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: scale(1.02);
}

.category-image-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #111;
}

.category-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-title {
  margin-top: clamp(10px, 1.5vh, 25px);
  font-size: clamp(14px, 1.2vw, 22px);
  letter-spacing: 0.1vw;
  text-transform: uppercase;
  color: #a0a0a0;
  font-weight: 400;
  transition: color 0.3s ease;
}

.cucine-hub .category-title {
  font-size: clamp(12px, 1vw, 18px);
  letter-spacing: 0.05vw;
  color: #777777;
}

.category-card:hover .category-title {
  color: #ffffff;
}

@media (max-width: 1024px) {
  html, body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    background-color: #ffffff !important;
  }
  
  main {
    overflow: visible !important;
  }
  
  .site-footer {
    position: relative !important;
    bottom: auto !important;
    padding: clamp(10px, 1.5vh, 15px) clamp(20px, 3vw, 30px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .classici-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  .hero-home {
    flex-direction: column;
    padding: 10px 15px 30px 15px;
    justify-content: flex-start;
    overflow: visible;
  }
  
  .hero-left-content {
    width: 100%;
    height: auto;
    padding-right: 0;
    padding-bottom: 20px;
    text-align: center;
  }
  
  .slider,
  .content-area {
    width: 100% !important; 
    height: 45vh !important;
    margin: 0 auto !important;
    min-height: 300px !important;
    background-color: #ffffff !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .slide {
    background-size: cover !important;
  }
  
  .slide video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
  }

  .bottom-bar {
    position: relative;
    bottom: auto;
    left: auto;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .bottom-bar .btn-skip {
    width: 100%;
    box-sizing: border-box;
  }

  .bottom-bar-right {
    position: relative;
    bottom: auto;
    right: auto;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    display: flex;
  }

  .bottom-bar-right .link-video {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .main-header {
    background-color: #ffffff;
    padding: 10px 15px 5px 15px;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    position: relative;
  }
  
  .logo-area {
    margin: 0 0 5px 0;
  }

  .logo-area .logo {
    margin: 0;
    width: 120px;
    height: 30px;
  }
  
  .main-nav {
    margin: 0;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    border-top: none;
  }
  
  .main-nav ul {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
  }

                                               
  .main-nav > ul > li:nth-child(1) { 
    display: none; 
  }
  
                                               
  .main-nav > ul > li:nth-child(2),
  .main-nav > ul > li:nth-child(3),
  .main-nav > ul > li:nth-child(4) {
    flex: 1;
    border: 1px solid #333333;
    background-color: #ffffff;
    order: 2;
    position: relative;
    z-index: 1010;
  }

                                                  
  .main-nav > ul > li:nth-child(3),
  .main-nav > ul > li:nth-child(4) {
    border-left: none;
  }

                                                                      
  .main-nav > ul > li:nth-child(5) {
    position: absolute;
    top: 20px;
    right: 95px;
    border: none;
    z-index: 1000;
  }

  .main-nav > ul > li:nth-child(6) {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    z-index: 1000;
  }

                                                                       
  .main-nav > ul > li:nth-child(2) > a,
  .main-nav > ul > li:nth-child(3) > a,
  .main-nav > ul > li:nth-child(4) > a {
    padding: 6px 2px;
    font-size: 8px;
    text-align: center;
    color: #333333;
    background: transparent;
    white-space: nowrap;
  }

                                                                
  .main-nav > ul > li.dropdown .dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

                                             
  .main-nav > ul > li:nth-child(5) a,
  .main-nav > ul > li:nth-child(6) a {
    padding: 0;
    font-size: 10px;
    text-align: right;
    color: #333333;
    background-color: transparent !important;
    font-weight: 600;
    display: inline-block;
  }

  .hero-title-main {
    font-size: 28px;
  }

  .hero-title-main.spazio-ridotto {
    margin-top: 5px;
  }

  .desktop-br {
    display: none;
  }

  .mobile-br {
    display: inline;
  }

  .desktop-text {
    display: none !important;
  }

  .mobile-text {
    display: inline !important;
  }
  
  .hero-subtitle {
    font-size: 8px;
  }

  .hero-subtitle.spazio-ridotto {
    margin-bottom: 5px;
  }

  .mini-popup-overlay {
    width: 90%;
    height: auto;
    left: 5%;
    top: 25%;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 600px) {
  .classici-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-main {
    font-size: 22px;
  }

  p.hero-subtitle {
    line-height: 1.2;
  }

  .slider,
  .content-area {
    height: 35vh;
    min-height: 250px;
  }
  
  .site-footer {
    padding: 8px 10px;
  }

  .footer-content {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .footer-content p,
  .footer-content a {
    font-size: 7px;
    line-height: 1.2;
  }

  .footer-content br {
    display: none;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 40px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  align-content: start;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.gallery-grid::-webkit-scrollbar {
  width: 8px;
}
.gallery-grid::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.gallery-grid::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}
.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: #dddddd;
  border-top: 1px solid #999999;
  padding: 10px 60px;
  color: #333333;
  width: 100%;
  z-index: 100;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(9px, 0.7vw, 12px);
}