/* ==========================================================================
   Factory Art — Premium E-commerce Demo
   Stylesheet unico per tutte le pagine
   ========================================================================== */

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

:root {
  /* Palette */
  --ivory: #FFFFF5;
  --sand: #F5F0EB;
  --tortora: #E8E0D8;
  --tortora-mid: #B8A99A;
  --brown: #6B5B4E;
  --anthracite: #2C2420;
  --gold: #C4A882;
  --gold-light: #D4C4A8;
  --cipria: #D4B8A0;
  --white: #FFFFFF;

  /* Tipografia */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Poppins', 'Helvetica Neue', 'Verdana', 'Arial', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--brown);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold);
}

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

ul {
  list-style: none;
}

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


/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--anthracite);
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  max-width: 680px;
  line-height: 1.8;
}

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

.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  color: var(--tortora-mid);
  font-size: 0.95rem;
  margin-bottom: 50px;
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-primary {
  background-color: var(--anthracite);
  color: var(--ivory);
}

.btn-primary:hover {
  background-color: var(--gold);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--anthracite);
  color: var(--anthracite);
}

.btn-outline:hover {
  background-color: var(--anthracite);
  color: var(--ivory);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background-color: var(--anthracite);
  color: var(--ivory);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.7rem;
}


/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: background-color 0.3s ease;
}

.header-top {
  background-color: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  max-width: var(--container-width);
  margin: 0 auto;
}

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

.logo-img {
  height: 64px;
  width: auto;
}

.nav-main {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-main a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--anthracite);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}

.nav-main a:hover {
  color: var(--gold);
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-main a:hover::after,
.nav-main a.active::after {
  width: 100%;
}

/* Megamenu full-width */
.nav-has-mega {
  position: static;
  display: flex;
  align-items: center;
}

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-top: 1px solid var(--tortora);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
}

.nav-has-mega:hover .megamenu {
  opacity: 1;
  visibility: visible;
}

.megamenu-inner {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 40px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.megamenu-item {
  padding: 10px 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brown);
  transition: color 0.2s, background 0.2s;
  border-radius: 4px;
  white-space: nowrap;
}

.megamenu-item::after {
  display: none !important;
}

.megamenu-item:hover {
  color: var(--gold);
  background: var(--sand);
}

.nav-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-icons a {
  color: var(--anthracite);
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.nav-icons a:hover {
  color: var(--gold);
}

.nav-icons svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Badge numero articoli carrello */
.nav-icons .nav-cart {
  position: relative;
}

.nav-icons .cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background-color: var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  pointer-events: none;
}

.nav-icons .cart-count.is-empty {
  display: none;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--anthracite);
  transition: all 0.3s ease;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--ivory);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--anthracite);
}

.mobile-nav .close-nav {
  position: absolute;
  top: 28px;
  right: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--anthracite);
}


/* ==========================================================================
   HERO
   ========================================================================== */
.hero-fullwidth {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider-fw {
  position: absolute;
  inset: 0;
}

.hero-slide-fw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide-fw.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

.hero-fw-content {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 40px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero-fw-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-fw-content h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-fw-content > p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
  padding: 14px 32px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.hero-fullwidth .hero-slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.hero-slider-dots .dot.active {
  background: var(--white);
}

.hero-badge {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(255, 255, 245, 0.92);
  backdrop-filter: blur(6px);
  padding: 20px 28px;
  max-width: 260px;
}

.hero-badge p {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--brown);
  font-family: var(--font-heading);
  line-height: 1.5;
}


/* ==========================================================================
   CATEGORIE
   ========================================================================== */
.section-categories {
  padding: var(--section-padding);
  background-color: var(--ivory);
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.categories-grid .category-card {
  flex: 0 1 calc((100% - 80px) / 5);
  min-width: 160px;
}

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}

.category-card .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .card-image {
  transform: scale(1.05);
}

.category-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(transparent, rgba(44, 36, 32, 0.7));
  color: var(--white);
}

.category-card .card-overlay h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.category-card .card-overlay span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}


/* ==========================================================================
   BEST SELLER
   ========================================================================== */
