/* --- logo.css --- */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  color: inherit;
}

.site-logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  --logo-size: clamp(72px, 10vw, 98px);
  width: var(--logo-size);
  min-width: var(--logo-size);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  background: transparent;
  padding: 0;
  margin: 0;
}

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

.site-logo-fallback {
  display: none;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
  color: inherit;
}

/* --- product-search-bar.css --- */
.product-search-bar {
  display: flex;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(34, 34, 34, 0.03);
  padding: 0;
  height: 44px;
}

.search-icon-button {
  width: 44px;
  height: 44px;
  background-color: #eeac43;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 0 0 6px;
  transition: background 0.2s;
  cursor: pointer;
  margin-right: 0;
  padding: 0;
  color: #000;
}

.search-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  height: 44px;
  font-size: 16px;
  padding: 0 40px 0 12px;
  border-radius: 0 6px 6px 0;
  background: transparent;
  border: solid 0.5px #adadad;
  -webkit-appearance: none;
  appearance: none;
}

.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-input::placeholder {
  color: #939393;
  font-size: 14px;
  opacity: 0.85;
}

.clear-icon-button {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #656565;
}

.clear-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.suggestions-list {
  position: absolute;
  top: 100%;
  width: 500px;
  margin: auto;
  left: 0;
  right: 0;
  padding: 0;
  list-style: none;
  background-color: #ffffffe9;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.3s ease;
}

.suggestion-item:hover {
  background-color: #f1f1f1;
}

.suggestion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  line-height: 0;
  color: #aaa;
}

.suggestion-item:hover .suggestion-icon {
  color: #888;
}

.suggestion-text {
  flex: 1;
}

.suggestions-list li.empty {
  color: #999;
  text-align: center;
  cursor: default;
}

@media (max-width: 767px) {
  .product-search-bar {
    max-width: 100%;
  }
  .suggestions-list {
    width: 100vw;
    left: -10px;
    font-size: 14px;
  }
  .suggestion-item {
    font-size: 14px;
    padding: 8px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .product-search-bar {
    max-width: 90%;
  }
  .suggestions-list {
    width: 90vw;
  }
  .suggestion-item {
    font-size: 15px;
    padding: 9px;
  }
}

@media (min-width: 1025px) {
  .product-search-bar {
    max-width: 600px;
  }
  .suggestions-list {
    width: 600px;
  }
  .suggestion-item {
    font-size: 13px;
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .search-bar { height: 40px; }
  .search-icon-button { width: 40px; height: 40px; }
  .clear-icon-button { height: 40px; }
  .search-input { height: 40px; font-size: 16px; }
}

/* --- search-bar.css --- */
/* src/Components/Form/SearchBar/SearchBar.css */

:root { -webkit-text-size-adjust: 100%; }

/* Contenitore generale della searchbar */
.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(34,34,34,0.03);
  padding: 0;
  height: 44px;
}

.search-icon-button {
  width: 44px;
  height: 44px;
  background-color: #eeac43;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 0 0 6px;
  transition: background 0.2s;
  cursor: pointer;
  margin-right: 0;
  padding: 0;

  /* ✅ Icon usa currentColor */
  color: #000;
}

/* ✅ Icon(mask) va centrata e senza baseline */
.search-icon {
  display: block;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  height: 44px;
  font-size: 16px;            /* evita zoom su iOS */
  padding: 0 40px 0 12px;
  border-radius: 0 6px 6px 0;
  background: transparent;
  border: solid 0.5px #adadad;
  -webkit-appearance: none;
  appearance: none;
}

/* ✅ NASCONDE la X nativa dell’input search (Chrome/Safari/Edge) */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.clear-icon-button {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* ✅ Icon usa currentColor */
  color: #656565;
}

/* ✅ Icon(mask) centrata */
.clear-icon {
  display: block;
}

.search-input::placeholder {
  color: #939393;
  font-size: 14px;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .search-bar { height: 40px; }
  .search-icon-button { width: 40px; height: 40px; }
  .clear-icon-button { height: 40px; }
  .search-input { height: 40px; font-size: 16px; }
}

/* --- search-bar-mobile.css --- */
/* SearchBarMobile.css */
.search-bar-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 5px;
  background-color: rgb(0, 0, 0);
  }

/* --- InputField.css --- */
/* SSR: ported from CRA InputField.css */

.form-group {
  text-align: left;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0;
}

.label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
  box-sizing: border-box;
  border-radius: 0;
  background: #fff;
}

.input:focus {
  border-color: #111;
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.12);
}

