@charset "UTF-8";
/* THEME VARIABLES AND FONTS */
/* ===== FONT DEFINITIONS ===== */
/* Cormorant */
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/Cormorant/Cormorant-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}
/* Montserrat */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-ThinItalic.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-ExtraLightItalic.ttf") format("truetype");
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat/Montserrat-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
}
/* ===== CSS VARIABLES ===== */
:root {
  color-scheme: light;
  --device-theme-color: #FBF6F2;
  --sand: #F0DBC7;
  --accent: #8E2F22;
  --bg-light: var(--device-theme-color);
  --ink-light: #301D09;
  --ink-dark: #FBF6F2;
  --text-color: #301D09;
  --bg-dark: #301D09;
  --bg-tab: #8e2f2260;
  --border-radius-base: 5px;
  /* Frame mobile variables */
  --frame-mobile-padding: 0.3rem;
  --frame-mobile-font-size: 0.85rem;
  --frame-mobile-line-height: 1.4;
  --frame-mobile-border-radius: var(--border-radius-base);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light; /* Force browsers to keep light UI chrome */
  }
}
/* Museum theme variables */
.frame {
  --bg: #1a1a1a;
  --sand: #F0DBC7;
  --accent: #8E2F22;
}

/* Ultra-compact frame variables for very small screens */
@media (max-width: 400px) {
  :root {
    --frame-mobile-padding: 0.2rem;
    --frame-mobile-font-size: 0.8rem;
    --frame-mobile-line-height: 1.3;
    --frame-mobile-border-radius: var(--border-radius-base);
  }
}
/* ===== BASE STYLES ===== */
/* Stili base per HTML, body e elementi fondamentali */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-light);
  color: var(--ink-light);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.9rem; /* Reduced from 18px for smaller desktop text */
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-width: 100vw;
  overflow-x: hidden;
}

/* Mantieni lo sfondo uniforme anche con il video homepage */
body.homepage,
html:has(body.homepage) {
  background: var(--bg-light) !important;
  background-color: var(--bg-light) !important;
}

/* Safari iOS specific fixes for mobile menu and transparent toolbar */
@supports (-webkit-backdrop-filter: blur(1px)) {
  .mobile-menu-overlay.active,
  .mobile-menu.active {
    /* Force Safari to render a solid background behind the menu */
    background-color: #FBF6F2 !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    /* Ensure menu covers the entire viewport including Safari UI */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
  }
  /* Additional fix for Safari iOS transparent toolbar */
  body:has(.mobile-menu-overlay.active) {
    /* This helps Safari understand the page content should be covered */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  /* Safari-specific class for additional styling when menu is open */
  body.safari-menu-open {
    /* Force hardware acceleration and proper layering */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Prevent any content from showing through */
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
}
/* Assicura che le pagine informative abbiano sempre lo sfondo predefinito */
.info-page-body,
body.info-page-body,
html:has(body.info-page-body) {
  background: var(--bg-light) !important;
  background-color: var(--bg-light) !important;
}

body.info-page-body .unified-styled-container,
html:has(body.info-page-body) .unified-styled-container {
  background: var(--container-bg) !important;
  background-color: var(--container-bg) !important;
}

/* Sovrascrive specificamente la trasparenza per le pagine informative */
body.info-page-body {
  background: var(--bg-light) !important;
  background-color: var(--bg-light) !important;
  background-image: none !important;
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background: var(--bg-light);
    background-color: var(--bg-light);
    color: var(--ink-light);
  }
}
/* Disabilita video e elementi multimediali autoplay sulle pagine informative */
body.info-page-body video,
body.info-page-body audio {
  /* Autoplay cannot be controlled via CSS. Use HTML/JS instead */
  -webkit-autoplay: false !important;
  /* Note: muted property is not valid CSS. Use HTML/JS to control muted state */
}

.info-page-body {
  padding-bottom: 200px; /* Spazio extra per la barra inferiore */
}

img, video, canvas {
  width: 100%;
  display: block;
}

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

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

/* Hide scrollbars in all iframe contexts while maintaining scroll functionality */
iframe {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  overflow: auto; /* Allow scrolling */
}

iframe::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Hide scrollbars for all content inside iframes */
iframe * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

iframe *::-webkit-scrollbar {
  display: none !important;
}

/* Global CSS to hide scrollbars while maintaining scroll functionality */
* {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
}

*::-webkit-scrollbar {
  display: none !important; /* Chrome/Safari */
}

/* ===== UNIFIED PAGE SYSTEM ===== */
/* Sistema unificato per tutte le pagine - Design minimalista e moderno */
/* Layout base per tutte le pagine */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  position: relative;
  overflow-x: hidden;
}

.page-wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(160, 54, 42, 0.02) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(240, 219, 199, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Container principale per il contenuto */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 2rem 0rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Container per pagine statiche - Design minimalista per iframe */
.static-page-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  min-height: calc(100vh - 120px);
}

/* ===== SCROLLBAR HIDING ===== */
/* Hide scrollbars in all iframe contexts while maintaining scroll functionality */
iframe {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  overflow: auto; /* Allow scrolling */
}

iframe::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Hide scrollbars for all content inside iframes */
iframe * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

iframe *::-webkit-scrollbar {
  display: none !important;
}

/* Global CSS to hide scrollbars while maintaining scroll functionality */
* {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
}

*::-webkit-scrollbar {
  display: none !important; /* Chrome/Safari */
}

/* ===== UNIFIED PAGE SYSTEM ===== */
/* Sistema unificato per tutte le pagine - Design minimalista e moderno */
/* Layout base per tutte le pagine */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  position: relative;
  overflow-x: hidden;
}

.page-wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(160, 54, 42, 0.02) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(240, 219, 199, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Container principale per il contenuto */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 2rem 0rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Container per pagine statiche - Design minimalista per iframe */
.static-page-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  min-height: calc(100vh - 120px);
}

/* ===== MUSEUM WALL STYLES ===== */
/* Parete museo + frame + attore + transizioni */
.wall {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg, #f5f5dc);
  background-image: url("../img/wall-desktop.webp");
  background-size: auto 100vh;
  background-position: center center;
  background-repeat: repeat;
  z-index: 0;
}

.frame-wrap {
  position: absolute;
  left: 49.6%;
  top: 45.2%;
  transform: translate(-50%, -48%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Riflesso sulla parete dietro il quadro */
.frame-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(120, 180, 255, 0.08) 0%, rgba(150, 200, 255, 0.04) 30%, rgba(180, 220, 255, 0.02) 50%, transparent 70%);
  z-index: -1;
  animation: wall-reflection 4s infinite ease-in-out;
  pointer-events: none;
}

/* ===== FRAME STYLES ===== */
/* Quadro centrale grande, proporzioni sceniche */
.frame {
  position: relative;
  height: 57vh;
  width: 111.15vh;
  max-width: 98vw;
  min-width: 220px;
  min-height: 120px;
  max-height: 90vh;
  aspect-ratio: unset;
  background: var(--sand);
  border-radius: 0;
  border: 10px solid #333;
  box-shadow: 0 8px 48px 0 rgba(48, 29, 9, 0.18), 0 0 0 4px #444 inset, 0 2px 8px 0 #222 inset, inset 0 0 15px rgba(255, 255, 255, 0.1), inset 0 0 30px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s, filter 0.8s ease-in-out;
}

.frame {
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.frame-media {
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  margin: -7px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  filter: brightness(1);
  transition: opacity 0.4s cubic-bezier(0.7, 0, 0.3, 1), filter 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.frame-media {
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay nero con loader che copre tutto il frame */
.frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
  .wall {
    background-image: url("../img/wall-mobile.webp"), linear-gradient(135deg, #f5f5dc 0%, #e6dcc6 100%);
  }
  .frame-wrap {
    width: 100vw;
    left: 50.3%;
    top: 37%;
    transform: translate(-50%, -50%);
  }
  .frame {
    height: 41.5vh;
    width: 27.06vh;
    max-width: 27.06vh;
    min-width: 150px;
    min-height: 200px;
    max-height: 50vh;
    aspect-ratio: 2/3;
    margin: 0 auto;
    border-radius: 0;
    border: 7px solid #333;
    box-shadow: 0 4px 24px 0 rgba(48, 29, 9, 0.18), 0 0 0 2px #444 inset, 0 1px 4px 0 #222 inset, inset 0 0 10px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
  }
}
/* ===== GENERIC ICON STYLES ===== */
/* Generic styles for boxicons */
.bx {
  display: inline-block;
  font-size: 1.2rem;
  vertical-align: middle;
  line-height: 1;
  transform: translateY(0.05em);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .bx {
    font-size: 1rem;
  }
}
p {
  text-align: justify;
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .page-title {
    font-size: 1rem; /* Reduced from 1.2rem */
  }
  .page-subtitle {
    font-size: 0.85rem; /* Reduced from 1rem */
  }
}
/* ===== UNIFIED LAYOUT SYSTEM ===== */
/* Sistema unificato per gestire container, margini e dimensioni di tutte le pagine */
/* Esclude solo la pagina checkout che ha il suo layout specifico a due colonne */
/* ===== CSS VARIABLES ===== */
:root {
  /* Container dimensions */
  --container-max-width: 1200px;
  --container-padding-desktop: 3rem;
  --container-padding-tablet: 3rem;
  --container-padding-mobile: 0.5rem;
  /* Content spacing */
  --content-gap-desktop: 2rem;
  --content-gap-tablet: 1.5rem;
  --content-gap-mobile: 1rem;
  /* Section spacing */
  --section-margin-desktop: 3rem;
  --section-margin-tablet: 2rem;
  --section-margin-mobile: 1.5rem;
  /* Container colors and styling */
  --container-bg: #fdf7f0;
  --container-bg-alt: #f8efe6;
  --container-border: rgba(0, 0, 0, 0.15);
  --container-shadow: 0 4px 20px rgba(48, 29, 9, 0.08);
  --container-shadow-hover: 0 8px 30px rgba(48, 29, 9, 0.12);
  --container-border-radius: var(--border-radius-base);
  /* Special page containers */
  --special-container-max-width: 900px;
  --special-container-bg: var(--container-bg);
  --special-container-padding: 2.5rem;
  /* Breakpoints */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-large: 1200px;
}

/* ===== UNIFIED CONTAINER SYSTEM ===== */
/* Container principale per tutte le pagine (eccetto checkout) */
.unified-container {
  max-width: var(--container-max-width);
  margin: 10rem auto;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .unified-container {
    margin: 1rem auto;
  }
}
/* Container per contenuto principale */
.unified-content, .main-content {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap-desktop);
  min-height: auto; /* Rimosso min-height fisso per permettere al footer di essere visibile */
  padding: var(--section-margin-desktop) 0;
}

/* Container per pagine statiche/informative */
.unified-static-page, .static-page-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.6;
  min-height: fit-content;
  /* Disabilita animazioni di scroll per il container stesso */
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Standardized h1 margins for all pages */
.unified-static-page h1, .static-page-content h1 {
  margin: 3rem 1rem;
  text-align: center;
  color: var(--ink-light);
}

/* Container per sezioni generiche */
.unified-section {
  margin-bottom: var(--section-margin-desktop);
  padding: 0;
}

.unified-section:last-child {
  margin-bottom: 0;
}

/* Container per card/elementi in griglia */
.unified-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}
.unified-grid > div {
  padding: 2rem;
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
}

/* Container per elementi in lista verticale */
.unified-list {
  display: flex;
  flex-direction: column;
  list-style: inside;
  padding: 0;
  margin: 0;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .unified-content, .main-content {
    gap: var(--content-gap-tablet);
    padding: var(--section-margin-tablet) 0;
  }
  .unified-static-page, .static-page-content {
    padding: var(--section-margin-tablet) var(--container-padding-tablet);
  }
  .unified-section {
    margin-bottom: var(--section-margin-tablet);
  }
  .unified-grid {
    gap: var(--content-gap-tablet);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
/* Mobile (fino a 767px) */
@media (max-width: 767px) {
  .unified-container {
    padding-top: 3rem;
  }
  .unified-content, .main-content {
    gap: var(--content-gap-mobile);
    padding: var(--section-margin-mobile) 0;
  }
  .unified-static-page, .static-page-content {
    padding: var(--section-margin-mobile) var(--container-padding-mobile);
  }
  /* Mobile h1 adjustments */
  .unified-static-page h1, .static-page-content h1 {
    margin-bottom: 1.5rem;
    /* Usa tipografia globale */
  }
  .unified-section {
    margin-bottom: var(--section-margin-mobile);
  }
  .unified-grid {
    gap: var(--content-gap-mobile);
    grid-template-columns: 1fr; /* Una colonna su mobile */
  }
}
/* Mobile piccolo (fino a 480px) */
@media (max-width: 480px) {
  .unified-static-page, .static-page-content {
    padding: calc(var(--section-margin-mobile) * 0) calc(var(--container-padding-mobile) * 0);
  }
}
/* ===== UNIFIED FORM ELEMENTS ===== */
/* Unified form containers */
.form-group {
  margin-bottom: 0.5rem;
  position: relative;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

/* Unified form labels */
.unified-label,
.form-label,
.themed-form-label,
label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

/* Hint text inside form groups */
.form-group small {
  display: block;
  font-size: 0.8rem;
  font-style: italic;
  color: #666;
  margin-top: 1.2rem;
}

/* Unified form inputs */
.unified-input,
.form-input,
.themed-form-input,
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=url],
input[type=number],
textarea,
select {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: transparent !important;
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
  color: rgba(45, 24, 16, 0.9);
  font-family: inherit;
  font-size: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: border-box;
}

.unified-input:focus,
.form-input:focus,
.themed-form-input:focus,
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=tel]:focus,
input[type=url]:focus,
input[type=number]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--bg-dark);
}

.unified-input::placeholder,
.form-input::placeholder,
.themed-form-input::placeholder,
input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=password]::placeholder,
input[type=tel]::placeholder,
input[type=url]::placeholder,
input[type=number]::placeholder,
textarea::placeholder {
  color: rgba(45, 24, 16, 0.5);
  font-style: italic;
}

.unified-input.error,
.form-input.error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
/* Textarea specific styles */
.unified-input[type=textarea],
textarea.unified-input,
textarea.form-input,
textarea.themed-form-input,
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* Select specific styles */
select.unified-input,
select.form-input,
select.themed-form-input,
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23301D09' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Form containers and layouts */
.auth-form,
.themed-login-form,
.login-form,
.contact-form,
.profile-form,
.track-order-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

form#activateForm {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1rem;
}

form#resetForm {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1rem;
}

p.reset-password-intro.scroll-animate.scroll-animate-text.scroll-animate-delay-1.animate-in {
  text-align: center;
}

.contact-form {
  max-width: 600px;
}

/* Theme colors for dropdowns */
select,
select.unified-input,
select.form-input {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-base);
}

/* Dropdown list items */
select option,
select optgroup {
  background-color: var(--bg-light);
  color: var(--ink-light);
}

/* Highlight selected/hovered items */
select option:checked,
select option:hover {
  background-color: rgba(142, 47, 34, 0.15);
  color: var(--ink-light);
}

/* Disabled input styles */
.unified-input:disabled,
.form-input:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  color: #6c757d !important;
  border-color: #e9ecef !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  box-shadow: none !important;
  transform: none !important;
}

.unified-input:disabled::placeholder,
.form-input:disabled::placeholder,
input:disabled::placeholder,
textarea:disabled::placeholder {
  color: #adb5bd !important;
}

/* Form view-only mode styles */
.form-view-only .unified-input,
.form-view-only .form-input,
.form-view-only input:not([type=checkbox]),
.form-view-only textarea,
.form-view-only select {
  color: #6c757d !important;
  border-color: #e9ecef !important;
  cursor: default !important;
  opacity: 0.7;
}

.form-view-only .unified-input:hover,
.form-view-only .form-input:hover,
.form-view-only input:not([type=checkbox]):hover,
.form-view-only textarea:hover,
.form-view-only select:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Form group styles */
.form-group {
  margin-bottom: 1rem;
  flex: 1;
}

.form-row {
  display: flex;
  gap: 1rem;
}

/* Generic button styles for forms */
.form-button,
.submit-button {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%);
  color: var(--ink-dark);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--container-border-radius);
  /* Usa tipografia globale */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(160, 54, 42, 0.3);
  width: 100%;
  margin: 1.5rem 0 1rem 0;
}

.form-button::before,
.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.form-button:hover::before,
.submit-button:hover::before {
  left: 100%;
}

.form-button:hover,
.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(160, 54, 42, 0.4);
}

.form-button:active,
.submit-button:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(160, 54, 42, 0.3);
}

/* Checkbox styling with brand colors */
.checkbox-group {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.checkbox-group input[type=checkbox] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 20px;
  height: 20px;
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
  background: transparent !important;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 0;
}

.checkbox-group input[type=checkbox]:hover {
  border-color: rgba(160, 54, 42, 0.5);
}

.checkbox-group input[type=checkbox]:checked {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%) !important;
  border-color: #A0362A;
}

.checkbox-group input[type=checkbox]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  /* Usa tipografia globale */
  font-weight: bold;
  line-height: 1;
}

.checkbox-group label {
  color: var(--ink-light);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}

.checkbox-group:hover label {
  color: #A0362A;
}

.checkbox-group .checkbox-text {
  font-weight: 500;
  line-height: 1.4;
}

.checkbox-group .checkbox-description {
  /* Usa tipografia globale */
  color: rgba(48, 29, 9, 0.7);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}

.privacy-consent label {
  gap: 6px;
}

.privacy-consent .checkbox-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--ink-light);
}

.privacy-consent .checkbox-description {
  /* Usa tipografia globale */
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.4;
}

/* Responsive adjustments for forms */
@media (max-width: 767px) {
  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .unified-input,
  .form-input {
    padding: 0.75rem 1rem;
    /* Usa tipografia globale responsive */
  }
  .form-button,
  .submit-button {
    padding: 0.875rem 1.5rem;
    /* Usa tipografia globale responsive */
    margin: 1.25rem 0 0.75rem 0;
  }
  /* Mobile responsive checkbox sizing */
  .checkbox-group {
    gap: 8px;
    margin: 12px 0;
  }
  .checkbox-group input[type=checkbox] {
    width: 16px;
    height: 16px;
    border-width: 1px;
  }
}
/* Extra small mobile devices */
@media (max-width: 480px) {
  .checkbox-group input[type=checkbox] {
    width: 14px;
    height: 14px;
  }
}
/* ===== UTILITY CLASSES ===== */
/* Classi per override rapidi quando necessario */
.unified-no-padding {
  padding: 0 !important;
}

.unified-no-margin {
  margin: 0 !important;
}

.unified-full-width {
  width: 100% !important;
  max-width: none !important;
}

.unified-center {
  text-align: center;
}

.unified-left {
  text-align: left;
}

.unified-right {
  text-align: right;
}

/* ===== COMPATIBILITY WITH EXISTING SYSTEM ===== */
/* Mantiene compatibilità con le classi esistenti */
.static-page-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 120px);
}

/* ===== EXCLUSIONS ===== */
/* Checkout styles moved to _checkout.scss; rimossi da _unified-layout.scss per evitare duplicati. */
/* ===== SPECIAL CASES ===== */
/* Store page - mantiene il suo sistema specifico */
body.store-page #store-root {
  max-width: none;
}

/* ===== UNIFIED CONTAINER STYLING ===== */
/* Container con stile unificato */
.unified-styled-container {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0 auto;
  /* Disabilita animazioni di scroll per il container stesso */
  opacity: 1 !important;
}

/* Container alternativo con sfondo diverso */
.unified-styled-container-alt {
  background: var(--container-bg-alt);
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
  box-shadow: var(--container-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 6rem auto;
  /* Disabilita animazioni di scroll per il container stesso */
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ===== SPECIAL PAGES CONTAINERS ===== */
/* Container per pagine speciali (register, profile, orders, activate) */
.special-page-container {
  max-width: var(--special-container-max-width);
  margin: 2rem auto;
  padding: var(--special-container-padding);
  background: var(--special-container-bg);
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
  box-shadow: var(--container-shadow);
  box-sizing: border-box;
}

/* Container compatto per pagine semplici */
.compact-page-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

/* Responsive per container speciali */
@media (max-width: 1023px) and (min-width: 768px) {
  .special-page-container {
    margin: 1.5rem;
    padding: 2rem;
  }
  .compact-page-container {
    margin: 1.5rem;
    padding: 1.5rem;
  }
}
@media (max-width: 767px) {
  .special-page-container {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: var(--container-border-radius);
  }
  .compact-page-container {
    margin: 1rem;
    padding: 1rem;
    border-radius: var(--container-border-radius);
  }
}
@media (max-width: 480px) {
  .special-page-container {
    margin: 0.5rem;
    padding: 1rem;
  }
  .compact-page-container {
    margin: 0.5rem;
    padding: 0.75rem;
  }
}
/* ===== RESET PASSWORD PAGE ===== */
body.reset-password-page .unified-styled-container {
  max-width: 520px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  box-shadow: none;
  border: 1px solid var(--container-border);
  transition: none;
}

body.reset-password-page .unified-styled-container:hover {
  box-shadow: none;
  transform: none;
}

body.reset-password-page .unified-static-page, body.reset-password-page .static-page-content {
  width: 100%;
  padding: 0;
}

body.reset-password-page .reset-password-intro {
  margin: 0 auto 1.5rem auto;
  max-width: 480px;
  color: rgba(48, 29, 9, 0.75);
  text-align: center;
}

body.reset-password-page .reset-password-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.reset-password-page .reset-password-form .btn-primary {
  align-self: center;
  min-width: 220px;
}

body.reset-password-page .reset-password-form .btn-text,
body.reset-password-page .reset-password-form .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.reset-password-page .reset-password-status {
  margin-top: 0.75rem;
  color: rgba(48, 29, 9, 0.7);
  min-height: 1.2rem;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 767px) {
  body.reset-password-page .unified-styled-container {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }
  body.reset-password-page .reset-password-form .btn-primary {
    width: 100%;
  }
}
/* ===== PAYMENT RETURN PAGE STYLES ===== */
/* Stili specifici per la pagina payment-return.html */
.payment-return-hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 4rem;
}

.payment-return-hero .payment-icon {
  font-size: 3rem;
  color: var(--accent, #A0362A);
  margin-bottom: 2rem;
}

.payment-return-hero h1 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.payment-return-hero .subtitle {
  font-size: 1.1rem;
  color: rgba(48, 29, 9, 0.7);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.payment-return-hero .payment-status {
  padding: 1.5rem;
  border-radius: var(--border-radius-base);
  border: 1px solid var(--container-border);
  max-width: 400px;
  margin: 0 auto;
}

.payment-return-hero .status-message {
  font-weight: 500;
  color: var(--ink, #301D09);
}

.payment-return-spacer {
  height: 6rem;
}

/* Limita l'icona di loader grande solo nel contesto payment-return */
.payment-return-hero i.bx.bx-loader-alt.bx-spin {
  font-size: 50px;
}

/* Responsive per payment-return */
@media (max-width: 768px) {
  .payment-return-hero {
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
  }
  .payment-return-hero .payment-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  .payment-return-hero h1 {
    font-size: 2rem;
  }
  .payment-return-hero .subtitle {
    font-size: 1rem;
  }
  .payment-return-hero .payment-status {
    padding: 1.25rem;
    max-width: 350px;
  }
  .payment-return-spacer {
    height: 4rem;
  }
}
@media (max-width: 480px) {
  .payment-return-hero {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  .payment-return-hero .payment-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .payment-return-hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  .payment-return-hero .subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .payment-return-hero .payment-status {
    padding: 1rem;
    max-width: 300px;
  }
  .payment-return-spacer {
    height: 3rem;
  }
}
/* ===== TYPOGRAPHY ===== */
/* Sistema tipografico coerente per tutte le pagine */
/* Cormorant per titoli e sottotitoli - dimensioni ottimizzate */
/* Montserrat per tutto il resto del testo */
/* ===== HEADINGS - CORMORANT ===== */
.static-page-content h1,
.main-content h1,
.page-content h1,
h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink-light);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 2rem 0;
  letter-spacing: 1px;
  position: relative;
  line-height: 1.2;
}

.static-page-content h2,
.main-content h2,
.page-content h2,
h2 {
  font-family: "Montserrat", sans-erif;
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-light);
  margin: 2rem 0 1.2rem 0;
  line-height: 1.3;
}

.static-page-content h3,
.main-content h3,
.page-content h3,
h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-light);
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.static-page-content h4,
.main-content h4,
.page-content h4,
h4 {
  font-family: "Montserrat", sans-erif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-light);
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
}

.static-page-content h5,
.main-content h5,
.page-content h5,
h5 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-light);
  margin: 1.5rem 0 0.8rem 0;
  line-height: 1.3;
}

.static-page-content h6,
.main-content h6,
.page-content h6,
h6 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-light);
  margin: 1.2rem 0 0.8rem 0;
  line-height: 1.3;
}

/* ===== BODY TEXT - MONTSERRAT ===== */
/* Testo generico, incluse liste - Montserrat */
.static-page-content p,
.main-content p,
.page-content p,
p,
.static-page-content ul,
.main-content ul,
.page-content ul,
ul,
.static-page-content ol,
.main-content ol,
.page-content ol,
ol,
.static-page-content li,
.main-content li,
.page-content li,
li {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* Testo piccolo e didascalie */
.small-text,
.caption,
.footnote {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #666;
  font-weight: 400;
}

/* ===== STILI GLOBALI MONTSERRAT ===== */
/* Tutti i pulsanti, link, form e elementi interattivi */
/* Pulsanti generici */
button,
.btn,
.button,
input[type=button],
input[type=submit],
input[type=reset] {
  font-family: "Montserrat", sans-serif !important;
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

/* Link e navigazione */
a,
.link,
.nav-link,
.menu-link {
  font-family: "Montserrat", sans-serif !important;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-light);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
a::after,
.link::after,
.nav-link::after,
.menu-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  pointer-events: none;
}
a:hover::after, a:focus-visible::after,
.link:hover::after,
.link:focus-visible::after,
.nav-link:hover::after,
.nav-link:focus-visible::after,
.menu-link:hover::after,
.menu-link:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}
a.is-active::after, a[aria-current=page]::after,
.link.is-active::after,
.link[aria-current=page]::after,
.nav-link.is-active::after,
.nav-link[aria-current=page]::after,
.menu-link.is-active::after,
.menu-link[aria-current=page]::after {
  transform: translateX(-50%) scaleX(1);
}

/* Evita la sottolineatura sui link usati come pulsanti */
a.btn:hover,
a.btn:focus,
a[class*=btn-]:hover,
a[class*=btn-]:focus {
  text-decoration: none;
}

a.btn::after,
a[class*=btn-]::after {
  display: none;
}

/* Rimuove la sottolineatura dalle icone boxicons nei link */
a:hover .bx,
a:hover i.bx {
  text-decoration: none !important;
}

/* Form elements */
input,
textarea,
select,
label,
.form-control,
.form-input {
  font-family: "Montserrat", sans-serif !important;
  font-size: 0.9rem;
}

/* Prezzi e valori numerici */
.amount,
.value,
.number,
.quantity,
.count {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600;
}

/* Testo di interfaccia */
.ui-text,
.interface-text,
.menu-text,
.nav-text,
.footer-text {
  font-family: "Montserrat", sans-serif !important;
  font-size: 0.85rem;
}

.static-page-content em,
.main-content em,
.page-content em {
  color: #666;
  font-style: italic;
  font-size: 0.8rem;
}

.static-page-content strong,
.main-content strong,
.page-content strong {
  font-weight: 600;
  color: #A0362A;
}

