/* ============================================
   La Tua Luna — Main Stylesheet
   ============================================ */

/* === Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* === Typography === */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

/* === Button === */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}


/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 7%;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header--scrolled {
  background-color: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

.site-header__logo:hover {
  opacity: 0.8;
}

/* Hamburger */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.site-header__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Navigation */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.site-nav__link:hover {
  color: var(--color-text-primary);
}

.site-nav__cta {
  color: var(--color-bg-primary);
  background-color: var(--color-accent);
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav__cta:hover {
  color: var(--color-bg-primary);
  background-color: var(--color-accent-hover);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.25);
}

/* Language switch (IT / EN) */
.site-nav__item--lang {
  margin-left: 0.5rem;
}

.site-lang-switch {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 1px;
  line-height: 1;
}

.site-lang-switch__current {
  color: #e8e6e1;
}

.site-lang-switch__link {
  color: #8a8a95;
  transition: color 0.3s ease;
}

.site-lang-switch__link:hover {
  color: #c9a84c;
}

.site-lang-switch__sep {
  color: #8a8a95;
  margin: 0 0.1rem;
}

/* Loading spinner for primary CTAs */
@keyframes ltl-spin {
  to { transform: rotate(360deg); }
}

.ltl-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #c9a84c;
  border-radius: 50%;
  animation: ltl-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.ltl-is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.ltl-is-loading .ltl-spinner {
  border-top-color: var(--color-bg-primary);
}


/* ============================================
   HERO — Sezione 1
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg-primary);
}

/* Moon photo — right half */
.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

/* Gradient overlay: solid black left → transparent right (Luna untouched) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, #0a0a0f 0%, #0a0a0f 30%, rgba(10, 10, 15, 0.3) 50%, rgba(10, 10, 15, 0.05) 70%, transparent 85%),
    linear-gradient(to top, #0a0a0f 0%, transparent 15%);
}

/* Text content — left half */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 45%;
  padding-left: 7%;
  padding-right: 2rem;
}

.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  color: #e8e6e1;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: #a7a7a7;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero__break-space {
  display: none;
}

/* CTA — outline style */
.btn--outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.9rem 2.25rem;
  border: 1px solid #c9a84c;
  border-radius: 2px;
  background-color: transparent;
  color: #c9a84c;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn--outline:hover {
  background-color: #c9a84c;
  color: #0a0a0f;
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.2);
}

/* Scroll indicator — centered bottom */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-secondary);
  animation: scroll-bounce 2.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}


/* ============================================
   CONCEPT — Sezione 2
   ============================================ */
.concept {
  background-color: var(--color-bg-secondary);
  padding: var(--section-padding) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.concept__inner {
  max-width: var(--content-narrow);
  text-align: center;
}

.concept__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 2.5rem;
  line-height: 1.35;
}

.concept__text {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
}


/* ============================================
   HOW IT WORKS — Sezione 3
   ============================================ */
.how-it-works {
  background-color: var(--color-bg-primary);
  padding: var(--section-padding) 1.5rem;
}

.how-it-works__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

