/*
Theme Name: Antico Forno Roscioli
Theme URI: https://anticofornoroscioli.it
Author: Digital On
Description: Tema custom per Antico Forno Roscioli — forno artigianale dal 1972, Roma
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: Proprietary
Text Domain: forno-roscioli
*/

/* ========================================
   DESIGN SYSTEM — from Figma (zx38A7lrXZlLBzWj3eh1Dr)
   ======================================== */

:root {
  /* Colors */
  --color-primary: #8d5b2a;
  --color-primary-dark: #6d4822;
  --color-heading: #8d5b2a;
  --color-accent: #cda762;
  --bg-alt: #e8dbcc;
  --bg-cream: #f5f0eb;
  --bg-main: #ffffff;
  --text-body: #555555;
  --text-dark: #2a2a2a;
  --text-muted: #999999;
  --overlay-hero: rgba(0, 0, 0, 0.5);
  --border-subtle: #f0f0f0;
  --border-card: #ebebeb;
  --dark-bar: #2b2b2b;

  /* Typography */
  --font-body: 'Lato', sans-serif;
  --font-heading: 'DM Serif Display', serif;
  --font-display: 'Dancing Script', cursive;
  --font-price: 'Inter', sans-serif;

  /* Layout */
  --container-max: 1180px;
  --header-banner-h: 32px;
  --header-nav-h: 70px;
  --header-total-h: 102px;
  --section-padding: 80px 0;

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-medium: 0.25s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
  background: var(--bg-main);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY — Figma-exact values
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-heading);
}

/* H2 Section Title — DM Serif Display 40px/46px */
h2 {
  font-size: 40px;
  line-height: 46px;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
}

p + p {
  margin-top: 1em;
}

/* Eyebrow — Lato Bold 13px, tracking 2.6px, uppercase */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.6px;
  line-height: 18px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* Section Title block: eyebrow + h2 */
.section-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.section-title--center {
  align-items: center;
  text-align: center;
}

.eyebrow-script {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-accent);
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.section--alt {
  background: var(--bg-alt);
}

.section--cream {
  background: var(--bg-cream);
}

.section--dark {
  background: var(--dark-bar);
  color: #ffffff;
}

.grid {
  display: grid;
  gap: 40px;
}

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

/* ========================================
   BUTTONS — Figma-exact
   ======================================== */

/* Primary: bg #446084, rounded 8px, shadow 0 4px 0 #324a66 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.95px;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  gap: 8px;
}

.btn--primary,
.btn--brown {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0px 4px 0px var(--color-primary-dark);
}

.btn--primary:hover,
.btn--brown:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(2px);
  box-shadow: 0px 2px 0px var(--color-primary-dark);
}

/* Accent: gold button (used in product cards) */
.btn--accent {
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 8px 14px;
  gap: 6px;
  box-shadow: none;
}

.btn--accent:hover {
  background: #b8943f;
  color: #ffffff;
}

.btn--accent img {
  width: 14px;
  height: 14px;
}

/* Ghost/Outline */
.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--text-dark);
  color: #ffffff;
}

/* btn--brown merged with btn--primary above */

/* "Scopri di più" link-style with arrow */
.btn--link {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.95px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--link:hover {
  color: var(--color-primary);
}

.btn--link .arrow {
  transition: transform var(--t-fast);
}

.btn--link:hover .arrow {
  transform: translateX(4px);
}

/* ========================================
   OFFER BANNER — gold top bar
   ======================================== */

.offer-banner {
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  height: var(--header-banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.offer-banner__text {
  flex: 1;
}

.offer-banner__close {
  background: none;
  border: none;
  color: #ffffff;
  opacity: 0.7;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 4px;
  line-height: 1;
}

.offer-banner__close:hover {
  opacity: 1;
}

/* ========================================
   HEADER — Figma: 70px nav bar
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  transition: box-shadow var(--t-medium);
}

/* Transparent variant — on hero pages */
.site-header--transparent {
  position: absolute;
  top: var(--header-banner-h);
  left: 0;
  right: 0;
  background: transparent;
}

.site-header--transparent .header-nav {
  border-bottom: none;
}

.site-header--transparent .main-nav__link,
.site-header--transparent .header-actions a,
.site-header--transparent .header-actions button {
  color: #ffffff;
}

/* When scrolled — sticky with white bg */
.site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .main-nav__link,
.site-header.scrolled .header-actions a,
.site-header.scrolled .header-actions button {
  color: var(--text-dark);
}

/* Nav bar — 70px */
.header-nav {
  display: flex;
  align-items: center;
  height: var(--header-nav-h);
  padding: 0 60px;
  border-bottom: 1px solid var(--border-subtle);
}

.site-header--transparent .header-nav {
  border-bottom: none;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 53px;
  width: 104px;
  object-fit: contain;
}

/* Spacer */
.header-spacer {
  flex: 1;
  min-width: 0;
}

/* Navigation — Lato Bold 11px, tracking 1.2px */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__list {
  display: flex;
  gap: 32px;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dark);
  padding: 8px 0;
  display: block;
  white-space: nowrap;
}

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

/* Dropdown */
.main-nav__dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t-fast);
  z-index: 200;
  border-radius: 4px;
}

.main-nav__item:hover .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav__dropdown a {
  display: block;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-body);
  text-transform: none;
  letter-spacing: 0;
}

.main-nav__dropdown a:hover {
  color: var(--color-primary);
  background: var(--bg-cream);
}

/* Header right icons — gap 28px transparent, 20px dark */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header--transparent .header-actions {
  gap: 28px;
}

.header-actions a,
.header-actions button {
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color var(--t-fast);
}

.header-actions a:hover,
.header-actions button:hover {
  color: var(--color-primary);
}

.header-actions img {
  width: 18px;
  height: 18px;
}

/* Dark header: invert white SVG icons to dark */
.site-header:not(.site-header--transparent) .header-actions img,
.site-header.scrolled .header-actions img {
  filter: invert(1);
}

/* Cart with badge */
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-badge {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 8px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.site-header--transparent .hamburger span {
  background: #ffffff;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: calc(var(--header-total-h) + 20px) 24px 24px;
  overflow-y: auto;
}

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

.mobile-nav a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Mobile nav — product submenu */
.mobile-nav__group {
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dark);
  padding: 14px 0;
  cursor: pointer;
}

.mobile-nav__arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__arrow {
  transform: rotate(180deg);
}

.mobile-nav__sub {
  display: none;
  padding-left: 16px;
  padding-bottom: 8px;
}

.mobile-nav__sub.open {
  display: block;
}

.mobile-nav__sub a {
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 0;
  color: var(--text-body);
}

.mobile-nav__sub a:first-child {
  font-weight: 700;
  color: var(--color-primary);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Video background */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 24px 120px;
}

.hero__script {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero__title {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
}

.hero__text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* Ripped paper overlay at bottom of hero */
.hero__ripped {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero__ripped img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   RIPPED PAPER SEPARATOR — image-based
   ======================================== */

.separator-ripped {
  display: block;
  width: 100%;
  height: 180px;
  position: relative;
  margin-top: -1px;
  overflow: hidden;
}

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

/* ========================================
   CONTENT BLOCKS
   ======================================== */

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.content-row:nth-child(even) .content-row__image {
  order: -1;
}

.content-row__text h2 {
  margin-bottom: 20px;
}

.content-row__text p {
  margin-bottom: 16px;
}

.content-row__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* Logo bar */
.logo-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.logo-bar img {
  height: 40px;
  width: auto;
  opacity: 0.6;
  transition: opacity var(--t-fast);
  filter: grayscale(100%);
}

.logo-bar img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ========================================
   PRODUCTS SHOWCASE — Homepage visual grid
   ======================================== */

.products-showcase {
  position: relative;
  padding: 40px 0 80px;
  overflow: hidden;
}

.products-showcase__pattern {
  position: absolute;
  inset: 16px -146px 31px -152px;
  opacity: 0.15;
  background: url('assets/img/pattern-wheat.png') center / contain no-repeat;
  pointer-events: none;
}

/* Slider — full width, horizontal scroll */
.products-showcase__slider {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}

.products-showcase__track {
  display: flex;
  gap: 40px;
  animation: slider-scroll 20s linear infinite;
  width: max-content;
}

.products-showcase__track:hover {
  animation-play-state: paused;
}

@keyframes slider-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.products-showcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform var(--t-fast);
}

a.products-showcase__item:hover {
  transform: translateY(-4px);
}

.products-showcase__img {
  width: 250px;
  height: 200px;
  background: #e6e1da;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.products-showcase__name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
  white-space: nowrap;
}

.products-showcase__price {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  text-align: center;
}

.products-showcase__cta {
  text-align: center;
  margin-top: 40px;
}

/* Credibility Bar */
.credibility-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: #f9f6f3;
  border-radius: 8px;
  height: 60px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 30px;
  overflow: hidden;
}

.credibility-bar__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.credibility-bar__stars {
  font-size: 16px;
  color: var(--color-accent);
}