.section-bestseller {
  padding: var(--section-padding);
  background-color: var(--tortora);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.section-bestseller .products-grid {
  grid-template-columns: repeat(4, 1fr);
}

.section-bestseller .products-grid .product-card {
  max-width: 320px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--tortora);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.08);
  border-color: var(--gold);
}

.product-card .card-thumb {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: var(--sand);
}

.product-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-thumb img {
  transform: scale(1.04);
}

.product-card .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
}

.product-card .card-info {
  padding: 20px 24px;
  text-align: center;
}

.product-card .card-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--anthracite);
  line-height: 1.3;
}

.product-card .card-info .price {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.product-card .card-info .btn {
  width: 100%;
  text-align: center;
  border-radius: 6px;
}

/* Nascondi attributi/varianti WC dentro le card prodotto */
.product-card .card-thumb .variation,
.product-card .card-thumb p,
.product-card .card-thumb .pa_colore,
.product-card .card-info .variation,
.product-card .card-info .woocommerce-loop-product__title + p:not(.price) {
  display: none;
}


/* ==========================================================================
   COME FUNZIONA (3 step)
   ========================================================================== */
.section-how {
  padding: var(--section-padding);
  background-color: var(--ivory);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 20px;
}

.step-card {
  text-align: center;
  padding: 0 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 24px;
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--tortora-mid);
  margin: 0 auto;
}


/* ==========================================================================
   STORYTELLING / ARTIGIANALITA
   ========================================================================== */
.section-story {
  padding: var(--section-padding);
  background-color: var(--sand);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

.story-content .section-subtitle {
  margin-bottom: 16px;
}

.story-content h2 {
  margin-bottom: 24px;
}

.story-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.story-content .btn {
  margin-top: 16px;
}


/* ==========================================================================
   RECENSIONI / SOCIAL PROOF
   ========================================================================== */
.section-reviews {
  padding: var(--section-padding);
  background-color: var(--ivory);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.review-card {
  padding: 36px;
  border: 1px solid var(--tortora);
  text-align: center;
}

.review-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.review-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--anthracite);
  margin-bottom: 20px;
  line-height: 1.6;
}

.review-card cite {
  font-style: normal;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--tortora-mid);
}


/* ==========================================================================
   IDEE REGALO
   ========================================================================== */
.section-gift {
  padding: var(--section-padding);
  background-color: var(--sand);
}

.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gift-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.gift-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gift-card:hover img {
  transform: scale(1.04);
}

.gift-card .gift-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 36px;
  background: linear-gradient(transparent, rgba(44, 36, 32, 0.65));
  color: var(--white);
}

.gift-card .gift-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.gift-card .gift-overlay p {
  font-size: 0.85rem;
  opacity: 0.9;
  max-width: 100%;
}


/* ==========================================================================
   BUSINESS / B2B SECTION
   ========================================================================== */
.section-business {
  padding: var(--section-padding);
  background-color: var(--anthracite);
  color: var(--tortora);
}

.section-business h2,
.section-business h3 {
  color: var(--ivory);
}

.section-business .section-subtitle {
  color: var(--gold);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-top: 50px;
}

.business-card {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid rgba(232, 224, 216, 0.15);
  transition: border-color 0.3s ease;
}

.business-card:hover {
  border-color: var(--gold);
}

.business-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.business-card-link:hover {
  color: inherit;
}

.business-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.business-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.business-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--tortora-mid);
  margin: 0 auto;
}

.business-cta {
  text-align: center;
  margin-top: 50px;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--anthracite);
  color: var(--tortora-mid);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(232, 224, 216, 0.12);
}

.footer-col .footer-logo {
  margin-bottom: 16px;
}

.footer-col .footer-logo .logo-img {
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--tortora-mid);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.75rem;
  color: var(--tortora-mid);
}

.footer-bottom .social-links {
  display: flex;
  gap: 16px;
}


/* ==========================================================================
   CATEGORY / SHOP PAGE
   ========================================================================== */
.page-header {
  padding-top: 140px;
  padding-bottom: 50px;
  background-color: var(--sand);
}

.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--tortora-mid);
}