.how-it-works__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 4rem;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.step__icon {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.step__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.step__text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.how-it-works__note {
  margin-top: 3.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  font-style: italic;
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  padding: 3rem 2rem 2rem;
}

.site-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__heading {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.site-footer__links a:hover {
  color: var(--color-text-primary);
}

.site-footer__bottom {
  max-width: var(--container-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer__bottom p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.site-footer__bottom .site-footer__legal {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-style: normal;
  font-size: 12px;
  color: #8a8a95;
  line-height: 1.5;
  text-align: center;
  margin-top: 1.25rem;
}


/* ============================================
   PRODUCT PAGE — La Tua Luna
   ============================================ */
.ltl-product {
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  padding: 8rem 1.5rem var(--section-padding);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ltl-product__inner {
  max-width: 560px;
  width: 100%;
}

/* No-date state */
.ltl-product__nodate {
  text-align: center;
  padding: 4rem 0;
}

.ltl-product__nodate-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.ltl-product__nodate-text {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

/* Date summary */
.ltl-product__summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 2.5rem;
}

.ltl-product__moon-icon {
  flex-shrink: 0;
  line-height: 0;
}

.ltl-product__date {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.ltl-product__phase {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.ltl-product__illum {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.ltl-product__times {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 0.375rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.ltl-product__times strong {
  color: var(--color-text-primary);
  font-weight: 500;
  margin-left: 0.25rem;
}

.ltl-product__times-sep {
  opacity: 0.4;
}

.ltl-product__times-day {
  /* Same color and size as the surrounding text — inherits from .ltl-product__times. */
  color: inherit;
  font-size: inherit;
}

.ltl-product__after-midnight {
  font-size: 0.85rem;
  color: #8a8a95;
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.ltl-product__after-midnight-icon {
  color: #c9a84c;
  font-style: normal;
  flex-shrink: 0;
  line-height: 1.5;
}

/* Custom fields */
.ltl-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.ltl-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ltl-field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
}

.ltl-field__required {
  color: var(--color-accent);
}

.ltl-field__input,
.ltl-field__select,
.ltl-field__textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
  width: 100%;
}

.ltl-field__input:focus,
.ltl-field__select:focus,
.ltl-field__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.ltl-field__input::placeholder,
.ltl-field__textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.ltl-field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%238a8a95' stroke-width='1.5'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.ltl-field__select option {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.ltl-field__textarea {
  resize: vertical;
  min-height: 80px;
}

.ltl-field__counter {
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
  text-align: right;
}

/* Totale row */
.ltl-product__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid #2a2a35;
  padding-top: 20px;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}

.ltl-product__price-label {
  color: #e8e6e1;
  font-weight: 600;
  font-size: 1rem;
}

.ltl-product__price-value,
.ltl-product__price .woocommerce-Price-amount {
  color: #c9a84c;
  font-weight: 700;
  font-size: 1.2em;
}

/* Shipping-included note under the price */
.ltl-product__shipping-note {
  margin: -1rem 0 1.5rem;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 400;
  color: #c9a84c;
}

/* Invito — discounted price (product page + checkout total) */
.ltl-price--has-discount {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
del.ltl-price__original,
del.ltl-price__original .woocommerce-Price-amount,
del.ltl-price__original .woocommerce-Price-currencySymbol {
  color: #8a8a95;
  font-weight: 400;
  text-decoration: line-through;
}
strong.ltl-price__discounted,
strong.ltl-price__discounted .woocommerce-Price-amount,
strong.ltl-price__discounted .woocommerce-Price-currencySymbol {
  color: #c9a84c;
  font-weight: 700;
  text-decoration: none;
}

/* Checkout/cart total row — emphasize the discounted price */
.order-total .ltl-price__discounted {
  font-size: 1.15em;
}

/* Invito — hide coupon discount row at cart/checkout (silent application) */
.woocommerce-checkout-review-order tr.cart-discount,
.woocommerce-cart-form tr.cart-discount,
.cart_totals tr.cart-discount,
tr.cart-discount {
  display: none;
}

/* Submit button */
.ltl-product__submit {
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  padding: 1.1rem 2rem;
}

/* ============================================
   PAGE — Generic page template (checkout, cart, etc.)
   ============================================ */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

/* ============================================
   CHECKOUT — Custom styling
   ============================================ */
.woocommerce-checkout {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.ltl-checkout-summary {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ltl-checkout-summary h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.ltl-checkout-summary__moon {
  text-align: center;
  margin-bottom: 1rem;
  line-height: 0;
}

.ltl-checkout-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.ltl-checkout-summary__row strong {
  color: var(--color-text-primary);
}

.ltl-checkout-summary__row--luna strong {
  color: var(--color-accent);
  font-style: italic;
}

.ltl-checkout-summary__row em {
  color: var(--color-text-secondary);
  font-style: italic;
}

.ltl-checkout-notice {
  background-color: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.ltl-checkout-notice p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.ltl-checkout-notice strong {
  color: var(--color-accent);
}

/* Shipping section — "Dove spediamo la tua Luna?" */
.ltl-shipping {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.ltl-shipping__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.ltl-shipping__options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.ltl-shipping__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: border-color 0.2s;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
}

.ltl-shipping__option:has(input:checked) {
  border-color: var(--color-accent);
}

.ltl-shipping__option input[type="radio"] {
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
}

.ltl-shipping__fields {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.ltl-shipping__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.ltl-shipping__col--small {
  max-width: 140px;
}

.ltl-shipping__field {
  margin-bottom: 0.875rem;
}

.ltl-shipping label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.375rem;
}

.ltl-shipping label abbr.required {
  color: var(--color-accent);
  text-decoration: none;
}

.ltl-shipping .input-text {
  width: 100%;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

.ltl-shipping .input-text:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.ltl-shipping .input-text[readonly] {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 768px) {
  .ltl-shipping__row {
    grid-template-columns: 1fr;
  }
  .ltl-shipping__col--small {
    max-width: 100%;
  }
}

/* WooCommerce checkout form overrides */
.woocommerce-checkout .woocommerce {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Single column layout — override WooCommerce 2-col */
.woocommerce-checkout .col2-set,
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none;
  width: 100%;
  max-width: 100%;
}

/* Hide coupon banner */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon {
  display: none;
}

/* Hide "Additional information" / order notes */
.woocommerce-checkout .woocommerce-additional-fields {
  display: none;
}

/* Hide "Your order" heading — the review table speaks for itself */
.woocommerce-checkout #order_review_heading {
  display: none;
}

/* Billing fields: single column with name row side-by-side */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
  width: 100%;
  float: none;
}

.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_last_name_field {
  width: calc(50% - 0.5rem);
  flex: 0 0 calc(50% - 0.5rem);
}

@media (max-width: 480px) {
  .woocommerce-checkout #billing_first_name_field,
  .woocommerce-checkout #billing_last_name_field {
    width: 100%;
    flex: 0 0 100%;
  }
}

.woocommerce form .form-row label {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout #payment .form-row input.input-text {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

/* Checkout section titles */
.woocommerce-checkout h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* Shipping section title inherits from .ltl-shipping__title, no double border */
.woocommerce-checkout .ltl-shipping__title {
  border-bottom: none;
  padding-bottom: 0;
}

/* Order review table — collapsed to a single "Totale" row */
.woocommerce-checkout-review-order-table {
  background-color: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 1.5rem;
  width: 100%;
}

.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .shipping,
.woocommerce-checkout-review-order-table .fee,
.woocommerce-checkout-review-order-table .tax-rate,
.woocommerce-checkout-review-order-table .tax-total {
  display: none;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  border-top: 1px solid #2a2a35;
  border-bottom: none;
  padding: 20px 0 0;
  font-family: var(--font-sans);
  background: transparent;
}

.woocommerce-checkout-review-order-table .order-total th {
  color: #e8e6e1;
  font-weight: 600;
  text-align: left;
}

.woocommerce-checkout-review-order-table .order-total td {
  text-align: right;
}

.woocommerce-checkout-review-order-table .order-total .amount,
.woocommerce-checkout-review-order-table .order-total strong {
  color: #c9a84c;
  font-weight: 700;
  font-size: 1.2em;
}

/* Payment methods */
.woocommerce-checkout #payment {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.woocommerce-checkout #payment ul.payment_methods {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.woocommerce-checkout #payment ul.payment_methods li {
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
  border-bottom: none;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  color: var(--color-text-primary);
  font-size: 0.9375rem;
}

.woocommerce-checkout #payment .payment_box {
  background-color: rgba(201, 168, 76, 0.05);
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.woocommerce-checkout #payment .payment_box::before {
  display: none;
}

/* Hide default WooCommerce terms/privacy text */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text {
  display: none;
}

/* Custom privacy consent checkbox */
.ltl-consent {
  margin: 1.25rem 0 0.5rem;
}

.ltl-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}

.ltl-consent__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ltl-consent__check {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #8a8a95;
  border-radius: 3px;
  margin-top: 1px;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
}

.ltl-consent__label:hover .ltl-consent__check {
  border-color: var(--color-accent);
}

.ltl-consent__input:checked + .ltl-consent__check {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
}

.ltl-consent__input:checked + .ltl-consent__check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #0a0a0f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ltl-consent__input:focus-visible + .ltl-consent__check {
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.3);
}

.ltl-consent__text {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.ltl-consent__text a {
  color: var(--color-accent);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.ltl-consent__text a:hover {
  text-decoration: underline;
}

/* Invoice section */
.ltl-invoice {
  margin-bottom: 1rem;
}

.ltl-invoice__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-text-primary);
  margin: 0 0 1rem;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.ltl-invoice__group {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}

.ltl-invoice__group--collapsed {
  display: none;
  max-height: 0;
  opacity: 0;
}

.ltl-invoice__type-options {
  margin-bottom: 1.25rem;
}

/* Invoice fields inherit .ltl-shipping styles */
.ltl-invoice .input-text {
  width: 100%;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

.ltl-invoice .input-text:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.ltl-invoice .input-text.ltl-invalid {
  border-color: #e2401c;
  box-shadow: 0 0 0 2px rgba(226, 64, 28, 0.15);
}

.ltl-invoice label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.375rem;
}

.ltl-invoice label abbr.required {
  color: var(--color-accent);
  text-decoration: none;
}

.ltl-invoice__sdi-note {
  font-size: 0.8125rem;
  color: var(--color-accent);
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* Place order button */
.woocommerce-checkout #place_order {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  border: 2px solid var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  width: 100%;
  margin-top: 0.5rem;
}

.woocommerce-checkout #place_order:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* WooCommerce notices */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: 6px;
  padding: 1rem 1.25rem 1rem 3rem; /* left space reserved for WC icon */
  margin-bottom: 1.5rem;
  position: relative;
  list-style: none;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  list-style: none;
  margin: 0;
}

.woocommerce-error li + li,
.woocommerce-message li + li,
.woocommerce-info li + li {
  margin-top: 0.5rem;
}

.woocommerce-error {
  border-left: 3px solid #c44;
}

.woocommerce-info {
  border-left: 3px solid var(--color-accent);
}

/* Select2 overrides (WooCommerce country/state dropdowns) */
.select2-container--default .select2-selection--single {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: 4px;
  height: auto;
  padding: 0.5rem 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--color-text-primary);
  line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
}

.select2-dropdown {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

.select2-container--default .select2-results__option {
  color: var(--color-text-primary);
  padding: 0.5rem 1rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

/* ============================================
   THANK YOU PAGE
   ============================================ */
.ltl-thankyou {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.ltl-thankyou__moon {
  margin-bottom: 1.5rem;
}

.ltl-thankyou__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
}

.ltl-thankyou__details {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.ltl-thankyou__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.ltl-thankyou__row span {
  color: var(--color-text-secondary);
}

.ltl-thankyou__row strong {
  color: var(--color-text-primary);
}

.ltl-thankyou__row--luna strong {
  color: var(--color-accent);
  font-style: italic;
}

.ltl-thankyou__dedica {
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.ltl-thankyou__dedica em {
  color: var(--color-text-secondary);
  font-style: italic;
}

.ltl-thankyou__row--address {
  flex-direction: column;
  gap: 0.25rem;
}

.ltl-thankyou__row--address strong {
  font-weight: 400;
  line-height: 1.5;
}

.ltl-thankyou__message {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ltl-thankyou__order-num {
  display: none;
}

/* Hide WooCommerce default order details on thank you page */
.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details,
.woocommerce-order .woocommerce-order-overview,
.woocommerce-thankyou-order-details,
.ltl-thankyou ~ .woocommerce-order-details,
.ltl-thankyou ~ .woocommerce-customer-details,
.ltl-thankyou ~ section,
.ltl-thankyou ~ table,
.ltl-thankyou ~ p {
  display: none;
}

/* Hide duplicate "added to cart" notices on checkout */
.woocommerce-checkout .woocommerce-message {
  display: none;
}

.ltl-thankyou__error {
  text-align: center;
}

.ltl-thankyou__error p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}


/* ============================================
   GALLERY — "Ogni Luna ha la sua storia"
   ============================================ */
.gallery {
  background-color: var(--color-bg-secondary);
  padding: 5rem 1.5rem;
}

.gallery__inner {
  max-width: 900px;
  margin: 0 auto;
}

.gallery__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

/* Carousel wrapper — holds arrows + track */
.gallery__carousel {
  position: relative;
}

.gallery__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.gallery__track.is-dragging img {
  pointer-events: none;
}

/* Card: 2 full + ~30% peek on desktop */
.gallery__card {
  flex: 0 0 42%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  border-radius: 8px;
  user-select: none;
}

.gallery__card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-bg-secondary);
  border-radius: 8px 8px 0 0;
}

.gallery__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #12121a 0%, #1a1a25 100%);
  transition: transform 0.5s ease;
}

.gallery__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  -webkit-user-drag: none;
}

.gallery__card:hover .gallery__card-image img,
.gallery__card:hover .gallery__placeholder {
  transform: scale(1.03);
}

.gallery__card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.25rem;
}

.gallery__card-story {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.gallery__card-date {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.gallery__card-phase {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  opacity: 0.8;
}

/* Arrows — desktop only */
.gallery__arrow {
  position: absolute;
  top: 37%; /* roughly centered on the image, above card-info */
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.55);
  border: 1px solid rgba(138, 138, 149, 0.3);
  border-radius: 50%;
  color: #8a8a95;
  cursor: pointer;
  z-index: 2;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.gallery__arrow:hover {
  color: #e8e6e1;
  border-color: #e8e6e1;
  background: rgba(10, 10, 15, 0.75);
}

.gallery__arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.gallery__arrow--prev { left: -1.25rem; }
.gallery__arrow--next { right: -1.25rem; }

/* Dots */
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.gallery__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.gallery__dot:hover {
  background: var(--color-text-secondary);
}

.gallery__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .gallery__arrow {
    display: none;
  }

  .gallery__card {
    flex: 0 0 85%;
  }

  .gallery__card-story {
    font-size: 0.9375rem;
  }
}

/* ============================================
   WHAT YOU GET — "Cosa ricevi"
   ============================================ */
.what-you-get {
  background-color: var(--color-bg-secondary);
  padding: 5rem 1.5rem;
}

.what-you-get__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 3rem;
  align-items: start;
}

.what-you-get__image {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-bg-primary);
}

.what-you-get__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.what-you-get__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a25 100%);
}