.credibility-bar__score {
  font-family: var(--font-body);
  font-size: 13px;
  color: #666666;
}

.credibility-bar__sep {
  width: 1px;
  height: 24px;
  background: #ccbfb2;
  flex-shrink: 0;
}

.credibility-bar__highlight {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #8d5b2a;
  white-space: nowrap;
}

.credibility-bar__label {
  font-family: var(--font-body);
  font-size: 11px;
  color: #808080;
  white-space: nowrap;
}

.credibility-bar__press {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #737373;
  white-space: nowrap;
}

.credibility-bar__link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #8d5b2a;
  text-decoration: underline;
  white-space: nowrap;
}

.credibility-bar__link:hover {
  color: #6d4822;
}

/* Credibility bar responsive */
@media (max-width: 900px) {
  .credibility-bar {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 20px;
    gap: 12px 20px;
  }

  .credibility-bar__label,
  .credibility-bar__press {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .products-showcase__row {
    gap: 16px 24px;
  }

  .products-showcase__img {
    width: 150px;
    height: 130px;
  }

  .products-showcase__name {
    font-size: 14px;
  }

  .credibility-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
  }

  .credibility-bar__sep {
    display: none;
  }
}

/* ========================================
   FILOSOFIA SECTION — video + text
   ======================================== */

.filosofia-section {
  padding: 50px 0 80px;
}

.filosofia-section__content {
  display: flex;
  gap: 68px;
  align-items: center;
}

.filosofia-section__video {
  flex-shrink: 0;
  width: 503px;
  height: 402px;
  background: #404040;
  border-radius: 8px;
  overflow: hidden;
}

.filosofia-section__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.filosofia-section__text {
  max-width: 500px;
}

.filosofia-section__text h2 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.filosofia-section__text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 14px;
}

.filosofia-section__text .btn--link {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .filosofia-section__content {
    flex-direction: column;
    gap: 40px;
  }

  .filosofia-section__video {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
  }

  .filosofia-section__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .filosofia-section__text {
    max-width: 100%;
  }

  .filosofia-section__text h2 {
    font-size: 32px;
  }
}

/* ========================================
   SERVICES CARDS — tilted cards from Figma
   ======================================== */

.services-cards {
  background: linear-gradient(180deg, #ffffff 0%, rgba(232, 219, 204, 0.8) 31%, rgba(232, 219, 204, 0.8) 68%, #ffffff 100%);
  padding: 80px 0;
}

.services-cards__stack {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: flex-start;
}

.services-cards__wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-cards__wrap--1 { transform: rotate(0.94deg); }
.services-cards__wrap--2 { transform: rotate(-2deg); }
.services-cards__wrap--3 { transform: rotate(2.29deg); }

.services-card {
  display: flex;
  flex-direction: column;
  width: 393px;
  height: 439px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-medium), box-shadow var(--t-medium);
}

.services-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.12);
  color: inherit;
}

.services-cards__wrap--2 .services-card {
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.09);
}

.services-cards__wrap--3 .services-card {
  box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.12);
}

.services-card__img {
  height: 240px;
  background: #c8b49b;
  overflow: hidden;
}

.services-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-card__body {
  padding: 24px;
  flex: 1;
}

.services-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.services-card__body p {
  font-size: 14px;
  line-height: 22px;
  color: #505050;
}

@media (max-width: 900px) {
  .services-cards__stack {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .services-cards__wrap--1,
  .services-cards__wrap--2,
  .services-cards__wrap--3 {
    transform: none;
  }

  .services-card {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
}

/* ========================================
   STORIA SECTION — I Roscioli ed il Forno
   ======================================== */

.storia-section {
  position: relative;
  padding: 80px 0 0;
  overflow: visible;
}

.storia-section__pattern {
  position: absolute;
  top: 0;
  left: -36px;
  right: 3px;
  bottom: 300px;
  opacity: 0.5;
  background: url('assets/img/pattern-wheat.png') center / contain no-repeat;
  pointer-events: none;
}

.storia-section__top {
  display: flex;
  gap: 100px;
  align-items: flex-start;
  margin-bottom: 80px;
}

.storia-section__heading {
  flex-shrink: 0;
  width: 500px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.storia-section__title {
  font-size: 48px;
  line-height: 1.15;
}

.storia-section__text {
  flex: 1;
  padding-top: 38px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}

.storia-section__text p + p {
  margin-top: 14px;
}

.storia-section__images {
  display: flex;
  gap: 23px;
  width: 100%;
  overflow: hidden;
  padding: 0 24px;
  margin-bottom: 60px;
}

.storia-section__img {
  flex: 1;
  height: 261px;
  background: #d9c7b2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.storia-section__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storia-section__ripped {
  position: relative;
  width: 100%;
  margin-top: -10px;
  line-height: 0;
  z-index: 2;
}

.storia-section__ripped img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .storia-section__top {
    flex-direction: column;
    gap: 30px;
  }

  .storia-section__heading {
    width: 100%;
  }

  .storia-section__title {
    font-size: 36px;
  }

  .storia-section__text {
    padding-top: 0;
  }

  .storia-section__images {
    flex-wrap: wrap;
    gap: 16px;
  }

  .storia-section__img {
    flex: 1 1 calc(50% - 8px);
    height: 180px;
  }
}

@media (max-width: 560px) {
  .storia-section__title {
    font-size: 28px;
  }

  .storia-section__img {
    flex: 1 1 100%;
    height: 200px;
  }
}

/* ========================================
   PRODUCT CARD v2 — Figma-exact
   280px, rounded-8, border #ebebeb, image bg #f5f0eb
   ======================================== */

.product-card {
  background: var(--bg-main);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--t-medium);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__image-wrap {
  background: var(--bg-cream);
  height: 220px;
  position: relative;
  overflow: hidden;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--t-fast);
}

.product-card__wishlist:hover {
  opacity: 1;
}

.product-card__wishlist img {
  width: 100%;
  height: 100%;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 12px 12px 14px;
  text-align: center;
}

.product-card__category {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  line-height: normal;
}

.product-card__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: normal;
}

.product-card__title a {
  color: inherit;
}

.product-card__price {
  font-family: var(--font-price);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: normal;
}

/* ========================================
   SERVICE BLOCKS
   ======================================== */

.service-block {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 8px;
}

.service-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-block:hover img {
  transform: scale(1.05);
}

.service-block__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.service-block__title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: #ffffff;
}

/* ========================================
   SHOP PAGE — Figma-exact layout
   ======================================== */

/* Breadcrumb bar */
.shop-breadcrumb {
  background: #f9f6f3;
  height: 50px;
  display: flex;
  align-items: center;
}

.shop-breadcrumb__text {
  font-family: var(--font-body);
  font-size: 11px;
  color: #999999;
  letter-spacing: 0.8px;
}

/* Shop layout */
.shop-layout {
  padding: 30px 0 60px;
}

.shop-layout__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Sidebar */
.shop-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-sidebar__search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-family: var(--font-price);
  font-size: 14px;
  color: var(--text-dark);
  background: #ffffff;
}

.shop-sidebar__search input::placeholder {
  color: #aaaaaa;
}

.shop-sidebar__title {
  font-family: var(--font-price);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.shop-sidebar__cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  text-decoration: none;
  color: #666666;
  font-family: var(--font-price);
  font-size: 14px;
}

.shop-sidebar__cat:hover {
  color: var(--text-dark);
}

.shop-sidebar__cat--active {
  color: var(--text-dark);
  font-weight: 600;
}

.shop-sidebar__cb {
  width: 16px;
  height: 16px;
  border: 1.5px solid #cccccc;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #ffffff;
}

.shop-sidebar__cb--checked {
  background: #8d5b2a;
  border-color: #8d5b2a;
}

.shop-sidebar__cat-name {
  flex: 1;
}

.shop-sidebar__cat-count {
  font-size: 12px;
  color: #999999;
}

.shop-sidebar__clear {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-price);
  font-size: 12px;
  color: #8d5b2a;
  text-decoration: underline;
}

/* Top bar */
.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.shop-topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-topbar__count {
  font-family: var(--font-price);
  font-size: 13px;
  color: #808080;
}

.shop-topbar__spacer {
  width: 20px;
}

.shop-topbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4efea;
  padding: 5px 10px 5px 12px;
  border-radius: 16px;
  font-family: var(--font-price);
  font-size: 12px;
  color: #555555;
  text-decoration: none;
}

.shop-topbar__chip-x {
  color: #999999;
  font-size: 14px;
}

.shop-topbar__clear {
  font-family: var(--font-price);
  font-size: 12px;
  color: #8d5b2a;
  text-decoration: underline;
}

.shop-topbar__sort select {
  padding: 7px 14px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-family: var(--font-price);
  font-size: 13px;
  color: #555555;
  background: #ffffff;
  cursor: pointer;
}

/* Product grid */
.shop-products {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 20px;
}

.shop-products .product-card {
  width: calc(33.333% - 14px);
}

.shop-pagination {
  margin-top: 40px;
  text-align: center;
}