/* --- TextareaField.css --- */
/* SSR: ported from CRA TextareaField.css (with SSR visual defaults). */

.textarea {
  width: 100%;
  min-height: 120px;
  font-size: 16px; /* avoid iOS zoom */
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 0;
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
}

.textarea:focus {
  border-color: #111;
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.12);
}

.textarea::placeholder {
  color: #999;
  font-style: italic;
}

.textarea:disabled {
  background-color: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

/* --- SelectField.css --- */
/* SSR: CRA SelectField.css was empty; keep a simple, consistent style. */

.select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
  box-sizing: border-box;
  border-radius: 0;
  background: #fff;
  color: inherit;
}

.select:focus {
  border-color: #111;
  outline: none;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.12);
}

/* --- CheckboxField.css --- */
/* SSR: ported from CRA CheckboxField.css */

.checkbox-field {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-input {
  width: 16px;
  height: 16px;
}

/* CheckboxField supports radio too; keep default styling consistent. */
.radio-field {
  display: flex;
  align-items: center;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.radio-input {
  width: 16px;
  height: 16px;
  accent-color: #111;
}

/* --- ToggleSwitch.css --- */
/* SSR: ported from CRA ToggleSwitch.css (small adjustments: no outer margin). */

.toggle-switch-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #333;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.18s ease;
  border-radius: 10px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.toggle-switch input:checked + .slider {
  background-color: #00a013;
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 14px;
}

@media (max-width: 768px) {
  .toggle-label {
    font-size: 12px;
  }

  .toggle-switch {
    width: 30px;
    height: 16px;
  }

  .slider:before {
    height: 12px;
    width: 12px;
  }

  .toggle-switch input:checked + .slider:before {
    transform: translateX(14px);
  }
}

/* --- Alert.css --- */
/* Alert (shared across pages). */

.alert {
  padding: 15px;
  margin: 15px 0;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  border: 1px solid transparent;
}

.alert-message {
  flex: 1 1 auto;
  min-width: 0;
}

.alert-close-button {
  background: none;
  border: none;
  font-size: 18px;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

/* --- Spinner.css --- */
/* Spinner (shared across pages). */

.spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-small {
  width: 25px;
  height: 25px;
  border-width: 3px;
}

.spinner-medium {
  width: 50px;
  height: 50px;
  border-width: 4px;
}

.spinner-large {
  width: 75px;
  height: 75px;
  border-width: 5px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Button.css --- */
/* Shared buttons (SSR).
   Keep it minimal: page-specific components can override where needed. */

.button-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid #111;
  text-decoration: none;
  color: #fff;
  background: #111;
  cursor: pointer;

  /* Consistent "StyleOutfit" button voice */
  text-transform: uppercase;
  letter-spacing: var(--so-button-letter, 0.07em);
  font-weight: var(--so-button-font-weight, 600);
  font-size: var(--so-button-font-size, 11px);
  line-height: 1;
}

.button-form.button-primary,
.button-form.button-submit {
  background: #111;
  color: #fff;
  border-color: #111;
}

.button-form:hover {
  filter: brightness(0.96);
}

.button-form:active {
  transform: translateY(1px);
}

.button-form:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.28);
  outline-offset: 2px;
}

.button-form:disabled,
.button-form[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.button-form.button-secondary {
  background: #fff;
  color: #111;
  border-color: #111;
}

.button-form.button-success {
  background: #0a7d3a;
  color: #fff;
  border-color: #0a7d3a;
}

.button-form.button-danger {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}

.button-form.button-ghost {
  background: transparent;
  color: #111;
  border-color: #d0d0d0;
}

/* --- ScrollToTopButton.css --- */
.scroll-top-wrap {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;

  transition: opacity 0.18s ease, transform 0.18s ease;
}

.scroll-top-wrap.is-visible {
  opacity: 0.92;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-wrap.is-visible:hover {
  opacity: 1;
}

.scroll-top-button {
  /* Keep it compact and consistent on all pages */
  height: 40px;
  padding: 0 14px;
}

@media (max-width: 480px) {
  .scroll-top-wrap {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-wrap {
    transition: none !important;
  }
}

/* --- header-shell.css --- */
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #b4cd87;
}

.header-desktop-only { display: block; }
.header-mobile-only { display: none; }

@media (max-width: 1080px) {
  .header-desktop-only { display: none; }
  .header-mobile-only { display: block; }
}

/* --- AnnouncementBar.css --- */
/* Announcement bar (ported from CRA, adapted for SSR icons) */

.announcement-container {
  width: 100%;
  height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  /* Safe defaults; JS swaps to DB-provided colors when available. */
  background-color: #000000;
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;

  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;

  transition: background-color 0.3s linear, color 0.3s linear;
}

.announcement-inner {
  width: 100%;
  max-width: 1280px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 4px;
  min-width: 0;
}

.announcement-stage {
  position: relative;
  min-width: 0;
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 20px;
  line-height: 20px;
  overflow: hidden;
  text-align: center;
}

.announcement-text {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  text-decoration: none;

  white-space: nowrap;
  max-width: 80vw;
  text-overflow: ellipsis;
  overflow: hidden;

  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: inherit;
}

.announcement-text:hover,
.announcement-text:focus {
  text-decoration: none;
  outline: none;
}

.announcement-arrow {
  background: transparent;
  border: 0;
  padding: 2px;
  margin: 0;
  line-height: 0;

  cursor: pointer;
  min-width: 24px;
  min-height: 24px;

  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: background-color 0.12s ease, opacity 0.12s ease;
  opacity: 0.9;
  color: inherit;
}

.announcement-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.announcement-arrow:not(:disabled):hover,
.announcement-arrow:not(:disabled):focus {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.08);
}

.announcement-arrow-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.msgBase {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes slideOutUp {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -20px); }
}
@keyframes slideInUp {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}
.msgOutUp { animation: slideOutUp 0.35s ease forwards; }
.msgInUp { animation: slideInUp 0.35s ease forwards; }

@keyframes slideOutDown {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 20px); }
}
@keyframes slideInDown {
  0% { opacity: 0; transform: translate(-50%, -20px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}
.msgOutDown { animation: slideOutDown 0.35s ease forwards; }
.msgInDown { animation: slideInDown 0.35s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  .msgOutUp, .msgInUp, .msgOutDown, .msgInDown {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .announcement-container {
    font-size: 11px;
    height: 30px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .announcement-stage { height: 18px; }

  .announcement-text {
    font-size: 11px;
    line-height: 18px;
    max-width: 90vw;
  }

  .announcement-arrow {
    min-width: 22px;
    min-height: 22px;
    padding: 2px;
  }
}

/* --- header-desktop.css --- */
.header-desktop {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  background: transparent;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  box-sizing: border-box;
}

.header-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  padding: 0 20px;
}

.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-content: flex-end;
  color: #111;
}

.account-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #111;
}

.account-icon img {
  width: 18px;
  height: 18px;
}

.header-bottom {
  width: 100%;
  justify-content: space-between;
}

@media (max-width: 1500px) {
  .header-center { padding: 0 10px; }
}

@media (max-width: 1080px) {
  .header-desktop { display: none; }
}

/* --- menu-submenu.css --- */
.navbar-desktop {
  display: flex;
  background-color: #eeac43;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  position: relative;
  height: 50px;
}

.nav-list-desktop {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.nav-item-desktop {
  margin: 0 70px;
  text-align: center;
  align-items: center;
  cursor: pointer;
  position: static;
  height: 50px;
  display: flex;
  align-items: center;
}

.nav-item-desktop a {
  color: #000000;
  text-decoration: none;
}

.submenu {
  display: none;
  position: absolute;
  background-color: #f7f7f7;
  left: 0;
  right: 0;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  top: 100%;
}
.nav-item-desktop:hover .submenu {
  display: flex;
}

.submenu-container {
  display: flex;
  gap: 20px;
  width: 90%;
  padding: 20px;
  justify-content: center;
  margin: auto;
}

.submenu-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 3;
}

.submenu-column {
  flex: 1;
  min-width: 200px;
}

.submenu-header {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: left;
}

.submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.submenu-list li {
  margin-bottom: 10px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.nav-link:hover {
  color: #007bff;
}

.submenu-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-image {
  max-width: 350px;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}

@media screen and (max-width: 1500px) {
  .nav-item-desktop { margin: 0 50px; }
}

@media screen and (max-width: 1200px) {
  .nav-item-desktop { margin: 0 40px; }
}

@media screen and (max-width: 1080px) {
  .navbar-desktop { display: none; }
}

/* --- header-mobile.css --- */
.header-mobile-shell {
  width: 100%;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  background: transparent;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #000;
}

.logo-container {
  text-align: center;
}

.account-icon-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 24px;
  color: #333;
  text-decoration: none;
}

.account-text {
  font-size: 14px;
  margin-top: 5px;
  color: #333;
}

.search-bar-mobile {
  padding: 10px 16px 14px;
  background: transparent;
}

/* --- navbar-mobile.css --- */
.navbar-mobile-root {
  position: relative;
  z-index: 2000;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  border: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.navbar-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 86vw;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.22);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  z-index: 2100;
  display: flex;
  flex-direction: column;
}