.what-you-get__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
}

.what-you-get__items {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.what-you-get__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.what-you-get__icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.what-you-get__item-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.375rem;
}

.what-you-get__item-text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .what-you-get__inner {
    grid-template-columns: 1fr;
  }

  .what-you-get__image {
    aspect-ratio: 4 / 3;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 8px;
  }
}

/* ============================================
   ABOUT — "Chi sono"
   ============================================ */
.about {
  background-color: var(--color-bg-primary);
  padding: 5rem 1.5rem;
}

.about__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 3rem;
  align-items: center;
}

.about__image {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-bg-secondary);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #12121a 0%, #1a1a25 100%);
}

.about__opening {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about__text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about__signature {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.about__name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.about__role {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.about__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #8a8a95;
  text-decoration: none;
  transition: color 0.2s ease;
}
.about__instagram:hover,
.about__instagram:focus-visible {
  color: #c9a84c;
}
.about__instagram-icon {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__image {
    max-height: 320px;
    aspect-ratio: auto;
  }
}

/* ============================================
   FAQ — Accordion
   ============================================ */
.faq {
  background-color: var(--color-bg-secondary);
  padding: 5rem 1.5rem;
}

.faq__inner {
  max-width: 680px;
  margin: 0 auto;
}

.faq__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-primary);
  line-height: 1.4;
  gap: 1rem;
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
}