.shop-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-body);
  text-decoration: none;
  margin: 0 2px;
}

.shop-pagination .page-numbers.current {
  background: #8d5b2a;
  color: #ffffff;
}

.shop-pagination .page-numbers:hover:not(.current) {
  background: #f4efea;
}

.shop-empty {
  padding: 60px 0;
  text-align: center;
  color: #999999;
  font-size: 16px;
}

/* Grid area */
.shop-grid-area {
  flex: 1;
  min-width: 0;
}

/* Shop responsive */
@media (max-width: 900px) {
  .shop-layout__inner {
    flex-direction: column;
  }

  .shop-sidebar {
    width: 100%;
  }

  .shop-products .product-card {
    width: calc(50% - 10px);
  }

  .shop-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .shop-products .product-card {
    width: 100%;
  }
}

/* ========================================
   CART PAGE — Figma-exact
   ======================================== */

/* Progress steps */
.cart-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 70px;
}

.cart-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-progress__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: #999999;
}

.cart-progress__num--active {
  background: #8d5b2a;
  border-color: #8d5b2a;
  color: #ffffff;
  font-weight: 700;
}

.cart-progress__label {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999999;
}

.cart-progress__label--active {
  color: var(--text-dark);
  font-weight: 700;
}

.cart-progress__line {
  width: 50px;
  height: 2px;
  background: #ebebeb;
}

/* Cart layout */
.cart-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.cart-items {
  flex: 1;
  min-width: 0;
}

.cart-items__title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-heading);
  margin-bottom: 20px;
}

/* Cart row */
.cart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #ebebeb;
}

.cart-row__img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-cream);
  flex-shrink: 0;
}

.cart-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-row__name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.cart-row__meta {
  font-size: 12px;
  color: #999999;
}

.cart-row__price {
  font-family: var(--font-price);
  font-size: 14px;
  color: var(--text-body);
  flex-shrink: 0;
}

.cart-row__qty .quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: 6px 10px;
}

.cart-row__qty .quantity input {
  width: 30px;
  text-align: center;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  -moz-appearance: textfield;
  padding: 0;
}

.cart-row__qty .quantity input::-webkit-inner-spin-button,
.cart-row__qty .quantity input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.cart-row__subtotal {
  font-family: var(--font-price);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
}

.cart-row__remove {
  font-size: 14px;
  color: #999999;
  text-decoration: none;
  flex-shrink: 0;
}

.cart-row__remove:hover {
  color: #cc0000;
}

/* Coupon */
.cart-coupon {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 20px;
}

.cart-coupon__input {
  padding: 10px 14px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  width: 180px;
}

.cart-coupon__input::placeholder {
  color: #999999;
}

.cart-coupon__btn {
  padding: 10px 20px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  cursor: pointer;
  text-transform: uppercase;
}

.cart-coupon__btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.cart-coupon__update {
  display: none;
}

/* Summary */
.cart-summary {
  width: 340px;
  flex-shrink: 0;
  background: #faf7f5;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-summary__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8d5b2a;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
}

.cart-summary__divider {
  height: 1px;
  background: #d9d1c7;
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-summary__total span:first-child {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-summary__total-price,
.cart-summary__total-price .woocommerce-Price-amount {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-heading);
}

.cart-summary__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent);
  color: #ffffff;
  padding: 16px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t-fast);
}

.cart-summary__checkout:hover {
  background: #b8943f;
  color: #ffffff;
}

.cart-summary__note {
  font-size: 12px;
  color: #999999;
}

.cart-summary__badge {
  font-size: 12px;
  color: #999999;
}

/* Cart responsive */
@media (max-width: 900px) {
  .cart-layout {
    flex-direction: column;
  }

  .cart-summary {
    width: 100%;
  }

  .cart-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .cart-row__info {
    min-width: 120px;
  }
}

@media (max-width: 560px) {
  .cart-progress {
    gap: 8px;
  }

  .cart-progress__line {
    width: 20px;
  }

  .cart-progress__label {
    font-size: 11px;
  }
}

/* ========================================
   CHECKOUT — Figma-styled WC native
   ======================================== */

/* Checkout layout — two columns */
.checkout-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 130px 60px;
  background: #ffffff;
}

.checkout-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar — order summary */
.checkout-sidebar {
  width: 340px;
  flex-shrink: 0;
  background: #faf7f5;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-sidebar__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin: 0;
}

.checkout-sidebar__divider {
  height: 1px;
  background: #d9d1c7;
}

/* Checkout cart items */
.checkout-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.checkout-item__img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #f5f0eb;
  border-radius: 4px;
  overflow: hidden;
}

.checkout-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.checkout-item__name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item__qty {
  font-family: var(--font-body);
  font-size: 11px;
  color: #999;
}

.checkout-item__price {
  font-family: var(--font-price);
  font-size: 13px;
  color: var(--text-dark);
  flex-shrink: 0;
}

/* Coupon in sidebar */
.checkout-coupon {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.checkout-coupon__input {
  flex: 1;
  min-width: 0;
  height: 32px;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
}

.checkout-coupon__input::placeholder {
  color: #999;
}

.checkout-coupon__btn {
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  background: transparent;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}

.checkout-coupon__btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Sidebar totals */
.checkout-totals__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-body);
}

.checkout-totals__free {
  color: #33994d;
}

.checkout-totals__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.checkout-totals__total > span:first-child {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.checkout-totals__total-price,
.checkout-totals__total-price .woocommerce-Price-amount {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-primary);
}

/* Trust badges */
.checkout-trust {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
}

.checkout-trust span {
  font-family: var(--font-body);
  font-size: 11px;
  color: #999;
}

/* Section titles */
.checkout-section__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* Form fields */
.woocommerce-checkout .form-row {
  margin-bottom: 12px;
}

.woocommerce-checkout .form-row label {
  display: none;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  background: #faf7f5;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  width: 100%;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: var(--color-accent);
  outline: none;
}

.woocommerce-checkout .form-row input.input-text::placeholder {
  color: #999999;
}

/* Two-column rows (nome/cognome) */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: calc(50% - 6px);
  display: inline-block;
  vertical-align: top;
}

.woocommerce-checkout .form-row-first {
  margin-right: 6px;
}

.woocommerce-checkout .form-row-last {
  margin-left: 6px;
}

/* Address row: Città (flex) + CAP (80px) + Provincia (80px) — Figma layout */
.checkout-address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkout-address-row .form-row {
  margin-bottom: 0;
}

.checkout-address-row .form-row-wide {
  width: 100%;
  flex: 0 0 100%;
}

.checkout-address-row .form-row-first {
  flex: 1;
  min-width: 0;
  width: auto;
  margin-right: 0;
}

.checkout-address-row .form-row-cap {
  flex: 0 0 80px;
  width: 80px;
}

.checkout-address-row .form-row-provincia {
  flex: 0 0 80px;
  width: 80px;
}

/* Hide WC default billing section heading */
.woocommerce-checkout #customer_details h3 {
  display: none !important;
}

/* Payment methods */
.checkout-payment-wrapper .wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkout-payment-wrapper .wc_payment_method {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.checkout-payment-wrapper .wc_payment_method:has(input:checked) {
  background: #faf7f5;
  border-color: var(--color-accent);
  border-width: 1.5px;
}

.checkout-payment-wrapper .wc_payment_method label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-payment-wrapper .payment_box {
  padding: 12px 0 0;
}

.checkout-payment-wrapper .payment_box p {
  font-size: 13px;
  color: var(--text-body);
  margin: 0;
}

/* Place order button */
.woocommerce-checkout #place_order {
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  width: auto;
  margin-top: 16px;
  transition: background var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.woocommerce-checkout #place_order:hover {
  background: #b8943f;
}

/* Terms checkbox */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: 12px;
  color: #999;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
  display: inline !important;
  font-size: 12px;
  color: #999;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  border: 1.5px solid #ccc;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Select2 in checkout */
.woocommerce-checkout .select2-container .select2-selection--single {
  background: #faf7f5;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  height: 42px;
  padding: 6px 14px;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark);
  line-height: 28px;
  padding: 0;
}

/* Hide WC default order review (we use custom sidebar) */
.woocommerce-checkout #order_review_heading {
  display: none;
}

/* WC payment inside our wrapper — remove default table */
.checkout-payment-wrapper #order_review {
  background: none;
  padding: 0;
}

.checkout-payment-wrapper .shop_table {
  display: none;
}

/* Checkout breadcrumb */
.checkout-breadcrumb {
  background: #faf7f5;
  padding: 14px 130px;
  font-family: var(--font-body);
  font-size: 11px;
  color: #999;
  letter-spacing: 0.8px;
}

/* Checkout progress bar */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
  background: #ffffff;
}

.checkout-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-progress__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid #ebebeb;
  color: #999;
  background: #ffffff;
}