/* ===== OTTIMIZZAZIONI RESPONSIVE TIPOGRAFIA ===== */
/* Scala desktop (>= 769px) */
@media (min-width: 769px) {
  h1, .h1 {
    font-size: 3.5rem;
  }
  h2, .h2 {
    font-size: 1.5rem;
  }
  h3, .h3 {
    font-size: 1.3rem;
  }
  h4, .h4 {
    font-size: 1.1rem;
  }
  h5, .h5 {
    font-size: 1rem;
  }
  h6, .h6 {
    font-size: 0.95rem;
  }
  p, .p,
  ul, ol,
  li {
    font-size: 1rem;
    line-height: 1.7;
  }
  button,
  .btn,
  .button,
  input[type=button],
  input[type=submit],
  input[type=reset] {
    font-size: 0.9rem;
  }
  input,
  textarea,
  select,
  label,
  .form-control,
  .form-input {
    font-size: 0.9rem;
  }
  .ui-text,
  .interface-text,
  .menu-text,
  .nav-text,
  .footer-text {
    font-size: 0.9rem;
  }
}
/* Tipografia mobile: smoothing leggero */
.static-page-content {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== BUTTONS ===== */
/* Gestisce tutti gli stili desktop e mobile per pulsanti in tutte le sezioni, pagine e popup */
/* ===== BASE BUTTON STYLES ===== */
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

button,
.btn,
.button,
input[type=button],
input[type=submit],
input[type=reset] {
  /* Usa tipografia globale definita in _typography.scss */
  font-weight: 500;
}

button, .btn, .button {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-compact {
  width: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 0;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ===== PRIMARY BUTTONS ===== */
.btn-primary,
.primary-btn,
.submit-btn {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%);
  color: var(--ink-dark);
  border: 1px solid var(--accent);
  padding: 0.85rem 1.5rem;
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.7;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 3.25rem;
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
  text-transform: uppercase;
}

a.btn-primary.popup {
  max-width: 85%;
}

/* ===== COMPLETE ORDER BUTTON ===== */
.complete-order-btn {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%);
  color: var(--ink-dark);
  border: none;
  padding: 1rem;
  border-radius: var(--container-border-radius);
  /* Usa tipografia globale */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: normal;
  line-height: 1.7;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.complete-order-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.complete-order-btn:hover::before {
  left: 100%;
}

.complete-order-btn:hover {
  transform: translateY(-3px);
  animation: subtlePulse 1.5s ease-in-out infinite;
}

.complete-order-btn:active {
  transform: translateY(-1px);
}

.complete-order-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.complete-order-btn:disabled::before {
  display: none;
}

.complete-order-btn.processing {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.complete-order-btn.processing::before {
  display: none;
}

/* Full width variant for forms */
.btn-primary.full-width,
form .btn-primary,
.form-container .btn-primary {
  width: 100%;
  margin: 1.5rem 0 1rem 0;
}

.btn-primary::before,
.primary-btn::before,
.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before,
.primary-btn:hover::before,
.submit-btn:hover::before {
  left: 100%;
}

/* ===== SECONDARY BUTTONS ===== */
.btn-secondary,
.secondary-btn {
  background: transparent;
  color: var(--ink-light);
  border: 1px solid var(--bg-dark);
  padding: 0.85rem 1.5rem;
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.7;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 3.25rem;
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
  text-transform: uppercase;
}

.btn-secondary:hover,
.secondary-btn:hover {
  color: var(--ink-dark);
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark);
}

/* ===== PRODUCT BUTTONS ===== */
.product-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius-base);
  font-weight: 400;
  /* Usa tipografia globale */
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.7;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
}

.product-btn.primary {
  background: var(--accent);
  color: var(--ink-dark);
}