.faq__item.is-open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__answer p {
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   CTA FINAL — Full-width with background image
   ============================================ */
.cta-final {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-final__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.cta-final__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.6) 0%, rgba(10, 10, 15, 0.85) 100%);
}

.cta-final__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
}

.cta-final__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.cta-final__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}


/* ============================================
   ANIMATIONS — fade-in
   ============================================ */

/* Hero: CSS-only staggered fade-in on page load */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s ease forwards;
}

.fade-in--delay-1 { animation-delay: 0.3s; }
.fade-in--delay-2 { animation-delay: 0.6s; }
.fade-in--delay-3 { animation-delay: 1s; }

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered fade-in (activated by JS via IntersectionObserver) */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-scroll--delay-1 { transition-delay: 0.15s; }
.fade-in-scroll--delay-2 { transition-delay: 0.3s; }
.fade-in-scroll--delay-3 { transition-delay: 0.45s; }

.fade-in-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  /* Header */
  .site-header {
    padding: 1rem 1.5rem;
  }

  .site-header__hamburger {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .site-nav__link {
    font-size: 1.125rem;
  }

  .site-nav__cta {
    font-size: 0.875rem;
    padding: 0.875rem 2rem;
  }

  .site-nav__item--lang {
    margin-left: 0;
    margin-top: 1rem;
  }

  .site-lang-switch {
    justify-content: center;
  }

  /* Hero — stacked: Luna top, text bottom */
  .hero {
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
  }

  .hero__image img {
    object-position: center 30%;
  }

  .hero__overlay {
    background:
      linear-gradient(to top, #0a0a0f 0%, #0a0a0f 35%, rgba(10, 10, 15, 0.3) 55%, rgba(10, 10, 15, 0.05) 75%, transparent 100%);
  }

  .hero__content {
    max-width: 100%;
    padding: 0 1.5rem 5rem;
    text-align: center;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero__subtitle .hero__break {
    display: none;
  }

  .hero__subtitle .hero__break-space {
    display: inline;
  }

  .btn--outline {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
  }

  /* How it works — stack */
  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
  }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .site-footer__links {
    align-items: center;
  }
}

/* ==========================================================================
   Pagine legali — classe condivisa .legal-page
   Assegnare la classe "legal-page" alla pagina via Gutenberg →
   Impostazioni pagina → Avanzate → Classi CSS aggiuntive (finisce su <body>).
   Indipendente da lingua e ID pagina. Contenitore tema: .page-content
   ========================================================================== */

/* Contenitore principale */
body.legal-page .page-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 20px;
}