.checkout-progress__step--done .checkout-progress__circle {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.checkout-progress__step--active .checkout-progress__circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.checkout-progress__label {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
}

.checkout-progress__step--active .checkout-progress__label {
  color: var(--text-dark);
  font-weight: 700;
}

.checkout-progress__line {
  width: 50px;
  height: 2px;
  background: #ebebeb;
}

.checkout-progress__line--done {
  background: var(--color-accent);
}

/* Checkout responsive */
@media (max-width: 900px) {
  .checkout-layout {
    flex-direction: column;
    padding: 30px 24px 40px;
  }

  .checkout-sidebar {
    width: 100%;
  }

  .checkout-breadcrumb {
    padding: 14px 24px;
  }
}

@media (max-width: 560px) {
  .checkout-progress {
    gap: 10px;
  }

  .checkout-progress__line {
    width: 30px;
  }

  .checkout-progress__label {
    font-size: 11px;
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100%;
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .checkout-address-row {
    flex-direction: column;
  }

  .checkout-address-row .form-row-first,
  .checkout-address-row .form-row-cap,
  .checkout-address-row .form-row-provincia {
    flex: 0 0 100%;
    width: 100%;
  }

  .checkout-layout {
    padding: 20px 16px 30px;
  }
}

/* ========================================
   THANKYOU PAGE — Figma-exact (1461:1126)
   ======================================== */

.thankyou-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 50px 200px;
  text-align: center;
}

.thankyou-hero__icon-outer {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: rgba(205, 167, 98, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-hero__icon-inner {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-hero__title {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--color-primary);
  line-height: normal;
}

.thankyou-hero__text {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  max-width: 600px;
}

/* Order details — two columns */
.thankyou-details {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 10px 200px 50px;
}

.thankyou-order {
  flex: 1;
  min-width: 0;
  background: #faf7f5;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.thankyou-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.thankyou-card {
  background: #faf7f5;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thankyou-section-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin: 0;
}

/* Detail rows */
.thankyou-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: normal;
}

.thankyou-row__label {
  font-family: var(--font-body);
  color: #999;
}

.thankyou-row__value {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-dark);
}

.thankyou-divider {
  height: 1px;
  background: #d9d1c7;
}

/* Order items */
.thankyou-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.thankyou-item__img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: #f5f0eb;
  border-radius: 4px;
  overflow: hidden;
}

.thankyou-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thankyou-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.thankyou-item__name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.thankyou-item__qty {
  font-family: var(--font-body);
  font-size: 11px;
  color: #999;
}

.thankyou-item__price {
  font-family: var(--font-price);
  font-size: 13px;
  color: var(--text-dark);
  flex-shrink: 0;
}

/* Shipping address */
.thankyou-addr__name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.thankyou-addr__lines {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
  line-height: normal;
}

.thankyou-addr__lines p {
  margin: 0;
}

/* Next steps */
.thankyou-step {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-body);
  margin: 0;
}

.thankyou-card .thankyou-step + .thankyou-step {
  margin-top: 4px;
}

/* CTAs */
.thankyou-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 0 200px 40px;
}

.thankyou-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.thankyou-cta--primary {
  background: var(--color-accent);
  color: #ffffff;
}

.thankyou-cta--primary:hover {
  background: #b8943f;
  color: #ffffff;
}

.thankyou-cta--outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.thankyou-cta--outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Thankyou responsive */
@media (max-width: 900px) {
  .thankyou-hero {
    padding: 40px 24px;
  }

  .thankyou-details {
    flex-direction: column;
    padding: 10px 24px 40px;
  }

  .thankyou-ctas {
    padding: 0 24px 40px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .thankyou-hero__title {
    font-size: 26px;
  }

  .thankyou-hero__text {
    font-size: 14px;
  }

  .thankyou-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .thankyou-cta {
    justify-content: center;
  }
}

/* ========================================
   SINGLE PRODUCT (PDP) — Figma-exact
   ======================================== */

.pdp {
  padding: 40px 0 50px;
}

.pdp__layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Gallery */
.pdp__gallery {
  width: 520px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp__main-image {
  background: var(--bg-cream);
  border-radius: 8px;
  height: 480px;
  overflow: hidden;
}

.pdp__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp__main-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-cream);
}

.pdp__thumbs {
  display: flex;
  gap: 10px;
}

.pdp__thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0ebe5;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}

.pdp__thumb--active {
  border-color: #8d5b2a;
}

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

/* Info */
.pdp__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdp__category-badge {
  display: inline-block;
  background: var(--bg-cream);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: #8d5b2a;
  text-decoration: none;
  align-self: flex-start;
}

.pdp__title {
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--text-dark);
  line-height: normal;
}

.pdp__price {
  font-family: var(--font-price);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
}

.pdp__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp__stars {
  font-size: 14px;
  color: var(--color-accent);
}

.pdp__rating-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999999;
}

.pdp__description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 480px;
}

.pdp__description p + p {
  margin-top: 12px;
}

.pdp__weight {
  font-size: 14px;
  color: #999999;
}

/* Cart row */
.pdp__cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pdp__qty {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 12px 14px;
}

.pdp__qty-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #999999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.pdp__qty-input {
  width: 30px;
  text-align: center;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  -moz-appearance: textfield;
}

.pdp__qty-input::-webkit-inner-spin-button,
.pdp__qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp__add-btn {
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast);
}

.pdp__add-btn:hover {
  background: #b8943f;
}

/* Trust badges */
.pdp__trust {
  display: flex;
  gap: 24px;
  padding-top: 4px;
}

.pdp__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999999;
}

.pdp__trust-icon {
  font-size: 14px;
}

.pdp__paypal {
  font-size: 12px;
  color: #999999;
}

.pdp__meta {
  font-size: 11px;
  color: #b3b3b3;
}

.pdp__meta a {
  color: #b3b3b3;
  text-decoration: underline;
}

/* Details section */
.pdp-details {
  background: #faf7f5;
  padding: 40px 0;
}

.pdp-details__grid {
  display: flex;
  gap: 60px;
}

.pdp-details__col {
  flex: 1;
}

.pdp-details__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.pdp-details__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

/* Related products */
.pdp-related {
  padding: 50px 0 60px;
}

.pdp-related__title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-heading);
  margin-bottom: 24px;
}

.pdp-related__grid {
  display: flex;
  gap: 24px;
}

.pdp-related__grid .product-card {
  flex: 1;
  min-width: 0;
}