.product-btn.secondary {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

/* ===== ADD TO CART BUTTONS ===== */
.add-to-cart-btn {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%);
  color: var(--ink-dark);
  border: none;
  padding: 1rem;
  border-radius: var(--border-radius-base);
  font-size: 1.28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:disabled {
  background: linear-gradient(135deg, #6B6B6B 0%, #5A5A5A 100%);
  color: #FFFFFF;
  opacity: 1;
  cursor: pointer;
  transform: none;
  border: 2px solid #8E2F22;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn:disabled::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.add-to-cart-btn:disabled:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #7A7A7A 0%, #6B6B6B 100%);
  box-shadow: 0 4px 12px rgba(142, 47, 34, 0.3);
}

.add-to-cart-btn:disabled:hover::before {
  left: 100%;
}

/* ===== QUANTITY BUTTONS ===== */
.quantity-btn {
  border: 1px solid #dee2e6;
  color: #495057;
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.quantity-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: scale(1.05);
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== REMOVE BUTTONS ===== */
.remove-btn {
  border: none;
  color: var(--ink-light);
  border-radius: var(--border-radius-base);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ===== CHECKOUT BUTTONS ===== */
.checkout-button {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: var(--ink-dark);
  border: none;
  padding: 14px 24px;
  border-radius: var(--border-radius-base);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

/* Hamburger button styles moved to _navigation.scss to avoid conflicts */
/* ===== BOTTOM BAR BUTTONS ===== */
.bottom-btn {
  background: var(--accent);
  color: var(--ink-dark);
  border: none;
  padding: 12px;
  border-radius: var(--border-radius-base);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  transform: scale(1);
  transform-origin: center bottom;
}

.bottom-btn:hover,
.bottom-btn:active,
.bottom-btn:focus {
  background: none !important;
  outline: none !important;
  filter: none !important;
}

.bottom-bar .bottom-btn,
.bottom-bar .bottom-btn:link,
.bottom-bar .bottom-btn:visited,
.bottom-bar .bottom-btn:hover,
.bottom-bar .bottom-btn:focus,
.bottom-bar .bottom-btn:active {
  background: none !important;
  outline: none !important;
  filter: none !important;
  text-decoration: none !important;
}

.bottom-bar .bottom-btn::after {
  display: none !important;
}

/* ===== FULLSCREEN BUTTON ===== */
.fullscreen-btn {
  background: var(--accent);
  border: none;
  color: var(--ink-dark);
  padding: 8px;
  border-radius: var(--border-radius-base);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fullscreen-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== COMPACT BUTTONS ===== */
.btn-compact {
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Keep the compact neutral look only when no primary/secondary variant is present */
.btn-compact:not(.btn-primary):not(.primary-btn):not(.submit-btn):not(.btn-secondary):not(.secondary-btn) {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
}

.btn-compact:not(.btn-primary):not(.primary-btn):not(.submit-btn):not(.btn-secondary):not(.secondary-btn):hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

.btn-compact i {
  font-size: 0.7rem;
}

/* ===== LINK BUTTONS ===== */
.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  /* Usa tipografia globale */
}

.btn-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ===== BACK BUTTONS ===== */
.back-btn,
.refresh-btn {
  background: #6c757d;
  color: var(--ink-dark);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn:hover,
.refresh-btn:hover {
  background: #5a6268;
}

.back-btn i {
  font-size: 0.8rem;
}

.login-button {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-base);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  width: 100%;
}

.login-button:hover {
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* ===== PAYMENT BUTTONS ===== */
.payment-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 1rem;
  border-radius: var(--border-radius-base);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.payment-btn:hover,
.payment-btn.selected {
  border-color: var(--accent);
  background: rgba(160, 54, 42, 0.05);
  color: var(--accent);
}

/* ===== RETRY BUTTON ===== */
.retry-btn {
  background: var(--accent);
  color: var(--ink-dark);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius-base);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

/* ===== BAR BUTTONS ===== */
.bar-btn {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%);
  color: var(--ink-dark);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius-base);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.bar-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.bar-btn:hover::before {
  left: 100%;
}

.bar-btn:hover {
  transform: translateY(-2px);
}

.bar-btn:active {
  transform: translateY(0);
}

/* ===== STEPPER BUTTONS ===== */
.stepper-btn, .quantity-selector input {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  /* Tutti i pulsanti più piccoli su mobile per touch */
  .btn-primary,
  .primary-btn,
  .submit-btn,
  .btn-secondary,
  .secondary-btn,
  .add-to-cart-btn,
  .product-btn,
  .back-to-store,
  .retry-btn,
  .bar-btn {
    padding: 0.7rem 1.4rem;
    border-radius: var(--border-radius-base);
  }
  /* Pulsanti compatti ancora più piccoli */
  .quantity-btn,
  .remove-btn,
  .btn-compact {
    padding: 0;
    border-radius: var(--border-radius-base);
  }
  /* Pulsanti speciali */
  .fullscreen-btn {
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: 50%;
  }
}
/* ===== FRAME-SPECIFIC BUTTON OPTIMIZATIONS ===== */
/* Bottom bar: reduce height and button footprint inside frame */
body:not(.viewport-fullscreen) .bottom-btn {
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
}

/* Ultra-small mobile frame button optimizations */
@media (max-width: 300px) {
  .btn-primary,
  .primary-btn,
  .submit-btn,
  .btn-secondary,
  .secondary-btn,
  .add-to-cart-btn,
  .product-btn,
  .back-to-store,
  .retry-btn,
  .bar-btn {
    padding: 0.4rem 0.8rem !important;
    border-radius: var(--border-radius-base) !important;
    min-height: 32px !important;
    min-width: 120px !important;
  }
  .quantity-btn,
  .remove-btn,
  .btn-compact {
    padding: 0.3rem 0.5rem !important;
    border-radius: var(--border-radius-base) !important;
    min-height: 28px !important;
  }
  .fullscreen-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
    border-radius: 50% !important;
  }
}
/* Frame-specific ultra-compact button optimizations */
@media (max-width: 300px) {
  body:not(.viewport-fullscreen) .bottom-btn {
    padding: 6px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }
  body:not(.viewport-fullscreen) .btn-primary,
  body:not(.viewport-fullscreen) .primary-btn,
  body:not(.viewport-fullscreen) .submit-btn,
  body:not(.viewport-fullscreen) .btn-secondary,
  body:not(.viewport-fullscreen) .secondary-btn,
  body:not(.viewport-fullscreen) .add-to-cart-btn,
  body:not(.viewport-fullscreen) .product-btn,
  body:not(.viewport-fullscreen) .back-to-store,
  body:not(.viewport-fullscreen) .retry-btn,
  body:not(.viewport-fullscreen) .bar-btn {
    padding: 0.3rem 0.6rem !important;
    min-height: 28px !important;
  }
}

body:not(.viewport-fullscreen) .bottom-btn i {
  font-size: 1rem;
}

@media (min-width: 481px) {
  body:not(.viewport-fullscreen) .bottom-btn i {
    font-size: 1.15rem;
  }
}
@media (min-width: 769px) {
  body:not(.viewport-fullscreen) .bottom-btn i {
    font-size: 1.3rem;
  }
}
/* ===== GAME BUTTONS ===== */
.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.close-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.key-btn {
  background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
  border: 1px solid #bbb;
  border-radius: var(--border-radius-base);
  color: #333;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
}

.key-btn:hover {
  background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
}

/* ===== MUSEUM PLAQUE BUTTON ===== */
.plaque-btn {
  background: linear-gradient(135deg, #8E2F22 0%, #A0362A 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius-base);
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ===== KONAMI BUTTONS ===== */
.konami-btn {
  background: linear-gradient(145deg, #2c3e50, #34495e);
  border: 1px solid #1a252f;
  border-radius: var(--border-radius-base);
  color: #ecf0f1;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.konami-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.3s ease;
}

.konami-btn:hover {
  background: linear-gradient(145deg, #34495e, #2c3e50);
}

.konami-btn:hover::before {
  left: 100%;
}

/* ===== DISABLED BUTTON STYLES ===== */
.btn-disabled,
button.btn-disabled,
.btn-primary.btn-disabled,
button.btn-primary.btn-disabled,
.btn-primary:disabled,
button.btn-primary:disabled {
  background: rgba(25, 16, 12, 0.4) !important;
  border: 1px solid rgba(25, 16, 12, 0.3) !important;
  color: rgb(240, 219, 199) !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}

.btn-disabled:hover,
button.btn-disabled:hover,
.btn-primary.btn-disabled:hover,
button.btn-primary.btn-disabled:hover,
.btn-primary:disabled:hover,
button.btn-primary:disabled:hover {
  background: rgba(25, 16, 12, 0.4) !important;
  border: 1px solid rgba(25, 16, 12, 0.3) !important;
  color: rgba(240, 219, 199, 0.7) !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Desktop button adjustments */
@media (min-width: 769px) {
  .btn,
  .button,
  button {
    font-size: 0.9rem; /* Allineato alla tipografia: desktop bottoni = 0.9rem */
  }
  .btn-primary {
    font-size: 0.9rem; /* Allineato alla tipografia */
  }
  .btn-secondary {
    font-size: 0.9rem; /* Allineato alla tipografia */
  }
  .btn-accent {
    font-size: 0.9rem; /* Allineato alla tipografia */
  }
  .btn-outline {
    font-size: 0.9rem; /* Allineato alla tipografia */
  }
  .btn-ghost {
    font-size: 0.9rem; /* Allineato alla tipografia */
  }
  .btn-icon {
    font-size: 14px; /* Reduced from 16px */
  }
  .btn-text {
    font-size: 0.9rem; /* Allineato alla tipografia */
  }
  .btn-text .bx {
    transform: translateY(-0.05em);
  }
  .btn-link {
    font-size: 0.9rem; /* Allineato alla tipografia */
  }
  .btn-small {
    font-size: 0.65rem; /* Reduced from 0.8rem */
  }
  .btn-tiny {
    font-size: 0.6rem; /* Reduced from 0.7rem */
  }
  .btn-mini {
    font-size: 0.6rem; /* Reduced from 0.8rem */
  }
  .btn-micro {
    font-size: 0.5rem; /* Reduced from 0.8rem */
  }
  .btn-nano {
    font-size: 0.4rem; /* Reduced from 0.8rem */
  }
  .btn-large {
    font-size: 0.8rem; /* Reduced from 0.8rem */
  }
  .btn-medium {
    font-size: 0.75em; /* Reduced from 1rem */
  }
  .btn-mobile-small {
    font-size: 0.65rem; /* Reduced from 0.8rem */
  }
  .btn-mobile-medium {
    font-size: 0.7rem; /* Reduced from 0.8rem */
  }
  .btn-mobile-large {
    font-size: 0.75rem; /* Reduced from 0.85rem */
  }
  .btn-mobile-tiny {
    font-size: 0.7rem; /* Reduced from 0.8rem */
  }
  .btn-frame-small {
    font-size: 0.6rem; /* Reduced from 0.7rem */
  }
  .btn-frame-medium {
    font-size: 0.55rem; /* Reduced from 0.65rem */
  }
  .btn-frame-large {
    font-size: 0.55rem; /* Reduced from 0.65rem */
  }
  .btn-frame-tiny {
    font-size: 0.55rem; /* Reduced from 0.65rem */
  }
  .btn-icon-small {
    font-size: 12px; /* Reduced from 14px */
  }
  .btn-icon-large {
    font-size: 15px; /* Reduced from 18px */
  }
  .btn-icon-medium {
    font-size: 12px; /* Reduced from 14px */
  }
  .btn-desktop {
    font-size: 0.7rem; /* Reduced from 0.8rem */
  }
  .btn-desktop-large {
    font-size: 14px; /* Reduced from 16px */
  }
}
.close-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.key-btn {
  background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
  border: 1px solid #bbb;
  border-radius: var(--border-radius-base);
  color: #333;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
}

.key-btn:hover {
  background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
}

/* ===== MUSEUM PLAQUE BUTTON ===== */
.plaque-btn {
  background: linear-gradient(135deg, #8E2F22 0%, #A0362A 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius-base);
  font-size: 0.6px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ===== KONAMI BUTTONS ===== */
.konami-btn {
  background: linear-gradient(145deg, #2c3e50, #34495e);
  border: 1px solid #1a252f;
  border-radius: var(--border-radius-base);
  color: #ecf0f1;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.konami-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.3s ease;
}

.konami-btn:hover {
  background: linear-gradient(145deg, #34495e, #2c3e50);
}

.konami-btn:hover::before {
  left: 100%;
}

/* ===== DISABLED BUTTON STYLES ===== */
.btn-disabled,
button.btn-disabled,
.btn-primary.btn-disabled,
button.btn-primary.btn-disabled,
.btn-primary:disabled,
button.btn-primary:disabled {
  background: rgba(51, 51, 51, 0.4) !important;
  border: 1px solid rgba(25, 16, 12, 0.3) !important;
  color: #666 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}

.btn-disabled:hover,
button.btn-disabled:hover,
.btn-primary.btn-disabled:hover,
button.btn-primary.btn-disabled:hover,
.btn-primary:disabled:hover,
button.btn-primary:disabled:hover {
  background: rgba(25, 16, 12, 0.4) !important;
  border: 1px solid rgba(25, 16, 12, 0.3) !important;
  color: rgba(240, 219, 199, 0.7) !important;
  opacity: 1 !important;
  transform: none !important;
}

.toast {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: 50%;
  transform: translate3d(-50%, -120%, 0) scale3d(0.78, 0.4, 1);
  transform-origin: 50% 0%;
  z-index: 10001;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  animation: toastEnter 0.72s cubic-bezier(0.26, 0.84, 0.22, 1.02) forwards;
  will-change: transform, opacity;
}

.toast.toast-center {
  left: 50%;
  right: auto;
}

.toast.toast-exit {
  animation: toastExit 0.58s cubic-bezier(0.42, 0.01, 0.27, 1) forwards;
}

.toast__surface {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 42px;
  min-width: min(380px, 94vw);
  max-width: min(520px, 96vw);
  background: var(--bg-dark);
  box-shadow: 0 24px 48px rgba(19, 8, 0, 0.25);
  border-radius: 32px;
  transform-origin: 50% 50%;
  transform: scale3d(0.6, 0.6, 1);
  animation: toastSurfaceIn 0.78s cubic-bezier(0.26, 0.84, 0.22, 1.02) forwards;
  will-change: transform, border-radius;
}

.toast.toast-exit .toast__surface {
  animation: toastSurfaceOut 0.48s cubic-bezier(0.42, 0.01, 0.27, 1) forwards;
}

.toast__content {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-dark);
  opacity: 0;
  transform: translateY(12px);
  animation: toastTextIn 0.32s ease forwards;
  animation-delay: 0.28s;
  will-change: transform, opacity;
}

.toast.toast-exit .toast__content {
  animation: toastTextOut 0.24s ease forwards;
  animation-delay: 0s;
}

@keyframes toastEnter {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -140%, 0) scale3d(0.58, 0.32, 1);
  }
  45% {
    opacity: 1;
    transform: translate3d(-50%, 4%, 0) scale3d(1.02, 1.06, 1);
  }
  70% {
    transform: translate3d(-50%, -4%, 0) scale3d(0.98, 0.96, 1);
  }
  100% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale3d(1, 1, 1);
  }
}
@keyframes toastExit {
  0% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale3d(1, 1, 1);
  }
  40% {
    transform: translate3d(-50%, -10%, 0) scale3d(0.9, 0.88, 1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -120%, 0) scale3d(0.6, 0.35, 1);
  }
}
@keyframes toastSurfaceIn {
  0% {
    border-radius: 50px;
    transform: scale3d(0.4, 0.4, 1);
  }
  50% {
    border-radius: 38px;
    transform: scale3d(1.05, 1.1, 1);
  }
  75% {
    border-radius: 30px;
    transform: scale3d(0.98, 0.96, 1);
  }
  100% {
    border-radius: 28px;
    transform: scale3d(1, 1, 1);
  }
}
@keyframes toastSurfaceOut {
  0% {
    border-radius: 28px;
    transform: scale3d(1, 1, 1);
  }
  40% {
    border-radius: 36px;
    transform: scale3d(0.92, 0.92, 1);
  }
  100% {
    border-radius: 50px;
    transform: scale3d(0.5, 0.4, 1);
  }
}
@keyframes toastTextIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toastTextOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (max-width: 640px) {
  .toast__surface {
    padding: 18px 32px;
    min-width: min(300px, 92vw);
  }
  .toast__content {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .toast {
    top: max(18px, env(safe-area-inset-top));
    left: 50%;
    right: auto;
    transform: translate3d(-50%, -120%, 0) scale3d(0.78, 0.4, 1);
  }
  .toast__surface {
    padding: 16px 26px;
    min-width: min(280px, 88vw);
  }
  .toast__content {
    font-size: 15px;
  }
}
@media (max-width: 320px) {
  .toast {
    top: max(16px, env(safe-area-inset-top));
    left: 50%;
    right: auto;
    transform: translate3d(-50%, -120%, 0) scale3d(0.78, 0.4, 1);
  }
  .toast__surface {
    padding: 14px 22px;
    min-width: min(260px, 88vw);
  }
  .toast__content {
    font-size: 14px;
  }
}
/* Bottom Bar Navigation */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  z-index: 1000;
  gap: 8rem;
}

.bottom-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 0;
  border-radius: var(--border-radius-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  position: relative;
  box-sizing: border-box;
  transform: scale(1);
  transform-origin: center bottom;
  transition: transform 0.25s ease, color 0.3s ease, background 0.3s ease;
}

/* Desktop-specific adjustments for bottom bar buttons */
@media (min-width: 769px) {
  body:not(.viewport-fullscreen) .bottom-btn i {
    font-size: 23px; /* Larger icon font size on desktop */
  }
}
.bottom-btn:hover {
  background: none !important;
  transform: scale(1.08);
}

.bottom-btn:active {
  transform: scale(1);
}

/* Ensure social icon links in the bottom bar never show underline */
.bottom-bar .bottom-btn,
.bottom-bar .bottom-btn:link,
.bottom-bar .bottom-btn:visited,
.bottom-bar .bottom-btn:hover,
.bottom-bar .bottom-btn:focus,
.bottom-bar .bottom-btn:active {
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  text-decoration: none !important;
  padding: 0 !important;
}

.bottom-bar .bottom-btn::after {
  display: none !important;
}

/* Ensure bottom bar stays visible when frames constrain the layout */
body:not(.viewport-fullscreen) .bottom-bar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1000 !important;
}

@media (max-width: 480px) {
  body:not(.viewport-fullscreen) .bottom-bar {
    gap: 1rem !important;
  }
}
/* Cart count badge for bottom bar */
.bottom-bar .bottom-btn i {
  font-size: 22px;
  line-height: 1;
}

.cart-count-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #A0362A);
  color: #fff;
  /* Usa tipografia globale per icone */
  line-height: 1;
  text-align: center;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 768px) {
  .cart-count-badge {
    top: 5px;
    right: 2px;
  }
}

/* Cart highlight animation hook */
.bottom-btn.cart-highlight {
  animation: cartHighlightPulse 0.6s ease;
}

/* Headers */
.store-header,
.orders-header,
.collection-header,
.product-header,
.popup-header,
.checkout-header,
.section-header,
.admin-header {
  /* Usa tipografia globale */
  color: var(--text-color);
}

/* .popup-header styles moved to _popups.scss for better organization */
.section-header {
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
  padding-bottom: 1rem;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--accent-color);
}

.section-header h2 {
  /* Usa tipografia globale */
  font-weight: 400;
  color: var(--text-color);
  margin: 0;
  letter-spacing: 0.5px;
}

.section-header h2 i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

/* Toast Mobile Optimizations */
/* Fullscreen Menu Visibility */
.viewport-fullscreen .universal-menu {
  display: block;
}

.fullscreen-store .universal-menu {
  z-index: 10002;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.fullscreen-store .universal-menu {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ===== Mobile Frame Tweaks (non-fullscreen) ===== */
/* Optimize the in-frame experience on small screens: smaller logo, tighter bar */
@media (max-width: 768px) {
  /* Bottom bar: reduce height and button footprint inside frame (via di mezzo) */
  body:not(.viewport-fullscreen) .bottom-bar,
  body:not(.viewport-fullscreen) #bottom-bar,
  body:not(.viewport-fullscreen) #bottom-bar-recovery {
    height: 56px !important;
  }
  body:not(.viewport-fullscreen) .bottom-bar {
    padding: 0 0.4rem !important;
    gap: 4.5rem;
  }
  body:not(.viewport-fullscreen) .bottom-bar .bottom-btn {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    padding: 0 !important;
  }
  /* Ensure main area accounts for the shorter bar */
  body:not(.viewport-fullscreen) #store-root .main {
    height: calc(100dvh - 56px) !important; /* Dynamic viewport height */
    height: calc(100svh - 56px) !important; /* Fallback */
    min-height: calc(100svh - 56px) !important;
  }
  body:not(.viewport-fullscreen) .main-content {
    padding-bottom: 60px !important;
  }
  /* Store hero and content: keep video full height like before */
  body:not(.viewport-fullscreen) .store-fullscreen-hero {
    height: 100vh !important;
  }
  body:not(.viewport-fullscreen) .store-content-section {
    padding: 16px 12px !important;
  }
  /* Product grid and cards: tighter spacing for visibility */
  body:not(.viewport-fullscreen) .products-grid {
    gap: 1rem !important;
    padding: 0rem 0rem !important;
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body:not(.viewport-fullscreen) .product-card {
    min-height: 280px !important;
    max-width: 240px !important;
    margin: 0 auto !important;
  }
  body:not(.viewport-fullscreen) .product-info {
    padding: 0.75rem !important;
  }
  body:not(.viewport-fullscreen) .product-info h3 {
    /* Usa tipografia globale */
    margin-bottom: 0.5rem !important;
  }
  /* Removed add-to-cart-btn specific styling to maintain uniformity */
}
.new-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}
.new-header.scrolled {
  background: var(--bg-light);
}
.new-header.pre-scrolled {
  background: transparent;
}
.new-header.scrolled .header-logo, .new-header.pre-scrolled .header-logo {
  height: 40px;
  width: auto;
  opacity: 1;
  transform: scale(1);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.new-header.scrolled .nav-link, .new-header.pre-scrolled .nav-link {
  color: var(--ink-light);
  transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.new-header.scrolled .nav-icon-btn, .new-header.pre-scrolled .nav-icon-btn {
  color: var(--ink-light);
  transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.new-header .header-logo {
  opacity: 0;
  transform: scale(1.2);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.new-header .header-logo-link,
.new-header .header-logo-link:hover,
.new-header .header-logo-link:focus,
.new-header .header-logo-link:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.new-header .header-logo-link img {
  display: block;
}
.new-header .header-logo-link::after {
  display: none !important;
  content: none !important;
}
.new-header .nav-link {
  transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.new-header .nav-icon-btn {
  transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}
@media (max-width: 768px) {
  .nav-left {
    gap: 1rem;
  }
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
}
@media (max-width: 768px) {
  .nav-center {
    justify-content: flex-start;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  color: var(--ink-dark);
  text-transform: uppercase;
  font-weight: 500;
  transition: transform 0.28s ease, color 0.28s ease;
  position: relative;
  transform: translateY(0);
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible {
  transform: translateY(-1px);
}
.nav-link:active {
  transform: translateY(0);
}
.nav-link.is-active {
  transform: translateY(-1px);
}

.header-logo {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
  cursor: pointer;
}
.header-logo.logo-revealing {
  transform: translateX(0%) scale(1.35);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header-logo.logo-moving {
  transform: translateX(0%) scale(1.25);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header-logo.logo-shrinking {
  transform: translateX(0%) scale(1.18);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header-logo.logo-initial {
  transform: translateX(0%) scale(1.1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header-logo.logo-full {
  transform: translateX(0%) scale(1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header-logo:hover {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .header-logo {
    height: 45px;
  }
}
@media (max-width: 480px) {
  .header-logo {
    height: 40px;
  }
}

.nav-icon-btn {
  background: none;
  border: none;
  color: var(--ink-dark);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.1rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon-btn i.bx {
  font-size: 1.3rem;
  line-height: 1;
}
.nav-icon-btn:hover, .nav-icon-btn:focus-visible {
  transform: translateY(-1px);
}
.nav-icon-btn:active {
  transform: translateY(0);
}
.nav-icon-btn.cart-highlight {
  animation: cartHighlightPulse 0.6s ease;
}
.nav-icon-btn.cart-btn::after, .nav-icon-btn.profile-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-icon-btn.cart-btn:hover, .nav-icon-btn.cart-btn:focus-visible, .nav-icon-btn.cart-btn:active, .nav-icon-btn.cart-btn.is-active, .nav-icon-btn.profile-btn:hover, .nav-icon-btn.profile-btn:focus-visible, .nav-icon-btn.profile-btn:active, .nav-icon-btn.profile-btn.is-active {
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .nav-icon-btn.cart-btn.is-active, .nav-icon-btn.profile-btn.is-active {
    transform: scale(1.1);
  }
}
@media (max-width: 768px) {
  .nav-icon-btn {
    padding: 0.4rem;
  }
  .nav-icon-btn:hover, .nav-icon-btn:focus-visible {
    transform: scale(1.1);
  }
  .nav-icon-btn i.bx {
    line-height: 1;
  }
}
@media (max-width: 768px) {
  .nav-icon-btn.mobile-menu-btn {
    font-size: 1.5rem;
    padding: 0.5rem;
    margin-right: 0;
  }
  .nav-icon-btn.mobile-menu-btn i.bx {
    font-size: 1.7rem !important;
    line-height: 1;
  }
}
@media (max-width: 768px) {
  .nav-icon-btn.cart-btn i.bx, .nav-icon-btn.profile-btn i.bx {
    font-size: 1.5rem !important;
    line-height: 1;
  }
}

.cart-count-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--accent);
  color: var(--ink-dark);
  font-size: 0.7rem;
  font-weight: bold;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .cart-count-badge {
    top: 5px;
    right: 2px;
  }
}

body:not(.viewport-fullscreen) .new-header {
  display: none;
}

@media (max-width: 1024px) {
  .nav-left {
    gap: 1.5rem;
  }
  .header-nav {
    padding: 0.75rem 1.5rem;
  }
}
@media (max-width: 768px) {
  .header-nav {
    padding: 0.75rem 0.5rem;
  }
  .nav-left {
    display: none;
  }
  .nav-right {
    gap: 0.1rem;
  }
  .nav-icon-btn {
    padding: 0.5rem;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .nav-link {
    font-size: 0.7rem;
  }
}
.mobile-menu-btn {
  display: none;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FBF6F2;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-light);
  z-index: 9999999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
.mobile-menu.active {
  transform: translateY(0);
}
.mobile-menu .menu-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 1rem 1rem;
}
.mobile-menu .menu-header .close-btn {
  background: var(--accent);
  border: none;
  font-size: 3.2rem;
  color: var(--sand);
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.mobile-menu .menu-header .close-btn i.bx {
  font-size: 2rem !important;
  line-height: 1;
}
.mobile-menu .menu-content {
  flex: 1;
  padding: 0 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 75vh;
}
.mobile-menu .menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
  text-transform: uppercase;
}
.mobile-menu .menu-links .menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: var(--ink-light);
  /* Usa tipografia globale */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.mobile-menu .menu-links .menu-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}
.mobile-menu .menu-links .menu-link .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.mobile-menu .menu-links .menu-link:hover .arrow {
  transform: translateX(5px);
}
.mobile-menu .menu-logo-section {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.mobile-menu .menu-logo-section .menu-logo {
  height: 120px;
  width: auto;
}
.mobile-menu .menu-logo-section .menu-logo.mobile-menu-logo {
  height: 120px !important;
  width: auto !important;
}
.mobile-menu .menu-footer {
  padding: 1rem 0 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu .menu-footer .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  color: var(--ink-dark);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.mobile-menu .menu-footer .social-icon:hover {
  transform: scale(1.1);
}
.mobile-menu .menu-footer .social-icon i.bx {
  font-size: 1.5rem !important;
  line-height: 1;
}

@media (max-width: 480px) {
  .nav-left {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.65rem;
  }
  .header-logo {
    height: 35px;
  }
}
/* Site Footer - Main Footer (rimosso - ora definito alla fine del file) */
.footer-content {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
}

.footer-column {
  text-align: left;
  min-width: 150px;
}

.footer-column-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.footer-column-header h4 {
  /* Usa tipografia globale */
  color: var(--sand);
  margin: 0 0 0.6rem 0;
  text-transform: uppercase;
  font-size: 1rem;
}

.mobile-toggle {
  display: none !important;
  font-size: 0.7rem;
  color: var(--sand);
  transition: transform 0.3s ease;
}

.mobile-toggle.rotated {
  transform: rotate(180deg);
}

.footer-column-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-column-content li {
  margin-bottom: 0.3rem;
}

.footer-column-content a {
  color: var(--sand);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

/* Mobile Footer Dropdown Styles */
@media (max-width: 767px) {
  .footer-links-section {
    flex-direction: column;
    width: 100%;
  }
  .footer-column {
    border-bottom: 1px solid rgba(240, 219, 199, 0.2);
    padding: 1rem 0;
  }
  .footer-column:last-child {
    border-bottom: none;
  }
  .footer-column-header {
    justify-content: space-between;
    cursor: pointer;
    padding: 0.5rem 0;
  }
  .footer-column-header h4 {
    margin: 0;
    text-align: left;
  }
  .mobile-toggle {
    display: block !important;
  }
  .footer-column-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .footer-column-content.active {
    max-height: 200px;
    padding-top: 0.5rem;
  }
  .footer-column-content ul {
    align-items: flex-start;
  }
  .footer-column-content a {
    text-align: left;
    display: block;
    padding: 0.3rem 0;
  }
}
/* Footer Top Section - Newsletter and Links Side by Side */
.footer-top-section {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
  width: 100%;
}

/* Footer Newsletter Section */
.footer-newsletter {
  flex: 0 0 auto;
  max-width: 38%;
  text-align: left;
}

/* Footer Links Section */
.footer-links-section {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Footer Bottom Section - Social and Language/Currency */
.footer-bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(240, 219, 199, 0.2);
  width: 100%;
}

/* Footer Social Section */
.footer-social {
  text-align: left;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

/* Footer Vessano Brand Section - centrata al 100% tra link informativi e sezione social/lingua */
.footer-vessano-brand {
  display: block;
  text-align: center;
  width: 100%;
  margin: 2rem 0 1rem 0;
}

/* Language and Currency Selector */
.footer-language-currency {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.language-currency-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--sand);
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(240, 219, 199, 0.25);
  border-radius: var(--border-radius-base);
  background: var(--bg-dark);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.language-currency-selector:hover,
.language-currency-selector:focus-within {
  border-color: rgba(240, 219, 199, 0.5);
  background: var(--bg-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.language-currency-selector i {
  font-size: 0.85rem;
}

.language-currency-selector .bx-chevron-down {
  font-size: 0.7rem;
  opacity: 0.8;
}

.current-language,
.current-currency {
  white-space: nowrap;
}

.locale-dropdown {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  right: 0;
  left: auto;
  background: var(--bg-dark);
  border: 1px solid rgba(240, 219, 199, 0.3);
  border-radius: var(--border-radius-base);
  padding: 0.5rem 0;
  min-width: 200px;
  max-width: 90vw;
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.locale-dropdown.active {
  display: block;
}

.locale-option {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.8rem;
  color: var(--sand);
  line-height: 1.3;
  white-space: normal;
}

.locale-option:hover {
  background: #3b240b;
}

.locale-option.active {
  background: #463010;
}

.footer-newsletter h4 {
  /* Usa tipografia globale */
  color: var(--sand);
  margin: 0 0 0.6rem 0;
  text-transform: uppercase;
  font-size: 1rem;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

input.newsletter-input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(240, 219, 199, 0.3);
  background: rgba(240, 219, 199, 0.05);
  color: #F0DBC7;
  font-size: 0.8rem;
  border-radius: var(--border-radius-base);
  height: auto;
  min-height: 40px;
}

input.newsletter-input::placeholder {
  color: rgba(240, 219, 199, 0.5);
}

input.newsletter-input:focus {
  border-color: rgba(240, 219, 199, 0.5);
}

.newsletter-button {
  padding: 0.6rem 1.2rem;
  background: rgba(240, 219, 199, 0.1);
  border: 1px solid rgba(240, 219, 199, 0.3);
  color: var(--sand);
  font-size: 0.7rem;
  border-radius: var(--border-radius-base);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.newsletter-button:hover {
  background: rgba(240, 219, 199, 0.2);
  border-color: rgba(240, 219, 199, 0.5);
}

.newsletter-disclaimer {
  font-size: 0.7rem !important;
  color: rgba(240, 219, 199, 0.6);
  line-height: 1.3;
  margin-top: 0.8rem;
  margin-bottom: 0;
}

.newsletter-disclaimer a {
  color: rgba(240, 219, 199, 0.8);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.newsletter-disclaimer a:hover {
  color: rgb(240, 219, 199);
}

/* Footer Links Section */
.footer-links h4 {
  font-size: 1.2rem;
  color: #F0DBC7;
  margin: 0 0 0.6rem 0;
}

/* Remove old social section styles that are now handled by footer-bottom-section */
.footer-social-links a {
  color: var(--sand);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1.2rem;
  position: relative;
}

.footer-social-links a::after {
  display: none;
}

.footer-social-links a:visited,
.footer-social-links a:hover,
.footer-social-links a:focus,
.footer-social-links a:active {
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

/* Specific styles for footer social icons - make them larger */
.footer-social-links .bx {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .footer-social-links .bx {
    font-size: 1rem;
  }
}
/* Footer Contact Section */
.footer-contact {
  text-align: left;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-item {
  color: rgba(240, 219, 199, 0.75);
  font-size: 0.8rem;
  line-height: 1.4;
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: #F0DBC7;
}

/* Footer Legal Section */
.footer-legal {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(240, 219, 199, 0.15);
}

.footer-legal p {
  font-size: 0.8rem !important;
  color: rgba(240, 219, 199, 0.75) !important;
  margin: 0.2rem 0 !important;
  line-height: 1.4 !important;
  font-family: "Montserrat", sans-serif !important;
}

/* Footer Copyright */
.footer-copyright {
  text-align: center;
  margin-top: 0.8rem;
  padding-top: 0;
  border-top: none;
}

.footer-copyright p {
  font-size: 0.8rem !important;
  color: rgba(240, 219, 199, 0.75) !important;
  margin: 0.3rem 0 !important;
  line-height: 1.4 !important;
  font-family: "Montserrat", sans-serif !important;
}

.footer-copyright a {
  color: rgba(240, 219, 199, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: #F0DBC7;
}

/* Store Footer */
.store-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(240, 219, 199, 0.1);
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

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

.footer-section h3 {
  /* Usa tipografia globale */
  color: #F0DBC7;
  margin-bottom: 0.8rem;
}

.footer-section p {
  color: rgba(240, 219, 199, 0.8);
  line-height: 1.5;
  margin: 0;
}

/* Product Footer */
.product-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.product-footer .price {
  grid-column: 1;
  margin-top: 0;
}

.product-footer .status {
  grid-column: 2;
  justify-self: end;
}

.product-footer .add-to-cart-btn {
  grid-column: 1/-1;
  width: 100%;
  margin-top: 6px;
}

/* Cart Footer */
.cart-footer {
  padding: 1rem;
  border-top: 1px solid rgba(45, 24, 16, 0.1);
  background: rgba(240, 219, 199, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Footer Text */
.footer-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-color);
}

/* Footer Social Animation */
.footer-social a {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-social a:hover {
  animation: subtlePulse 1.5s ease-in-out infinite;
}

/* Mobile Footer Optimizations */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-social {
    text-align: center;
  }
  .footer-social-links {
    justify-content: center;
  }
  .footer-contact {
    text-align: center;
    margin-bottom: 0.75rem;
  }
  .footer-contact-info {
    align-items: center;
  }
  /* Footer text further reduced on mobile */
  .footer-social h4,
  .footer-contact h4,
  .footer-links h4 {
    font-size: 1.2rem !important;
  }
  .footer-links a {
    font-size: 0.7rem !important;
  }
  .footer-contact-item {
    font-size: 0.7rem !important;
  }
}
/* Frame Mobile Footer Optimizations */
@media (max-width: 600px) {
  /* Store Footer for small frames */
  .store-footer {
    padding: 1rem 0.5rem;
    margin-top: 1.5rem;
  }
  .store-footer-content {
    padding: 0 1rem;
  }
  .footer-section h3 {
    /* Usa tipografia globale */
    margin-bottom: 0.6rem;
  }
  .footer-section p {
    line-height: 1.4;
  }
  /* Footer optimized for mobile frame */
  .site-footer {
    padding: 3rem 0.5rem;
  }
  .footer-contact,
  .footer-links {
    width: 100%;
  }
  .footer-contact {
    margin-bottom: 0.5rem;
  }
  .footer-social h4,
  .footer-contact h4,
  .footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  .footer-links li {
    margin-bottom: 0.3rem;
  }
  .footer-links a {
    font-size: 0.55rem;
  }
  .footer-social-links {
    gap: 0.8rem;
    justify-content: center;
  }
  .footer-social-links a {
    font-size: 0.95rem;
  }
  .footer-contact-item {
    font-size: 0.55rem;
    line-height: 1.3;
  }
  .footer-copyright p {
    font-size: 0.5rem;
  }
  .footer-copyright a {
    font-size: 0.5rem;
  }
}
@media (max-width: 400px) {
  .site-footer {
    padding: 3rem 0.3rem;
  }
  .footer-social h4,
  .footer-contact h4,
  .footer-links h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .footer-links a {
    font-size: 0.55rem;
  }
  .footer-social-links {
    gap: 0.6rem;
  }
  .footer-social-links a {
    font-size: 0.95rem;
  }
  .footer-contact-item {
    font-size: 0.55rem;
  }
  .footer-copyright p {
    font-size: 0.5rem;
  }
  .footer-copyright a {
    font-size: 0.5rem;
  }
}
@media (max-width: 320px) {
  .site-footer {
    padding: 2rem 0.2rem;
  }
  .footer-social h4,
  .footer-contact h4,
  .footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  .footer-links a {
    font-size: 0.55rem;
  }
  .footer-social-links {
    gap: 0.5rem;
  }
  .footer-contact-item {
    font-size: 0.55rem;
  }
}
@media (max-width: 300px) {
  .site-footer {
    padding: 2rem 0.1rem !important;
  }
  .footer-social h4,
  .footer-contact h4,
  .footer-links h4 {
    font-size: 0.8rem !important;
    margin-bottom: 0.2rem !important;
  }
  .footer-links {
    gap: 0.1rem !important;
  }
  .footer-links ul {
    gap: 0rem 1.2rem !important;
  }
  .footer-links a {
    font-size: 0.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.1rem !important;
  }
  .footer-social-links {
    gap: 0.4rem !important;
  }
  .footer-contact-item {
    font-size: 0.5rem !important;
    line-height: 1.2 !important;
  }
  .footer-legal p {
    /* Usa tipografia globale */
    line-height: 1.2 !important;
  }
  .footer-copyright {
    display: none !important;
  }
  .footer-section h3 {
    /* Usa tipografia globale */
    margin-bottom: 0.4rem !important;
  }
  .footer-section p {
    /* Usa tipografia globale */
    line-height: 1.3 !important;
  }
}
/* Footer positioning for embedded frames */
body:not(.viewport-fullscreen) .cart-footer {
  margin-bottom: 0;
  padding-bottom: 1rem;
}

body:not(.viewport-fullscreen) .product-footer {
  margin-bottom: 0;
  padding-bottom: 0.5rem;
  align-items: center !important;
}

body:not(.viewport-fullscreen) .product-footer .add-to-cart-btn {
  margin-bottom: 0;
}

/* Keep footer flush with edges for embedded frames */
body:not(.viewport-fullscreen) .product-footer {
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  align-items: center !important;
}

body:not(.viewport-fullscreen) .product-footer .add-to-cart-btn {
  margin-left: 0;
  margin-right: 0;
}

/* Store page product footer adjustments */
.store-page .product-footer {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Team page footer positioning */
body.team-page .site-footer {
  margin-top: 2rem;
}

/* Footer statico - gestito direttamente nell'HTML */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  padding: 3rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Su desktop, usa flexbox per controllare l'ordine degli elementi */
@media (min-width: 769px) {
  .site-footer {
    display: flex;
    flex-direction: column;
  }
  .footer-content {
    order: 1;
  }
  .footer-bottom-section {
    order: 3;
  }
  .footer-legal-copyright {
    order: 4;
  }
}
/* Footer Image Styles */
.footer-legal-copyright {
  text-align: center;
  margin-top: 2rem;
}

.footer-legal-copyright p {
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: rgba(240, 219, 199, 0.8) !important;
  line-height: 1.4 !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-image {
  text-align: center;
  margin-top: 2rem;
  padding-top: 0;
}

@media (max-width: 768px) {
  .footer-top-section {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }
  .footer-newsletter {
    width: 100%;
    max-width: 100%;
  }
  .footer-links-section {
    width: 100%;
  }
  .footer-bottom-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    gap: 1rem;
  }
  .footer-social {
    order: 1;
    flex: 0 0 auto;
  }
  .footer-language-currency {
    order: 2;
    flex: 0 0 auto;
  }
  .footer-vessano-brand {
    margin: 1.5rem 0;
  }
  .footer-legal-copyright p {
    /* Usa tipografia globale */
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
}
/* ===== LOGO OVERLAY STYLES ===== */
/* Homepage Logo Overlay - Left positioned */
.logo-overlay-left {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
  pointer-events: none;
}

.homepage-logo {
  width: 80px;
  height: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Store Fullscreen Logo Overlay */
.store-fullscreen-logo-overlay {
  position: fixed;
  top: 2.5rem;
  left: 2rem;
  z-index: 1000;
  pointer-events: none;
}

/* Desktop-specific adjustments for fullscreen logo position */
@media (min-width: 769px) {
  .viewport-fullscreen .store-fullscreen-logo-overlay {
    position: fixed;
    top: 4rem; /* Lower position on desktop fullscreen */
  }
}
.store-fullscreen-logo {
  width: 80px;
  height: auto;
  opacity: 0.9;
  transition: all 0.3s ease, filter 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-overlay-left,
  .store-fullscreen-logo-overlay {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
  }
  .homepage-logo,
  .store-fullscreen-logo {
    width: 60px;
  }
}
@media (max-width: 480px) {
  .logo-overlay-left,
  .store-fullscreen-logo-overlay {
    position: fixed;
    top: 1rem;
    left: 1rem;
  }
  .homepage-logo,
  .store-fullscreen-logo {
    width: 50px;
  }
}
/* Frame-specific adjustments */
body:not(.viewport-fullscreen) .logo-overlay-left,
body:not(.viewport-fullscreen) .store-fullscreen-logo-overlay {
  position: fixed;
  top: 1rem;
  left: 1rem;
}

body:not(.viewport-fullscreen) .homepage-logo,
body:not(.viewport-fullscreen) .store-fullscreen-logo {
  width: 50px;
}

/* Mobile frame adjustments */
@media (max-width: 768px) {
  body:not(.viewport-fullscreen) .logo-overlay-left,
  body:not(.viewport-fullscreen) .store-fullscreen-logo-overlay {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
  }
  body:not(.viewport-fullscreen) .homepage-logo,
  body:not(.viewport-fullscreen) .store-fullscreen-logo {
    width: 40px;
  }
}
/* Hover effects for interactive elements */
.homepage-content:hover .homepage-logo,
.store-fullscreen-hero:hover .store-fullscreen-logo {
  opacity: 1;
  transform: scale(1.05);
}

/* Animation for logo appearance */
.homepage-logo,
.store-fullscreen-logo {
  animation: brandmark-loading-effect 0.8s ease-out;
}

/* Ensure logo stays above video */
.logo-overlay-left,
.store-fullscreen-logo-overlay {
  z-index: 15;
}

/* Additional positioning for different viewport states */
.viewport-fullscreen .logo-overlay-left,
.viewport-fullscreen .store-fullscreen-logo-overlay {
  top: 23px;
  left: 20px;
}

.viewport-fullscreen .homepage-logo,
.viewport-fullscreen .store-fullscreen-logo {
  width: 50px;
}

/* Ensure proper stacking context */
.homepage-content,
.store-fullscreen-hero {
  position: relative;
  z-index: 5;
}

.homepage-video,
.store-fullscreen-video {
  z-index: 0;
}

/* ===== STORE STYLES ===== */
/* Store Page HTML and Body Styles */
body.store-page {
  background: #FBF6F2 !important;
}
body.store-page html {
  background: #FBF6F2 !important;
}
body.store-page.page-transition-pending {
  opacity: 0;
}

/* Store Hero Section - Fixed Background Video */
.store-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 0 !important; /* Cambiato da -10 a 0 per renderlo visibile */
  background: #FBF6F2;
}
.store-hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.store-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Store Page Container - Mantiene trasparente per il video hero, ma forza tema chiaro nel browser */
.store-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
  overflow-x: hidden;
  position: relative;
  background: transparent !important;
}

/* Store Root Container */
#store-root {
  position: relative;
  z-index: 2; /* Aumentato per stare sopra al video */
  background: transparent;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
  margin-top: 100vh; /* Corretto da 1000vh a 100vh per posizionare il contenuto subito dopo l'hero */
}

/* Store Content Background */
.store-content-section {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
}

/* Store Hero Section */
.store-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
  overflow: hidden;
}

.store-fullscreen-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1 !important; /* Changed from 0 to -1 to ensure it stays behind all content */
  transition: opacity 0.3s ease-out;
}

.hero-countdown {
  position: fixed;
  top: calc(52% + 110px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  color: var(--ink-dark);
  text-transform: uppercase;
  text-align: center;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--border-radius-base);
  transition: opacity 0.4s ease;
  pointer-events: none;
  width: max-content;
}
.hero-countdown.hidden {
  opacity: 0;
  visibility: hidden;
}
@media (max-width: 1024px) {
  .hero-countdown {
    top: calc(51% + 85px);
    font-size: 0.8rem;
    width: max-content;
  }
}
@media (max-width: 768px) {
  .hero-countdown {
    top: calc(51% + 75px);
    padding: 1rem 1.2rem;
    font-size: 0.75rem;
    width: max-content;
  }
}
@media (max-width: 480px) {
  .hero-countdown {
    top: calc(48% + 65px);
    padding: 1rem 1rem;
    font-size: 0.7rem;
    width: max-content;
  }
}

@media (max-width: 360px) {
  body:not(.viewport-fullscreen) .hero-countdown {
    top: calc(46% + 50px);
    padding: 0.5rem 0.5rem;
    font-size: 0.55rem;
    width: max-content;
  }
}

.hero-logo {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999 !important;
  height: 220px;
  width: auto;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero-logo {
    height: 180px;
  }
}
@media (max-width: 768px) {
  .hero-logo {
    height: 140px;
  }
}
@media (max-width: 480px) {
  .hero-logo {
    top: 44%;
    height: 140px;
  }
}
body:not(.viewport-fullscreen) .hero-logo {
  height: 160px;
}
@media (max-width: 768px) {
  body:not(.viewport-fullscreen) .hero-logo {
    height: 110px;
  }
}
@media (max-width: 480px) {
  body:not(.viewport-fullscreen) .hero-logo {
    height: 110px;
  }
}
@media (max-width: 360px) {
  body:not(.viewport-fullscreen) .hero-logo {
    height: 100px;
    top: 40%;
  }
}
.hero-logo.animating-to-header {
  top: 2rem;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  height: 60px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (max-width: 1024px) {
  .hero-logo.animating-to-header {
    height: 60px;
  }
}
@media (max-width: 768px) {
  .hero-logo.animating-to-header {
    height: 45px;
    top: 1.5rem;
  }
}
@media (max-width: 480px) {
  .hero-logo.animating-to-header {
    height: 35px;
    top: 1.25rem;
  }
}
.hero-logo.animating-from-header {
  top: 2rem;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  height: 60px;
  transition: none !important;
}
@media (max-width: 1024px) {
  .hero-logo.animating-from-header {
    height: 60px;
  }
}
@media (max-width: 768px) {
  .hero-logo.animating-from-header {
    height: 45px;
    top: 1.5rem;
  }
}
@media (max-width: 480px) {
  .hero-logo.animating-from-header {
    height: 35px;
    top: 1.25rem;
  }
}
@media (max-width: 360px) {
  body:not(.viewport-fullscreen) .hero-logo.animating-to-header {
    height: 30px;
    top: 0.9rem;
  }
}
@media (max-width: 360px) {
  body:not(.viewport-fullscreen) .hero-logo.animating-from-header {
    height: 30px;
    top: 0.9rem;
  }
}
.hero-logo.hidden {
  opacity: 0;
  visibility: hidden;
  transition: none !important;
}

.store-fullscreen-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* Video layer */
  /* Safari mobile video fixes */
  -webkit-playsinline: true;
  -webkit-playsinline: true; /* Use only the vendor prefixed version */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Scroll Indicator - Solo testo */
.scroll-indicator {
  position: absolute;
  bottom: 5rem; /* Moved slightly higher from 2rem */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-text {
  color: var(--ink-dark);
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-5px);
}

/* Frame-specific adjustments for scroll indicator */
body:not(.viewport-fullscreen) .scroll-indicator {
  bottom: 6rem; /* 70px bottom bar + extra space */
  z-index: 20;
  width: 90%; /* More space for text */
}

/* Mobile-specific adjustments for scroll indicator */
@media (max-width: 768px) {
  body:not(.viewport-fullscreen) .scroll-indicator {
    bottom: 4rem; /* Reduced bottom spacing for mobile frame */
  }
}
/* Store Content Wrapper */
.store-content-wrapper {
  background: var(--bg-light);
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
  padding: 4rem 0;
}

.store-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Collection Header */
.collection-header {
  text-align: center;
  margin-bottom: 4rem;
}

.collection-title {
  margin-bottom: 1.5rem;
}

.collection-main {
  display: block;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.2;
}

.collection-season {
  display: block;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.1;
  margin: 0.5rem 0;
}

.collection-year {
  display: block;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.2;
}

.collection-description {
  font-weight: 300;
  color: #666;
  margin: 0 auto;
  padding-bottom: 3rem;
  line-height: 1.6;
}

/* Drop Status Banner */
.drop-status-banner {
  background: white;
  border-radius: var(--border-radius-base);
  padding: 1.5rem 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.drop-status-banner.active {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border-color: #c3e6cb;
}

.drop-status-banner.inactive {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-color: #ffeaa7;
}

.drop-status-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.drop-icon {
  font-size: 1.5rem;
}

.drop-status-banner.active .drop-icon {
  color: #155724;
}

.drop-status-banner.inactive .drop-icon {
  color: #856404;
}

.drop-info {
  text-align: left;
}

.drop-title {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.drop-status-banner.active .drop-title {
  color: #155724;
}

.drop-status-banner.inactive .drop-title {
  color: #856404;
}

.drop-subtitle {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  opacity: 0.8;
}

h3.product-title-simple.scroll-animate-text.animate-in {
  font-size: 1.1rem;
}

/* Store Header */
.store-header {
  background: rgba(25, 16, 12, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 219, 199, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Store Frame */
#storeFrame {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  transition: opacity 0.3s ease;
}

#store-root {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg-light, #F8F6F3);
}

/* Scrolling behavior for store-root */
#store-root {
  scroll-behavior: smooth;
}

#store-root .main {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
  display: flex;
  flex-direction: column;
}

#store-root:has(.homepage-video) {
  overflow: hidden;
}

#store-root:has(.homepage-video) .main {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
  overflow: hidden;
}

/* Fullscreen Store */
.fullscreen-store {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
  z-index: 9999;
  background: var(--bg-light);
}

.fullscreen-store body,
.fullscreen-store html {
  overflow: hidden;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for iOS transparent bar */
  margin: 0;
  padding: 0;
}

.fullscreen-store #storeFrame,
#storeFrame.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  z-index: 10000;
  background: var(--bg-light);
}

/* Store Info */
.store-info {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
}

.drop-status {
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-base);
  background: rgba(160, 54, 42, 0.1);
  margin: 5rem 0 0 0;
  display: inline-block;
}

/* Store Content */
.store-content {
  padding: 2rem 1rem;
  max-width: 1250px;
  margin: 0 auto;
}

.store-content-section .store-inner-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  padding-top: 4rem;
}

/* Store Content Loading State */
.content-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh; /* Ridotto da 100vh per non occupare tutto lo schermo */
  padding-top: 4rem; /* Spazio dal top del container */
  text-align: center;
  color: var(--text-color, #666);
  font-weight: 400;
}

.content-loading .loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(160, 54, 42, 0.1);
  border-top: 4px solid var(--accent, #A0362A);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Store footer positioning */
.store-page #footer-container {
  position: relative;
  z-index: 10;
  margin-top: 0;
}

.collection-title {
  color: var(--ink-light);
  text-align: center;
  line-height: 1.2;
  padding-top: 4rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(48, 29, 9, 0.1);
  letter-spacing: 0.01em;
  font-size: 1.5rem;
}

.collection-title.has-year {
  font-size: 1.2rem;
}

@media (min-width: 769px) {
  .collection-title {
    font-size: 2.2rem;
  }
  .collection-title.has-year {
    font-size: 2rem;
  }
}
.collection-year {
  color: var(--ink-light);
}

/* Collection titles in frames moved from _frames.scss */
@media (max-width: 600px) and (min-width: 301px) {
  .collection-title {
    margin-bottom: 3rem !important;
    margin-top: 3rem;
    line-height: 1.2 !important;
    padding: 0 0.5rem !important;
  }
}
/* Products Showcase */
.products-showcase {
  margin-bottom: 4rem;
}

.products-section {
  margin: 2rem 0;
}

/* Product image backdrop only for store listing */
.store-page {
  --product-image-backdrop: #eee;
}

/* Responsive Store Layout - Enhanced */
@media (max-width: 768px) {
  .collection-title {
    margin-bottom: 30px;
  }
  .store-container {
    padding: 0 0.5rem;
  }
}
@media (max-width: 480px) and (min-width: 301px) {
  .collection-title {
    margin-top: 15px;
    margin-bottom: 25px;
  }
  .store-container {
    padding: 0 0.25rem;
  }
}
@media (max-width: 360px) {
  .collection-title {
    margin-bottom: 20px;
  }
}
/* Frame-specific ultra-compact optimizations */
@media (max-width: 300px) {
  body:not(.viewport-fullscreen) .collection-title {
    margin-top: 5px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }
  body:not(.viewport-fullscreen) .collection-year {
    text-align: center !important;
  }
}

/* Ultra-small frame optimizations for very small mobile frames - Generic fallback */
@media (max-width: 300px) {
  body.viewport-fullscreen .collection-title {
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
    padding: 0 0.5rem !important;
  }
}
/* Frame-specific optimizations - Improved Layout */
body:not(.viewport-fullscreen) .store-hero-section {
  height: 60vh !important;
}

@media (min-width: 301px) {
  body:not(.viewport-fullscreen) .collection-title {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
  }
}
/* Product grid optimized for frames - Fixed Layout */
body:not(.viewport-fullscreen) .products-grid {
  gap: 2rem !important;
  padding: 0 1rem !important;
  grid-template-columns: repeat(2, 1fr) !important; /* 2 colonne su desktop in frame */
  max-width: 1250px !important; /* limita larghezza per centratura */
  margin: 0 auto !important; /* centra il contenitore */
  justify-items: center; /* centra le card nella cella */
}

/* Mobile frame: single column */
@media (max-width: 768px) {
  body:not(.viewport-fullscreen) .products-grid {
    grid-template-columns: 1fr !important;
  }
}
body:not(.viewport-fullscreen) .product-card .product-info {
  padding: 0.8rem 1rem !important;
}

/* Product typography optimized for frames */
body:not(.viewport-fullscreen) .product-info h3,
body:not(.viewport-fullscreen) .product-title,
body:not(.viewport-fullscreen) .product-name {
  line-height: 1.3 !important;
  margin-bottom: 0.4rem !important;
}

body:not(.viewport-fullscreen) .product-card .product-info p,
body:not(.viewport-fullscreen) .product-description {
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  margin-bottom: 0.6rem !important;
}

/* Compact footer for frames */
body:not(.viewport-fullscreen) .product-footer {
  row-gap: 8px !important;
  padding-top: 12px !important;
  align-items: center !important;
}

body:not(.viewport-fullscreen) .status {
  padding: 4px 8px !important;
  border-radius: var(--border-radius-base) !important;
}

@media (min-width: 769px) {
  .collection-title {
    font-size: 2.5rem; /* desktop base matches generic h1 */
  }
}
/* ===== LOADING OVERLAY STYLES ===== */
/* CSS Variables for loading overlay colors - easily customizable */
:root {
  --loading-overlay-bg: rgba(251, 246, 242, 0.97); /* Main background color with opacity */
  --loading-overlay-text: #301D09; /* Main text color */
  --loading-spinner-border: rgba(48, 29, 9, 0.12); /* Light border for spinner */
  --loading-spinner-active: #301D09; /* Active border color for spinner */
}

/* Page transition overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--loading-overlay-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: var(--loading-overlay-text);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}
.page-transition-overlay .loading-text {
  margin-top: 1rem;
  color: var(--loading-overlay-text);
}
.page-transition-overlay .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--loading-spinner-border);
  border-top: 3px solid var(--loading-spinner-active);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Update existing content loading spinner to use variables */
.content-loading .loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--loading-spinner-border);
  border-top: 4px solid var(--loading-spinner-active);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin-bottom: 1.5rem;
}

/* ===== PRODUCTS STYLES ===== */
/* ===== SOLDOUT LABEL STYLES ===== */
.soldout-label {
  color: var(--ink-light);
  font-weight: bold;
  margin-left: 10px;
  text-transform: uppercase;
}

/* ===== FULLSCREEN POPUP STYLES ===== */
.fullscreen-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.fullscreen-popup-container {
  background: white;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(48, 29, 9, 0.3);
}

/* ===== VIDEO FALLBACK STYLES ===== */
.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/img/store_hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ===== FORM ERROR STYLES ===== */
.field-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ===== NOTIFICATION POPUP STYLES ===== */
.notification-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(5px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.notification-popup {
  background: var(--bg-light);
  border-radius: var(--border-radius-base);
  padding: 2rem;
  margin: 1rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 24px 60px rgba(19, 8, 0, 0.28);
  text-align: center;
  position: relative;
  animation: popupSlideIn 0.36s cubic-bezier(0.26, 0.84, 0.22, 1.02) forwards;
  color: var(--ink-light);
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.notification-popup .close-popup {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent, #8E2F22);
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.notification-popup .close-popup:hover {
  background: rgba(142, 47, 34, 0.1);
  transform: rotate(90deg);
}

.notification-popup .popup-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.notification-popup .popup-title {
  margin: 0 0 12px 0;
  font-weight: 500;
}

.notification-popup .popup-description {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.5;
}

.notification-popup .popup-description strong {
  color: var(--accent, #8E2F22);
}

.notification-popup .popup-content {
  margin-bottom: 24px;
}

.notification-popup input[type=email] {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--container-border);
  border-radius: var(--border-radius-base);
  margin: 15px 0;
  box-sizing: border-box;
  background: transparent;
  transition: all 0.3s ease;
}

.notification-popup input[type=email]:focus {
  outline: none;
  border-color: var(--bg-dark);
}

.notification-popup input[type=email]::placeholder {
  color: rgba(48, 29, 9, 0.6);
}

.notification-popup .popup-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.notification-popup .popup-buttons button {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--accent, #8E2F22);
  border-radius: var(--border-radius-base);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  margin: 0 auto;
  max-width: 100%;
}

.notification-popup .btn-primary {
  background: var(--accent, #8E2F22);
  color: var(--ink-dark);
  width: 100%;
}

.product-slideshow-container {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  background: rgba(240, 219, 199, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-slideshow-main {
  width: min(100%, 1200px);
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.product-slideshow-main.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.product-slideshow-main.is-single-mode {
  grid-template-columns: 1fr;
  justify-items: center;
}

.product-slideshow-main.is-mobile-mode {
  position: relative;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.product-slideshow-main.is-mobile-mode .product-slideshow-image-wrap {
  grid-column: 1;
  width: 100%;
  height: 100%;
}

.product-slideshow-main.is-mobile-mode .product-slideshow-image-wrap-primary,
.product-slideshow-main.is-mobile-mode .product-slideshow-image-wrap-secondary {
  position: absolute;
  inset: 0;
  display: flex;
}

.product-slideshow-main.is-mobile-mode .product-slideshow-image-wrap-secondary {
  pointer-events: none;
}

.product-slideshow-main.is-mobile-mode .product-slideshow-image-secondary:not(.is-hidden) {
  display: block;
}

.product-slideshow-image-wrap {
  width: 100%;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.product-slideshow-image-wrap.is-active {
  z-index: 2;
}

.product-slideshow-image-wrap-secondary {
  display: none;
}

.product-slideshow-main.is-mobile-mode .product-slideshow-image-wrap-secondary {
  display: flex;
}

.product-slideshow-image-wrap-secondary.is-transitioning {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}

.product-slideshow-main.is-single-mode .product-slideshow-image-wrap-secondary.is-transitioning {
  grid-column: 1;
}

.product-slideshow-main.is-dragging {
  cursor: grabbing;
}

.product-slideshow-image {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.product-slideshow-image.is-zoomed {
  transform: scale(2);
}

.product-slideshow-image-secondary,
.product-slideshow-image.is-hidden {
  display: none;
}

.product-slideshow-transition-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 5;
  animation-fill-mode: both;
}

@media (min-width: 1024px) {
  .product-slideshow-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-slideshow-image-secondary {
    display: block;
  }
  .product-slideshow-image-wrap-secondary {
    display: flex;
  }
}
/* Buybox inline actions and Buy Now styles */
.qty-action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Spaziatura come gli altri elementi */
  width: 100%;
}

.qty-action-row .quantity-selector {
  flex: 0 0 auto;
  max-width: 130px;
}

.add-to-cart-inline {
  flex: 1 1 auto;
  min-width: 0;
  /* Ensure the inline Add to Cart button matches quantity height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  height: 3.25rem;
  min-height: 3.25rem;
  box-sizing: border-box;
  margin: 0;
}

/* Variante soldout: grigio chiaro con testo scuro */
.add-to-cart-inline.soldout-notify {
  background: #dcdcdc !important;
  color: var(--ink-light) !important;
  border: 1px solid #dcdcdc !important;
  box-shadow: none !important;
}

.add-to-cart-inline.soldout-notify:hover {
  background: #e9e9e9 !important;
  color: #121212 !important;
}

.add-to-cart-inline.soldout-notify::before {
  display: none !important;
}

.buy-now-btn {
  width: 100%;
  max-width: none;
  margin: 0.75rem 0 0 0;
  align-self: stretch;
  display: inline-flex;
  justify-content: center;
}

/* Mantieni il colore normale anche quando disabilitato (stato di attesa) */
.buy-now-btn.btn-primary:disabled,
.buy-now-btn.btn-primary.btn-disabled {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%) !important;
  color: var(--ink-dark) !important;
  border: none !important;
  opacity: 1 !important;
}

.buy-now-btn.btn-primary:disabled:hover,
.buy-now-btn.btn-primary.btn-disabled:hover {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%) !important;
  color: var(--ink-dark) !important;
}

.loading-icon {
  margin-right: 8px;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
}

/* Color options rectangular like size options */
.color-options .product-option-btn {
  min-width: 65px;
  font-weight: 700;
  padding: 0.8rem 1rem;
  justify-content: center;
}

/* Rimuovi freccette su/giù dal campo quantità */
.stepper-wrapper input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper-wrapper input[type=number]::-webkit-outer-spin-button,
.stepper-wrapper input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-slideshow-thumbs {
  position: absolute;
  right: clamp(1rem, 3vw, 2.25rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  display: inline-flex;
  align-items: center;
  --thumb-gap: 0.5rem;
  gap: 0;
  padding: 0;
  max-width: min(520px, 70vw);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 10;
}

.product-slideshow-thumbs::-webkit-scrollbar {
  display: none;
}

.product-slideshow-thumb {
  position: relative;
  width: 50px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
  border-radius: var(--border-radius-base);
  background-color: var(--bg-light);
  flex-shrink: 0;
  overflow: hidden;
  margin-right: var(--thumb-gap);
  will-change: transform, opacity;
}

.product-slideshow-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  transition: opacity 0.25s ease;
  pointer-events: none;
  border-radius: inherit;
  opacity: 1;
}

.product-slideshow-thumb.active,
.product-slideshow-thumb:hover {
  border-color: var(--accent);
}

.product-slideshow-thumb.active::after,
.product-slideshow-thumb:hover::after {
  opacity: 0;
}

.product-slideshow-thumb.active {
  cursor: default;
}

.product-slideshow-thumb.is-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.82;
}

.product-slideshow-thumb.is-disabled::after {
  opacity: 0.15;
}

.product-slideshow-progress {
  position: absolute;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(17, 17, 17, 0.72);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  display: none;
  pointer-events: none;
  z-index: 12;
}

.product-slideshow-progress.is-visible {
  display: inline-flex;
}

.product-slideshow-thumb:last-child {
  margin-right: 0;
}

.product-slideshow-thumb.is-primary-active {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.product-slideshow-thumb.is-secondary-active {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

@media (max-width: 1024px) {
  .product-slideshow-container {
    min-height: 75vh;
  }
}
@media (max-width: 768px) {
  .product-slideshow-thumb {
    width: 50px;
    height: 60px;
  }
  .product-slideshow-thumbs {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .product-slideshow-container {
    min-height: 65vh;
  }
  .product-slideshow-thumb {
    width: 50px;
    height: 50px;
  }
  .product-slideshow-thumbs {
    --thumb-gap: 0.5rem;
  }
}
@keyframes productSlideInRight {
  0% {
    transform: translateX(40%) scale(0.96);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes productSlideCarryFromRight {
  0% {
    transform: translateX(28%) scale(0.94);
    opacity: 0.6;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes productSlideInLeft {
  0% {
    transform: translateX(-40%) scale(0.96);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes productSlideCarryFromLeft {
  0% {
    transform: translateX(-28%) scale(0.94);
    opacity: 0.6;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes productFocusCenter {
  0% {
    transform: scale(0.98);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes productImageOutLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-42%) scale(0.94);
    opacity: 0;
  }
}
@keyframes productImageOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(42%) scale(0.94);
    opacity: 0;
  }
}
@keyframes productThumbFadeIn {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes productThumbFadeOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.92);
    opacity: 0;
  }
}
@keyframes productThumbPulse {
  0% {
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
/* Products Grid - Responsive and Flexible */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  justify-items: center;
  gap: 1.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  padding: 0;
  margin: 0 auto;
  width: 100%;
}

body:not(.viewport-fullscreen) .products-grid {
  gap: 2rem;
}

.products-grid.loaded {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(280px, 460px));
    padding: 0;
    gap: 3rem;
  }
}
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(280px, 460px));
    padding: 0;
    gap: 5rem;
  }
  body:not(.viewport-fullscreen) .products-grid {
    gap: 5rem;
  }
}
@media (min-width: 1250px) {
  .products-grid {
    gap: 6rem;
  }
  body:not(.viewport-fullscreen) .products-grid {
    gap: 3rem;
  }
}
.horizontal-scroll-section {
  margin: 4rem 0;
}

@media (min-width: 1024px) {
  .horizontal-scroll-section {
    position: relative;
    min-height: 100vh;
  }
  .horizontal-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  .horizontal-scroll-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
}
@media (max-width: 1023px) {
  .horizontal-scroll-wrapper {
    height: auto !important;
  }
  .horizontal-scroll-content {
    position: static;
    height: auto;
    overflow: visible;
  }
}
/* Mosaic layout variant */
.products-grid.mosaic {
  grid-template-columns: repeat(8, 1fr);
  gap: 5rem;
}

/* Mosaic variant with increased spacing in non-fullscreen */
body:not(.viewport-fullscreen) .products-grid.mosaic {
  gap: 3rem;
}

.products-grid.mosaic .product-card {
  grid-column: span 2;
}

/* Stagger and feature pattern every 6 items */
@media (min-width: 1025px) {
  .products-grid.mosaic .product-card:nth-child(6n+1) {
    grid-column: span 4;
  }
  .products-grid.mosaic .product-card:nth-child(6n+3) {
    margin-top: 1.5rem;
  }
  .products-grid.mosaic .product-card:nth-child(6n+5) {
    margin-top: -0.5rem;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .products-grid.mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .products-grid.mosaic .product-card {
    grid-column: span 1;
    margin-top: 0;
  }
  body:not(.viewport-fullscreen) .products-grid.mosaic {
    gap: 2.25rem;
  }
}
@media (max-width: 767px) {
  .products-grid.mosaic {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .products-grid.mosaic .product-card {
    grid-column: span 1;
    margin-top: 0;
  }
  body:not(.viewport-fullscreen) .products-grid.mosaic {
    gap: 1.5rem;
  }
}
/* Product Cards - Simplified Artwork Style */
.product-card,
.product-card-new {
  background: transparent;
  border: none;
  border-radius: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 360px;
  min-width: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  cursor: pointer;
  gap: 1rem;
}

.product-card-new.inactive:hover {
  transform: none;
}

/* Product Image - Artwork Frame */
/* Product Image Container - Enhanced with Frame Shadow */
.product-image-container {
  position: relative;
  aspect-ratio: 107/133; /* Frame proportions: 1070px x 1330px */
  background-image: url("../img/cornice.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--product-image-backdrop, transparent);
  --frame-inner-horizontal: 14%;
  --frame-inner-vertical: 11%;
  /* Calibrate inner ratios to match 864x1200 artwork inside 1070x1330 frame */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Gradient and inner shadow overlay */
}
.product-image-container::before {
  content: "";
  position: absolute;
  top: var(--frame-inner-vertical);
  bottom: var(--frame-inner-vertical);
  left: var(--frame-inner-horizontal);
  right: var(--frame-inner-horizontal);
  background: linear-gradient(170deg, rgba(0, 0, 0, 0.1) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.1) 100%);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1), inset 0 0 0 0.1px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 2;
}
.product-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/cornice.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 3;
}

.product-image,
.product-card img {
  width: calc(100% - 2 * var(--frame-inner-horizontal));
  height: calc(100% - 2 * var(--frame-inner-vertical));
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1; /* Mantiene l'immagine sotto alla cornice ma sopra lo sfondo */
  position: relative;
  background: none;
}

.product-card:hover .product-image,
.product-card-new:hover .product-image {
  transform: none;
}

/* Product Badge */
.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-base);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  z-index: 4;
}

.product-badge.available {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

.product-badge.coming-soon {
  background: rgba(255, 193, 7, 0.9);
  color: #212529;
}

/* Simple Product Title - Clean Typography */
.product-title-simple {
  font-family: "Montserrat", serif;
  font-weight: 500;
  color: var(--ink-light);
  line-height: 1.3;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  border: none;
  padding: 0;
  order: -1;
  width: 100%;
  /* Mantieni allineate le immagini anche con titoli su due righe */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* mostra al massimo due righe */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em; /* riserva spazio per due righe */
}

.products-grid .price {
  display: none !important;
}

/* Responsive adjustments for non-mobile devices */
@media (min-width: 769px) {
  /* Square aspect ratio for larger devices */
  .product-image-container {
    aspect-ratio: 107/133; /* Frame proportions: 1070px x 1330px */
  }
  .product-card,
  .product-card-new {
    max-width: 320px; /* Massimo 320px per tablet */
    min-width: 280px; /* Ridotto per tablet */
  }
}
@media (min-width: 1024px) {
  .product-image-container {
    aspect-ratio: 107/133; /* Frame proportions: 1070px x 1330px */
  }
  .product-card,
  .product-card-new {
    max-width: 320px; /* Massimo 320px per desktop */
    min-width: 280px; /* Ridotto per desktop */
  }
}
/* Mobile: riduci leggermente la dimensione totale (cornice inclusa) */
@media (max-width: 768px) {
  .product-card,
  .product-card-new {
    max-width: 320px; /* da 360px a 320px su mobile */
  }
}
@media (max-width: 480px) {
  .product-card,
  .product-card-new {
    max-width: 300px; /* ulteriore piccolo decremento sui telefoni più stretti */
  }
}
/* Product Title - Museum Style */
.product-title,
.product-name,
.product-info h3 {
  /* Usa tipografia globale */
  margin: 0 0 0.5rem 0;
  flex: 1;
  font-weight: 600;
}

.product-info p {
  margin-bottom: 1rem;
}

span.summary-value.price {
  margin-top: 3px;
}

/* Product Price */
.product-price,
.price {
  font-weight: 700;
  white-space: nowrap;
  margin-top: 10px;
  text-align: center;
  font-size: 1.2rem;
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 1rem;
}

/* Product Buttons - Using standard styles from _buttons.scss */
/* Product Button Alternative Styles */
.product-button,
.add-to-cart {
  background: linear-gradient(135deg, var(--accent) 0%, #8B2E1F 100%);
  color: var(--ink-dark);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-base);
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.product-button:hover,
.add-to-cart:hover {
  background: linear-gradient(135deg, #8B2E1F 0%, #7A2A1F 100%);
}

/* Product Footer - Compact Layout */
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.info-btn {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%);
  color: var(--ink-dark);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.info-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.info-btn:hover::before {
  left: 100%;
}

.info-btn:hover {
  background: linear-gradient(135deg, #8B2E1F 0%, #7A2A1F 100%);
}

.coming-soon {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius-base);
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  color: #6c757d;
}

/* Status Badge */
.status {
  padding: 6px 12px;
  border-radius: var(--border-radius-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status.available {
  background: #EAF6EF;
  color: #1E7A46;
  border: 1px solid #CFE9DB;
}

.status.coming-soon {
  background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
  color: #666;
}

.status.sold-out {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Add to Cart Button - Using standard styles from _buttons.scss */
/* Production Info */
.production-info {
  margin-top: 2rem;
}

.production-notice strong {
  color: var(--ink-light);
  font-weight: 600;
}

.made-in-italy-notice strong {
  color: var(--ink-light);
  font-weight: 600;
}

/* Product Page Styles */
.product-page {
  display: flex;
  flex-direction: column;
  /* Rimosso min-height: 100vh per permettere al footer di essere visibile */
}

.product-topbar {
  margin-bottom: 2rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1250px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

.product-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--border-radius-base);
  background: #f8f9fa;
}

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

.product-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem;
}

.product-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-base);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.product-thumb:hover,
.product-thumb.active {
  border-color: var(--accent);
  transform: scale(1.05);
}

.product-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Gallery styles for product page */
.gallery {
  position: relative;
  display: flex;
  flex-direction: column;
}

.gallery-main {
  width: 100%;
  height: 70vh;
  max-height: 720px;
  border-radius: var(--border-radius-base);
  overflow: hidden;
}

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

.gallery-filmstrip {
  position: absolute;
  right: clamp(0.75rem, 3vw, 2rem);
  bottom: clamp(0.75rem, 3vw, 2rem);
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: rgba(10, 10, 10, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.gallery-thumbnail {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gallery-thumbnail.active,
.gallery-thumbnail:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
}

@media (max-width: 1024px) {
  .gallery-main {
    height: 60vh;
  }
}
@media (max-width: 768px) {
  .gallery {
    gap: 1rem;
  }
  .gallery-main {
    height: 55vh;
  }
  .gallery-filmstrip {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
  }
  .gallery-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-base);
    border-color: rgba(0, 0, 0, 0.1);
  }
}
/* Buy box styles for single product page */
.buybox {
  display: block;
  margin: 5rem auto;
  width: 90%;
  max-width: 1200px;
}

.buybox-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.buybox-info,
.buybox-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.buybox-info .product-description {
  line-height: 1.75;
  color: var(--ink-light);
}

.buybox-info .production-info {
  margin-top: 0;
}

.buybox-actions .btn-primary {
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: stretch;
}

button.product-option-btn.btn-primary.is-selected {
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark);
}

button.product-option-btn.btn-secondary:hover {
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark);
}

.buybox-actions .btn-secondary {
  max-width: none;
  margin: 0;
}

@media (min-width: 1024px) {
  .buybox-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(2.5rem, 4vw, 4.5rem);
  }
  .buybox-info {
    flex: 1 1 66%;
    max-width: none;
  }
  .buybox-actions {
    flex: 1 1 50%;
    max-width: none;
    position: sticky;
    top: clamp(5rem, 10vh, 6.5rem);
    align-self: flex-start;
    padding-bottom: 2rem;
  }
  .buybox-actions > * {
    width: 100%;
  }
}
/* Special styling for size options */
.buybox-actions .size-options .product-option-btn {
  min-width: 65px;
  font-weight: 700;
  padding: 0.8rem 1rem;
  flex: 1 1 auto;
  max-width: calc(33.333% - 0.333rem);
}

/* Price section styling */
.product-price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  max-width: 220px;
  margin-top: 1.25rem;
}

.price-label {
  /* Usa tipografia globale */
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qty-price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  align-self: flex-start;
  width: 100%;
  max-width: 220px;
}

.quantity-selector label {
  /* Usa tipografia globale */
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Design */
/* Mobile Responsive Improvements */
@media (max-width: 768px) {
  .product-card .product-info {
    padding: 1rem 1.2rem;
  }
  .product-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  .product-thumbs {
    justify-content: center;
  }
  .qty-price-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .quantity-selector,
  .product-price-section {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }
  .product-price-section {
    margin-top: 1rem;
  }
  .product-price {
    text-align: left;
    font-size: 1rem;
  }
  /* Mobile option selector adjustments */
  .buybox-actions .product-option-btn {
    min-width: 50px;
  }
  /* Size options mobile adjustments */
  .buybox-actions .size-options .product-option-btn {
    min-width: 55px;
    padding: 0.65rem 0.8rem;
  }
  /* Mobile button adjustments */
  .add-to-cart,
  .back-to-store,
  .back-button {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-base);
    margin-top: 10px;
    margin-bottom: 1.5rem;
  }
  /* Mobile: keep quantity and add-to-cart inline; buy-now remains below */
  .qty-action-row {
    flex-direction: row;
    align-items: center;
  }
  .qty-action-row .quantity-selector {
    max-width: 130px;
    width: auto;
    flex: 0 0 auto;
  }
  .add-to-cart-inline {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  /* Product slideshow mobile adjustments */
  .product-slideshow-container {
    min-height: 70vh;
  }
  /* Gallery mobile adjustments */
  .gallery {
    gap: 1rem;
  }
  .gallery-main {
    height: 55vh;
  }
  .gallery-filmstrip {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
  }
  .gallery-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-base);
    border-color: rgba(0, 0, 0, 0.1);
  }
  /* Size guide mobile adjustments */
  .size-guide-panel {
    margin-top: 2rem;
  }
  .size-guide-toggle {
    font-size: 1.05rem;
    padding-bottom: 1rem;
  }
  .size-guide-wrapper {
    padding: 1rem;
  }
  .size-guide-table {
    font-size: 0.85rem;
  }
  .size-guide-table th,
  .size-guide-table td {
    padding: 0.6rem;
  }
}
@media (max-width: 480px) and (min-width: 301px) {
  .product-card .product-info {
    padding: 0.6rem 0.8rem;
  }
  .product-footer .add-to-cart-btn {
    padding: 0.6rem 0.8rem;
    /* Usa tipografia globale */
  }
  .buybox-actions .product-option-btn {
    min-width: 45px;
  }
  .buybox-actions .size-options .product-option-btn {
    min-width: 50px;
    padding: 0.6rem 0.7rem;
  }
  /* Usa tipografia globale per .product-price */
  /* Usa tipografia globale per .price-label */
}
/* Size guide styles */
/* Ultra-small mobile frame optimizations */
@media (max-width: 300px) {
  .products-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1.4rem !important;
    padding: 0 0.1rem !important;
  }
  .product-card .product-info {
    padding: 0.4rem 0.6rem !important;
  }
  .product-card .product-info h3 {
    /* Usa tipografia globale */
    margin-bottom: 0.5rem !important;
  }
  .product-card .product-info p {
    /* Usa tipografia globale */
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
  }
  .product-footer .add-to-cart-btn {
    padding: 0.4rem 0.6rem !important;
    /* Usa tipografia globale */
  }
  .status {
    font-size: 0.6rem !important;
    padding: 4px 8px !important;
  }
}
/* Frame-specific product optimizations */
@media (max-width: 300px) {
  body:not(.viewport-fullscreen) .product-card .product-info {
    padding: 0.3rem 0.4rem !important;
  }
  body:not(.viewport-fullscreen) .product-card .product-info h3 {
    /* Usa tipografia globale */
    margin-bottom: 0.3rem !important;
  }
  body:not(.viewport-fullscreen) .product-card .product-info p {
    /* Usa tipografia globale */
    margin-bottom: 0.5rem !important;
  }
  body:not(.viewport-fullscreen) .product-footer .add-to-cart-btn {
    padding: 0.3rem 0.4rem !important;
    /* Usa tipografia globale */
  }
  body:not(.viewport-fullscreen) .product-footer {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }
  body:not(.viewport-fullscreen) .product-footer .price {
    grid-column: 1 !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
  }
  body:not(.viewport-fullscreen) .product-footer .status {
    grid-column: 2 !important;
    justify-self: end !important;
    font-size: 0.5rem !important;
    padding: 2px 4px !important;
  }
}

.product-layout-new {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
}

.product-slideshow-section {
  width: 100%;
}

.product-details-section {
  width: 100%;
}

.product-info {
  width: 100%;
}

@media (max-width: 480px) and (min-width: 301px) {
  .product-slideshow-container {
    min-height: 65vh;
  }
  .product-footer .add-to-cart-btn {
    padding: 0.6rem 0.8rem;
  }
  .buybox-actions .product-option-btn {
    min-width: 45px;
  }
  .buybox-actions .size-options .product-option-btn {
    min-width: 50px;
    padding: 0.6rem 0.7rem;
  }
}
/* Option selectors (Color, Size, etc.) */
.option-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.option-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

/* Grid layouts for color/size when exactly 2, 3, or 4 options */
.option-values.options-grid-2,
.option-values.options-grid-3,
.option-values.options-grid-4 {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.option-values.options-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.option-values.options-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.option-values.options-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.option-values.options-grid-2 .product-option-btn,
.option-values.options-grid-3 .product-option-btn,
.option-values.options-grid-4 .product-option-btn {
  width: 100%;
}

.buybox-actions .product-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.7;
  flex: 1 1 calc(50% - 0.25rem);
  max-width: calc(50% - 0.25rem);
  margin: 0;
  min-width: 60px;
  border-radius: var(--border-radius-base);
}

.buybox-actions .product-option-btn.btn-secondary,
.buybox-actions .product-option-btn.btn-primary {
  width: auto;
  max-width: none;
}

/* Special styling for color options */
.color-options {
  gap: 0.75rem;
}

.color-options .product-option-btn {
  min-width: 120px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  flex: 1 1 auto;
  max-width: none;
}

/* Color-only button styling */
.color-option-button {
  min-width: 30px !important;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 1px solid var(--ink-dark) !important;
  transition: all 0.3s ease !important;
}

.color-option-button:hover {
  border-color: var(--accent) !important;
}

.color-option-button.selected {
  border-color: var(--accent) !important;
  border-width: 2px !important;
  transform: translateY(-1px) scale(1.1) !important;
}

.color-option-button .color-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ink-dark);
  margin: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* Color option button styling */
.color-options .product-option-btn {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  min-width: auto;
  text-align: left;
  justify-content: flex-start;
}

/* Special styling for size options */
.size-options .option-values {
  /* When grid classes apply, the display becomes grid; keep nowrap for flex fallback */
  flex-wrap: nowrap;
}

.size-options .product-option-btn {
  min-width: 65px;
  font-weight: 400;
  padding: 0.8rem 1rem;
  flex: 1 1 calc(33.333% - 0.333rem);
  max-width: calc(33.333% - 0.333rem);
  min-width: 0;
}

/* Ensure grid cells enforce full-width buttons (2/3/4 options) */
.option-values.options-grid-2 .product-option-btn,
.option-values.options-grid-3 .product-option-btn,
.option-values.options-grid-4 .product-option-btn {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

/* Price section styling */
.product-price-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  max-width: 220px;
  margin-top: 0.5rem;
}

.price-label {
  /* Usa tipografia globale */
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qty-price-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.quantity-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  align-self: flex-start;
  width: 100%;
  max-width: 220px;
}

.quantity-selector label {
  /* Usa tipografia globale */
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stepper-wrapper {
  display: flex;
  align-items: center;
  border-radius: var(--border-radius-base);
  overflow: hidden;
  border: 1px solid var(--bg-dark);
  /* Match button height */
  height: 3.25rem;
}

.stepper-btn {
  border: none;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.stepper-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(142, 47, 34, 0.1), transparent);
  transition: left 0.5s;
}

.stepper-btn:hover {
  background: transparent;
  box-shadow: none;
}

.stepper-wrapper input {
  border: none;
  width: 50px;
  text-align: center;
  font-weight: 700;
  height: 100%;
  line-height: 1.7;
  background: transparent;
  outline: none;
}

/* Size guide styles */
.size-guide-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 1.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  cursor: pointer;
}

.size-guide-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 600;
}

.size-guide-arrow {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.size-guide-panel.expanded .size-guide-arrow {
  transform: rotate(-135deg);
}

.size-guide-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.size-guide-panel.expanded .size-guide-content {
  opacity: 1;
  margin-top: clamp(1rem, 3vw, 1.5rem);
}

.size-guide-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.85);
}

.size-guide-wrapper {
  border-radius: var(--border-radius-base);
  max-width: 100%;
}

.size-guide-title {
  margin: 0 0 1.25rem 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.size-guide-unit-toggle {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
}

.unit-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink-light);
  transition: color 0.2s ease;
}

.unit-option input[type=radio] {
  margin: 0;
  accent-color: var(--ink-light);
}

.unit-option:hover {
  color: var(--ink);
}

.unit-option input[type=radio]:checked + span {
  color: var(--ink);
  font-weight: 600;
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 0.9rem;
}

.size-guide-table th {
  color: var(--ink);
  font-weight: 600;
  padding: 0.75rem;
  text-align: center;
  border-bottom: 2px solid var(--container-border);
  letter-spacing: 0.02em;
}

.size-guide-table th:first-child {
  text-align: left;
}

.size-guide-table td {
  padding: 0.65rem;
  text-align: center;
  border-bottom: 1px solid var(--container-border);
  color: var(--ink-light);
}

.size-guide-table td.size-column {
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.size-guide-table td.measurement-cell {
  font-family: "Courier New", monospace;
  font-weight: 500;
}

.size-guide-table tr:last-child td {
  border-bottom: none;
}

.size-guide-note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--sand);
  border: 1px solid var(--container-border);
  border-radius: var(--border-radius-base);
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.6;
  text-align: center;
}

.size-guide-contact {
  margin-top: 1.5rem;
}

.size-guide-contact-title {
  margin: 0 0 0.65rem 0;
  color: var(--ink);
  font-weight: 600;
}

/* Mobile adjustments for size guide */
@media (max-width: 768px) {
  .size-guide-panel {
    margin-top: 2rem;
  }
  .size-guide-toggle {
    font-size: 1.05rem;
    padding-bottom: 1rem;
  }
  .size-guide-wrapper {
    padding: 1rem;
  }
  .size-guide-table {
    font-size: 0.85rem;
  }
  .size-guide-table th,
  .size-guide-table td {
    padding: 0.6rem;
  }
}
/* Ultra-small mobile frame optimizations */
@media (max-width: 300px) {
  .products-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1.4rem !important;
    padding: 0 0.1rem !important;
  }
  .product-card .product-info {
    padding: 0.4rem 0.6rem !important;
  }
  .product-card .product-info h3 {
    /* Usa tipografia globale */
    margin-bottom: 0.5rem !important;
  }
  .product-card .product-info p {
    /* Usa tipografia globale */
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
  }
  .product-footer .add-to-cart-btn {
    padding: 0.4rem 0.6rem !important;
    /* Usa tipografia globale */
  }
  .status {
    font-size: 0.6rem !important;
    padding: 4px 8px !important;
  }
}
/* Frame-specific product optimizations */
@media (max-width: 300px) {
  body:not(.viewport-fullscreen) .products-grid {
    gap: 1.3rem !important;
    padding: 0 0.05rem !important;
  }
  body:not(.viewport-fullscreen) .product-card .product-info {
    padding: 0.3rem 0.4rem !important;
  }
  body:not(.viewport-fullscreen) .product-card .product-info h3 {
    /* Usa tipografia globale */
    margin-bottom: 0.3rem !important;
  }
  body:not(.viewport-fullscreen) .product-card .product-info p {
    /* Usa tipografia globale */
    margin-bottom: 0.5rem !important;
  }
  body:not(.viewport-fullscreen) .product-footer .add-to-cart-btn {
    padding: 0.3rem 0.4rem !important;
    /* Usa tipografia globale */
  }
  body:not(.viewport-fullscreen) .product-footer {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 0.5rem !important;
    align-items: center !important;
  }
}

/* ===== KLARNA WIDGET STYLES ===== */
.klarna-widget {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: transparent;
  border: none;
}

.klarna-message-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.klarna-logo {
  width: 60px;
  height: auto;
  flex-shrink: 0;
}

.klarna-main-message {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.klarna-text {
  font-size: 0.8rem;
}

.klarna-amount {
  font-weight: 600;
  font-size: 0.8rem;
}

.klarna-learn-more {
  font-weight: 600;
  font-size: 0.8rem;
}

.klarna-learn-more::after {
  transform: translateX(-50%) scaleX(1);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .klarna-logo {
    width: 50px;
  }
}
/* ===== LOADING AND ERROR STATES ===== */
/* Loading State */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loading-state p {
  color: #666;
  /* Usa tipografia globale */
}

/* Error State */
.error-message {
  text-align: center;
  padding: 10rem 2rem;
  border-radius: var(--border-radius-base);
}

.error-icon {
  /* Usa tipografia globale */
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-message h3 {
  /* Usa tipografia globale */
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.error-message p {
  color: #666;
  /* Usa tipografia globale */
  line-height: 1.6;
  text-align: center;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(240, 219, 199, 0.05);
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(160, 54, 42, 0.1);
}

.empty-state-icon {
  /* Usa tipografia globale */
  color: #999;
  margin-bottom: 1rem;
}

.empty-state h3 {
  /* Usa tipografia globale */
  color: var(--ink-light);
  margin-bottom: 1rem;
}

.empty-state p {
  color: #666;
  /* Usa tipografia globale */
  line-height: 1.6;
}

/* Success State */
.success-message {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border: 1px solid #c3e6cb;
  border-radius: var(--border-radius-base);
  margin: 1rem 0;
}

.success-icon {
  /* Usa tipografia globale */
  color: #155724;
  margin-bottom: 0.5rem;
}

.success-message h4 {
  /* Usa tipografia globale */
  font-weight: 600;
  color: #155724;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: #155724;
  /* Usa tipografia globale */
  margin: 0;
}

/* Warning State */
.warning-message {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffeaa7;
  border-radius: var(--border-radius-base);
  margin: 1rem 0;
}

.warning-icon {
  /* Usa tipografia globale */
  color: #856404;
  margin-bottom: 0.5rem;
}

.warning-message h4 {
  /* Usa tipografia globale */
  font-weight: 600;
  color: #856404;
  margin-bottom: 0.5rem;
}

.warning-message p {
  /* Usa tipografia globale */
  color: #856404;
  margin: 0;
}

/* Info State */
.info-message {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border: 1px solid #bee5eb;
  border-radius: var(--border-radius-base);
  margin: 1rem 0;
}

.info-icon {
  /* Usa tipografia globale */
  color: #0c5460;
  margin-bottom: 0.5rem;
}

.info-message h4 {
  /* Usa tipografia globale */
  font-weight: 600;
  color: #0c5460;
  margin-bottom: 0.5rem;
}

.info-message p {
  /* Usa tipografia globale */
  color: #0c5460;
  margin: 0;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius-base);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-text.long {
  width: 100%;
}

.skeleton-image {
  height: 200px;
  width: 100%;
  margin-bottom: 1rem;
}

.skeleton-button {
  height: 2.5rem;
  width: 120px;
  margin-top: 1rem;
}

/* ===== POPUPS ===== */
/* Gestisce tutti gli stili per popup, modal e overlay */
/* ===== OVERLAY DI SFONDO PER POPUP ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #FBF6F2 !important;
  z-index: 99999 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

.popup-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Previene lo scroll del body quando i popup sono aperti - Safari iOS fix */
body.popup-open,
body.scroll-locked {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  /* Prevent elastic scrolling on iOS */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Additional mobile scroll prevention */
@media (max-width: 1023px) {
  body.popup-open,
  body.scroll-locked {
    /* Prevent any form of scrolling on mobile */
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none;
  }
  /* Ensure popup overlays cover the entire viewport */
  .popup-overlay,
  .mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
/* ===== STILI BASE COMUNI PER TUTTI I POPUP ===== */
.popup-base, .info-popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: var(--bg-light);
  z-index: 100000 !important;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-left: 2px solid rgba(160, 54, 42, 0.3);
  box-sizing: border-box;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* Mobile: popup fullscreen */
@media (max-width: 1023px) {
  .popup-base, .info-popup {
    width: 100vw;
    border-left: none;
  }
  .close-popup {
    width: 40px;
    height: 40px;
    top: 20px;
    right: 20px;
  }
  .popup-header {
    padding: 3rem 2.5rem 2rem 2.5rem;
    margin-bottom: 1.5rem;
  }
  .popup-content, #cart-popup-content, #user-popup-content {
    padding: 0 2.5rem 2.5rem 2.5rem;
  }
  .cart-total {
    margin: 0.5rem 2.5rem;
    padding: 0.8rem 1.2rem;
  }
  .cart-actions {
    padding: 0 2.5rem 2rem 2.5rem;
  }
  .cart-item-controls {
    justify-content: center;
    gap: 0.6rem;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }
  .cart-item-controls .quantity-btn {
    width: 32px;
    height: 32px;
    /* Usa tipografia globale */
  }
  .cart-item-controls .quantity {
    /* Usa tipografia globale */
    min-width: 35px;
    text-align: center;
  }
}
a.btn-primary.popup {
  max-width: 100%;
}

.popup-base.open, .open.info-popup {
  transform: translateX(0);
  opacity: 1;
}

/* Applicazione degli stili base ai popup specifici */
.close-popup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  /* Usa tipografia globale */
  font-weight: 600;
  transition: all 0.3s ease;
  position: absolute;
  top: 15px;
  right: 24px;
  z-index: 10005;
}

.close-popup:hover {
  background: rgba(142, 47, 34, 0.1);
  transform: rotate(90deg);
  color: var(--accent);
}

.close-popup i {
  /* Usa tipografia globale */
  color: inherit;
  font-weight: 500;
  font-size: 2rem;
}

/* ===== STILI COMUNI HEADER POPUP ===== */
.popup-header {
  background: transparent;
  padding: 2rem 2.5rem 0rem 1.5rem;
  margin-bottom: 0rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-header h3 {
  /* Usa tipografia globale */
  color: var(--accent);
  margin: 0;
  font-weight: 600;
  /* Usa tipografia globale */
}

/* Header legacy rimosso - ora tutti i popup usano .popup-header */
/* ===== USER POPUP STYLES - Checkout design system ===== */
/* Gli stili header sono ora gestiti dalla classe .popup-header comune */
/* ===== STILI COMUNI CONTENUTO POPUP ===== */
.popup-content, #cart-popup-content, #user-popup-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Contenuti specifici che estendono la classe base */
.user-welcome {
  text-align: center;
  margin-top: 3rem;
  transition: all 0.2s ease;
}

.welcome-title {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.5rem;
}

.welcome-email {
  color: var(--text-color);
  /* Usa tipografia globale */
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

/* ===== CART POPUP STYLES ===== */
.cart-popup-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  max-height: 100vh;
}

.cart-popup-content #cart-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.cart-items,
.cart-items-container {
  padding: 0;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
}

/* Base cart item styles */
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 1rem 0rem;
  border-bottom: 1px solid rgba(160, 54, 42, 0.1);
  align-items: center;
  transition: background-color 0.2s ease;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-item-info h4 {
  /* Usa tipografia globale */
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.cart-item-details {
  /* Usa tipografia globale */
  color: var(--ink-light);
  opacity: 0.8;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Remove button base and loading state in cart popup */
.cart-item-controls .remove-btn {
  position: relative;
  width: auto;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  margin-top: 1rem;
}

.cart-item-controls .remove-btn i {
  font-size: 1.2rem;
  line-height: 1;
}

.cart-item-controls .remove-btn .bx-loader-alt {
  display: none;
}

.cart-item-controls .remove-btn.loading .bx-trash {
  display: none !important;
}

.cart-item-controls .remove-btn.loading .bx-loader-alt {
  display: inline !important;
}

.cart-item-controls .remove-btn.loading::after {
  display: none;
}

.cart-item-controls .remove-btn:hover {
  color: var(--accent);
}

.cart-footer {
  padding: 1rem;
  border-top: 1px solid rgba(160, 54, 42, 0.2);
  background: rgba(240, 219, 199, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  bottom: 0;
  box-shadow: 0 -1px 10px rgba(160, 54, 42, 0.1);
  min-height: 80px;
}

.info-links {
  padding: 1rem;
  flex: 1;
}

.user-content {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  min-height: calc(100vh - 160px);
}

.info-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-light);
  text-decoration: none;
  padding: 12px;
  border-radius: var(--border-radius-base);
  transition: background-color 0.2s, color 0.2s;
  break-inside: avoid;
}

.info-links a:hover {
  background-color: var(--sand);
  color: var(--accent);
}

.info-links a svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
  flex-shrink: 0;
}

/* ===== USER FORM STYLES ===== */
.user-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.user-form input {
  padding: 16px;
  border: 2px solid var(--sand);
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
  background: var(--ink-dark);
  transition: border-color 0.3s ease;
}

.user-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== Popup Redesign: Cart & User ===== */
.cart-popup,
.user-popup {
  position: fixed;
  inset: 0;
  z-index: 100006 !important;
  margin: 0;
  padding: calc(env(safe-area-inset-top, 0) + 16px) 16px 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: auto;
  transform: none;
  opacity: 1;
  transition: none;
  overflow: visible;
}

.cart-popup.popup-mobile,
.user-popup.popup-mobile {
  gap: 16px;
}

.cart-popup.popup-desktop,
.user-popup.popup-desktop {
  display: block;
  padding: 0;
}

.cart-popup .popup-panel,
.user-popup .popup-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: min(240px, 100vw - 32px);
  max-height: calc(100vh - (env(safe-area-inset-top, 0) + 96px));
  margin-left: auto;
  border-radius: var(--border-radius-base);
  background: var(--bg-light);
  box-shadow: 0 24px 60px rgba(19, 8, 0, 0.28);
  padding: 26px 24px 24px;
  gap: 20px;
  animation: menuSlideIn 0.36s cubic-bezier(0.26, 0.84, 0.22, 1.02) forwards;
}

.user-popup .popup-panel {
  padding-top: 40px;
}

.cart-popup .popup-panel.cart-popup-content,
.user-popup .popup-panel.user-popup-content {
  height: auto;
  flex: initial;
}

.cart-popup .popup-panel--desktop,
.user-popup .popup-panel--desktop {
  position: absolute;
  top: var(--popup-top, 76px);
  left: var(--popup-left, calc(50% - 200px));
  width: var(--popup-width, min(400px, 100vw - 32px));
  max-width: var(--popup-width, min(400px, 100vw - 32px));
  min-width: var(--popup-width, min(400px, 100vw - 32px));
  max-height: min(600px, 100vh - 120px);
  margin: 0;
  padding: 1rem;
  border-radius: var(--border-radius-base);
  background: var(--bg-light);
  box-shadow: 0 18px 46px rgba(19, 8, 0, 0.18);
  animation: none;
  transform-origin: var(--popup-origin-x, 50%) var(--popup-origin-y, 0%);
  will-change: transform, opacity, clip-path;
  box-sizing: border-box;
}

.cart-popup .popup-panel--desktop.is-entering,
.user-popup .popup-panel--desktop.is-entering {
  animation: popupGenieIn 0.38s cubic-bezier(0.28, 0.78, 0.3, 1.08) forwards;
}

.cart-popup .popup-panel--desktop.closing,
.user-popup .popup-panel--desktop.closing {
  animation: popupGenieOut 0.3s cubic-bezier(0.7, -0.01, 0.5, 0.95) forwards;
  pointer-events: none;
}

.cart-popup .close-popup,
.user-popup .close-popup {
  position: absolute;
  top: 16px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  color: var(--ink-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.cart-popup .close-popup:hover,
.user-popup .close-popup:hover {
  background: rgba(142, 47, 34, 0.1);
  transform: rotate(90deg);
  color: var(--accent);
}

.cart-popup-content,
.user-popup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}

.cart-popup .popup-panel #cart-content,
.user-popup .popup-panel #user-popup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  min-height: 0;
}

.cart-popup .popup-panel #cart-content .cart-items-container {
  flex: 1;
  max-height: 100%;
  padding-right: 0;
  padding-top: 2.5rem;
}

.cart-popup .cart-total {
  margin: 0;
  padding: 0.7rem;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.popup-panel--desktop .cart-actions {
  flex-direction: row;
  gap: 10px;
  padding: 0.7rem;
}

.popup-panel .popup-buttons {
  gap: 8px;
}

.user-popup .popup-menu {
  margin-top: 3rem; /* Default margin for non-logged users */
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0.7rem 0.7rem 0;
}

/* When user is logged in (user-welcome block is present), reduce margin-top */
.user-popup .user-welcome + .popup-menu {
  margin-top: 1rem;
}

.user-popup .popup-menu__link {
  background: none;
  border: none;
  box-shadow: none;
  width: 100%;
  padding: 1rem 0;
  /* Usa tipografia globale */
  font-weight: 400;
  /* Usa tipografia globale */
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-light);
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.user-popup .popup-menu__label {
  flex: 1;
  text-align: left;
  padding-top: 0;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.user-popup .popup-menu__link:hover,
.user-popup .popup-menu__link:focus-visible {
  color: var(--accent);
  transform: translateX(5px);
}

.user-popup .popup-menu__link .arrow {
  /* Usa tipografia globale */
  line-height: 1;
  margin-right: 0;
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-popup .popup-menu__link:hover .arrow,
.user-popup .popup-menu__link:focus-visible .arrow {
  transform: translateX(5px);
}

.user-popup .popup-menu__link:last-child {
  border-bottom: none;
}

.user-popup .popup-menu__link--action {
  background: none;
  font-weight: 400;
}

@media (max-width: 1023px) {
  .cart-popup.popup-mobile,
  .user-popup.popup-mobile {
    padding: 0;
    background: transparent;
    justify-content: flex-end;
    align-items: stretch;
    overflow: hidden;
  }
  .cart-popup.popup-mobile .popup-panel,
  .user-popup.popup-mobile .popup-panel,
  .popup-panel--mobile {
    width: 100vw;
    height: 100vh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 3rem 1.8rem;
    animation: popupFullscreenIn 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 1.5rem;
  }
  .cart-popup.popup-mobile .popup-panel.closing,
  .user-popup.popup-mobile .popup-panel.closing,
  .popup-panel--mobile.closing {
    animation: popupFullscreenOut 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .cart-popup.popup-mobile .popup-panel #cart-content,
  .user-popup.popup-mobile .popup-panel #user-popup-content {
    padding: 0;
    margin: 0;
  }
  .cart-popup.popup-mobile .close-popup,
  .user-popup.popup-mobile .close-popup {
    position: absolute;
    top: 1.5rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
    margin: 0;
    z-index: 2;
  }
  .cart-popup.popup-mobile .popup-content, .cart-popup.popup-mobile #user-popup-content, .cart-popup.popup-mobile #cart-popup-content,
  .user-popup.popup-mobile .popup-content,
  .user-popup.popup-mobile #user-popup-content,
  .user-popup.popup-mobile #cart-popup-content {
    padding: 0;
  }
  .user-popup.popup-mobile .popup-content, .user-popup.popup-mobile #user-popup-content, .user-popup.popup-mobile #cart-popup-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2.5rem;
    width: 100%;
  }
  .user-popup.popup-mobile .popup-menu {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0;
  }
  .user-popup.popup-mobile .popup-menu__link {
    padding: 1rem 0;
    /* Usa tipografia globale */
    /* Usa tipografia globale */
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }
  .user-popup.popup-mobile .popup-menu__link .arrow {
    /* Usa tipografia globale */
    margin-right: 0;
  }
}
@media (max-width: 640px) {
  .cart-popup:not(.popup-mobile) .popup-panel,
  .user-popup:not(.popup-mobile) .popup-panel {
    width: calc(100vw - 24px);
    padding: 24px 20px 20px;
    border-radius: 24px;
  }
  .cart-popup:not(.popup-mobile) .close-popup,
  .user-popup:not(.popup-mobile) .close-popup {
    top: 12px;
    right: 24px;
    width: 40px;
    height: 40px;
  }
}
@media (min-width: 1024px) {
  .cart-popup,
  .user-popup {
    pointer-events: auto;
  }
  .cart-popup .popup-panel,
  .user-popup .popup-panel {
    margin-left: 0;
  }
  .cart-popup.popup-desktop .close-popup,
  .user-popup.popup-desktop .close-popup {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--ink-light);
  }
  .cart-popup.popup-desktop .close-popup:hover,
  .cart-popup.popup-desktop .close-popup:focus-visible,
  .user-popup.popup-desktop .close-popup:hover,
  .user-popup.popup-desktop .close-popup:focus-visible {
    background: rgba(142, 47, 34, 0.1);
    transform: rotate(90deg);
    color: var(--accent);
  }
  .popup-panel--desktop .popup-buttons {
    gap: 10px;
  }
  /* Desktop: riduci altezza dei pulsanti nel popup carrello */
  .popup-panel--desktop .cart-actions .btn-primary, .popup-panel--desktop .cart-actions .user-form button, .user-form .popup-panel--desktop .cart-actions button,
  .popup-panel--desktop .cart-actions .btn-secondary {
    padding: 0.6rem 1.1rem;
    min-height: 2.6rem;
    line-height: 1.3;
  }
  .popup-panel--desktop .cart-actions {
    align-items: center;
  }
}
/* ===== RESPONSIVE POPUP STYLES ===== */
/* ===== MEDIA QUERIES RESPONSIVE COMUNI ===== */
@media (max-width: 768px) {
  .popup-header {
    padding: 2rem;
  }
  .popup-content, #user-popup-content, #cart-popup-content {
    padding: 0 1rem 1rem 1rem;
  }
}
@media (max-width: 768px) {
  /* Pulsanti popup più piccoli su mobile */
  .user-form button,
  .popup-buttons button {
    padding: 1rem 1.4rem;
    /* Usa tipografia globale */
    border-radius: var(--border-radius-base);
  }
  .close-popup {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 480px) {
  .themed-form-input {
    padding: 0.8rem;
    /* Usa tipografia globale */
  }
  /* Pulsanti ancora più piccoli su schermi molto piccoli */
  .user-form button,
  .popup-buttons button {
    padding: 0.8rem 1.2rem;
    /* Usa tipografia globale */
    border-radius: var(--border-radius-base);
  }
}
/* Desktop Layout for Popups - using unified popup styles */
@media (min-width: 1024px) {
  /* Orders popup desktop layout - usando struttura generica */
  .orders-toolbar {
    padding: 0 0 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .orders-toolbar .right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
  }
  .orders-list {
    padding: 0 1.5rem;
    flex: 1;
    overflow-y: auto;
  }
  .order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .popup-content, #user-popup-content, #cart-popup-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
}
/* Mobile Layout for Cart Popup */
@media (max-width: 767px) {
  /* Cart popup header now uses unified .popup-header styles */
  /* Cart-specific mobile styles removed - using unified popup styles */
}
@media (max-width: 768px) {
  .popup-content, #user-popup-content, #cart-popup-content {
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
  }
  .cart-popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 120px); /* Lascia spazio per header e padding */
  }
  .cart-popup-content #cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 75vh;
  }
  .cart-items-container {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 300px); /* Limita l'altezza per lasciare spazio al footer */
    padding: 0;
    margin-bottom: 0;
  }
  .cart-item {
    padding: 1.2rem 0;
    gap: 1rem;
  }
  /* Mobile: constrain cart item image */
  .cart-item img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .cart-item-controls {
    justify-content: flex-end;
  }
  .cart-item-controls .remove-btn:hover {
    color: var(--accent);
  }
  .cart-total {
    margin: 0.5rem 1rem;
    padding: 1rem;
    flex-shrink: 0;
  }
  .cart-actions {
    padding: 0 1rem 2rem 1rem;
    flex-shrink: 0;
    margin-top: auto; /* Spinge le azioni verso il bottom */
  }
}
/* Desktop Layout for Popups - Gucci-style layout */
@media (min-width: 1024px) {
  .popup {
    max-width: 500px;
    width: 90vw;
  }
  .popup-content, #user-popup-content, #cart-popup-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .popup-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(160, 54, 42, 0.1);
    flex-shrink: 0;
  }
  .cart-popup .popup-panel #cart-content .cart-items-container {
    margin-top: 1rem;
  }
  .cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
  }
  .cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid rgba(160, 54, 42, 0.08);
    transition: background-color 0.2s ease;
  }
  .cart-item:last-child {
    border-bottom: none;
  }
  .cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .cart-item-info h4 {
    /* Usa tipografia globale */
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
  }
  .cart-item-details {
    /* Usa tipografia globale */
    color: #666;
    margin: 0;
  }
  .cart-item-price {
    /* Usa tipografia globale */
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.5rem;
  }
  .cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
  }
  .cart-item-controls .remove-btn {
    /* Usa tipografia globale */
    margin-top: 1.5rem;
    padding-right: 0.6rem;
  }
  .cart-item-controls .remove-btn:hover {
    color: var(--accent);
  }
  .cart-total {
    margin: 0;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
  }
  .cart-actions {
    padding: 1.5rem 2rem 2rem 2rem;
    flex-shrink: 0;
  }
}
/* Regola specifica per schermi sopra 1023px */
@media (min-width: 1024px) {
  .cart-item-controls .remove-btn {
    margin-top: 1.5rem !important;
  }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .popup {
    max-width: 500px;
    width: 90vw;
  }
  .popup-content, #user-popup-content, #cart-popup-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .popup-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(160, 54, 42, 0.1);
    flex-shrink: 0;
  }
  .cart-popup .popup-panel #cart-content .cart-items-container {
    margin-top: 1rem;
  }
  .cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
  }
  .cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid rgba(160, 54, 42, 0.08);
    transition: background-color 0.2s ease;
  }
  .cart-item:last-child {
    border-bottom: none;
  }
  .cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .cart-item-details {
    color: #666;
    margin: 0;
  }
  .cart-item-price {
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.5rem;
  }
  .cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
  }
  .cart-item-controls .remove-btn {
    margin-top: 1rem !important;
    padding-right: 0.6rem;
  }
  .cart-item-controls .remove-btn:hover {
    color: var(--accent);
  }
  .cart-total {
    margin: 0;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
  }
  .cart-actions {
    padding: 1.5rem 2rem 2rem 2rem;
    flex-shrink: 0;
  }
}
/* Cart total section */
.cart-total {
  padding: 1rem 1.5rem;
  margin: 0.5rem 1.5rem;
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-family: "Montserrat", sans-serif;
}

.cart-total-row span {
  /* Usa tipografia globale */
  color: var(--ink);
}

.cart-total-row.total {
  border-top: 1px solid rgba(160, 54, 42, 0.2);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-weight: 600;
}

.cart-total-row.total span {
  /* Usa tipografia globale */
  font-weight: 600;
  margin-top: 0;
}

.cart-total-row .free {
  color: var(--accent);
  font-weight: 500;
}

/* Cart actions using unified styles */
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.cart-total-amount {
  color: var(--ink);
  font-weight: 600;
}

/* ===== EMPTY CART STYLES ===== */
.empty-cart {
  text-align: center;
  padding: 0.7rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: left;
}

.empty-cart .store-button {
  background: none;
  border: none;
  padding: 1rem 0;
  color: var(--ink-light);
  opacity: 0.8;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.empty-cart .store-button::before {
  display: none;
}

.empty-cart .store-button:hover,
.empty-cart .store-button:focus-visible {
  color: var(--accent);
}

.empty-cart h4 {
  /* Usa tipografia globale */
  color: var(--accent);
  margin: 0;
  font-weight: 600;
}

.empty-cart p {
  color: var(--ink-light);
  padding: 0 0 1rem 0;
  margin: 0;
  opacity: 0.8;
  line-height: 1.5;
}

/* Mobile responsive per empty cart */
@media (max-width: 1023px) {
  .empty-cart {
    padding: 0;
  }
}
@media (max-width: 768px) {
  .empty-cart {
    padding: 0;
  }
}
/* ===== ORDERS POPUP STYLES ===== */
.orders-toolbar {
  padding: 0 0 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(160, 54, 42, 0.1);
  flex-shrink: 0;
}

.orders-toolbar .right {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.orders-toolbar .hint {
  color: var(--ink-light);
  /* Usa tipografia globale */
  opacity: 0.7;
}

/* I pulsanti della toolbar ordini ora usano le classi standard .btn-primary e .btn-secondary */
.orders-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem;
}

.loading-message, .empty-orders {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--ink-light);
  font-style: italic;
}

.loading-message {
  opacity: 0.7;
}

.order-item {
  margin-bottom: 1rem;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(160, 54, 42, 0.1);
  width: 100%;
}

.order-info {
  flex: 1;
}

.order-name {
  font-weight: 600;
  color: var(--ink);
  /* Usa tipografia globale */
  margin-bottom: 0.3rem;
  /* Usa tipografia globale */
}

.order-details {
  color: var(--ink-light);
  /* Usa tipografia globale */
  opacity: 0.8;
  line-height: 1.4;
}

.order-actions {
  flex-shrink: 0;
}

/* I pulsanti delle azioni ordini ora usano le classi standard .btn-primary e .btn-secondary */
.order-status {
  font-weight: 500;
  /* Usa tipografia globale */
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
}

.order-status.canceled {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.order-status.paid {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
}

.order-pay {
  margin-top: 0.8rem;
  padding: 1rem;
  background: rgba(160, 54, 42, 0.05);
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(160, 54, 42, 0.1);
}

.order-pay #mini-card {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(160, 54, 42, 0.2);
}

/* Mobile responsive per orders popup - usando padding generici */
@media (max-width: 1023px) {
  .orders-toolbar {
    margin-bottom: 1rem;
    flex-shrink: 0;
  }
  .orders-list {
    padding: 0 2.5rem 2rem 2.5rem;
    flex: 1;
    overflow-y: auto;
  }
  .order-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .order-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}
@media (max-width: 768px) {
  .orders-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .orders-toolbar .right {
    justify-content: space-between;
  }
}
/* ===== FRAMES UNIFIED ===== */
/* Gestisce tutti gli stili per frame desktop e mobile in un unico file */
/* ===== FRAME BASE STYLES ===== */
.frame-media {
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay nero con loader che copre tutto il frame */
.frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
}

/* ===== DESKTOP FRAME STYLES ===== */
@media (min-width: 769px) {
  .wall {
    background-image: url("../img/wall-desktop.webp"), linear-gradient(135deg, #f5f5dc 0%, #e6dcc6 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .frame-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
  }
  .frame {
    width: 60vh;
    height: 90vh;
    max-width: 500px;
    max-height: 750px;
    min-width: 300px;
    min-height: 450px;
    aspect-ratio: 2/3;
    border-radius: var(--border-radius-base);
    border: 12px solid #333;
    box-shadow: 0 8px 32px 0 rgba(48, 29, 9, 0.25), 0 0 0 3px #444 inset, 0 2px 6px 0 #222 inset, inset 0 0 15px rgba(255, 255, 255, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
  }
}
/* ===== TABLET FRAME STYLES ===== */
@media (min-width: 481px) and (max-width: 768px) {
  .wall {
    background-image: url("../img/wall-desktop.webp"), linear-gradient(135deg, #f5f5dc 0%, #e6dcc6 100%);
  }
  .frame-wrap {
    width: 90vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .frame {
    height: 50vh;
    width: 33vh;
    max-width: 33vh;
    min-width: 200px;
    min-height: 300px;
    max-height: 60vh;
    aspect-ratio: 2/3;
    margin: 0 auto;
    border-radius: var(--border-radius-base);
    border: 9px solid #333;
    box-shadow: 0 6px 28px 0 rgba(48, 29, 9, 0.22), 0 0 0 2px #444 inset, 0 1px 5px 0 #222 inset, inset 0 0 12px rgba(255, 255, 255, 0.12), inset 0 0 25px rgba(255, 255, 255, 0.06);
  }
}
/* ===== MOBILE FRAME STYLES ===== */
@media (max-width: 480px) {
  .wall {
    background-image: url("../img/wall-mobile.webp"), linear-gradient(135deg, #f5f5dc 0%, #e6dcc6 100%);
  }
  .frame-wrap {
    width: 100vw;
    left: 50.3%;
    top: 37%;
    transform: translate(-50%, -50%);
  }
  .frame {
    height: 41.5vh;
    width: 27.06vh;
    max-width: 27.06vh;
    min-width: 150px;
    min-height: 200px;
    max-height: 50vh;
    aspect-ratio: 2/3;
    margin: 0 auto;
    border-radius: 0;
    border: 7px solid #333;
    box-shadow: 0 4px 24px 0 rgba(48, 29, 9, 0.18), 0 0 0 2px #444 inset, 0 1px 4px 0 #222 inset, inset 0 0 10px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
  }
}
/* ===== FRAME MOBILE OPTIMIZATIONS ===== */
/* CSS dedicato per l'ottimizzazione delle pagine visualizzate nel frame su dispositivi mobile */
/* Variabili CSS per frame mobile */
:root {
  --frame-mobile-padding: 0.3rem;
  --frame-mobile-font-size: 0.85rem;
  --frame-mobile-line-height: 1.4;
  --frame-mobile-border-radius: var(--border-radius-base);
}

/* Ottimizzazioni generali per frame mobile */
@media (max-width: 600px) {
  /* Assicura che il contenuto sia sempre visibile nel frame */
  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    margin: 0;
    padding: 0;
  }
  /* Centra e aggiunge padding ai contenuti del frame */
  .page-wrapper,
  .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 1rem 0.8rem;
    box-sizing: border-box;
  }
  /* Migliora la leggibilità del testo */
  .static-page-content {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1.2rem;
    margin: 0 auto;
    box-sizing: border-box;
  }
  /* Centra i container delle pagine statiche */
  .static-page-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }
  /* Padding interno per tutti gli elementi di testo */
  .static-page-content h1,
  .static-page-content h2,
  .static-page-content h3,
  .static-page-content h4,
  .static-page-content h5,
  .static-page-content h6 {
    padding: 0 0.5rem;
    margin: 1rem 0 0.5rem 0;
  }
  .static-page-content p {
    padding: 0 0.5rem;
    margin: 0.8rem 0;
    line-height: 1.5;
  }
  .static-page-content div {
    padding: 0 0.3rem;
  }
  /* Ottimizza gli elementi interattivi per touch */
  .static-page-content a,
  .static-page-content button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin: 0.2rem 0;
    border-radius: var(--frame-mobile-border-radius);
    transition: all 0.2s ease;
  }
  .static-page-content a:hover,
  .static-page-content a:focus {
    background: rgba(160, 54, 42, 0.1);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}
/* Ultra-compact frame variables for very small screens */
@media (max-width: 400px) {
  :root {
    --frame-mobile-padding: 0.2rem;
    --frame-mobile-font-size: 0.8rem;
    --frame-mobile-line-height: 1.3;
    --frame-mobile-border-radius: var(--border-radius-base);
  }
  .static-page-content {
    padding: 1rem 0.8rem;
  }
  .static-page-content h1,
  .static-page-content h2,
  .static-page-content h3,
  .static-page-content h4,
  .static-page-content h5,
  .static-page-content h6 {
    padding: 0 0.3rem;
    margin: 0.8rem 0 0.4rem 0;
    /* Usa tipografia globale */
  }
  .static-page-content p {
    padding: 0 0.3rem;
    margin: 0.6rem 0;
    /* Usa tipografia globale */
  }
}
/* Ultra-small frame optimizations for very small mobile frames */
@media (max-width: 300px) {
  :root {
    --frame-mobile-padding: 0.1rem;
    --frame-mobile-font-size: 0.7rem;
    --frame-mobile-line-height: 1.2;
    --frame-mobile-border-radius: var(--border-radius-base);
  }
  .static-page-content {
    padding: 0.8rem 0.4rem !important;
  }
  .static-page-content h1,
  .static-page-content h2,
  .static-page-content h3,
  .static-page-content h4,
  .static-page-content h5,
  .static-page-content h6 {
    padding: 0 0.2rem !important;
    margin: 0.6rem 0 0.3rem 0 !important;
    /* Usa tipografia globale */
  }
  .static-page-content p {
    padding: 0 0.2rem !important;
    margin: 0.4rem 0 !important;
    /* Usa tipografia globale */
  }
  .static-page-content a,
  .static-page-content button {
    min-height: 36px !important;
    min-width: 36px !important;
    padding: 0.3rem !important;
    /* Usa tipografia globale */
  }
}
/* ===== FRAME CONTENT OPTIMIZATIONS ===== */
/* Ottimizzazioni specifiche per il contenuto all'interno dei frame */
/* Store page frame optimizations */
@media (max-width: 768px) and (min-width: 301px) {
  .store-page .products-grid {
    gap: 4rem !important;
  }
  .store-page .product-info {
    padding: 1rem 1rem !important;
  }
  .store-page .product-info h3 {
    margin-bottom: 0.4rem !important;
  }
  .store-page .product-info p {
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
    margin: 0.25rem 0 0.6rem !important;
  }
  .store-page .product-footer {
    padding-top: 16px !important;
    row-gap: 18px !important;
  }
  .store-page .status {
    padding: 6px 10px !important;
    border-radius: var(--border-radius-base) !important;
  }
  .store-page .add-to-cart-btn {
    padding: 12px 16px !important;
    margin-top: 10px !important;
    border-radius: var(--border-radius-base) !important;
  }
  /* Frame-only safety spacing */
  body:not(.viewport-fullscreen) .product-footer {
    padding-left: 12px !important;
    padding-right: 12px !important;
    column-gap: 8px !important;
    row-gap: 12px !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  body:not(.viewport-fullscreen) .product-footer .add-to-cart-btn {
    width: 100% !important;
    margin-top: 8px !important;
    box-sizing: border-box !important;
  }
  body:not(.viewport-fullscreen) .status {
    font-size: 0.68rem !important;
    padding: 4px 8px !important;
    border-radius: var(--border-radius-base) !important;
    letter-spacing: 0.03em !important;
  }
  body:not(.viewport-fullscreen) .add-to-cart-btn {
    font-size: 0.78rem !important;
    padding: 9px 12px !important;
    border-radius: var(--border-radius-base) !important;
    letter-spacing: 0.04em !important;
    line-height: 1.15 !important;
  }
}
/* Very small frame optimizations */
@media (max-width: 420px) and (min-width: 301px) {
  body:not(.viewport-fullscreen) .products-grid {
    grid-template-columns: 1fr !important;
    gap: 2.1rem !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body:not(.viewport-fullscreen) .product-card img,
  body:not(.viewport-fullscreen) .products-grid .product-image {
    height: auto !important;
    min-height: 180px !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    border-radius: var(--border-radius-base) !important;
  }
  body:not(.viewport-fullscreen) .product-info p {
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
  }
  body:not(.viewport-fullscreen) .store-page .add-to-cart-btn,
  body:not(.viewport-fullscreen) .add-to-cart-btn {
    padding: 9px 12px !important;
    border-radius: var(--border-radius-base) !important;
  }
  body:not(.viewport-fullscreen) .store-page .product-info {
    padding: 0.75rem 0.6rem !important;
  }
  body:not(.viewport-fullscreen) .product-footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
    row-gap: 10px !important;
    column-gap: 8px !important;
    align-items: center !important;
  }
  body:not(.viewport-fullscreen) .product-footer .add-to-cart-btn {
    width: calc(100% - 12px) !important;
    margin: 8px 6px 0 !important;
    padding: 8px 10px !important;
    border-radius: var(--border-radius-base) !important;
    line-height: 1.15 !important;
  }
}
/* Store info in frames */
@media (max-width: 600px) and (min-width: 301px) {
  .store-info {
    margin-top: 0.5rem !important;
    padding: 0.4rem !important;
  }
  .drop-status {
    padding: 0.3rem !important;
    border-radius: var(--border-radius-base) !important;
    margin: 0.2rem 0 !important;
  }
}
@media (max-width: 400px) {
  .store-info {
    margin-top: 0.3rem !important;
    padding: 0.3rem !important;
  }
  .drop-status {
    padding: 0.7rem !important;
    margin: 4rem 0 0 0 !important;
  }
}
/* ===== FRAME MODAL STYLES ===== */
/* Stili per modal e overlay all'interno dei frame */
.fullscreen-modal-frame-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.fullscreen-modal-frame {
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  max-height: 800px;
  background: var(--bg-light);
  border-radius: var(--border-radius-base);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.fullscreen-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-base);
}

.fullscreen-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fullscreen-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* ===== RESPONSIVE FRAME ADJUSTMENTS ===== */
@media (max-width: 300px) {
  .frame {
    min-width: 120px !important;
    min-height: 180px !important;
    border-width: 5px !important;
  }
  .static-page-content {
    padding: 0.5rem 0.4rem !important;
  }
  .static-page-content h1,
  .static-page-content h2,
  .static-page-content h3 {
    /* Usa tipografia globale */
    padding: 0 0.2rem !important;
    margin: 0.5rem 0 0.3rem 0 !important;
  }
  .static-page-content p {
    /* Usa tipografia globale */
    padding: 0 0.2rem !important;
    margin: 0.4rem 0 !important;
    line-height: 1.3 !important;
  }
}
/* ===== FRAME MODE STORE STYLES ===== */
body:not(.viewport-fullscreen) .store-page .store-content-section,
body:not(.viewport-fullscreen) .store-page .site-footer,
body:not(.viewport-fullscreen) .store-page .store-fullscreen-logo-overlay {
  display: none !important;
}
body:not(.viewport-fullscreen) .store-page .store-fullscreen-hero {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}
body:not(.viewport-fullscreen) .store-page .store-fullscreen-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Block scroll in frame mode */
body:not(.viewport-fullscreen) {
  overflow: hidden !important;
}

/* Ensure iframe content doesn't scroll in frame mode */
body:not(.viewport-fullscreen) .frame,
body:not(.viewport-fullscreen) #store-root {
  overflow: hidden !important;
}

/* Mobile specific frame mode adjustments */
@media (max-width: 768px) {
  body:not(.viewport-fullscreen) .store-page .scroll-text::before {
    font-size: 0.8rem !important;
  }
}
/* Stripe Payment Element Styles */
.stripe-payment-element {
  padding: 1rem 1.25rem;
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
  background: transparent !important;
  background-color: transparent !important;
  min-height: 260px; /* evita quadratino e flicker */
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

input#Field-numberInput {
  box-shadow: none !important;
  outline: none !important;
  border-color: var(--container-border) !important;
}

input#Field-numberInput:focus {
  box-shadow: none !important;
  outline: none !important;
  border-color: var(--bg-dark) !important;
}

.stripe-payment-element:focus-within {
  border-color: var(--bg-dark);
  background: rgba(255, 255, 255, 0.97) !important;
  transform: translateY(-1px);
}

/* Stripe Input Field Styles */
.stripe-payment-element input,
.stripe-payment-element .Input,
.stripe-payment-element .p-Input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  color: rgba(45, 24, 16, 0.9) !important;
}

/* Stripe Elements styling override */
.StripeElement {
  background: transparent !important;
}

.StripeElement input {
  background: transparent !important;
  background-color: transparent !important;
}

.stripe-payment-errors {
  color: #ff6b6b;
  margin-top: 8px;
}

/* Stili per la sezione pagamento inline nel form */
.payment-section-inline {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.payment-section-inline .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  color: var(--ink-light);
  /* Usa tipografia globale */
  font-weight: 600;
  font-family: var(--font-body, inherit);
}

.payment-section-inline #payment-element,
.payment-section-inline #payment-request-button {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 12px;
  padding: 1rem;
}

.payment-section-inline .security-info {
  display: flex;
  align-items: center;
  gap: 6px;
  /* Usa tipografia globale */
  color: var(--text-muted);
  margin-top: 12px;
}

/* Login Link Styles */
.login-link {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--sand);
}

/* =============================================================
   Checkout layout e componenti (spostati da _unified-layout.scss)
   ============================================================= */
/* Layout principale del checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  margin-top: 1.5rem;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.checkout-left-column {
  min-width: 0;
}

.checkout-right-column {
  min-width: 0;
}

/* Sezioni del form */
.form-section {
  margin-bottom: 1.5rem;
  padding: 0;
  background: none;
  border-radius: var(--container-border-radius);
  border: none;
}

.form-section:first-of-type {
  margin-top: 0;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section h2 {
  color: var(--ink-light);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-section h3 {
  color: var(--ink-light);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group-small {
  flex: 0 0 100px;
}

/* Elementi del carrello */
.cart-items-list {
  margin-top: 1rem;
}

.enhanced-cart-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
  margin-bottom: 1rem;
}

.item-image {
  align-self: center;
}

.item-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 1rem;
}

.item-details {
  text-align: center;
}

.item-title {
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--ink);
}

.item-description {
  color: #666;
  font-size: 0.85rem !important;
  margin: 1rem;
  text-align: center;
}

.item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
}

/* Dropdown quantity control */
.quantity-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
}