.breadcrumb a {
  color: var(--tortora-mid);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .separator {
  margin: 0 8px;
  opacity: 0.5;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  font-size: 0.95rem;
  color: var(--brown);
}

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--tortora);
}

.shop-toolbar .results-count {
  font-size: 0.8rem;
  color: var(--tortora-mid);
}

.shop-toolbar .sort-select {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 8px 16px;
  border: 1px solid var(--tortora);
  background: var(--white);
  color: var(--brown);
  cursor: pointer;
}

/* Filters */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

.shop-filters {
  position: sticky;
  top: 120px;
  align-self: start;
}

.filter-group {
  margin-bottom: 32px;
}

.filter-group h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--anthracite);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tortora);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--brown);
  margin-bottom: 10px;
  cursor: pointer;
}

.filter-group input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.color-swatch:hover,
.color-swatch.active {
  border-color: var(--anthracite);
}

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


/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.product-section {
  padding-top: 130px;
  padding-bottom: 80px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: 120px;
}

.gallery-main {
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: var(--sand);
  margin-bottom: 12px;
}

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

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-thumbs .thumb {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
  background-color: var(--sand);
}

.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

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

/* Product Info */
.product-info {
  padding-top: 10px;
}

.product-info .breadcrumb {
  margin-bottom: 24px;
}

.product-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.product-info .price {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.product-info .short-desc {
  font-size: 0.95rem;
  color: var(--brown);
  margin-bottom: 30px;
  line-height: 1.8;
}

/* Varianti */
.variant-section {
  margin-bottom: 28px;
}

.variant-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--anthracite);
}

.variant-options {
  display: flex;
  gap: 10px;
}

.variant-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--tortora);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--brown);
}

.variant-btn:hover,
.variant-btn.active {
  border-color: var(--anthracite);
  color: var(--anthracite);
}

/* Toggle ricamo opzionale */
.emb-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  padding: 12px 0;
}

.emb-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
}

.emb-toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--anthracite);
}

.emb-fields-wrap {
  padding-top: 20px;
  border-top: 1px solid var(--tortora);
}

.emb-color-select {
  width: 100%;
  padding: 12px 16px;
  margin-top: 12px;
  border: 1.5px solid var(--tortora);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--anthracite);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B5B4E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.emb-color-select:focus {
  outline: none;
  border-color: var(--gold);
}

.emb-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  color: var(--brown);
}

.emb-checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
}

.optional {
  font-weight: 400;
  color: var(--tortora-mid);
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

/* WhatsApp alert per personalizzazioni fuori standard */
.emb-wa-alert {
  background: #e8f5e9;
  border-left: 4px solid #25D366;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-radius: 6px;
}

.emb-wa-alert p {
  font-size: 0.85rem;
  margin-bottom: 14px;
  max-width: 100%;
  color: #1b5e20;
}

.emb-wa-alert .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: #fff;
}

.emb-wa-alert .btn:hover {
  background-color: #1da851;
  color: #fff;
}

/* Personalizzazione */
.customization-box {
  width: 100%;
  background-color: var(--sand);
  padding: 32px;
  margin-bottom: 28px;
}

.customization-box h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.customization-box .custom-subtitle {
  font-size: 0.8rem;
  color: var(--tortora-mid);
  margin-bottom: 24px;
}

.custom-field {
  margin-bottom: 20px;
}

.custom-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--anthracite);
}

.custom-field input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--tortora);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--anthracite);
  transition: border-color 0.3s ease;
}

.custom-field input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
}

.custom-field .char-count {
  font-size: 0.72rem;
  color: var(--tortora-mid);
  margin-top: 6px;
  text-align: right;
}

.custom-field .char-count.is-over {
  color: #b3261e;
  font-weight: 500;
}

.custom-field input[type="text"].is-over,
.custom-field input[type="text"].is-over:focus {
  border-color: #b3261e;
}

.custom-field .emb-wa-alert {
  margin-top: 12px;
  margin-bottom: 0;
}