/* PDP responsive */
@media (max-width: 900px) {
  .pdp__layout {
    flex-direction: column;
    gap: 30px;
  }

  .pdp__gallery {
    width: 100%;
  }

  .pdp__main-image {
    height: 350px;
  }

  .pdp__title {
    font-size: 28px;
  }

  .pdp__trust {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pdp-details__grid {
    flex-direction: column;
    gap: 30px;
  }

  .pdp-related__grid {
    flex-wrap: wrap;
  }

  .pdp-related__grid .product-card {
    flex: 1 1 calc(50% - 12px);
  }
}

@media (max-width: 560px) {
  .pdp__main-image {
    height: 280px;
  }

  .pdp__cart-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pdp__qty {
    justify-content: center;
  }

  .pdp-related__grid .product-card {
    flex: 1 1 100%;
  }
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-main);
  transition: border-color var(--t-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.form-check label {
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ========================================
   FORM VALIDATION & FEEDBACK
   ======================================== */

/* Error messages — hidden by default */
.form-error {
  display: none;
  font-size: 12px;
  color: #cc3333;
  margin-top: 4px;
}

/* Show error when field is invalid after submission attempt */
.forno-form.was-validated .form-group input:invalid ~ .form-error,
.forno-form.was-validated .form-group select:invalid ~ .form-error,
.forno-form.was-validated .form-group textarea:invalid ~ .form-error,
.forno-form.was-validated .form-check input:invalid ~ .form-error,
.forno-form.was-validated .form-field input:invalid ~ .form-error,
.forno-form.was-validated .form-field select:invalid ~ .form-error {
  display: block;
}

/* Red border on invalid fields */
.forno-form.was-validated input:invalid,
.forno-form.was-validated select:invalid,
.forno-form.was-validated textarea:invalid {
  border-color: #cc3333 !important;
}

/* Green border on valid fields */
.forno-form.was-validated input:valid:not([type="checkbox"]):not([type="date"]),
.forno-form.was-validated select:valid:not([value=""]),
.forno-form.was-validated textarea:valid {
  border-color: #5a9e6f !important;
}

/* Feedback messages — hidden by default */
.form-feedback {
  display: none;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 16px;
}

.form-feedback--success {
  background: #edf7ed;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-feedback--error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6cb;
}

.form-feedback.show {
  display: block;
}

/* Form field wrapper for eventi inline layout */
.form-field {
  flex: 1;
  min-width: 0;
}

/* ========================================
   FOOTER — Figma-exact dark footer
   ======================================== */

.site-footer {
  background: var(--dark-bar);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 50px 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-col p,
.footer-col span {
  font-size: 14px;
  color: #b3b3b3;
  line-height: 22px;
}

.footer-col__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.6px;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.footer-col a {
  display: block;
  color: #b3b3b3;
  font-size: 14px;
  line-height: 22px;
  padding: 0;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-spacer {
  height: 20px;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #b3b3b3;
  font-size: 12px;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  padding: 0;
  color: #b3b3b3;
  transition: opacity var(--t-fast);
}

.footer-social a:hover {
  opacity: 0.7;
}

.footer-social svg {
  transition: stroke var(--t-fast), fill var(--t-fast);
}

.footer-social a:hover svg {
  stroke: #ffffff;
  fill: #ffffff;
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    padding: 40px 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 12px;
    display: block;
  }

  .footer-col__title {
    margin-bottom: 8px;
  }

  .footer-col a,
  .footer-col p,
  .footer-col span {
    font-size: 14px;
    line-height: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 20px 0;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ========================================
   SECTION HEADER
   ======================================== */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
  padding: 24px 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  margin: 0 6px;
}

/* ========================================
   TIMELINE — Chi Siamo page
   ======================================== */

.timeline-section {
  padding: 80px 0;
}

.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 40px;
  width: 2px;
  background: #d9ccb8;
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 80px;
}

.timeline__item--left {
  justify-content: flex-start;
  padding-right: calc(50% + 60px);
}

.timeline__item--right {
  justify-content: flex-end;
  padding-left: calc(50% + 60px);
}

.timeline__badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d9ccb8;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline__badge.badge--small {
  font-size: 12px;
}

.timeline__connector {
  position: absolute;
  top: 24px;
  width: 60px;
  height: 2px;
  background: #d9ccb8;
}

.timeline__item--left .timeline__connector {
  right: calc(50% - 28px);
}

.timeline__item--right .timeline__connector {
  left: calc(50% - 28px);
}

.timeline__card {
  background: #f5f0e8;
  border-radius: 12px;
  overflow: hidden;
  width: 380px;
}

.timeline__card-img {
  height: 160px;
  background: #d1bfa8;
  overflow: hidden;
}

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

.timeline__card-body {
  padding: 20px 28px 24px;
}

.timeline__card-body h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.timeline__card-body p {
  font-size: 14px;
  line-height: 22px;
  color: #737373;
}

.timeline__end {
  text-align: center;
  color: #d9ccb8;
  font-size: 16px;
  position: relative;
  z-index: 2;
}

/* Timeline animations */
.timeline__line--animated {
  --line-progress: 0;
  background: linear-gradient(to bottom, #d9ccb8 calc(var(--line-progress) * 100%), transparent calc(var(--line-progress) * 100%));
}

.timeline__item {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline__item--left {
  transform: translateX(-40px);
}

.timeline__item--right {
  transform: translateX(40px);
}

.timeline__item--visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline__item--visible .timeline__badge {
  animation: badge-pop 0.4s ease 0.3s both;
}

.timeline__item--visible .timeline__card {
  animation: card-rise 0.5s ease 0.4s both;
}

.timeline__item--visible .timeline__connector {
  animation: connector-grow 0.3s ease 0.2s both;
}

@keyframes badge-pop {
  0% { transform: translateX(-50%) scale(0); }
  70% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes card-rise {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes connector-grow {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.timeline__item--left .timeline__connector {
  transform-origin: right center;
}

.timeline__item--right .timeline__connector {
  transform-origin: left center;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  margin-top: 12px;
  font-size: 36px;
}

.cta-section__sub {
  font-size: 16px;
  color: #666666;
  margin-top: 20px;
}

.cta-section__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.btn--outline-brown {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  box-shadow: none;
}

.btn--outline-brown:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Timeline responsive */
@media (max-width: 900px) {
  .timeline__line {
    left: 28px;
  }

  .timeline__item--left,
  .timeline__item--right {
    padding-left: 90px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline__badge {
    left: 28px;
    transform: translateX(-50%);
  }

  .timeline__connector {
    left: 56px !important;
    right: auto !important;
    width: 34px;
  }

  .timeline__card {
    width: 100%;
  }

  .timeline__item--left,
  .timeline__item--right {
    transform: translateX(30px);
  }

  .timeline__item--visible .timeline__badge {
    animation: badge-pop-mobile 0.4s ease 0.3s both;
  }
}

@keyframes badge-pop-mobile {
  0% { transform: translateX(-50%) scale(0); }
  70% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}

@media (max-width: 560px) {
  .timeline__item {
    margin-bottom: 50px;
  }

  .cta-section__buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ========================================
   HERO — Left-aligned variant (Per le Aziende)
   ======================================== */

.hero--left {
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  min-height: 660px;
  padding: 180px 130px 120px;
}

.hero--left .hero__content-left {
  position: relative;
  z-index: 2;
  max-width: 625px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.hero--left .hero__title {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 0;
}

.hero--left .hero__text {
  margin-bottom: 0;
  opacity: 0.85;
  color: #d9d9d9;
}

.hero__cta-row {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-top: 8px;
}

.btn--accent-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast);
}

.btn--accent-hero:hover {
  background: #b8943f;
  color: #ffffff;
}

.hero__video-link {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--color-accent);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.hero__video-link:hover {
  color: #b8943f;
}

.hero__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  font-size: 12px;
  color: var(--color-accent);
}

.hero__reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding-top: 8px;
}

.hero__reviews strong {
  color: #ffffff;
  font-weight: 700;
}

.hero__stars {
  color: #ffc700;
}

.hero__reviews-count {
  color: #cccccc;
}

@media (max-width: 900px) {
  .hero--left {
    padding: 140px 24px 40px;
    min-height: 500px;
  }

  .hero--left .hero__title {
    font-size: 36px;
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .hero--left .hero__title {
    font-size: 28px;
  }
}

/* ========================================
   STATS BAR — Per le Aziende
   ======================================== */

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  background: #f9f6f3;
  height: 80px;
  padding: 0 130px;
  overflow: hidden;
}

.stats-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.stats-bar__number {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-heading);
}

.stats-bar__label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-body);
}

.stats-bar__sep {
  width: 1px;
  height: 30px;
  background: #ccbfb2;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .stats-bar {
    flex-wrap: wrap;
    height: auto;
    padding: 20px 24px;
    gap: 16px 30px;
  }

  .stats-bar__number {
    font-size: 22px;
  }

  .stats-bar__sep {
    display: none;
  }
}

@media (max-width: 560px) {
  .stats-bar {
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
  }
}

/* ========================================
   PARTNER LOGOS — Per le Aziende
   ======================================== */

.partner-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.partner-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--t-fast);
  filter: grayscale(100%);
}

.partner-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ========================================
   GRADIENT SECTIONS — Per le Aziende
   ======================================== */

.section--gradient-down {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
}

.section--gradient-up {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%);
}

/* ========================================
   B2B FORM — Per le Aziende
   ======================================== */

.b2b-form-wrap {
  max-width: 807px;
  margin: 0 auto;
  padding: 36px 0 20px;
}

.b2b-form__title {
  font-family: var(--font-price);
  font-size: 22px;
  font-weight: 700;
  color: #3e2f22;
  margin-bottom: 8px;
}

.b2b-form__subtitle {
  font-family: var(--font-price);
  font-size: 14px;
  line-height: 22px;
  color: #3e2f22;
  margin-bottom: 12px;
}

.b2b-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b2b-form__row {
  display: flex;
  gap: 16px;
}

.b2b-form__row input {
  flex: 1;
  min-width: 0;
}

.b2b-form-wrap input[type="text"],
.b2b-form-wrap input[type="email"],
.b2b-form-wrap input[type="tel"],
.b2b-form-wrap textarea {
  width: 100%;
  background: #faf8f5;
  border: 1px solid #faf8f5;
  border-radius: 3px;
  padding: 12px 14px;
  font-family: var(--font-price);
  font-size: 13px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
}

.b2b-form-wrap input:focus,
.b2b-form-wrap textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.b2b-form-wrap input::placeholder,
.b2b-form-wrap textarea::placeholder {
  color: #999999;
}

.b2b-form-wrap textarea {
  min-height: 100px;
  resize: vertical;
}

.b2b-form__privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-price);
  font-size: 11px;
  color: #3e2f22;
  cursor: pointer;
}

.b2b-form__privacy input[type="checkbox"] {
  width: auto;
}

.b2b-form__privacy a {
  color: #3e2f22;
  text-decoration: underline;
}

/* CF7 inside b2b-form-wrap */
.b2b-form-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b2b-form-wrap .wpcf7-form p {
  margin: 0;
  padding: 0;
  display: contents;
}

.b2b-form-wrap .b2b-form__row {
  display: flex;
  gap: 16px;
}

.b2b-form-wrap .b2b-field {
  display: block;
}

.b2b-form-wrap .b2b-form__row .b2b-field {
  flex: 1;
  min-width: 0;
}

.b2b-form-wrap .b2b-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.b2b-form-wrap input[type="text"],
.b2b-form-wrap input[type="email"],
.b2b-form-wrap input[type="tel"],
.b2b-form-wrap textarea {
  width: 100%;
  background: #faf8f5;
  border: 1px solid #faf8f5;
  border-radius: 3px;
  padding: 12px 14px;
  font-family: var(--font-price);
  font-size: 13px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
  box-sizing: border-box;
}