.quantity-dropdown:focus-within {
  border-color: var(--accent);
}

.qty-label {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.9rem;
}

.qty-select {
  border: none;
  background: transparent;
  font-weight: 500;
  color: var(--ink);
  appearance: none;
  padding-right: 18px;
  cursor: pointer;
}

.qty-select:focus {
  outline: none;
}

.quantity-dropdown .qty-select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M6 8L0 0h12z"/></svg>');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 12px 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--container-border);
  background: var(--container-bg);
  border-radius: var(--container-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--container-bg-alt);
}

.quantity {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.item-total {
  font-weight: 600;
  color: var(--sand-dark);
}

.remove-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.remove-item:hover {
  color: var(--accent);
}

/* Riepilogo ordine */
.order-summary-card {
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
  padding: 1.5rem;
}

.summary-details {
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.summary-row.total {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--sand-dark);
  padding-top: 1rem;
  margin-top: 1rem;
}

.summary-divider {
  height: 1px;
  background: var(--container-border);
  margin: 1rem 0;
}

.free {
  color: var(--accent);
}

/* Link continua acquisti */
.continue-shopping-btn {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Alza leggermente l’icona rispetto al testo */
.continue-shopping-btn i {
  transform: translateY(-1px);
}

.continue-shopping-btn .continue-shopping-text {
  color: var(--ink-light);
  font-weight: 600;
}

/* Sezioni aggiuntive */
.billing-address-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--container-border);
}