.product-info .single_add_to_cart_button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.custom-field select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--tortora);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--anthracite);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B5B4E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.custom-field select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Colori ricamo */
.embroidery-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.emb-color {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.emb-color:hover {
  transform: scale(1.1);
}

.emb-color.active {
  border-color: var(--anthracite);
}

.emb-color.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Font ricamo (anteprima): file in assets/fonts, caricati solo quando l'anteprima li usa */
@font-face {
  font-family: 'FA Birds of Paradise';
  src: url('../fonts/birds-of-paradise.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FA Times New Roman';
  src: url('../fonts/times-new-roman.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FA Deuxieme Rang';
  src: url('../fonts/deuxieme-rang.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FA Smoothy Butter';
  src: url('../fonts/smoothy-butter.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FA Monotype Corsiva';
  src: url('../fonts/monotype-corsiva.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Preview ricamo */
.embroidery-preview {
  background: var(--white);
  border: 1.5px solid var(--tortora);
  padding: 40px;
  text-align: center;
  margin-bottom: 28px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.embroidery-preview .preview-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tortora-mid);
  margin-bottom: 16px;
}

.embroidery-preview .preview-text {
  font-size: 2.4rem;
  font-family: var(--emb-font, inherit); /* impostati da script.js in base a font e colore scelti */
  color: var(--emb-color, var(--anthracite));
  transition: all 0.3s ease;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.embroidery-preview .preview-text.empty {
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--tortora-mid);
}

/* Add to cart */
.quantity-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--tortora);
}

.qty-control button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--white);
  font-size: 1rem;
  cursor: pointer;
  color: var(--anthracite);
  transition: background-color 0.3s ease;
}

.qty-control button:hover {
  background-color: var(--sand);
}

.qty-control input {
  width: 50px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--tortora);
  border-right: 1.5px solid var(--tortora);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--anthracite);
}

.qty-control input:focus {
  outline: none;
}

.quantity-row .btn {
  flex: 1;
}

/* Product Details Tabs */
.product-details {
  padding: 60px 0;
  border-top: 1px solid var(--tortora);
}

.detail-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--tortora);
}

.detail-tab {
  padding: 12px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tortora-mid);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
}

.detail-tab.active,
.detail-tab:hover {
  color: var(--anthracite);
  border-bottom-color: var(--gold);
}

.tab-content {
  display: none;
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 800px;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.tab-content ul li {
  margin-bottom: 8px;
}

/* Related products */
.section-related {
  padding: var(--section-padding);
  background-color: var(--sand);
}


/* ---------- WooCommerce Single Product Override ---------- */

/* Variazioni WC (select varianti) */
.product-info .variations {
  width: 100%;
  margin-bottom: 24px;
  border: none;
}

.product-info .variations td,
.product-info .variations th {
  display: block;
  padding: 0;
  border: none;
}

.product-info .variations th label,
.product-info .variations td.label label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--anthracite);
  margin-bottom: 8px;
  padding: 0;
}

.product-info .variations td.value {
  margin-bottom: 20px;
}

.product-info .variations select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--tortora);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--anthracite);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B5B4E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.3s;
}

.product-info .variations select:focus {
  outline: none;
  border-color: var(--gold);
}

.product-info .variations .reset_variations {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--tortora-mid);
  cursor: pointer;
}

/* Quantità WC */
.product-info .quantity {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--tortora);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.product-info .quantity .qty {
  width: 60px;
  height: 48px;
  text-align: center;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--anthracite);
  -moz-appearance: textfield;
}

.product-info .quantity .qty::-webkit-outer-spin-button,
.product-info .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Bottone Add to Cart WC */
.product-info .single_add_to_cart_button,
.product-info button.button.alt {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.35s ease;
  background-color: var(--gold);
  color: var(--white);
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

.product-info .single_add_to_cart_button:hover,
.product-info button.button.alt:hover {
  background-color: var(--anthracite);
  color: var(--ivory);
}

/* Cart form layout */
.product-info form.cart {
  margin-bottom: 24px;
}

.product-info form.cart .variations_button {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Wrapper variazione selezionata */
.product-info .single_variation_wrap {
  margin-top: 16px;
}

/* Prezzo variazione */
.product-info .woocommerce-variation-price .price {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
  margin: 12px 0;
}

.product-info .woocommerce-variation-description p {
  font-size: 0.9rem;
  color: var(--brown);
  margin-bottom: 12px;
}

/* Tabs WC */
.product-details .woocommerce-tabs {
  margin: 0;
}

.product-details .wc-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--tortora);
  padding: 0;
  list-style: none;
}