.b2b-form-wrap input:focus,
.b2b-form-wrap textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.b2b-form-wrap textarea {
  min-height: 100px;
  resize: vertical;
}

.b2b-form-wrap .wpcf7-acceptance {
  font-family: var(--font-price);
  font-size: 11px;
  color: #3e2f22;
}

.b2b-form-wrap .wpcf7-acceptance a {
  color: #3e2f22;
  text-decoration: underline;
}

.b2b-form-wrap .wpcf7-submit {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.95px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0px 4px 0px var(--color-primary-dark);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.b2b-form-wrap .wpcf7-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(2px);
  box-shadow: 0px 2px 0px var(--color-primary-dark);
}

.b2b-form-wrap .wpcf7-response-output {
  font-size: 13px;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .b2b-form-wrap .b2b-form__row {
    flex-direction: column;
    gap: 12px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .header-nav {
    padding: 0 24px;
  }

  .offer-banner {
    padding: 0 24px;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  h2 {
    font-size: 32px;
    line-height: 38px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .content-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-row:nth-child(even) .content-row__image {
    order: 0;
  }

  .separator-ripped {
    height: 100px;
  }
}

@media (max-width: 560px) {
  h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 60vh;
  }

  .section {
    padding: 50px 0;
  }

  .separator-ripped {
    height: 60px;
  }

  .logo-bar {
    gap: 24px;
  }

  .logo-bar img {
    height: 30px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 12px;
  }
}

/* ========================================
   EVENTI & CATERING PAGE
   ======================================== */

/* Service cards — two side by side */
.eventi-services {
  display: flex;
  gap: 30px;
}

.eventi-services__card {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
}

.eventi-services__img {
  height: 300px;
  background: #ede8e3;
  overflow: hidden;
}

.eventi-services__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eventi-services__info {
  padding: 24px 28px;
}

.eventi-services__title {
  font-size: 26px;
  margin-bottom: 10px;
}

.eventi-services__info p {
  font-size: 15px;
  color: var(--text-body);
}

.eventi-services__tags {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  margin-top: 10px;
}

/* Steps — 01 02 03 */
.eventi-steps {
  display: flex;
  gap: 40px;
}

.eventi-steps__item {
  flex: 1;
  min-width: 0;
}

.eventi-steps__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.eventi-steps__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.eventi-steps__item p {
  font-size: 14px;
  color: var(--text-body);
  max-width: 300px;
}

/* Numbers — centered stats */
.eventi-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 40px 0;
}

.eventi-numbers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.eventi-numbers__value {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--color-heading);
}

.eventi-numbers__label {
  font-size: 14px;
  color: var(--text-body);
}

.eventi-numbers__sep {
  width: 1px;
  height: 50px;
  background: #ccbfb2;
  flex-shrink: 0;
}

/* Testimonial — dark section */
.eventi-testimonial {
  background: #26211c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 200px;
  min-height: 280px;
  text-align: center;
  overflow: hidden;
}

.eventi-testimonial__quote {
  font-family: var(--font-heading);
  font-size: 60px;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.eventi-testimonial__text {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #e6e6e6;
  max-width: 800px;
  line-height: 1.5;
}

.eventi-testimonial__author {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Form — two column layout */
.eventi-form {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.eventi-form__text {
  flex: 1;
  min-width: 0;
}

.eventi-form__text h2 {
  margin-bottom: 16px;
}

.eventi-form__text p {
  font-size: 16px;
  color: var(--text-body);
  max-width: 400px;
}

.eventi-form__fields {
  width: 480px;
  flex-shrink: 0;
}

.eventi-form__fields form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eventi-form__row {
  display: flex;
  gap: 12px;
}

.eventi-form__row > * {
  flex: 1;
  min-width: 0;
}

.eventi-form__fields input,
.eventi-form__fields select,
.eventi-form__fields textarea {
  width: 100%;
  background: #faf7f5;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
}

.eventi-form__fields input:focus,
.eventi-form__fields select:focus,
.eventi-form__fields textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.eventi-form__fields input::placeholder,
.eventi-form__fields textarea::placeholder {
  color: var(--text-muted);
}

.eventi-form__fields select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

.eventi-form__fields textarea {
  min-height: 90px;
  resize: vertical;
}

/* Shared form submit — brown 3D */
.form-submit-brown,
.eventi-form__submit,
.contatti-form__submit,
.account-edit-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.95px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0px 4px 0px var(--color-primary-dark);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.form-submit-brown:hover,
.eventi-form__submit:hover,
.contatti-form__submit:hover,
.account-edit-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(2px);
  box-shadow: 0px 2px 0px var(--color-primary-dark);
}

.eventi-form__submit,
.contatti-form__submit {
  align-self: flex-start;
}

/* Eventi responsive */
@media (max-width: 900px) {
  .eventi-services {
    flex-direction: column;
  }

  .eventi-steps {
    flex-direction: column;
    gap: 30px;
  }

  .eventi-numbers {
    flex-direction: column;
    gap: 24px;
  }

  .eventi-numbers__sep {
    width: 60px;
    height: 1px;
  }

  .eventi-testimonial {
    padding: 50px 24px;
  }

  .eventi-form {
    flex-direction: column;
    gap: 40px;
  }

  .eventi-form__fields {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .eventi-services__img {
    height: 200px;
  }

  .eventi-numbers__value {
    font-size: 32px;
  }

  .eventi-testimonial__text {
    font-size: 18px;
  }

  .eventi-form__row {
    flex-direction: column;
  }
}

/* ========================================
   CONTATTI PAGE
   ======================================== */

/* Form + Mappa — two column */
.contatti-form-mappa {
  display: flex;
  gap: 50px;
  align-items: stretch;
}

.contatti-form-mappa__form {
  flex: 1;
  min-width: 0;
}

.contatti-form-mappa__form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contatti-form__row {
  display: flex;
  gap: 16px;
}

.contatti-form__row > * {
  flex: 1;
  min-width: 0;
}

.contatti-form-mappa__form input,
.contatti-form-mappa__form textarea {
  width: 100%;
  background: #faf7f5;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
}

.contatti-form-mappa__form input:focus,
.contatti-form-mappa__form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contatti-form-mappa__form input::placeholder,
.contatti-form-mappa__form textarea::placeholder {
  color: var(--text-muted);
}

.contatti-form-mappa__form textarea {
  min-height: 100px;
  resize: vertical;
}

/* contatti-form__submit — consolidated above */

.contatti-form-mappa__mappa {
  width: 420px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ede8e3;
  min-height: 380px;
}

/* Info cards — 3 column */
.contatti-info {
  display: flex;
  gap: 30px;
}

.contatti-info__card {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
}

.contatti-info__label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.contatti-info__card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.contatti-info__card a {
  color: var(--text-body);
  text-decoration: none;
}

.contatti-info__card a:hover {
  color: var(--color-heading);
}

/* Cross-sell cards */
.contatti-crosssell {
  display: flex;
  gap: 30px;
}

.contatti-crosssell__card {
  flex: 1;
  min-width: 0;
  background: #faf7f5;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.contatti-crosssell__card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.contatti-crosssell__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-accent);
}

.contatti-crosssell__title {
  font-size: 24px;
  margin-bottom: 0;
}

.contatti-crosssell__card p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 400px;
}

.contatti-crosssell__cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-heading);
  padding-top: 4px;
}

/* Contatti responsive */
@media (max-width: 900px) {
  .contatti-form-mappa {
    flex-direction: column;
  }

  .contatti-form-mappa__mappa {
    width: 100%;
    min-height: 300px;
  }

  .contatti-info {
    flex-direction: column;
    gap: 20px;
  }

  .contatti-crosssell {
    flex-direction: column;
  }

  .contatti-form__row {
    flex-direction: column;
    gap: 12px;
  }
}

/* ========================================
   MY ACCOUNT — Figma-exact
   ======================================== */

/* Breadcrumb bar */
.account-breadcrumb {
  background: #faf7f5;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 130px;
  font-family: var(--font-body);
  font-size: 11px;
  color: #999999;
  letter-spacing: 0.8px;
}

/* Layout */
.account-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 130px 60px;
  max-width: 100%;
}

/* Sidebar */
.account-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.account-sidebar__user {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
}

.account-sidebar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-sidebar__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-sidebar__name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.account-sidebar__email {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
}

.account-sidebar__link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-body);
  text-decoration: none;
  transition: background var(--t-fast);
}

.account-sidebar__link:hover {
  background: #faf7f5;
  color: var(--text-dark);
}

.account-sidebar__link.is-active {
  background: #faf7f5;
  border: 1px solid rgba(205, 167, 98, 0.3);
  font-weight: 700;
  color: var(--color-heading);
}

.account-sidebar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9d1c7;
  flex-shrink: 0;
}

.account-sidebar__link.is-active .account-sidebar__dot {
  background: var(--color-accent);
}

.account-sidebar__link--logout {
  color: #cc4d4d;
  margin-top: 20px;
  padding-left: 12px;
}