.section-subtitle,
.section-title {
  color: var(--ink-light);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.1rem;
}

.security-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.item-count {
  color: #666;
  font-size: 0.9rem;
  margin-left: auto;
}

.checkout-cancellation-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
}

/* Responsive per checkout */
@media (max-width: 1023px) and (min-width: 768px) {
  .checkout-layout {
    padding: 0 var(--container-padding-tablet);
    gap: var(--content-gap-tablet);
  }
}
@media (max-width: 767px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: var(--content-gap-mobile);
    padding: 0 calc(var(--container-padding-mobile) * 0.6);
  }
  .form-row {
    gap: 0.75rem;
  }
  .form-group-small {
    flex: 1;
  }
  .enhanced-cart-item {
    flex-direction: column;
    align-items: center;
  }
  .item-controls {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
}
/* Disabilitazione dei controlli quantità durante operazioni */
.qty-btn:disabled,
.remove-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== TEAM STYLES ===== */
/* Tutti gli stili per le pagine del team */
/* ===== TEAM PAGE STYLES - Completo e Ottimizzato ===== */
/* Correzione layout pagina team per evitare sovrapposizione con footer */
.team-page {
  min-height: calc(100vh - 200px);
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.team-page .main-content {
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.team-page .static-page-container {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
}

/* Assicura che il footer non si sovrapponga */
body.team-page {
  padding-bottom: 0;
}

body.team-page .site-footer {
  margin-top: 3rem;
  position: relative;
  z-index: 2;
  clear: both;
}

/* Introduzione team */
.team-intro {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.team-intro p {
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

/* Griglia membri del team */
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

/* Card membri */
.member-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--border-radius-base);
  padding: 2rem;
  border: 1px solid rgba(240, 219, 199, 0.3);
  text-align: center;
  box-shadow: 0 4px 20px rgba(45, 24, 16, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Nuovo layout semplice senza riquadri */
.team-members-simple {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.member-simple {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(240, 219, 199, 0.3);
}

.member-simple:last-child {
  border-bottom: none;
}

.member-image-simple {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(240, 219, 199, 0.5);
  flex-shrink: 0;
}

.member-image-simple img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info-simple {
  flex: 1;
  text-align: left;
}

.member-info-simple h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(160, 54, 42, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(45, 24, 16, 0.15);
}

.member-card:hover::before {
  opacity: 1;
}

.member-card.featured {
  border: 2px solid rgba(160, 54, 42, 0.2);
  background: rgb(255, 255, 255);
}

.member-card.featured::before {
  opacity: 1;
  height: 6px;
}

/* Immagini membri */
.member-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(240, 219, 199, 0.5);
  position: relative;
}

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

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

/* Info membri */
.member-info h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.member-role {
  color: rgba(45, 24, 16, 0.7);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member-description {
  line-height: 1.6;
  color: var(--ink);
  text-align: left;
  margin-bottom: 1.5rem;
}

/* Specialità membri */
.member-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.specialty {
  background: rgba(160, 54, 42, 0.1);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(160, 54, 42, 0.2);
  transition: all 0.3s ease;
}

.specialty:hover {
  background: rgba(160, 54, 42, 0.15);
  transform: translateY(-1px);
}

/* Sezione valori */
.team-values {
  margin: 4rem 0;
  text-align: center;
}

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

.value-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(240, 219, 199, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(45, 24, 16, 0.1);
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: rgba(160, 54, 42, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.value-icon i {
  width: 28px;
  height: 28px;
}

.value-item h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.value-item p {
  line-height: 1.6;
  color: var(--ink);
}

/* Sezione contatto team */
.team-contact {
  background: rgba(240, 219, 199, 0.1);
  padding: 2.5rem;
  border-radius: var(--border-radius-base);
  text-align: center;
  margin-top: 3rem;
  border: 1px solid rgba(240, 219, 199, 0.3);
}

.team-contact h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-contact p {
  color: var(--ink);
}

.team-contact a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(160, 54, 42, 0.3);
  transition: all 0.3s ease;
}

.team-contact a:hover {
  border-bottom-color: var(--accent);
  color: #8B2F24;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-intro {
    margin-bottom: 2rem;
  }
  .team-members {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
  }
  .member-card {
    padding: 1.5rem;
  }
  .member-image {
    width: 100px;
    height: 100px;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .value-item {
    padding: 1.5rem;
  }
  .team-contact {
    padding: 2rem 1.5rem;
  }
  .member-simple {
    flex-direction: column;
    text-align: center;
    gap: 0rem;
  }
  .member-image-simple {
    margin: 0 auto;
  }
  .member-info-simple {
    text-align: center;
  }
}
/* Team page mobile frame optimizations */
@media (max-width: 600px) {
  .team-intro {
    margin-bottom: 1rem;
  }
  .team-intro p {
    margin-bottom: 0.6rem;
  }
  .team-members-simple {
    gap: 1rem;
  }
  .member-simple {
    padding: 0.8rem;
    border-radius: var(--border-radius-base);
  }
  .member-image-simple {
    width: 100px;
    height: 100px;
    margin-bottom: 0rem;
  }
  .member-image-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .member-info-simple h3 {
    margin-bottom: 0.3rem;
  }
  .member-role {
    margin-bottom: 0.4rem;
    opacity: 0.8;
  }
  .member-description {
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }
  .member-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .specialty {
    padding: 0.2rem 0.4rem;
    background: rgba(160, 54, 42, 0.1);
    border-radius: var(--border-radius-base);
    color: var(--accent);
  }
}
@media (max-width: 400px) {
  .member-simple {
    padding: 0.6rem;
  }
  .member-image-simple {
    width: 100px;
    height: 100px;
  }
  .member-description {
    line-height: 1.2;
  }
  .specialty {
    padding: 0.15rem 0.3rem;
  }
}
@media (max-width: 480px) {
  .member-specialties {
    justify-content: center;
  }
  .specialty {
    padding: 0.3rem 0.6rem;
  }
  .value-icon {
    width: 50px;
    height: 50px;
  }
  .value-icon i {
    width: 24px;
    height: 24px;
  }
}
/* Icon styles for team page - moved to generic styles */
.login-button {
  background: transparent;
  color: #A0362A;
  border: 2px solid #A0362A;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.login-button:hover {
  background: #A0362A;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(160, 54, 42, 0.3);
}

/* Team page specific responsive adjustments */
@media (min-width: 1024px) {
  .team-page {
    padding-bottom: 2rem;
  }
  .team-members {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
  }
  .member-card {
    padding: 2.5rem;
  }
  .team-values {
    margin: 5rem 0;
  }
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
  }
  .team-contact {
    padding: 3rem;
  }
}
@media (min-width: 1200px) {
  .team-members {
    grid-template-columns: repeat(3, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Print styles for team page */
@media print {
  .team-page {
    padding-bottom: 0;
  }
  .member-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .member-card:hover {
    transform: none;
  }
  .value-item {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .team-contact {
    background: none;
    border: 1px solid #ccc;
  }
}
/* Accessibility improvements */
.member-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.value-item:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.team-contact a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .member-card,
  .value-item,
  .specialty,
  .team-contact a,
  .member-image img {
    transition: none;
  }
  .member-card:hover,
  .value-item:hover,
  .specialty:hover {
    transform: none;
  }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
  .member-card {
    border: 2px solid var(--accent);
  }
  .value-item {
    border: 2px solid var(--accent);
  }
  .specialty {
    border: 2px solid var(--accent);
  }
  .team-contact {
    border: 2px solid var(--accent);
  }
}
/* ===== ABOUT PAGE TEAM SECTION ===== */
/* Team grid using unified system - now inside team-section */
.team-section .team-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: 0;
}

/* Mobile: una persona per volta */
@media (max-width: 767px) {
  .team-section .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* Individual team member cards */
.team-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Member image */
.team-member-card .member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 3px solid var(--accent);
  box-shadow: none;
}

.team-member-card .member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.team-member-card:hover .member-image img {
  transform: none;
}

/* Member content */
.team-member-card .member-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member-card .member-content h3 {
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}

.team-member-card .member-role {
  color: var(--sand-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 1rem 0;
}

.team-member-card .member-description {
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

/* Member specialties */
.team-member-card .member-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: auto;
}

.team-member-card .specialty-tag {
  background: rgba(160, 54, 42, 0.1);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(160, 54, 42, 0.2);
  transition: none;
}

.team-member-card .specialty-tag:hover {
  background: rgba(160, 54, 42, 0.1);
  color: var(--accent);
  transform: none;
}

/* Responsive adjustments */
@media (max-width: 1023px) and (min-width: 768px) {
  .team-section {
    margin: var(--section-margin-tablet) 0;
  }
  .team-section > p {
    margin-bottom: 2.5rem;
  }
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .team-member-card {
    padding: 1.5rem;
  }
  .team-member-card .member-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1.25rem;
  }
}
@media (max-width: 767px) {
  .team-section {
    margin: var(--section-margin-mobile) 0;
  }
  .team-section h2 {
    margin-bottom: 0.75rem;
  }
  .team-section > p {
    margin-bottom: 2rem;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .team-member-card {
    padding: 1.25rem;
  }
  .team-member-card .member-image {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
  }
  .team-member-card .member-description {
    margin-bottom: 1.25rem;
  }
  .team-member-card .specialty-tag {
    padding: 0.3rem 0.6rem;
  }
}
@media (max-width: 480px) {
  .team-member-card {
    padding: 1rem;
  }
  .team-member-card .member-image {
    width: 80px;
    height: 80px;
  }
  .team-member-card .specialty-tag {
    padding: 0.25rem 0.5rem;
  }
}
/* Print styles for team page */
@media print {
  .team-page {
    padding-bottom: 0;
  }
  .member-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .member-card:hover {
    transform: none;
  }
  .value-item {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .team-contact {
    background: none;
    border: 1px solid #ccc;
  }
}
/* Accessibility improvements */
.member-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.value-item:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.team-contact a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .member-card,
  .value-item,
  .specialty,
  .team-contact a,
  .member-image img {
    transition: none;
  }
  .member-card:hover,
  .value-item:hover,
  .specialty:hover {
    transform: none;
  }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
  .member-card {
    border: 2px solid var(--accent);
  }
  .value-item {
    border: 2px solid var(--accent);
  }
  .specialty {
    border: 2px solid var(--accent);
  }
  .team-contact {
    border: 2px solid var(--accent);
  }
}
div#adminApp {
  width: 100%;
  max-width: 1200px;
}

button#adminLoginBtn {
  margin: 1rem 0 auto;
}

body.admin-container {
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-y: auto !important;
}

body.admin-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(160, 54, 42, 0.02) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(240, 219, 199, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.page-content {
  position: relative;
  z-index: 1;
}

.admin-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Override admin-card from external CSS for admin page specific styling */
.admin-card {
  padding: 1rem !important;
  margin-bottom: 2rem !important;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: relative;
}
.admin-card-header .admin-section-title {
  margin: 0;
  flex: 1;
}
.admin-card-header .close-customer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  position: absolute;
  top: -10px;
  right: 0;
  z-index: 10;
}
.admin-card-header .close-customer-btn:hover {
  background: rgba(142, 47, 34, 0.1);
  transform: rotate(90deg);
  color: var(--accent);
}
.admin-card-header .close-customer-btn i {
  color: inherit;
  font-weight: 500;
  font-size: 1.5rem;
}

/* Override admin-form-grid from external CSS for admin page specific styling */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Mobile specific overrides for admin page */
@media (max-width: 768px) {
  body.admin-container {
    padding: 0 !important;
  }
  .admin-header {
    margin-bottom: 1.5rem !important;
  }
  .page-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .admin-form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
  }
}
@media (max-width: 480px) {
  .admin-header {
    margin-bottom: 1rem !important;
  }
  .admin-card {
    padding: 1.25rem !important;
  }
}
/* Usa gli stili unificati dei form da _unified-layout.scss */
/* Removed duplicate label styles - now using unified styles from _unified-layout.scss */
/* Removed duplicate auth-form styles - now using unified styles from _unified-layout.scss */
#customersList {
  max-height: 400px;
  overflow-y: auto;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(160, 54, 42, 0.1) 50%, var(--accent) 100%);
  margin: 2rem 0 1.5rem 0;
  border: none;
}

@media (max-width: 768px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .page-content {
    margin: 10px;
    padding: 1.5rem;
  }
  .admin-card {
    padding: 0.5rem;
  }
}
.admin-customer-detail {
  border: 1px solid var(--container-border);
  border-radius: var(--container-border-radius);
  padding: 2rem;
  margin-top: 1rem;
}

/* Layout pulito e professionale per il pannello admin */
.admin-customers-container {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.order-card {
  border: 1px solid var(--container-border);
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
}
.order-card .order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.order-card .order-card-header .order-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}
.order-card .order-card-header .order-date {
  font-size: 0.85rem;
  color: var(--ink-light);
  font-weight: 500;
}
.order-card .order-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-card .order-card-body .order-total {
  color: var(--ink-light);
  font-size: 0.9rem;
}
.order-card .order-card-body .order-ship {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: capitalize;
}

/* Layout a due colonne */
.admin-two-column-layout {
  display: flex;
  height: calc(100vh - 200px);
}
.admin-two-column-layout .admin-customers-column {
  flex: 0 0 250px;
}
.admin-two-column-layout .admin-customers-column .admin-customers-list {
  height: 90%;
  overflow-y: auto;
}
.admin-two-column-layout .admin-details-column {
  flex: 1;
}
.admin-two-column-layout .admin-details-column .admin-customer-detail {
  height: 90%;
  overflow-y: auto;
}

/* Nuovo layout per il dettaglio cliente */
.customer-info-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.customer-info-header .customer-basic-info .customer-id {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}
.customer-info-header .customer-basic-info .customer-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.customer-info-header .customer-basic-info .customer-email {
  font-size: 0.95rem;
  color: var(--ink-light);
}
.customer-info-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-light);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}
.customer-info-header .close-btn:hover {
  color: var(--accent);
}

.orders-section {
  padding: 0 1.5rem 1.5rem;
}
.orders-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.orders-section #ordersBox {
  margin-bottom: 1.5rem;
}
.orders-section #ordersBox > div {
  border-bottom: 1px solid var(--container-border);
  font-size: 0.9rem;
}
.orders-section #ordersBox > div:last-child {
  border-bottom: none;
}
.orders-section .actions-footer {
  display: flex;
  justify-content: flex-end;
}
.orders-section .actions-footer .reset-password-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.orders-section .actions-footer .reset-password-btn:hover {
  background: #8b2e26;
}