.navbar-mobile.open {
  transform: translateX(0);
}

.navbar-header {
  display: flex;
  align-items: center;
  height: 80px;
  background-color: #9abf77c0;
  padding: 0 16px;
  box-sizing: border-box;
}

.menu-label {
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #111;
}

.menu-toggle {
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.menu-toggle:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.35);
}

.menu-close-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.navbar-content {
  flex: 1;
  overflow-y: auto;
  background-color: #ffffff;
  padding: 12px 0;
}

.menu-list,
.submenu-list-mobile {
  list-style: none;
  padding: 0 14px;
  margin: 0;
}

.submenu-list-mobile { display: none; }
.submenu-list-mobile.is-active { display: block; }

.menu-list.is-submenu-open > .menu-item { display: none; }
.menu-list.is-submenu-open > .menu-item.is-active { display: block; }
.menu-list.is-submenu-open > .menu-item.is-active > .menu-row-btn { display: none; }

.menu-item {
  margin: 0;
  padding: 0;
  display: block;
}

.menu-link {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  border-radius: 10px;
}

.menu-link:hover {
  background: #f3f4f6;
  color: #000;
}

.menu-row-btn {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-radius: 10px;
}

.menu-row-btn:hover {
  background: #f3f4f6;
}

.menu-row-text {
  font-size: 14px;
  color: #222;
}