.account-sidebar__link--logout:hover {
  background: #fdecea;
  color: #cc4d4d;
}

/* Content area */
.account-content {
  flex: 1;
  min-width: 0;
}

/* Dashboard title */
.account-dashboard__title {
  font-size: 28px;
  margin-bottom: 30px;
}

/* Stats cards */
.account-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.account-stats__card {
  flex: 1;
  min-width: 0;
  background: #faf7f5;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.account-stats__value {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-heading);
}

.account-stats__label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Section label */
.account-section {
  margin-bottom: 30px;
}

.account-section__label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.account-section__link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  margin-top: 12px;
}

.account-section__link:hover {
  color: #6d4822;
}

/* Order rows */
.account-order-row {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #faf7f5;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: background var(--t-fast);
}

.account-order-row:hover {
  background: #f0ebe5;
}

.account-order__id {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.account-order__date {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
}

.account-order__total {
  font-family: var(--font-price);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
}

.account-order__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.account-order__badge--shipping {
  background: rgba(51, 153, 77, 0.12);
  color: #33994d;
}

.account-order__badge--delivered {
  background: rgba(205, 167, 98, 0.12);
  color: var(--color-accent);
}

.account-order__badge--default {
  background: rgba(153, 153, 153, 0.12);
  color: var(--text-muted);
}

.account-order__arrow {
  font-size: 14px;
  color: var(--text-muted);
}

/* Address cards */
.account-addresses {
  display: flex;
  gap: 16px;
}

.account-address-card {
  flex: 1;
  min-width: 0;
  background: #faf7f5;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-address-card--default {
  border: 1.5px solid var(--color-accent);
}

.account-address-card__header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.account-address-card__type {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.account-address-card__badge {
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.account-address-card__content {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
}

.account-address-card__edit {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
}

.account-address-card__edit:hover {
  color: #6d4822;
}

.account-address-card__name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.account-address-card__empty {
  font-size: 13px;
  color: var(--text-muted);
}

.account-address-card__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Add address button */
.account-add-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--color-heading);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  transition: all var(--t-fast);
  margin-top: 4px;
}

.account-add-address:hover {
  background: var(--color-heading);
  color: #ffffff;
}

/* ========================================
   EDIT ADDRESS FORM — WC override
   ======================================== */

.woocommerce-address-fields h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-heading);
  margin-bottom: 20px;
}

.woocommerce-address-fields .form-row {
  margin-bottom: 12px;
}

.woocommerce-address-fields .form-row label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.woocommerce-address-fields .form-row label .required {
  color: var(--color-accent);
}

.woocommerce-address-fields .form-row input.input-text,
.woocommerce-address-fields .form-row select {
  width: 100%;
  background: #faf7f5;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
}

.woocommerce-address-fields .form-row input.input-text:focus,
.woocommerce-address-fields .form-row select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.woocommerce-address-fields .form-row-first,
.woocommerce-address-fields .form-row-last {
  display: inline-block;
  width: calc(50% - 8px);
  vertical-align: top;
}

.woocommerce-address-fields .form-row-first {
  margin-right: 12px;
}

.woocommerce-address-fields .form-row-wide {
  clear: both;
}

/* Consistent spacing for all WC account forms */
.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
  margin-bottom: 16px;
}

.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm select {
  width: 100%;
  background: #faf7f5;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
}

.woocommerce-EditAccountForm input.input-text:focus {
  outline: none;
  border-color: var(--color-accent);
}

.woocommerce-EditAccountForm label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.woocommerce-EditAccountForm label .required {
  color: var(--color-accent);
}

.woocommerce-EditAccountForm .form-row-first,
.woocommerce-EditAccountForm .form-row-last {
  display: inline-block;
  width: calc(50% - 8px);
  vertical-align: top;
}

.woocommerce-EditAccountForm .form-row-first {
  margin-right: 12px;
}

/* WC form submits — share brown 3D style from consolidated rule */
.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-address-fields button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.95px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0px 4px 0px var(--color-primary-dark);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  margin-top: 12px;
}

.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-address-fields button[type="submit"]:hover {
  background: var(--color-primary-dark);
  transform: translateY(2px);
  box-shadow: 0px 2px 0px var(--color-primary-dark);
}

/* Edit Account — Figma layout */
.account-member-since {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.account-edit-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.account-edit-row > * {
  flex: 1;
  min-width: 0;
}

.account-edit-field {
  margin-bottom: 12px;
}

.account-edit-field input {
  width: 100%;
  background: #faf7f5;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
}

.account-edit-field input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.account-edit-field input::placeholder {
  color: var(--text-muted);
}

/* account-edit-submit — consolidated above, only margin-top here */
.account-edit-submit {
  margin-top: 8px;
}

/* Password hint */
.account-password-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.account-password-form {
  max-width: 100%;
}

@media (max-width: 560px) {
  .account-edit-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* ========================================
   LAVORA CON NOI PAGE
   ======================================== */

/* Benefits grid */
.lavora-benefits {
  display: flex;
  gap: 24px;
}

.lavora-benefit {
  flex: 1;
  min-width: 0;
  background: #faf7f5;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lavora-benefit__icon {
  font-size: 24px;
  line-height: 1;
}

.lavora-benefit__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.lavora-benefit p {
  font-size: 14px;
  color: var(--text-body);
  max-width: 220px;
}

/* Positions list */
.lavora-positions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lavora-position {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.lavora-position:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.lavora-position__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lavora-position__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}

.lavora-position__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.lavora-position__info p {
  font-size: 14px;
  color: var(--text-body);
  max-width: 700px;
}

.lavora-position__arrow {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  flex-shrink: 0;
}

/* Form layout — two columns */
.lavora-form-layout {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.lavora-form-layout__text {
  flex: 1;
  min-width: 0;
}

.lavora-form-layout__text h2 {
  margin-bottom: 16px;
}

.lavora-form-layout__text > p {
  font-size: 16px;
  color: var(--text-body);
  max-width: 400px;
}

.lavora-form-layout__form {
  width: 480px;
  flex-shrink: 0;
}

.lavora-form-layout__form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lavora-form-layout__form input,
.lavora-form-layout__form select,
.lavora-form-layout__form textarea {
  width: 100%;
  background: #faf7f5;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
}

.lavora-form-layout__form input:focus,
.lavora-form-layout__form select:focus,
.lavora-form-layout__form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.lavora-form-layout__form input::placeholder,
.lavora-form-layout__form textarea::placeholder {
  color: var(--text-muted);
}

.lavora-form-layout__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

.lavora-form-layout__form textarea {
  min-height: 100px;
  resize: vertical;
}

.lavora-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.lavora-privacy input[type="checkbox"] {
  width: auto;
}

/* CTA section */
.lavora-cta {
  background: var(--bg-alt);
  text-align: center;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lavora-cta h2 {
  font-size: 30px;
}

.lavora-cta p {
  font-size: 16px;
  color: var(--text-body);
}

.lavora-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.95px;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0px 4px 0px var(--color-primary-dark);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.lavora-cta__btn:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(2px);
  box-shadow: 0px 2px 0px var(--color-primary-dark);
}

/* Lavora responsive */
@media (max-width: 900px) {
  .lavora-benefits {
    flex-wrap: wrap;
  }

  .lavora-benefit {
    flex: 1 1 calc(50% - 12px);
  }

  .lavora-form-layout {
    flex-direction: column;
    gap: 40px;
  }

  .lavora-form-layout__form {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .lavora-benefit {
    flex: 1 1 100%;
  }

  .lavora-position {
    flex-direction: column;
    align-items: flex-start;
  }

  .lavora-cta {
    padding: 60px 24px;
  }
}

/* ========================================
   RASSEGNA STAMPA PAGE
   ======================================== */

/* Press Logos Bar */
.stampa-logos {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  background: #f9f6f3;
  padding: 20px 130px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #808080;
}

.stampa-logos span {
  white-space: nowrap;
}

/* Filters */
.stampa-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.stampa-filter {
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: all var(--t-fast);
}

.stampa-filter--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
}

.stampa-filter:hover:not(.stampa-filter--active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Featured Article */
.stampa-featured {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-card);
}

.stampa-featured__img {
  width: 560px;
  height: 320px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ede8e3;
}

.stampa-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stampa-featured__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stampa-featured__title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-primary);
  line-height: 1.2;
}

.stampa-featured__text > p {
  font-size: 15px;
  color: #555;
  max-width: 440px;
  line-height: 1.6;
}

.stampa-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
}

.stampa-date {
  font-size: 13px;
  color: #999;
}

.stampa-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.stampa-cta:hover {
  color: var(--color-primary-dark);
}

/* Cards Grid */
.stampa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
}

.stampa-card {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.stampa-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.stampa-card__img {
  height: 200px;
  background: #ede8e3;
  position: relative;
  overflow: hidden;
}

.stampa-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stampa-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}

.stampa-card__info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stampa-card__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.stampa-card .stampa-cta {
  font-size: 12px;
  padding-top: 4px;
}