/* Nasconde l'app clienti/ordini fino al login */
.admin-app-container {
  display: none;
}

/* Allineamento layout form login con tema */
.admin-login-form .admin-login-container {
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.admin-search-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 3rem;
}

.admin-section-title {
  color: var(--ink);
}

.section-divider {
  background: linear-gradient(90deg, var(--accent) 0%, rgba(var(--accent), 0.1) 50%, var(--accent) 100%);
}

/* Assicura che il container admin possa scrollare */
.admin-app-container {
  min-height: fit-content;
  overflow: visible;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.admin-customers-container {
  min-height: fit-content;
  overflow: visible;
}

/* Checkbox fixes per la pagina contatti */
.checkbox-group input[type=checkbox] {
  padding: 0 !important;
}

/* Mobile responsive per checkbox */
@media (max-width: 768px) {
  .checkbox-group input[type=checkbox] {
    width: 20px !important;
    height: 20px !important;
  }
}
/* Page Introduction */
.page-intro {
  margin-bottom: 3rem;
  text-align: center;
}

.page-intro p {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* Contact Details Structure */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start; /* evita che i link si allunghino a tutta la larghezza */
}

.contact-details strong {
  font-weight: 600;
  color: var(--ink-light);
}

.contact-details small {
  display: block;
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 0.2rem;
  color: #666;
}

.form-group small {
  display: block;
  font-size: 0.8rem;
  font-style: italic;
  color: #666;
  margin-top: 1.2rem;
}

/* Form Section */
.contact-form-section {
  margin-top: 0;
}

.form-description {
  margin-bottom: 2rem;
}

/* Main Layout */
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  grid-template-areas: "info form-title" "info form";
}