/* Titolo pagina (h1) */
body.legal-page .page-content h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  color: #e8e6e1;
  margin-bottom: 0.3em;
}

/* Titoli sezione (h2) */
body.legal-page .page-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: #c9a84c;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #2a2a35;
}

/* Sottotitoli (h3) */
body.legal-page .page-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: #e8e6e1;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

/* Paragrafi */
body.legal-page .page-content p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  color: #8a8a95;
  line-height: 1.7;
  margin-bottom: 1em;
}

/* Strong/bold nel testo */
body.legal-page .page-content strong,
body.legal-page .page-content b {
  color: #e8e6e1;
}

/* Liste */
body.legal-page .page-content ul,
body.legal-page .page-content ol {
  color: #8a8a95;
  line-height: 1.7;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

body.legal-page .page-content ul {
  list-style: disc;
}

body.legal-page .page-content li {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.5em;
}

body.legal-page .page-content ul li::marker {
  color: #c9a84c;
}

/* Link */
body.legal-page .page-content a {
  color: #c9a84c;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

body.legal-page .page-content a:hover,
body.legal-page .page-content a:focus {
  border-bottom-color: #c9a84c;
}

/* Separatori */
body.legal-page .page-content hr {
  border: none;
  border-top: 1px solid #2a2a35;
  margin: 2.5em 0;
}

/* Sottotitolo brand e data aggiornamento */
body.legal-page .page-content > p:first-of-type strong,
body.legal-page .page-content > p:first-of-type em {
  display: block;
  color: #8a8a95;
  font-weight: normal;
}

/* ============================================================
   404 — Pagina non trovata
   ============================================================ */
body.ltl-404-page {
  background: #0a0a0f;
  color: #e8e6e1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ltl-404__header {
  padding: 24px 32px;
}
.ltl-404__logo {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #e8e6e1;
  text-decoration: none;
}
.ltl-404__logo:hover {
  color: #c9a84c;
}
.ltl-404 {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.ltl-404__inner {
  text-align: center;
  max-width: 540px;
}
.ltl-404__moon {
  display: block;
  margin: 0 auto 28px;
}
.ltl-404__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.25;
  color: #e8e6e1;
  margin: 0;
}
.ltl-404__sub {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: #8a8a95;
  margin: 10px 0 0;
}
.ltl-404__cta {
  margin-top: 30px;
  display: inline-block;
}
.ltl-404__footer {
  padding: 20px 24px 28px;
  text-align: center;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.75rem;
  color: #5a5a65;
  line-height: 1.6;
}
.ltl-404__footer p {
  margin: 0;
}
@media (max-width: 600px) {
  .ltl-404__title { font-size: 1.6rem; }
}

/* ==========================================================================
   Complianz cookie tables — fix per tema scuro
   Sovrascrive i colori chiari di default del plugin con la palette del brand,
   indipendentemente dalla classe della pagina.
   ========================================================================== */

/* Header servizi (es. WordPress, WPML, WooCommerce) */
.cmplz-service-header h3 {
  color: #e8e6e1 !important;
}

.cmplz-service-header p {
  color: #c9a84c !important;
}

/* Sezioni Usage / Sharing data */
.cmplz-service-description h4,
.cmplz-sharing-data h4 {
  color: #e8e6e1 !important;
}

.cmplz-service-description p,
.cmplz-sharing-data p {
  color: #c5c5cc !important;
}

/* Tabella cookie per servizio */
.cookies-per-purpose .name,
.cookies-per-purpose .retention,
.cookies-per-purpose .function,
.cookies-per-purpose strong {
  color: #c5c5cc !important;
}

.cookies-per-purpose .purpose h4 {
  color: #c9a84c !important;
}

/* Link nei nomi dei cookie */
.cookies-per-purpose .name a,
.cmplz-service-description a,
.cmplz-sharing-data a {
  color: #c9a84c !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cookies-per-purpose .name a:hover,
.cmplz-service-description a:hover,
.cmplz-sharing-data a:hover {
  border-bottom-color: #c9a84c;
}

/* Dropdown details/summary */
.cmplz-dropdown {
  background: #12121a;
  border: 1px solid #2a2a35;
  border-radius: 6px;
  margin-bottom: 12px;
}

.cmplz-dropdown[open] {
  border-color: #c9a84c;
}