/* Hidden by filter */
.stampa-card.hidden,
.stampa-featured.hidden {
  display: none;
}

/* Stampa responsive */
@media (max-width: 900px) {
  .stampa-logos {
    gap: 24px;
    padding: 16px 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stampa-featured {
    flex-direction: column;
    gap: 24px;
  }

  .stampa-featured__img {
    width: 100%;
    height: 240px;
  }

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

@media (max-width: 560px) {
  .stampa-logos {
    gap: 16px;
    font-size: 11px;
  }

  .stampa-featured__title {
    font-size: 22px;
  }

  .stampa-grid {
    grid-template-columns: 1fr;
  }

  .stampa-filters {
    flex-wrap: wrap;
  }
}

/* ========================================
   CF7 GLOBAL FORM STYLES
   ======================================== */

/* CF7 in contatti + lavora con noi */
.contatti-form-mappa__form .wpcf7-form,
.lavora-form-layout__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contatti-form-mappa__form .wpcf7-form p,
.lavora-form-layout__form .wpcf7-form p {
  margin: 0;
}

.contatti-form-mappa__form .wpcf7-form input[type="text"],
.contatti-form-mappa__form .wpcf7-form input[type="email"],
.contatti-form-mappa__form .wpcf7-form input[type="tel"],
.contatti-form-mappa__form .wpcf7-form select,
.contatti-form-mappa__form .wpcf7-form textarea,
.lavora-form-layout__form .wpcf7-form input[type="text"],
.lavora-form-layout__form .wpcf7-form input[type="email"],
.lavora-form-layout__form .wpcf7-form input[type="tel"],
.lavora-form-layout__form .wpcf7-form select,
.lavora-form-layout__form .wpcf7-form textarea {
  width: 100%;
  background: #faf7f5;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
}

.contatti-form-mappa__form .wpcf7-form input:focus,
.contatti-form-mappa__form .wpcf7-form select:focus,
.contatti-form-mappa__form .wpcf7-form textarea:focus,
.lavora-form-layout__form .wpcf7-form input:focus,
.lavora-form-layout__form .wpcf7-form select:focus,
.lavora-form-layout__form .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contatti-form-mappa__form .wpcf7-form select,
.lavora-form-layout__form .wpcf7-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

.contatti-form-mappa__form .wpcf7-form textarea,
.lavora-form-layout__form .wpcf7-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contatti-form-mappa__form .wpcf7-acceptance,
.lavora-form-layout__form .wpcf7-acceptance {
  font-size: 12px;
  color: var(--text-muted);
}

.contatti-form-mappa__form .wpcf7-acceptance a,
.lavora-form-layout__form .wpcf7-acceptance a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contatti-form-mappa__form .wpcf7-submit,
.lavora-form-layout__form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.95px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0px 4px 0px var(--color-primary-dark);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  align-self: flex-start;
}

.contatti-form-mappa__form .wpcf7-submit:hover,
.lavora-form-layout__form .wpcf7-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(2px);
  box-shadow: 0px 2px 0px var(--color-primary-dark);
}

.contatti-form-mappa__form .wpcf7-response-output,
.lavora-form-layout__form .wpcf7-response-output {
  font-size: 13px;
  margin-top: 8px;
  border-radius: 4px;
}

/* CF7 row layout for name fields */
.contatti-form-mappa__form .eventi-form__row,
.lavora-form-layout__form .eventi-form__row {
  display: flex;
  gap: 12px;
}

.contatti-form-mappa__form .eventi-form__row > span,
.lavora-form-layout__form .eventi-form__row > span {
  flex: 1;
}

@media (max-width: 560px) {
  .contatti-form-mappa__form .eventi-form__row,
  .lavora-form-layout__form .eventi-form__row {
    flex-direction: column;
  }
}

/* woocommerce-address-fields button — consolidated above */

/* Select2 override for WC country/state dropdowns */
.woocommerce-address-fields .select2-container .select2-selection--single {
  background: #faf7f5;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  height: 44px;
  padding: 8px 16px;
}

.woocommerce-address-fields .select2-container .select2-selection--single .select2-selection__rendered {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  line-height: 26px;
  padding: 0;
}

.woocommerce-address-fields .select2-container .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 10px;
}

@media (max-width: 560px) {
  .woocommerce-address-fields .form-row-first,
  .woocommerce-address-fields .form-row-last {
    width: 100%;
    margin-right: 0;
  }
}

/* Hide default WC navigation wrapper */
.woocommerce-MyAccount-navigation {
  display: contents;
}

.woocommerce-MyAccount-content {
  display: contents;
}

/* Orders filters */
.account-orders-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.account-orders-filter {
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--t-fast);
}

.account-orders-filter--active {
  background: var(--color-heading);
  border-color: var(--color-heading);
  color: #ffffff;
  font-weight: 700;
}

.account-orders-filter:hover:not(.account-orders-filter--active) {
  border-color: var(--color-heading);
  color: var(--color-heading);
}

/* Order items count */
.account-order__items {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
}

/* Empty orders */
.account-orders-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 15px;
}

.account-orders-empty .btn {
  margin-top: 16px;
}

/* Hide filtered orders */
.account-order-row.hidden {
  display: none;
}

/* Account responsive */
@media (max-width: 900px) {
  .account-breadcrumb {
    padding: 0 24px;
  }

  .account-layout {
    flex-direction: column;
    padding: 30px 24px 60px;
  }

  .account-sidebar {
    width: 100%;
  }

  .account-stats {
    flex-wrap: wrap;
  }

  .account-stats__card {
    flex: 1 1 calc(50% - 8px);
  }

  .account-addresses {
    flex-direction: column;
  }

  .account-order-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .account-order__date {
    min-width: 100px;
  }
}

@media (max-width: 560px) {
  .account-stats__card {
    flex: 1 1 100%;
  }

  .account-stats__value {
    font-size: 24px;
  }
}

/* ========================================
   LOGIN FORM — centered, brand-styled
   ======================================== */

.account-login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 60px 24px;
}

.account-login {
  width: 100%;
  max-width: 420px;
}

.account-login__header {
  text-align: center;
  margin-bottom: 32px;
}

.account-login__logo {
  margin: 0 auto 20px;
}

.account-login__title {
  font-size: 28px;
  margin-bottom: 8px;
}

.account-login__subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.account-login__field {
  margin-bottom: 12px;
}

.account-login__field input {
  width: 100%;
  background: #faf7f5;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color var(--t-fast);
}

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

.account-login__field input::placeholder {
  color: var(--text-muted);
}

.account-login__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.account-login__remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
}

.account-login__remember input {
  width: auto;
}

.account-login__forgot {
  font-size: 13px;
  color: var(--color-heading);
  text-decoration: none;
}

.account-login__forgot:hover {
  color: #6d4822;
}

button.account-login__submit,
.account-login__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 16px !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.95px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0px 4px 0px var(--color-primary-dark) !important;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

button.account-login__submit:hover,
.account-login__submit:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(2px);
  box-shadow: 0px 2px 0px var(--color-primary-dark) !important;
}

.account-login__register {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-body);
}

.account-login__register a {
  color: var(--color-heading);
  font-weight: 700;
  text-decoration: none;
}

.account-login__register a:hover {
  color: #6d4822;
}

/* Remove wrapper padding on My Account */
.woocommerce-account .site-main .section,
.woocommerce-checkout .site-main .section,
.woocommerce-cart .site-main .section {
  padding: 0;
}

.woocommerce-account .site-main .container,
.woocommerce-checkout .site-main .container,
.woocommerce-cart .site-main .container {
  max-width: 100%;
  padding: 0;
}

/* Hide page title on My Account */
.woocommerce-account .entry-title,
.woocommerce-account .page-title,
.woocommerce-account .wp-block-post-title {
  display: none;
}

/* Hide WC default notices styling clash */
.woocommerce-form-login .woocommerce-error,
.woocommerce-form-login .woocommerce-message {
  max-width: 420px;
  margin: 0 auto 16px;
  font-size: 13px;
  border-radius: 4px;
}

/* Override WP global styles for buttons */
.wp-element-button,
.woocommerce .wp-element-button,
.woocommerce button.wp-element-button {
  background-color: var(--color-primary) !important;
  border-radius: 8px !important;
  padding: 16px 32px !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.95px !important;
  text-transform: uppercase !important;
  box-shadow: 0px 4px 0px var(--color-primary-dark) !important;
}

.wp-element-button:hover,
.woocommerce .wp-element-button:hover {
  background-color: var(--color-primary-dark) !important;
  transform: translateY(2px);
  box-shadow: 0px 2px 0px var(--color-primary-dark) !important;
}

/* ========================================
   MOBILE RESPONSIVE FIXES — audit 2026-06-22
   ======================================== */

@media (max-width: 560px) {
  .cta-section {
    padding: 60px 24px;
  }

  .timeline-section {
    padding: 50px 0;
  }

  .btn {
    white-space: normal;
  }

  .account-orders-filters {
    flex-wrap: wrap;
  }
}