.product-details .wc-tabs li {
  margin: 0;
  padding: 0;
}

.product-details .wc-tabs li a {
  display: block;
  padding: 12px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tortora-mid);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-details .wc-tabs li.active a,
.product-details .wc-tabs li a:hover {
  color: var(--anthracite);
  border-bottom-color: var(--gold);
}

.product-details .woocommerce-Tabs-panel {
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 800px;
  padding: 0;
}

.product-details .woocommerce-Tabs-panel h2 {
  display: none;
}

.product-details .woocommerce-Tabs-panel table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.product-details .woocommerce-Tabs-panel table th,
.product-details .woocommerce-Tabs-panel table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tortora);
  font-size: 0.85rem;
  text-align: left;
}

.product-details .woocommerce-Tabs-panel table th {
  font-weight: 600;
  color: var(--anthracite);
  width: 35%;
}

/* SKU e meta */
.product-info .product_meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--tortora);
  font-size: 0.78rem;
  color: var(--tortora-mid);
}

.product-info .product_meta span {
  display: block;
  margin-bottom: 6px;
}

.product-info .product_meta a {
  color: var(--gold);
}

/* Messaggio aggiunto al carrello */
.product-info .woocommerce-message {
  background: var(--sand);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.product-info .woocommerce-message a {
  color: var(--gold);
  font-weight: 600;
}


/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  background-color: var(--sand);
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

.about-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 40px 24px;
}

.about-hero-content h1 {
  margin-bottom: 20px;
}

.about-hero-content p {
  font-size: 1.05rem;
  margin: 0 auto;
}

/* About sections */
.about-section {
  padding: var(--section-padding);
}

/* Contenuto dall'editor WP dentro about-section */
.about-section .container p,
.about-section .container li {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--brown);
  max-width: 780px;
}

.about-section .container h2 {
  margin-top: 60px;
  margin-bottom: 20px;
}

.about-section .container h2:first-child {
  margin-top: 0;
}

.about-section .container h3 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.about-section .container p + p {
  margin-top: 16px;
}

.about-section .container img {
  border-radius: 8px;
  margin: 32px 0;
}

.about-section .container ul,
.about-section .container ol {
  padding-left: 20px;
  margin: 16px 0;
}

.about-section .container ul li,
.about-section .container ol li {
  margin-bottom: 8px;
}

/* WP Block overrides dentro about */
.about-section .wp-block-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 40px 0;
}

.about-section .wp-block-column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .about-section .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.about-section:nth-child(even) {
  background-color: var(--sand);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-grid.reverse {
  direction: rtl;
}

.about-grid.reverse > * {
  direction: ltr;
}

.about-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

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

.about-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--tortora);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--tortora-mid);
  margin: 0 auto;
}

/* CTA Banner */
.cta-banner {
  padding: 80px 0;
  background-color: var(--gold);
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 30px;
  font-size: 1rem;
}

.cta-banner .btn {
  background-color: var(--white);
  color: var(--anthracite);
}

.cta-banner .btn:hover {
  background-color: var(--anthracite);
  color: var(--white);
}


/* ==========================================================================
   PLACEHOLDER IMAGES
   ========================================================================== */