main > .contact-info-section {
  grid-area: info;
}

main > h2 {
  grid-area: form-title;
  margin: 0 0 1.5rem 0;
}

main > .contact-form {
  grid-area: form;
}

/* Contact Information Section */
.contact-info-section {
  padding: 0;
  box-shadow: none;
}

.contact-info-section h2 {
  margin-bottom: 2rem;
  text-align: left;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 1rem auto;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.service-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.service-type i {
  font-size: 1.2rem;
  color: var(--ink-light);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.service-type strong {
  font-weight: 600;
  color: var(--ink-light);
  font-size: 0.95rem;
}

.contact-info-item .contact-details {
  flex: 1;
}

.contact-info-item strong {
  color: var(--ink-light);
  font-weight: 600;
  margin-right: 0.5rem;
  font-family: "Montserrat", sans-serif;
}

.contact-info-item a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-item small {
  display: block;
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.2rem;
  font-style: italic;
}

.online-note {
  text-align: center;
  font-style: italic;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(240, 219, 199, 0.1);
  border-radius: var(--border-radius-base);
}

/* Contact Form */
/* Removed duplicate contact-form styles - now using unified styles from _unified-layout.scss */
/* Removed duplicate form-row styles - now using unified styles from _unified-layout.scss */
/* Removed duplicate form-group styles - now using unified styles from _unified-layout.scss */
/* Removed duplicate form-group label styles - now using unified styles from _unified-layout.scss */
/* Removed duplicate form-group select styles - now using unified styles from _unified-layout.scss */
/* Removed duplicate form-group textarea styles - now using unified styles from _unified-layout.scss */
/* Contact Channels */
.contact-channels {
  display: flex;
  flex-direction: column;
}

.contact-channel:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Channel Headers with Icons */
.contact-channel h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-channel h3 i {
  font-size: 1.4rem;
  color: var(--ink-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Response Time with Icons */
.response-time {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.response-time i {
  font-size: 1.2rem;
  color: var(--ink-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.response-time strong {
  color: var(--ink-light);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
    grid-template-areas: "info" "form";
    gap: 2rem;
  }
}
/* ===== TRACK ORDER PAGE ===== */
.page-track-order .unified-static-page h1 {
  text-align: center;
  margin: 2rem 0;
  letter-spacing: 0.5px;
}
.page-track-order .track-order-info,
.page-track-order .contact-info {
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: var(--border-radius-base);
  box-shadow: none;
  border: 1px solid rgba(240, 219, 199, 0.3);
}
.page-track-order .track-order-intro {
  margin: 2rem auto;
  text-align: center;
  padding: 0;
  border: none;
  box-shadow: none;
}
.page-track-order .track-order-intro p {
  /* Usa tipografia globale */
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  text-align: center;
}
.page-track-order .track-order-form {
  margin: 2.5rem auto;
  padding: 2rem;
  border-radius: var(--container-border-radius);
  border: 1px solid var(--container-border);
  box-shadow: none;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}
.page-track-order .track-order-form form {
  display: flex;
  flex-direction: column;
}
.page-track-order .track-order-form .track-order-results {
  margin-top: 2rem;
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.page-track-order .track-order-form .track-order-results.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.page-track-order .track-order-form .track-order-results .order-result,
.page-track-order .track-order-form .track-order-results .order-error {
  padding: 2rem;
}
.page-track-order .track-order-form .track-order-results .order-found {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 0.5s ease forwards;
}
.page-track-order .track-order-form .track-order-results .order-found h3 {
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}
.page-track-order .track-order-form .track-order-results .order-found .order-details {
  display: grid;
  gap: 0.75rem;
}
.page-track-order .track-order-form .track-order-results .order-found .order-details p {
  margin: 0;
  /* Usa tipografia globale */
  color: var(--text-color);
}
.page-track-order .track-order-form .track-order-results .order-found .order-details p strong {
  font-weight: 600;
  color: rgba(48, 29, 9, 0.8);
}
.page-track-order .track-order-form .track-order-results .order-found .order-details p a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}
.page-track-order .track-order-form .track-order-results .order-found .order-items {
  border: 1px solid rgba(160, 54, 42, 0.15);
  border-radius: var(--border-radius-base);
  padding: 1.5rem;
}
.page-track-order .track-order-form .track-order-results .order-found .order-items h4 {
  /* Usa tipografia globale */
  margin: 0 0 1rem 0;
  color: var(--accent);
}
.page-track-order .track-order-form .track-order-results .order-found .order-items .order-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.page-track-order .track-order-form .track-order-results .order-found .order-items .order-items-list li {
  /* Usa tipografia globale */
  color: var(--text-color);
  padding-left: 0;
  position: static;
}
.page-track-order .track-order-form .track-order-results .order-found .order-items .order-items-list li::before {
  content: none;
}
.page-track-order .track-order-form .track-order-results .order-error {
  text-align: center;
  /* Usa tipografia globale */
  font-weight: 600;
  color: var(--accent);
}
.page-track-order .track-order-form .track-order-results.visible.order-result-error {
  border-color: rgba(160, 54, 42, 0.35);
}
.page-track-order .track-order-form .form-loading,
.page-track-order .track-order-form .form-result {
  margin-top: 2rem;
  padding: 0;
  animation: slideInUp 0.4s ease forwards;
}
.page-track-order .track-order-form .form-loading {
  text-align: center;
}
.page-track-order .track-order-form .form-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(160, 54, 42, 0.2);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
.page-track-order .track-order-form .form-loading p {
  color: var(--text-color);
  margin: 0;
  /* Usa tipografia globale */
}
.page-track-order .track-order-form .form-result .orders-table-container {
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.page-track-order .track-order-form .form-result .order-card {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  overflow: hidden;
}
.page-track-order .track-order-form .form-result .order-card:last-child {
  border-bottom: none;
}
.page-track-order .track-order-form .form-result .order-card.canceled {
  background: rgba(248, 249, 250, 0.3);
  opacity: 0.8;
}
.page-track-order .track-order-form .form-result .order-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  align-items: stretch;
  min-height: inherit;
  box-sizing: border-box;
  width: 100%;
}
.page-track-order .track-order-form .form-result .order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.page-track-order .track-order-form .form-result .order-info {
  flex: 1;
}
.page-track-order .track-order-form .form-result .order-info .order-name {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.page-track-order .track-order-form .form-result .order-info .order-tracking {
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(48, 29, 9, 0.6);
}
.page-track-order .track-order-form .form-result .order-date {
  font-size: 0.85rem;
  color: rgba(48, 29, 9, 0.7);
  text-align: right;
  white-space: nowrap;
}
.page-track-order .track-order-form .form-result .order-status-section {
  margin: 0.75rem 0;
}
.page-track-order .track-order-form .form-result .order-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.page-track-order .track-order-form .form-result .order-total {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: right;
}
.page-track-order .track-order-form .form-result .order-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  margin: 0;
  padding: 0.5rem 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.page-track-order .track-order-form .form-result .order-timeline::before {
  content: "";
  position: absolute;
  top: calc(0.5rem + 18px);
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 2px;
}
.page-track-order .track-order-form .form-result .order-timeline::after {
  content: "";
  position: absolute;
  top: calc(0.5rem + 18px);
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 100%);
  z-index: 2;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.page-track-order .track-order-form .form-result .order-timeline[data-progress="0"]::after {
  width: 20%;
}
.page-track-order .track-order-form .form-result .order-timeline[data-progress="1"]::after {
  width: 40%;
}
.page-track-order .track-order-form .form-result .order-timeline[data-progress="2"]::after {
  width: 60%;
}
.page-track-order .track-order-form .form-result .order-timeline[data-progress="3"]::after {
  width: 80%;
}
.page-track-order .track-order-form .form-result .order-timeline[data-progress="4"]::after {
  width: 100%;
}
.page-track-order .track-order-form .form-result .timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 3;
  min-width: 0;
  box-sizing: border-box;
}
.page-track-order .track-order-form .form-result .timeline-step.active .timeline-icon, .page-track-order .track-order-form .form-result .timeline-step.completed .timeline-icon, .page-track-order .track-order-form .form-result .timeline-step.current .timeline-icon {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.page-track-order .track-order-form .form-result .timeline-step.current .timeline-icon {
  box-shadow: 0 0 0 3px rgba(160, 54, 42, 0.2);
}
.page-track-order .track-order-form .form-result .timeline-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.page-track-order .track-order-form .form-result .timeline-icon i {
  font-size: 12px;
  line-height: 1;
}
.page-track-order .track-order-form .form-result .timeline-label {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(48, 29, 9, 0.7);
  text-align: center;
  margin-bottom: 0.2rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}
.page-track-order .track-order-form .form-result .timeline-date {
  font-size: 0.5rem;
  color: rgba(48, 29, 9, 0.5);
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.page-track-order .track-order-form .form-result .order-items-section {
  margin-top: 1rem;
  padding: 1.5rem;
}
.page-track-order .track-order-form .form-result .order-items-section h4 {
  margin: 0 0 1rem 0;
  color: var(--accent);
  font-weight: 600;
}
.page-track-order .track-order-form .form-result .order-items-section .order-items-list {
  display: grid;
  gap: 0.5rem;
}
.page-track-order .track-order-form .form-result .order-items-section .order-items-list .order-item {
  color: var(--text-color);
  padding: 0.5rem 0;
}
.page-track-order .track-order-form .form-result .order-items-section .order-items-empty {
  color: rgba(48, 29, 9, 0.6);
  font-style: italic;
  text-align: center;
  padding: 1rem;
}
@media (min-width: 768px) {
  .page-track-order .track-order-form .form-result .order-card {
    min-height: 140px;
  }
  .page-track-order .track-order-form .form-result .order-row {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .page-track-order .track-order-form .form-result .order-info .order-name {
    font-size: 1.1rem;
  }
  .page-track-order .track-order-form .form-result .order-total {
    font-size: 1.2rem;
  }
  .page-track-order .track-order-form .form-result .timeline-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .page-track-order .track-order-form .form-result .timeline-icon i {
    font-size: 13px;
  }
  .page-track-order .track-order-form .form-result .timeline-label {
    font-size: 0.65rem;
  }
  .page-track-order .track-order-form .form-result .timeline-date {
    font-size: 0.6rem;
  }
}
@media (min-width: 1024px) {
  .page-track-order .track-order-form .form-result .order-card {
    min-height: 160px;
  }
  .page-track-order .track-order-form .form-result .order-row {
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .page-track-order .track-order-form .form-result .order-info .order-name {
    font-size: 1.2rem;
  }
  .page-track-order .track-order-form .form-result .order-total {
    font-size: 1.3rem;
  }
  .page-track-order .track-order-form .form-result .timeline-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .page-track-order .track-order-form .form-result .timeline-icon i {
    font-size: 14px;
  }
  .page-track-order .track-order-form .form-result .timeline-label {
    font-size: 0.7rem;
  }
  .page-track-order .track-order-form .form-result .timeline-date {
    font-size: 0.65rem;
  }
}
@media (min-width: 1200px) {
  .page-track-order .track-order-form .form-result .order-row {
    padding: 2rem;
    gap: 1.5rem;
  }
}
.page-track-order .track-order-form .form-result .order-found .order-details {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-track-order .track-order-form .form-result .order-found .order-details .order-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(160, 54, 42, 0.1);
}
.page-track-order .track-order-form .form-result .order-found .order-details .order-detail-item:last-child {
  border-bottom: none;
}
.page-track-order .track-order-form .form-result .order-found .order-details .order-detail-item strong {
  /* Usa tipografia globale */
  font-weight: 600;
  color: rgba(48, 29, 9, 0.8);
}
.page-track-order .track-order-form .form-result .order-found .order-details .order-detail-item span {
  /* Usa tipografia globale */
  color: var(--text-color);
  text-align: right;
}
.page-track-order .track-order-form .form-result .order-found .order-details .order-detail-item span.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-base);
  font-weight: 600;
  /* Usa tipografia globale */
}
.page-track-order .track-order-form .form-result .order-found .order-details .order-detail-item span.order-status.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #b8860b;
}
.page-track-order .track-order-form .form-result .order-found .order-details .order-detail-item span.order-status.status-processing {
  background: rgba(0, 123, 255, 0.2);
  color: #0056b3;
}
.page-track-order .track-order-form .form-result .order-found .order-details .order-detail-item span.order-status.status-delivered {
  background: rgba(40, 167, 69, 0.2);
  color: #155724;
}
.page-track-order .track-order-form .form-result .order-found .order-details .order-detail-item span.order-status.status-cancelled {
  background: rgba(220, 53, 69, 0.2);
  color: #721c24;
}
.page-track-order .track-order-form .form-result .order-found .order-items .order-detail-item {
  border-bottom: none;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.page-track-order .track-order-form .form-result .order-found .order-items .order-items-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.page-track-order .track-order-form .form-result .order-found .order-items .order-items-list .order-item {
  /* Usa tipografia globale */
  color: var(--text-color);
  padding: 0.5rem 0rem;
}
.page-track-order .track-order-form .form-result .order-found .order-items .order-items-empty {
  /* Usa tipografia globale */
  color: rgba(48, 29, 9, 0.6);
  font-style: italic;
  text-align: center;
  padding: 1rem;
}
.page-track-order .track-order-form .form-result .order-error {
  text-align: center;
  /* Usa tipografia globale */
  font-weight: 600;
  color: var(--accent);
  padding: 1.5rem;
  background: rgba(220, 53, 69, 0.1);
  border-radius: var(--border-radius-base);
  border-left: 4px solid #dc3545;
}
.page-track-order .help-text {
  margin-top: 0.5rem;
  /* Usa tipografia globale */
  color: rgba(48, 29, 9, 0.6);
}
.page-track-order .btn-primary {
  margin: 1.5rem auto;
  width: 100%;
}

.section-title {
  /* Usa tipografia globale */
  font-weight: 500;
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.3px;
}

.track-order-info .info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.track-order-info .info-list li {
  /* Usa tipografia globale */
  line-height: 1.6;
  color: var(--text-color);
  margin: 1rem 0;
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(240, 219, 199, 0.2);
}
.track-order-info .info-list li:last-child {
  border-bottom: none;
}
.track-order-info .info-list li::before {
  content: "ℹ";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Usa tipografia globale */
  font-weight: 700;
}

.contact-info {
  text-align: center;
}
.contact-info p {
  /* Usa tipografia globale */
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}
.contact-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.contact-info a:hover {
  color: var(--sand-dark);
}

@media (max-width: 768px) {
  .track-order-form,
  .track-order-info,
  .contact-info {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  .track-order-form .track-order-results .order-found .order-items {
    padding: 1.25rem;
  }
  .track-order-intro {
    margin: 2rem auto;
  }
}
@media (max-width: 480px) {
  .track-order-form {
    padding: 1.5rem;
    /* Padding input responsivo rimosso: usa stili responsivi unificati */
  }
  .track-order-form .btn-primary {
    padding: 1rem 1.5rem;
    /* Usa tipografia globale responsive */
  }
  .track-order-form .track-order-results {
    margin-top: 1.5rem;
  }
  .track-order-form .track-order-results .order-found {
    gap: 1rem;
  }
  .track-order-form .track-order-results .order-found .order-items {
    padding: 1rem;
  }
  .track-order-info .info-list li {
    /* Usa tipografia globale responsive */
    padding-left: 2rem;
  }
  .track-order-info .info-list li::before {
    width: 1.2rem;
    height: 1.2rem;
    /* Usa tipografia globale responsive */
  }
}
.useful-info {
  text-align: center;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--color-background-light);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  max-width: 800px;
}

.useful-info h4 {
  font-weight: 600;
}

/* ===== ORDERS PAGE - REDESIGNED ===== */
section.unified-section.orders-list-section.scroll-animate.scroll-animate-delay-1.animate-in {
  margin-bottom: 0;
}

section.unified-section.orders-actions.scroll-animate.scroll-animate-delay-2.animate-in {
  margin-bottom: 3rem;
}

.page-orders {
  background: var(--bg-light);
  color: var(--text-color);
}
.page-orders .orders-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.page-orders .orders-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-orders .orders-hero .orders-subtitle {
  line-height: 1.6;
  letter-spacing: 0.15px;
  margin: 0 auto;
  min-height: 1.5rem;
}
.page-orders .orders-list-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.page-orders .orders-table-container {
  border-radius: var(--border-radius-base);
  border: 1px solid var(--container-border);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}
.page-orders .orders-table-header {
  display: none !important;
}
.page-orders .orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2rem;
}
.page-orders .orders-list .orders-empty {
  margin: 0;
  padding: 3rem 2rem;
  text-align: center;
}
.page-orders .orders-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.page-orders .order-card {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  overflow: hidden;
}
.page-orders .order-card:last-child {
  border-bottom: none;
}
.page-orders .order-card.canceled {
  background: rgba(248, 249, 250, 0.3);
  opacity: 0.8;
}
.page-orders .order-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  align-items: stretch;
  min-height: inherit;
  box-sizing: border-box;
  width: 100%;
}
.page-orders .order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.page-orders .order-info {
  flex: 1;
}
.page-orders .order-info .order-name {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.page-orders .order-info .order-tracking {
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(48, 29, 9, 0.6);
}
.page-orders .order-date {
  font-size: 0.85rem;
  color: rgba(48, 29, 9, 0.7);
  text-align: right;
  white-space: nowrap;
}
.page-orders .order-status-section {
  margin: 0.75rem 0;
}
.page-orders .order-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
}
.page-orders .order-total {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: right;
}
.page-orders .order-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  margin: 0;
  padding: 0.5rem 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.page-orders .order-timeline::before {
  content: "";
  position: absolute;
  top: calc(0.5rem + 18px);
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 2px;
}
.page-orders .order-timeline::after {
  content: "";
  position: absolute;
  top: calc(0.5rem + 18px);
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 100%);
  z-index: 2;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.page-orders .order-timeline[data-progress="0"]::after {
  width: 20%;
}
.page-orders .order-timeline[data-progress="1"]::after {
  width: 40%;
}
.page-orders .order-timeline[data-progress="2"]::after {
  width: 60%;
}
.page-orders .order-timeline[data-progress="3"]::after {
  width: 80%;
}
.page-orders .order-timeline[data-progress="4"]::after {
  width: 100%;
}
.page-orders .order-timeline[data-progress="-1"]::after {
  width: 0%;
  background: #dc3545;
}
.page-orders .timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 3;
  min-width: 0;
  box-sizing: border-box;
}
.page-orders .timeline-step.active .timeline-icon, .page-orders .timeline-step.completed .timeline-icon, .page-orders .timeline-step.current .timeline-icon {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.page-orders .timeline-step.current .timeline-icon {
  box-shadow: 0 0 0 3px rgba(160, 54, 42, 0.2);
}
.page-orders .timeline-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.page-orders .timeline-icon i {
  font-size: 12px;
  line-height: 1;
}
.page-orders .timeline-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 2.2rem;
  justify-content: flex-start;
}
.page-orders .timeline-label {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(48, 29, 9, 0.7);
  text-align: center;
  margin-bottom: 0.2rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.page-orders .timeline-date {
  font-size: 0.5rem;
  color: rgba(48, 29, 9, 0.5);
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.page-orders .order-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}
.page-orders .order-badge.badge-canceled,
.page-orders .order-badge.status-canceled {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}
.page-orders .order-badge.status-paid {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}
.page-orders .order-badge.status-pending {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}
.page-orders .order-badge.status-refunded {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}
.page-orders .order-badge.status-authorized {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}
.page-orders .order-badge.status-unpaid {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}
.page-orders .order-badge.status-default {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}
.page-orders .order-ship {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(48, 29, 9, 0.7);
  font-weight: 500;
}
.page-orders .order-ship i {
  color: var(--accent);
  font-size: 0.9rem;
}
.page-orders .orders-loading {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}
.page-orders .orders-loading .spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(160, 54, 42, 0.2);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
.page-orders .order-items-section {
  margin-top: 1rem;
  padding: 1.5rem;
}
.page-orders .order-items-section h4 {
  margin: 0 0 1rem 0;
  color: var(--accent);
  font-weight: 600;
}
.page-orders .order-items-section .order-items-list {
  display: grid;
  gap: 0.5rem;
}
.page-orders .order-items-section .order-items-list .order-item {
  color: var(--text-color);
  padding: 0.5rem 0;
}
.page-orders .order-items-section .order-items-empty {
  color: rgba(48, 29, 9, 0.6);
  font-style: italic;
  text-align: center;
  padding: 1rem;
}
@media (min-width: 768px) {
  .page-orders .orders-wrapper {
    gap: 2rem;
  }
  .page-orders .order-card {
    min-height: 140px;
  }
  .page-orders .order-row {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .page-orders .order-info .order-name {
    font-size: 1.1rem;
  }
  .page-orders .order-total {
    font-size: 1.2rem;
  }
  .page-orders .timeline-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .page-orders .timeline-icon i {
    font-size: 13px;
  }
  .page-orders .timeline-label {
    font-size: 0.65rem;
  }
  .page-orders .timeline-date {
    font-size: 0.6rem;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .page-orders .orders-wrapper {
    gap: 2.5rem;
  }
  .page-orders .order-card {
    min-height: 160px;
  }
  .page-orders .order-timeline::before {
    top: calc(0.6rem + 18px);
  }
  .page-orders .order-timeline::after {
    top: calc(0.6rem + 18px);
  }
  .page-orders .order-row {
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .page-orders .order-header {
    grid-column: 1/-1;
    margin-bottom: 1rem;
  }
  .page-orders .order-status-section {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }
  .page-orders .order-footer {
    grid-column: 2;
    grid-row: 2/-1;
    align-self: end;
    margin: 0;
  }
  .page-orders .order-info .order-name {
    font-size: 1.2rem;
  }
  .page-orders .order-total {
    font-size: 1.3rem;
  }
  .page-orders .timeline-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .page-orders .timeline-icon i {
    font-size: 14px;
  }
  .page-orders .timeline-label {
    font-size: 0.7rem;
  }
  .page-orders .timeline-date {
    font-size: 0.65rem;
  }
}
@media (min-width: 1200px) {
  .page-orders .orders-wrapper {
    max-width: 1200px;
    gap: 2.5rem;
  }
  .page-orders .order-card {
    min-height: 160px;
  }
  .page-orders .order-timeline {
    padding: 1rem 0;
  }
  .page-orders .order-timeline::before {
    top: calc(0.8rem + 18px);
  }
  .page-orders .order-timeline::after {
    top: calc(0.8rem + 18px);
  }
  .page-orders .order-row {
    padding: 2rem;
    gap: 1.5rem;
  }
  .page-orders .order-header {
    grid-column: 1/-1;
    margin-bottom: 1rem;
  }
  .page-orders .order-status-section {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }
  .page-orders .order-footer {
    grid-column: 2;
    grid-row: 2/-1;
    align-self: end;
    margin: 0;
  }
  .page-orders .order-info .order-name {
    font-size: 1.2rem;
  }
  .page-orders .order-total {
    font-size: 1.3rem;
  }
  .page-orders .timeline-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .page-orders .timeline-icon i {
    font-size: 14px;
  }
  .page-orders .timeline-label {
    font-size: 0.7rem;
  }
  .page-orders .timeline-date {
    font-size: 0.65rem;
  }
}

/* ===== ORDER CONFIRMATION PAGE ===== */
.page-order-confirmation {
  background: var(--bg-light);
  color: var(--text-color);
}
.page-order-confirmation .confirmation-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-order-confirmation .confirmation-hero .order-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%);
  color: var(--bg-light);
}
.page-order-confirmation .confirmation-hero .order-icon .bx {
  font-size: 48px;
}
.page-order-confirmation .confirmation-hero .subtitle {
  margin-bottom: 1.5rem;
}
.page-order-confirmation .order-reference {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  margin: 0 auto 2rem;
  max-width: 32ch;
}
.page-order-confirmation .order-reference .label {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(48, 29, 9, 0.7);
  letter-spacing: 0.5px;
}
.page-order-confirmation .order-reference .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}
.page-order-confirmation .confirmation-message {
  margin: 0 auto 2.5rem;
  color: rgba(48, 29, 9, 0.8);
  text-align: center;
}
.page-order-confirmation .confirmation-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
}
.page-order-confirmation .confirmation-grid .info-card {
  padding: 1.5rem;
  border-radius: var(--border-radius-base);
  border: 1px solid var(--container-border);
}
.page-order-confirmation .confirmation-grid .info-card h2 {
  margin: 0 0 0.75rem;
  text-align: center;
}
.page-order-confirmation .confirmation-grid .info-card p {
  margin: 0;
  text-align: center;
}
.page-order-confirmation .confirmation-grid .info-card.centered-help {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.page-order-confirmation .confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: column;
  align-content: center;
  gap: 0.9rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .page-order-confirmation .confirmation-grid {
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .page-order-confirmation .confirmation-grid .info-card {
    padding: 1.25rem 1.35rem;
  }
  .page-order-confirmation .order-reference .label {
    font-size: 1rem;
  }
  .page-order-confirmation .order-reference .value {
    font-size: 1.6rem;
  }
}

.register-form .form-hint {
  margin-top: 0.35rem;
  /* Usa tipografia globale */
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.3;
}
.register-form .form-row {
  flex-wrap: wrap;
  row-gap: 0;
}
.register-form .form-row-hints {
  flex-basis: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: -0.25rem;
}
.register-form .form-hint-error {
  color: #c0392b;
  margin-top: 0.25rem;
  /* Usa tipografia globale */
}
.register-form .form-input.is-invalid {
  border-color: #c0392b;
}
.register-form .btn-primary,
.register-form .btn-secondary {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.register-form .btn-primary {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}
.register-form .login-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.register-form .login-link p {
  margin: 0;
}
.register-form .terms-text {
  margin: 3rem 0;
  text-align: center;
}
.register-form .terms-text p {
  margin: 0;
  line-height: 1.5;
  text-align: center;
}
.register-form .business-fields,
.register-form .billing-address-fields {
  display: none;
}

/* Profile page styles */
.google-profile-section {
  margin-bottom: 30px;
  padding: 24px 22px;
  background: var(--profile-card-bg, #fff7ef);
  border: 1px solid rgba(214, 179, 125, 0.35);
  border-radius: var(--border-radius-base);
  color: var(--text-color, #301D09);
  box-shadow: 0 12px 32px rgba(48, 29, 9, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.google-profile-section:hover {
  box-shadow: 0 18px 44px rgba(48, 29, 9, 0.12);
  transform: translateY(-2px);
}

.google-profile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 18px;
}

.google-profile-picture {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(214, 179, 125, 0.6);
  background: #fff;
  object-fit: cover;
  display: block;
}

.google-profile-text h3 {
  margin: 0;
  /* Usa tipografia globale */
  font-weight: 600;
  color: var(--text-color, #301D09);
}

.google-profile-text p {
  margin: 2px 0 0;
  /* Usa tipografia globale */
  color: rgba(48, 29, 9, 0.72);
}

.google-profile-text i {
  margin-right: 8px;
  /* Usa tipografia globale */
  color: var(--ink-light);
}

.business-data-section {
  background: var(--profile-card-bg, #ffffff);
  padding: 16px;
  border-radius: var(--border-radius-base);
  border: 1px solid rgba(214, 179, 125, 0.25);
  box-shadow: 0 6px 18px rgba(48, 29, 9, 0.06);
}

.no-data-message {
  color: rgba(48, 29, 9, 0.65);
  font-style: italic;
  padding: 12px 14px;
  text-align: center;
  background: rgba(255, 247, 239, 0.7);
  border-radius: var(--border-radius-base);
  border: 1px dashed rgba(214, 179, 125, 0.35);
}

.addresses-list {
  margin-bottom: 25px;
}

.address-card {
  background: #ffffff;
  border: 1px solid rgba(214, 179, 125, 0.25);
  border-radius: var(--border-radius-base);
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--text-color, #301D09);
  box-shadow: 0 2px 8px rgba(48, 29, 9, 0.05);
  position: relative;
}

.address-card:hover {
  border-color: rgba(142, 47, 34, 0.45);
  box-shadow: 0 8px 25px rgba(48, 29, 9, 0.12);
  transform: translateY(-2px);
}

.address-card strong {
  color: var(--text-color, #301D09);
  /* Usa tipografia globale */
  display: block;
  margin-bottom: 8px;
}

.address-card .address-info {
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(48, 29, 9, 0.8);
}

.address-card .address-info div {
  margin-bottom: 4px;
}

.address-card .default-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #8E2F22, #B8392E);
  color: white;
  padding: 4px 12px;
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(142, 47, 34, 0.3);
}

.address-card .address-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.address-card button {
  padding: 8px 16px;
  /* Usa tipografia globale */
  border-radius: var(--border-radius-base);
  background: transparent;
  color: var(--accent, #8E2F22);
  border: 1px solid rgba(142, 47, 34, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.address-card button:hover {
  background: var(--accent, #8E2F22);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(142, 47, 34, 0.25);
}

.address-card button.delete-btn {
  background-color: transparent;
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.4);
}

.address-card button.delete-btn:hover {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

/* Removed duplicate profile-form styles - now using unified styles from _unified-layout.scss */
.form-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text-color, #301D09);
  /* Usa tipografia globale */
  font-weight: 600;
}

.form-section h2 i {
  /* Usa tipografia globale */
  color: var(--ink-light);
}

/* Edit button styling */
.edit-button {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem; /* Modificato da 0.5rem 1rem */
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: absolute;
  top: 0;
  right: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(160, 54, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  min-width: auto;
  white-space: nowrap;
}

.edit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.edit-button:hover::before {
  left: 100%;
}

.edit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(160, 54, 42, 0.35);
  color: white;
  text-decoration: none;
}

.edit-button:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(160, 54, 42, 0.3);
}

/* Add relative positioning to the form section for absolute positioning of edit button */
.form-section {
  position: relative;
}

.form-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  row-gap: 1.75rem;
  text-align: left;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.form-section .section-header::after {
  left: 0;
  transform: none;
}

.form-section .section-header h2 {
  margin-bottom: 0;
}

/* Button group styling for save/cancel buttons */
.button-group {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
}

/* Register button (Save) - Primary button styling */
.register-button {
  background: linear-gradient(135deg, #A0362A 0%, #8B2E1F 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(160, 54, 42, 0.25);
  min-width: 120px;
}

.register-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.register-button:hover::before {
  left: 100%;
}

.register-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(160, 54, 42, 0.35);
}

.register-button:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(160, 54, 42, 0.3);
}

/* Cancel button - Secondary button styling */
.cancel-button {
  background: transparent;
  color: #A0362A;
  border: 2px solid #A0362A;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-base);
  /* Usa tipografia globale */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 120px;
}

.cancel-button:hover {
  background: #A0362A;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(160, 54, 42, 0.25);
}

.cancel-button:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(160, 54, 42, 0.2);
}

.form-section h3 {
  margin: 25px 0 15px 0;
  color: rgba(48, 29, 9, 0.65);
  /* Usa tipografia globale */
  font-weight: 600;
}

@media (max-width: 768px) {
  .google-profile-section {
    padding: 20px;
  }
  .google-profile-content {
    justify-content: center;
    text-align: center;
  }
  .google-profile-picture {
    width: 60px;
    height: 60px;
  }
  .form-section .section-header {
    gap: 0.75rem;
    row-gap: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }
  .form-section .edit-button {
    position: static;
    margin-left: auto;
    margin-top: 10px;
  }
}
@media (max-width: 480px) {
  .form-section .section-header {
    flex-direction: column;
    align-items: stretch;
    row-gap: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }
  .form-section .edit-button {
    width: 100%;
    justify-content: center;
    order: -1;
    margin-left: 0;
    margin-top: 10px;
  }
}
/* ===== Shared Login Form Styles ===== */
/* Removed duplicate themed-login-form styles - now using unified styles from _unified-layout.scss */
/* Removed duplicate themed-form-label styles - now using unified styles from _unified-layout.scss */
/* Removed duplicate themed-form-input styles - now using unified styles from _unified-layout.scss */
/* ===== LOGIN STYLES MOVED TO _login.scss ===== */
/* All login-related styles have been moved to _login.scss for better organization */
/* Use generic classes: .auth-form, .unified-input, .unified-label, .form-button, .btn-primary */
p.description_activate {
  text-align: center;
}

/* ===== LOGIN STYLES ===== */
/* Usa gli stili generici del sito per consistenza - NO duplicazioni */
/* Login prompt and messages */
.login-prompt {
  text-align: center;
  margin-bottom: 0;
  padding: 1.5rem 2rem 1rem 2rem;
  transition: all 0.2s ease;
}

.login-message {
  color: var(--text-color);
  line-height: 1.5;
  text-align: center;
  margin-top: 2rem;
}

/* ===== LOGIN PAGE LAYOUT ===== */
.login-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1rem;
}

.login-card h1 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-page__subtitle {
  margin: -0.75rem 0 1.5rem;
  text-align: center;
  color: rgba(48, 29, 9, 0.72);
}

/* ===== LOGIN FORM - USA SOLO CLASSI GENERICHE ===== */
/* Il form deve usare le classi: .auth-form, .unified-input, .unified-label, .form-button */
/* NON creare stili duplicati - usa solo le classi esistenti */
.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ===== LOGIN ACTIONS ===== */
.login-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.login-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ===== LOGIN BUTTONS - USA SOLO CLASSI GENERICHE ===== */
.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

/* I pulsanti devono usare .form-button o .submit-button - NO stili duplicati */
/* ===== LOGIN HELPERS ===== */
.login-helpers {
  margin-top: 0.75rem;
  text-align: center;
}

.login-helper-button {
  background: none;
  border: none;
  color: rgba(48, 29, 9, 0.68);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-top: 0.5rem;
}

.login-helper-button:hover,
.login-helper-button:focus-visible {
  color: var(--accent);
}

.login-subtitle {
  color: rgba(45, 24, 16, 0.7);
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

/* ===== LOGIN DIVIDER ===== */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(48, 29, 9, 0.55);
  letter-spacing: 1px;
  justify-content: center;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(48, 29, 9, 0.15);
}

/* ===== GOOGLE LOGIN BUTTON - STILE COME BTN-SECONDARY CON BORDO BLU ===== */
.login-google-btn {
  background: transparent;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 0.5rem;
  border-radius: var(--border-radius-base);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-google-btn:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
}

.login-google-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* In hover, rendi l’icona completamente bianca per entrambi i pulsanti */
.login-google-btn:hover svg,
.login-google-btn:hover svg path {
  fill: #fff !important;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .login-card {
    padding: 1rem 0.5rem;
    margin: 0 1rem;
  }
  .login-prompt {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
  }
}
@media (max-width: 480px) {
  .login-card {
    margin: 0 0.5rem;
  }
  .login-buttons {
    gap: 0.8rem;
  }
}
@keyframes wall-reflection {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}
@keyframes led-glow-rotation {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }
  25% {
    filter: hue-rotate(90deg) brightness(1.2);
  }
  50% {
    filter: hue-rotate(180deg) brightness(1.4);
  }
  75% {
    filter: hue-rotate(270deg) brightness(1.2);
  }
  100% {
    filter: hue-rotate(360deg) brightness(1);
  }
}
@keyframes brandmark-loading-effect {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}
@keyframes loader-visibility {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  1% {
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}
@keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes click-loader-visibility {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  1% {
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}
@keyframes painting-fade-out {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.8;
    transform: scale(1.02) rotate(0.2deg);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05) rotate(-0.1deg);
  }
  75% {
    opacity: 0.4;
    transform: scale(1.08) rotate(0.1deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.1) rotate(0deg);
  }
}
@keyframes site-fade-in {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes shine-move {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
@keyframes diagonal-sweep {
  0% {
    transform: translateX(-150%) translateY(-150%) rotate(35deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  50% {
    transform: translateX(0%) translateY(0%) rotate(35deg);
    opacity: 1;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateX(150%) translateY(150%) rotate(35deg);
    opacity: 0;
  }
}
@keyframes frame-backlight {
  0% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
}
@keyframes elegant-scan {
  0% {
    opacity: 0.8;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.01);
  }
  75% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes actor-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes actor-tap {
  0% {
    transform: scale(1);
    filter: none;
  }
  50% {
    transform: scale(1.08);
    filter: blur(2px) brightness(1.1);
  }
  100% {
    transform: scale(1);
    filter: none;
  }
}
@keyframes actor-exit {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes subtlePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}
@keyframes overlay-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes container-slide-up {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes title-fade-in {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dot-appear {
  0% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
@keyframes error-shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px);
  }
}
@keyframes controls-fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes close-fade-in {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes menuSlideOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
  }
}
@keyframes slideInFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes menuSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes popupFullscreenIn {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popupFullscreenOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}
@keyframes cartHighlightPulse {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(0.95);
  }
  75% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes popupBubbleIn {
  0% {
    opacity: 0;
    transform: translate3d(0, -14px, 0) scale3d(0.94, 0.9, 1);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 6px, 0) scale3d(1.03, 1.04, 1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}
@keyframes popupBubbleOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scale3d(0.9, 0.85, 1);
  }
}
@keyframes popupGenieIn {
  0% {
    opacity: 0;
    transform: perspective(560px) translate3d(0, -18px, 0) scale3d(0.45, 0.12, 1);
    filter: blur(12px);
  }
  40% {
    opacity: 1;
    transform: perspective(560px) translate3d(0, 8px, 0) scale3d(1.08, 1.05, 1);
    filter: blur(0px);
  }
  68% {
    transform: perspective(560px) translate3d(0, -4px, 0) scale3d(0.96, 0.92, 1);
  }
  100% {
    opacity: 1;
    transform: perspective(560px) translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}
@keyframes popupGenieOut {
  0% {
    opacity: 1;
    transform: perspective(560px) translate3d(0, 0, 0) scale3d(1, 1, 1);
    filter: blur(0px);
  }
  35% {
    opacity: 1;
    transform: perspective(560px) translate3d(0, -8px, 0) scale3d(0.9, 0.7, 1);
  }
  100% {
    opacity: 0;
    transform: perspective(560px) translate3d(0, -22px, 0) scale3d(0.35, 0.06, 1);
    filter: blur(14px);
  }
}
.transition-all {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transition-fast {
  transition: all 0.2s ease;
}

.transition-slow {
  transition: all 0.6s ease;
}

.transition-opacity {
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transition-transform {
  transition: transform 0.3s ease;
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
}

.hover-scale {
  transition: transform 0.2s ease;
}
.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}
.hover-glow:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.pulse-animation {
  animation: subtlePulse 1.5s ease-in-out infinite;
}

.bounce-animation {
  animation: bounce 2s infinite;
}

@media (max-width: 600px) {
  .no-animation-mobile {
    animation: none !important;
    transform: none !important;
  }
  .reduced-motion {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
  }
}
@media (max-width: 400px) {
  .minimal-animation {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }
}
.scroll-animate,
.scroll-animate-fade,
.scroll-animate-slide-left,
.scroll-animate-slide-right,
.scroll-animate-scale,
.scroll-animate-button,
.scroll-animate-image,
.scroll-animate-text,
.scroll-animate-title {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

/* Disabilita animazioni sui container unified ma mantiene quelle sui contenuti */
.unified-styled-container.scroll-animate,
.unified-static-page.scroll-animate,
.unified-styled-container.scroll-animate-fade,
.unified-static-page.scroll-animate-fade,
.unified-styled-container-alt.scroll-animate,
.unified-styled-container-alt.scroll-animate-fade {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.scroll-animate-fade {
  opacity: 0;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-slide-left {
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-slide-right {
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-scale {
  transform: scale(0.8);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-image {
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-text {
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-title {
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-button {
  transform: translateY(15px) scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate-in,
.scroll-animate-fade.animate-in,
.scroll-animate-slide-left.animate-in,
.scroll-animate-slide-right.animate-in,
.scroll-animate-scale.animate-in,
.scroll-animate-button.animate-in,
.scroll-animate-image.animate-in,
.scroll-animate-text.animate-in,
.scroll-animate-title.animate-in {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.scroll-animate:nth-child(1) {
  transition-delay: 0ms;
}

.scroll-animate:nth-child(2) {
  transition-delay: 100ms;
}

.scroll-animate:nth-child(3) {
  transition-delay: 200ms;
}

.scroll-animate:nth-child(4) {
  transition-delay: 300ms;
}

.scroll-animate:nth-child(5) {
  transition-delay: 400ms;
}

.scroll-animate:nth-child(6) {
  transition-delay: 500ms;
}

@media (max-width: 768px) {
  .scroll-animate,
  .scroll-animate-fade,
  .scroll-animate-slide-left,
  .scroll-animate-slide-right,
  .scroll-animate-scale,
  .scroll-animate-button,
  .scroll-animate-image,
  .scroll-animate-text,
  .scroll-animate-title {
    transition-duration: 0.4s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .scroll-animate-fade,
  .scroll-animate-slide-left,
  .scroll-animate-slide-right,
  .scroll-animate-scale,
  .scroll-animate-button,
  .scroll-animate-image,
  .scroll-animate-text,
  .scroll-animate-title {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
}

/*# sourceMappingURL=main.css.map */