.submenu-header {
  text-transform: uppercase;
  color: #111;
  background-color: rgb(220, 220, 220);
  width: 100%;
  padding: 10px 10px;
  border-radius: 8px;
  margin: 12px 0 6px 0;
  font-weight: 800;
  font-size: 12px;
}

.menu-back {
  margin-bottom: 6px;
}

.menu-back-btn {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 800;
  color: #111;
}

.menu-back-btn:hover {
  background: #f3f4f6;
}


@media (min-width: 1081px) {
  .navbar-mobile-root {
    display: none;
  }
}

/* --- Newsletter.css --- */
/* Newsletter (ported from CRA, SSR-friendly) */

.newsletter-section {
  width: 100%;
  padding: 44px 16px;
  display: flex;
  justify-content: center;
  background: linear-gradient(90deg, #ff5e00, #ff9a00);
  color: #111;
}

.newsletter-content {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.newsletter-content h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.newsletter-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  max-width: 62ch;
}

.newsletter-message {
  width: 100%;
  max-width: 520px;
  margin: 6px 0 0;
  text-align: left;
  font-size: 14px;
  padding: 10px 12px;
}

.newsletter-form {
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.newsletter-form .form-group {
  /* Override shared form styles (they center + add padding). Newsletter already manages layout. */
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

.newsletter-form .label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.82);
}

.newsletter-form .input {
  height: 44px;
  padding: 0 12px;
  border-color: rgba(0, 0, 0, 0.25);
}

.newsletter-form .input:focus {
  border-color: rgba(0, 0, 0, 0.65);
}

.newsletter-gender {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.newsletter-gender-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.newsletter-form .newsletter-gender-options .newsletter-choice {
  width: auto;
  flex: 0 0 auto;
}

.newsletter-legend {
  display: block;
  padding: 0;
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
}

.newsletter-choice {
  width: auto;
  padding: 0;
}

.newsletter-choice .radio-label {
  font-size: 13px;
  line-height: 1;
}

.newsletter-terms {
  padding-top: 2px;
}

.newsletter-terms .checkbox-label {
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.35;
}

.newsletter-terms a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.newsletter-submit {
  width: 100%;
  height: 44px;
}

.newsletter-submit:disabled { opacity: 0.6; }

@media (max-width: 840px) {
  .newsletter-section {
    padding: 36px 16px;
  }
}

/* --- footer.css --- */
/* Footer styles */

.footer-container {
  min-height: 240px;
  background-color: #6327e0;
  display: flex;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 16px 0;
}

.footer-columns {
  width: 1400px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px 40px;
  padding: 16px 16px 20px;
  margin-top: 12px;
  min-height: 160px;
}

.footer-column {
  text-align: left;
  min-width: 0;
}
.footer-column h3 { margin: 0 0 10px 0; color: #ffffff; }
.footer-column nav { width: 100%; }
.footer-column ul {
  list-style: none;
  font-size: 14px;
  padding: 0;
  color: #ffffff;
  margin: 0;
}

.footer-column li { margin-bottom: 8px; }

.footer-column a {
  text-decoration: none;
  font-weight: lighter;
  color: #ffffff;
}

.footer-icon { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* Bottone "Gestisci Cookie" come link testuale */
.cookie-preferences-btn { background: none; border: none; cursor: pointer; padding: 0; color: #ffffff; font: inherit; }

/* Social */
.social-icons-column { list-style: none; padding: 0; margin: 0; }
.social-icons-column li { margin-bottom: 12px; }
.social-icons-column a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.social-icons-column a:hover { color: #ffdd57; }
.social-icons-column span { font-size: 14px; }

@media (max-width: 1024px) {
  .footer-columns { grid-template-columns: repeat(3, minmax(0,1fr)); width: 100%; }
}
@media (max-width: 768px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; }
  .footer-column { text-align: center; }
}
@media (max-width: 420px) {
  .footer-columns { grid-template-columns: 1fr; }
  .footer-column { text-align: center; }
}

/* --- footer-bottom.css --- */
/* FooterBottom (aligned to frontend) */

.footer-bottom {
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom-inner {
  max-width: 1280px;
  width: 100%;
  padding: 10px 16px;
  margin: 0 auto;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  text-align: center;
  box-sizing: border-box;
}

.footer-bottom-text {
  margin: 10px 0;
  color: #000000;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  text-wrap: balance;
  word-break: break-word;
}

@media (max-width: 480px) {
  .footer-bottom-inner {
    padding: 8px 12px;
  }

  .footer-bottom-text {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* --- cookie-banner.css --- */
.cookie-banner-overlay {
  position: fixed;
  inset: 0;
  padding: 16px;
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* do not block page interactions */
  background: none;
  z-index: 1200;
}

.cookie-banner-overlay.is-open {
  display: flex;
}

.cookie-card {
  pointer-events: auto;
  width: min(420px, 92vw);
  background: #0f1020; /* dark */
  color: #f7f7fb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-card-header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  padding-right: 56px; /* room for X */
  background: linear-gradient(135deg, #6228e0 0%, #8f46ff 100%);
}

.cookie-logo-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.cookie-logo-wrap .site-logo-link {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

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

.cookie-header-text h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.cookie-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-subtitle a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 6px;
  z-index: 2;
}

.cookie-close:hover {
  opacity: 1;
}

.cookie-body {
  padding: 22px;
}

.cookie-message {
  font-size: 15px;
  line-height: 1.6;
  color: #e8e7ff;
  margin: 6px 0 18px;
}

.cookie-message a {
  color: #b89cff;
  text-decoration: underline;
}

.cookie-pref {
  display: grid;
  gap: 16px;
}

.pref-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.pref-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 15px;
  color: #ffffff;
}

.pref-desc {
  color: #cfcdf6;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* Switch (ported from frontend) */
.switch {
  --w: 54px;
  --h: 30px;
  --p: 3px;
  position: relative;
  display: inline-block;
  width: var(--w);
  height: var(--h);
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #3b3b5f;
  border-radius: 999px;
  transition: background 0.25s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: var(--p);
  left: var(--p);
  width: calc(var(--h) - var(--p) * 2);
  height: calc(var(--h) - var(--p) * 2);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.switch.on span { background: #7e64ff; }
.switch.on span::after {
  transform: translateX(calc(var(--w) - var(--h)));
}

.switch.disabled {
  pointer-events: none;
  opacity: 1;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 22px 22px;
}

.cookie-actions .button-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
  border-radius: 12px;
  margin: 0;
}

.cookie-actions .button-form:disabled {
  background-color: #2a2a3f;
  color: rgba(255, 255, 255, 0.75);
  cursor: not-allowed;
}

.cookie-actions .button-form.button-primary {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.cookie-actions .button-form.button-primary:hover:not(:disabled) {
  background-color: #eeac43;
  color: #000000 !important;
}

.cookie-actions .button-form.button-secondary {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.cookie-actions .button-form.button-secondary:hover:not(:disabled) {
  background-color: #ffffff;
  color: #000000;
}

.cookie-actions .button-form:active:not(:disabled) {
  transform: scale(0.98);
}

@media (max-width: 760px) {
  .cookie-banner-overlay {
    padding: 12px;
  }
}

@media (max-width: 640px) {
  .cookie-banner-overlay { padding: 12px; }
  .cookie-card-header {
    grid-template-columns: auto 1fr;
    padding: 16px;
  }
  .cookie-body { padding: 16px; }
  .cookie-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 0 16px 16px;
  }
  .cookie-actions .button-form {
    width: 100%;
  }
  .pref-row { grid-template-columns: 1fr; align-items: start; }
}

/* --- Banner.css --- */
/* Banner (SSR) */
.banner-container {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
}

.banner-placeholder {
  width: 100%;
  padding: 18px 16px;
}

.banner-empty {
  margin: 0;
  color: #666;
}

/* Wrapper clickable (keeps styles, avoids underlines) */
.banner-link-wrapper {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.banner {
  --banner-aspect: 1000 / 779;
  --banner-img-max-width: 760px;
  --banner-img-max-height: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  border-radius: 0;
}

.banner-clickable {
  cursor: pointer;
}

.banner-image {
  display: block;
  flex: 0 0 auto;
  /* Fix "collapsing" on reload: reserve a stable box even before image decode. */
  aspect-ratio: var(--banner-aspect);
  width: min(42vw, var(--banner-img-max-width));
  height: auto;
  max-width: 100%;
  max-height: var(--banner-img-max-height);
  object-fit: contain;
  background: transparent;
}

.banner-image-placeholder {
  display: grid;
  place-items: center;
  color: #777;
  min-height: 220px;
}

.button-banner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.banner-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.banner-title a {
  color: inherit;
  text-decoration: none;
}

.banner-description {
  font-size: 14px;
  margin: 0 0 16px;
  color: #444;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .banner-container {
    padding: 14px 16px;
  }

  .banner {
    --banner-img-max-height: clamp(320px, 80vw, 520px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .banner-image {
    width: 100%;
    max-width: 100%;
    max-height: var(--banner-img-max-height);
  }

  .button-banner-container {
    width: 100%;
  }

  .banner-title {
    font-size: 18px;
  }

  .banner-description {
    font-size: 13px;
  }
}

/* --- Breadcrumb.css --- */
/* Breadcrumb (shared across pages) */

.breadcrumb-bar {
  width: 100%;
  background: #f6f6f6;
  border-bottom: 1px solid #ededed;
}

.breadcrumb-bar-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 16px;
}

.breadcrumb-container {
  font-size: 13px;
  color: #444;
  margin: 0 0 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  min-width: max-content;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.breadcrumb-link,
.breadcrumb-text {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.breadcrumb-filter {
  display: inline-block;
  color: #111;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb-item.active .breadcrumb-text {
  color: #111;
  font-weight: 600;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: rgba(0, 0, 0, 0.45);
  font-size: inherit;
  line-height: 1;
}

@media (max-width: 480px) {
  .breadcrumb-container {
    font-size: 12px;
    margin-bottom: 10px;
    /* Mobile: wrap instead of horizontal overflow. */
    overflow-x: hidden;
  }

  .breadcrumb {
    flex-wrap: wrap;
    min-width: 0;
    row-gap: 6px;
  }

  .breadcrumb-separator {
    margin: 0 6px;
  }

  .breadcrumb-link,
  .breadcrumb-text,
  .breadcrumb-filter {
    max-width: 22ch;
  }
}

/* When used in the global header area, remove extra spacing. */
.breadcrumb-bar .breadcrumb-container {
  margin: 0;
}

/* --- Editorial.css --- */
/* Editorial HTML blocks coming from SEO/CMS.
   Supports both CRA classnames (.editorial) and the current payload (.editorial-text). */

.editorial,
.editorial-text {
  font-size: 16px;
  color: #555;
  line-height: 1.65;
  text-align: center;
  margin: 0 auto;
}

.editorial p,
.editorial-text p {
  margin: 0 0 12px;
}

.editorial p:last-child,
.editorial-text p:last-child {
  margin-bottom: 0;
}

.editorial a,
.editorial-text a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
  justify-content: center;
}

.editorial-actions .button,
.editorial-actions .button-form {
  text-decoration: none;
  /* Override `.editorial-text a` so action buttons keep readable button colors. */
  color: #fff;
  font-weight: var(--so-button-font-weight, 600);
}

.editorial-actions .button-form.button-secondary {
  color: #111;
}

.editorial-actions .button:hover,
.editorial-actions .button:focus-visible,
.editorial-actions .button-form:hover,
.editorial-actions .button-form:focus-visible {
  text-decoration: none;
}

@media (max-width: 640px) {
  .editorial,
  .editorial-text {
    font-size: 15px;
  }
}