.img-placeholder {
  background: linear-gradient(135deg, var(--tortora) 0%, var(--sand) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tortora-mid);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* ==========================================================================
   ANIMATIONS (Scroll reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-fullwidth {
    height: 80vh;
  }

  .categories-grid .category-card {
    flex: 0 1 calc((100% - 40px) / 3);
  }

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

  .story-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid.reverse {
    direction: ltr;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    position: static;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-main {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-main {
    padding: 14px 24px;
  }

  .hero-fullwidth {
    height: 70vh;
    min-height: 500px;
  }

  .hero-fw-content {
    bottom: 60px;
    padding: 0 24px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .categories-grid .category-card {
    flex: 0 1 calc((100% - 20px) / 2);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

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

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

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

  .shop-filters {
    grid-template-columns: 1fr 1fr;
  }

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

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-tabs {
    gap: 16px;
    flex-wrap: wrap;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .embroidery-preview .preview-text {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .categories-grid .category-card {
    flex: 0 1 100%;
  }

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

  .shop-products .products-grid {
    grid-template-columns: 1fr;
  }

  .shop-filters {
    grid-template-columns: 1fr;
  }

  .quantity-row {
    flex-direction: column;
  }

  .quantity-row .btn {
    width: 100%;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }
}


/* ---------- Pagina Contatti ---------- */

.contact-hero {
  padding: 160px 0 60px;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--sand) 100%);
  text-align: center;
}

.contact-hero h1 {
  margin-bottom: 16px;
}

.contact-hero > .container > p {
  color: var(--tortora-mid);
  max-width: 500px;
  margin: 0 auto;
}

.contact-section {
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
}

.contact-form-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 32px;
  color: var(--anthracite);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--tortora);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--anthracite);
  background: var(--white);
  transition: border-color 0.3s;
}

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

.form-group textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
}

.checkbox-label a {
  color: var(--gold);
  text-decoration: underline;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-card {
  padding: 24px;
  background: var(--sand);
  border-radius: 8px;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--anthracite);
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--brown);
  line-height: 1.6;
}

.contact-info-card a {
  color: var(--gold);
}

.contact-social {
  display: flex;
  gap: 16px;
}

.contact-social a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
}

.contact-map {
  background: var(--sand);
}

.contact-map iframe {
  display: block;
}


/* ---------- Contact Form 7 Override ---------- */

.wpcf7 {
  max-width: 100%;
}

.wpcf7-form p {
  margin-bottom: 20px;
  max-width: 100%;
}

.wpcf7-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 8px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--tortora);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--anthracite);
  background: var(--white);
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

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

.wpcf7-form textarea {
  resize: vertical;
  min-height: 140px;
}

.wpcf7-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B5B4E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  background-color: var(--gold);
  color: var(--white);
  width: 100%;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
  background-color: var(--anthracite);
  color: var(--ivory);
}

/* Checkbox / acceptance */
.wpcf7-form .wpcf7-acceptance,
.wpcf7-form .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
}

/* Validazione errori */
.wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 0.75rem;
  margin-top: 6px;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  border-color: #c0392b !important;
  color: #c0392b;
  padding: 12px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.wpcf7-mail-sent-ok {
  border-color: #27ae60 !important;
  color: #27ae60;
  padding: 12px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Layout a 2 colonne per nome/email */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .cf7-row {
    grid-template-columns: 1fr;
  }
}


/* ---------- Instagram Feed ---------- */

.section-instagram {
  padding: 60px 0 0;
  background-color: var(--ivory);
}

.section-instagram .section-title {
  margin-bottom: 30px;
}

.section-instagram .section-title a {
  color: var(--anthracite);
  transition: color 0.3s;
}

.section-instagram .section-title a:hover {
  color: var(--gold);
}

.instagram-feed-wrap {
  max-width: 100%;
  overflow: hidden;
}


/* ---------- Scuola Gate (accesso protetto) ---------- */

.scuola-gate-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.scuola-gate-head {
  text-align: center;
  margin-bottom: 36px;
}

.scuola-gate-head h1 {
  font-size: 2.2rem;
}

.scuola-gate-head p:last-child {
  font-size: 0.9rem;
  color: var(--tortora-mid);
  margin: 12px auto 0;
}

.scuola-form .btn {
  width: 100%;
}

.scuola-gate {
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  background: var(--white);
  border: 1px solid var(--tortora);
  border-radius: 8px;
}

.scuola-error {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  font-size: 0.85rem;
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.scuola-form .custom-field {
  margin-bottom: 24px;
}

.scuola-form input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--tortora);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--anthracite);
  text-align: center;
  letter-spacing: 2px;
  transition: border-color 0.3s ease;
}

.scuola-form input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
}


/* ---------- WhatsApp Floating ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
