/* === assets/css/theme.css === */
/* ===== PANIFICIO LASPADA — SHARED STYLES ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bordeaux:     #8B1A1A;
  --bordeaux-dk:  #5C0F0F;
  --bordeaux-lt:  #A83232;
  --cream:        #F5EFE6;
  --cream-dk:     #EDE2D0;
  --brown-dark:   #2A1A0E;
  --brown-mid:    #3D2512;
  --brown-warm:   #6B3E26;
  --gold:         #C9A84C;
  --text-dark:    #1A0E08;
  --text-mid:     #5A3D2B;
  --text-light:   #F5EFE6;
  --nav-h:        80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
  background: rgba(42,26,14,.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid rgba(201,168,76,.2);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 52px; filter: brightness(0) invert(1); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Libre Baskerville', serif;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,239,230,.85);
  text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--bordeaux);
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 30px;
  font-family: 'Libre Baskerville', serif !important;
  font-size: .78rem !important;
  letter-spacing: .12em;
  transition: background .25s, transform .2s !important;
}
.nav-cta:hover { background: var(--bordeaux-lt) !important; transform: translateY(-1px); }

/* hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; transition: .3s; }

/* ── PAGE HEADER BANNER ──────────────────── */
.page-header {
  margin-top: var(--nav-h);
  height: 320px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--brown-dark);
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139,26,26,.7) 0%, rgba(42,26,14,.85) 100%);
  z-index: 1;
}
.page-header-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
  filter: brightness(.55) saturate(.9);
}
.page-header:hover .page-header-bg { transform: scale(1.0); }
.page-header-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--text-light);
}
.page-header-eyebrow {
  font-family: 'Libre Baskerville', serif;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.1;
}
.page-header p {
  margin-top: 14px;
  font-size: 1.15rem; font-style: italic;
  color: rgba(245,239,230,.8);
  max-width: 520px; margin-inline: auto;
}

/* ── SECTION UTILS ───────────────────────── */
section { padding: 80px 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.section-eyebrow {
  font-family: 'Libre Baskerville', serif;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bordeaux);
  display: block; margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.15rem; color: var(--text-mid);
  line-height: 1.7; max-width: 600px;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  background: var(--brown-dark);
  color: rgba(245,239,230,.75);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.footer-brand img { height: 60px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: .98rem; line-height: 1.7; color: rgba(245,239,230,.65); max-width: 260px; }
footer h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(245,239,230,.7); text-decoration: none; font-size: 1rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: .98rem; line-height: 1.8; }
.footer-bottom {
  text-align: center; padding-top: 28px;
  font-size: .82rem; color: rgba(245,239,230,.4);
  letter-spacing: .05em;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; width: 100%; background: var(--brown-dark); flex-direction: column; padding: 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
}


/* ===== index.html inline styles ===== */
/* ── HERO SLIDER ──────────────────────── */
.hero {
  margin-top: var(--nav-h);
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 540px;
  overflow: hidden;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(42,26,14,.82) 0%, rgba(42,26,14,.2) 70%);
  z-index: 1;
}
.hero-content {
  position: absolute;
  inset: 0; z-index: 2;
  display: flex; align-items: center;
  padding: 0 clamp(24px, 6vw, 120px);
  max-width: 820px;
}
.hero-inner { color: var(--text-light); }
.hero-eyebrow {
  display: inline-block;
  font-family: 'Libre Baskerville', serif;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  background: var(--bordeaux);
  color: #fff; padding: 6px 18px; border-radius: 20px;
  margin-bottom: 22px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700; line-height: 1.08;
  margin-bottom: 18px;
}
.hero-sub { font-size: 1.15rem; line-height: 1.7; color: rgba(245,239,230,.85); max-width: 460px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  font-family: 'Libre Baskerville', serif;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 15px 32px; border-radius: 30px;
  background: var(--bordeaux); color: #fff;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .25s, transform .2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--bordeaux-lt); transform: translateY(-2px); }
.btn-outline {
  font-family: 'Libre Baskerville', serif;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 30px; border-radius: 30px;
  border: 2px solid rgba(245,239,230,.7); color: var(--text-light);
  text-decoration: none; background: transparent;
  transition: border-color .25s, color .25s, background .25s;
  display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* arrow btns */
.hero-arrows {
  position: absolute; bottom: 36px; right: 40px; z-index: 3;
  display: flex; gap: 10px;
}
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(245,239,230,.4);
  background: rgba(0,0,0,.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem;
  transition: border-color .2s, background .2s;
}
.hero-arrow:hover { border-color: #fff; background: rgba(0,0,0,.4); }
.hero-dots {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,239,230,.4); cursor: pointer;
  transition: background .3s, transform .3s;
}
.hero-dot.active { background: #fff; transform: scale(1.25); }

/* ── STATS STRIP ─────────────────────── */
.stats-strip {
  background: var(--bordeaux-dk);
  padding: 28px 0;
}
.stats-inner {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.stat { text-align: center; color: var(--text-light); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700; color: var(--gold);
  display: block; line-height: 1;
}
.stat-label {
  font-family: 'Libre Baskerville', serif;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(245,239,230,.7); margin-top: 4px; display: block;
}

/* ── PRODOTTI HOME ────────────────────── */
.prodotti-home { background: var(--cream); }
.prodotti-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.prod-card {
  border-radius: 18px; overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(42,26,14,.07);
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(42,26,14,.15); }
.prod-card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block;
  background: var(--brown-mid);
  font-size: 4rem; text-align: center; line-height: 160px;
}
.prod-card-body { padding: 20px 22px 24px; }
.prod-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px;
}
.prod-card-desc { font-size: .97rem; color: var(--text-mid); line-height: 1.6; }
.prod-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-family: 'Libre Baskerville', serif;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bordeaux);
}
.prod-card-link::after { content: '→'; transition: transform .2s; }
.prod-card:hover .prod-card-link::after { transform: translateX(4px); }

/* ── STORIA HOME ─────────────────────── */
.storia-home {
  background: var(--brown-dark);
  padding: 80px 0;
}
.storia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.storia-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 440px;
}
.storia-img-big {
  grid-row: 1 / 3;
  border-radius: 16px; overflow: hidden; background: var(--brown-mid);
}
.storia-img-sm {
  border-radius: 12px; overflow: hidden; background: var(--brown-warm);
}
.storia-img-big img,
.storia-img-sm img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) brightness(.9);
  transition: filter .4s;
}
.storia-imgs:hover img { filter: saturate(1) brightness(1); }
.storia-text { color: var(--text-light); }
.storia-text .section-eyebrow { color: var(--gold); }
.storia-text .section-title { color: #fff; }
.storia-text p { color: rgba(245,239,230,.78); font-size: 1.07rem; line-height: 1.8; margin-bottom: 18px; }
.storia-year-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 28px;
}
.storia-year-badge span:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.storia-year-badge span:last-child {
  font-size: .88rem; color: rgba(245,239,230,.7);
}

/* ── SECONDARY SLIDER ────────────────── */
.secondary-slider { background: var(--brown-mid); padding: 80px 0; }
.slider-cards-container { position: relative; overflow: hidden; }
.slider-cards {
  display: flex; gap: 24px;
  transition: transform .5s ease;
}
.slider-card {
  min-width: calc(33.333% - 16px);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 16px;
  padding: 40px 32px;
  flex-shrink: 0;
  text-align: center;
}
.slider-card-cat {
  font-family: 'Libre Baskerville', serif;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.slider-card-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-style: italic; font-weight: 400;
  color: #fff; line-height: 1.6;
}
.slider-nav-dots {
  display: flex; justify-content: center; gap: 10px; margin-top: 32px;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,239,230,.3); cursor: pointer; transition: background .3s;
}
.slider-dot.active { background: var(--gold); }

@media(max-width:980px){
  .prodotti-cards { grid-template-columns: 1fr 1fr; }
  .storia-inner { grid-template-columns: 1fr; }
  .storia-imgs { height: 280px; }
  .slider-card { min-width: calc(100% - 0px); }
}
@media(max-width:580px){
  .prodotti-cards { grid-template-columns: 1fr; }
}


/* ===== prodotti.html inline styles ===== */
/* ── FILTER TABS ─── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 52px;
}
.filter-btn {
  font-family: 'Libre Baskerville', serif;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 24px; border-radius: 30px; border: 1.5px solid var(--bordeaux);
  background: transparent; color: var(--bordeaux); cursor: pointer;
  transition: all .25s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--bordeaux); color: #fff;
}

/* ── PRODUCT GRID ─── */
.products-section { background: var(--cream); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(42,26,14,.08);
  transition: transform .3s, box-shadow .3s;
  display: none;
}
.product-card.visible { display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(42,26,14,.16); }

.product-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.product-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream-dk), var(--cream));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.product-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-family: 'Libre Baskerville', serif;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bordeaux); margin-bottom: 6px;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 6px;
}
.product-desc {
  font-size: .97rem; color: var(--text-mid); line-height: 1.6;
  margin-bottom: auto; padding-bottom: 16px;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--cream-dk);
}
.product-pezzatura {
  font-size: .85rem; color: var(--text-mid); font-style: italic;
}
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--bordeaux);
}

/* ── CATEGORY INTRO ─── */
.cat-intro {
  background: var(--brown-dark);
  padding: 64px 0;
  color: var(--text-light);
  text-align: center;
}
.cat-intro .section-title { color: #fff; }
.cat-intro .section-subtitle { color: rgba(245,239,230,.75); margin-inline: auto; }

/* ── HERO SLIDER (riplica dello stile home) dentro prodotti ── */
.promo-strip {
  background: linear-gradient(90deg, var(--bordeaux-dk), var(--brown-mid));
  color: var(--gold);
  text-align: center;
  padding: 14px;
  font-family: 'Libre Baskerville', serif;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
}


/* ===== il-forno.html inline styles ===== */
/* ── TIMELINE ──────────────────────────── */
.storia-section { background: var(--cream); }

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 60px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--bordeaux) 10%, var(--bordeaux) 90%, transparent);
  transform: translateX(-50%);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.tl-item.appear { opacity: 1; transform: translateY(0); }

.tl-content {
  background: #fff;
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 4px 24px rgba(42,26,14,.07);
}
.tl-item:nth-child(odd) .tl-content { grid-column: 1; }
.tl-item:nth-child(odd) .tl-dot   { grid-column: 2; }
.tl-item:nth-child(odd) .tl-empty { grid-column: 3; }
.tl-item:nth-child(even) .tl-empty   { grid-column: 1; }
.tl-item:nth-child(even) .tl-dot     { grid-column: 2; }
.tl-item:nth-child(even) .tl-content { grid-column: 3; }

.tl-dot {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 28px;
}
.tl-dot-inner {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bordeaux);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 3px var(--bordeaux);
  flex-shrink: 0;
}
.tl-empty { min-height: 1px; }

.tl-year {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--bordeaux);
  line-height: 1; margin-bottom: 8px;
}
.tl-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: 10px;
}
.tl-text { font-size: 1.03rem; color: var(--text-mid); line-height: 1.75; }

/* ── VALORI ────────────────────────────── */
.valori-section {
  background: var(--brown-dark);
  padding: 80px 0;
}
.valori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.valore-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  transition: background .3s, border-color .3s;
}
.valore-card:hover { background: rgba(255,255,255,.06); border-color: var(--gold); }
.valore-icon { font-size: 2.8rem; margin-bottom: 20px; }
.valore-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--gold); margin-bottom: 10px;
}
.valore-text { font-size: 1rem; color: rgba(245,239,230,.75); line-height: 1.7; }

/* ── QUOTE PULL ────────────────────────── */
.quote-block {
  background: var(--bordeaux-dk);
  padding: 72px 0;
  text-align: center;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  color: #fff;
  max-width: 760px; margin: 0 auto;
  line-height: 1.5;
}
.quote-author {
  margin-top: 24px;
  font-family: 'Libre Baskerville', serif;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}

/* ── PHOTO STRIP ───────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 280px;
  overflow: hidden;
}
.photo-strip-item {
  overflow: hidden; position: relative;
  background: var(--brown-mid);
}
.photo-strip-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85);
  transition: transform .5s, filter .5s;
}
.photo-strip-item:hover img { transform: scale(1.06); filter: saturate(1); }
.photo-strip-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42,26,14,.6), transparent);
  display: flex; align-items: flex-end; padding: 16px;
}
.photo-strip-item-label {
  font-family: 'Libre Baskerville', serif;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}

@media(max-width:760px){
  .timeline::before { left: 24px; }
  .tl-item { grid-template-columns: 48px 1fr; }
  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot { grid-column: 1; grid-row: 1; }
  .tl-item:nth-child(odd) .tl-content,
  .tl-item:nth-child(even) .tl-content { grid-column: 2; grid-row: 1; }
  .tl-empty { display: none; }
  .valori-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .photo-strip-item { height: 180px; }
}


/* ===== specialita.html inline styles ===== */
/* ── HERO CARDS ────────────────────────── */
.specialita-hero {
  background: var(--cream);
  padding: 80px 0 0;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
  border: 1px solid rgba(139,26,26,.12);
  border-radius: 20px;
  overflow: hidden;
}
.hero-feat {
  padding: 44px 36px;
  border-right: 1px solid rgba(139,26,26,.12);
  transition: background .3s;
  cursor: default;
}
.hero-feat:last-child { border-right: none; }
.hero-feat:hover { background: var(--cream-dk); }
.hero-feat-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 700;
  color: var(--bordeaux); opacity: .18;
  line-height: 1; margin-bottom: 14px;
}
.hero-feat-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 10px;
}
.hero-feat-text { font-size: 1rem; color: var(--text-mid); line-height: 1.7; }

/* ── SPECIALITÀ HIGHLIGHT ──────────────── */
.highlight-section { background: var(--cream); padding: 80px 0; }

.highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.highlight-row:last-child { margin-bottom: 0; }
.highlight-row.reverse .highlight-img { order: 2; }
.highlight-row.reverse .highlight-body { order: 1; }

.highlight-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--brown-mid);
}
.highlight-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.highlight-img:hover img { transform: scale(1.04); }

.highlight-tag {
  display: inline-block;
  font-family: 'Libre Baskerville', serif;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: var(--bordeaux);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 16px;
}
.highlight-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-dark); margin-bottom: 16px;
}
.highlight-body p {
  font-size: 1.07rem; color: var(--text-mid); line-height: 1.8;
  margin-bottom: 16px;
}
.highlight-detail {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.detail-chip {
  font-family: 'Libre Baskerville', serif;
  font-size: .73rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 16px; border: 1.5px solid var(--bordeaux);
  border-radius: 20px; color: var(--bordeaux);
}

/* ── GRANI ANTICHI BANNER ──────────────── */
.grani-banner {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
  padding: 80px 0;
  color: var(--text-light);
}
.grani-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.grani-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700;
  color: #fff; margin-bottom: 20px;
}
.grani-content p { font-size: 1.07rem; color: rgba(245,239,230,.8); line-height: 1.8; margin-bottom: 14px; }
.grani-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.grani-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.05rem; color: rgba(245,239,230,.9);
}
.grani-list li::before {
  content: ''; width: 28px; height: 2px;
  background: var(--gold); flex-shrink: 0;
}
.grani-img-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.grani-img-grid div {
  border-radius: 12px; overflow: hidden; aspect-ratio: 1;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border: 1px solid rgba(201,168,76,.15);
}

/* ── STAGIONALE SLIDER ─────────────────── */
.stagionale-section { background: var(--cream-dk); padding: 80px 0; }
.stagionale-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.stag-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(42,26,14,.06);
  transition: transform .3s, box-shadow .3s;
}
.stag-card:hover { transform: translateY(-6px); box-shadow: 0 8px 32px rgba(42,26,14,.14); }
.stag-season {
  font-family: 'Libre Baskerville', serif;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bordeaux); margin-bottom: 14px;
}
.stag-icon { font-size: 2.4rem; margin-bottom: 14px; }
.stag-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px;
}
.stag-desc { font-size: .94rem; color: var(--text-mid); line-height: 1.6; }

@media(max-width:900px){
  .hero-features { grid-template-columns: 1fr; }
  .hero-feat { border-right: none; border-bottom: 1px solid rgba(139,26,26,.12); }
  .hero-feat:last-child { border-bottom: none; }
  .highlight-row { grid-template-columns: 1fr; gap: 32px; }
  .highlight-row.reverse .highlight-img,
  .highlight-row.reverse .highlight-body { order: unset; }
  .grani-grid { grid-template-columns: 1fr; }
  .stagionale-cards { grid-template-columns: 1fr 1fr; }
}
@media(max-width:540px){
  .stagionale-cards { grid-template-columns: 1fr; }
}


/* ===== contatti.html inline styles ===== */
/* ── CONTACT LAYOUT ─────────────────────── */
.contact-section { background: var(--cream); padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── INFO CARDS ─────────────────────────── */
.info-cards { display: flex; flex-direction: column; gap: 24px; }

.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 4px 20px rgba(42,26,14,.06);
  display: flex; gap: 20px; align-items: flex-start;
  transition: box-shadow .3s, transform .3s;
}
.info-card:hover { box-shadow: 0 8px 32px rgba(42,26,14,.12); transform: translateY(-3px); }

.info-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--bordeaux);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}
.info-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 6px;
}
.info-body p { font-size: 1rem; color: var(--text-mid); line-height: 1.7; }
.info-body a { color: var(--bordeaux); text-decoration: none; }
.info-body a:hover { text-decoration: underline; }

/* ── ORARI TABLE ────────────────────────── */
.orari-card {
  background: var(--brown-dark);
  border-radius: 16px;
  padding: 36px 32px;
  color: var(--text-light);
  grid-column: 1 / -1; /* full width */
  margin-top: 0;
}
.orari-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--gold); margin-bottom: 24px;
}
.orari-table { width: 100%; border-collapse: collapse; }
.orari-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(201,168,76,.1);
  font-size: .98rem;
}
.orari-table td:last-child { text-align: right; font-weight: 500; color: #fff; }
.orari-table tr:last-child td { border-bottom: none; }
.day-badge {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(245,239,230,.75);
}
.chiuso { color: rgba(245,239,230,.35) !important; }

/* ── MAP AREA ───────────────────────────── */
.map-area {
  background: var(--cream-dk);
  padding: 0;
}
.map-wrapper {
  width: 100%;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(42,26,14,.12);
  position: relative;
  background: var(--brown-mid);
}
.map-wrapper iframe {
  width: 100%; height: 100%; border: none; display: block;
}
.map-overlay-badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--bordeaux);
  color: #fff;
  border-radius: 30px;
  padding: 10px 20px;
  font-family: 'Libre Baskerville', serif;
  font-size: .78rem; letter-spacing: .1em;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  pointer-events: none;
}

/* ── CONTACT FORM ───────────────────────── */
.form-section { background: var(--cream-dk); padding: 80px 0; }
.form-box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 48px 48px;
  box-shadow: 0 4px 32px rgba(42,26,14,.07);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form-group label {
  font-family: 'Libre Baskerville', serif;
  font-size: .73rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mid);
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dk);
  border-radius: 10px;
  background: var(--cream);
  color: var(--text-dark);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(139,26,26,.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--bordeaux);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'Libre Baskerville', serif;
  font-size: .84rem; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, transform .2s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--bordeaux-lt); transform: translateY(-2px); }
.form-note { text-align: center; font-size: .87rem; color: var(--text-mid); margin-top: 16px; font-style: italic; }

/* success */
.form-success {
  display: none; text-align: center; padding: 32px;
}
.form-success .check { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--bordeaux); margin-bottom: 10px; }
.form-success p { color: var(--text-mid); font-size: 1rem; }

@media(max-width:860px){
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-box { padding: 32px 24px; }
}

/* ===== WordPress / CF7 integration helpers ===== */
nav .current-menu-item > a,
nav .current_page_item > a,
nav .current-menu-ancestor > a { color: var(--gold); }
.nav-links .nav-cta { display: none; }
.admin-bar nav { top: 32px; }
@media (max-width:782px){ .admin-bar nav { top: 46px; } }
@media (max-width:600px){ .admin-bar nav { top: 0; } }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}

.wpcf7 .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wpcf7 .form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.wpcf7 .form-group br { display: none; }
.wpcf7 .form-group label {
  font-family: 'Libre Baskerville', serif;
  font-size: .73rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mid);
}
.wpcf7 .form-group input,
.wpcf7 .form-group textarea,
.wpcf7 .form-group select {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dk);
  border-radius: 10px;
  background: var(--cream);
  color: var(--text-dark);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.wpcf7 .form-group input:focus,
.wpcf7 .form-group textarea:focus,
.wpcf7 .form-group select:focus {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(139,26,26,.1);
}
.wpcf7 .form-group textarea { min-height: 130px; resize: vertical; }
.wpcf7 .form-submit,
.wpcf7 input[type="submit"].form-submit {
  width: 100%;
  padding: 16px;
  background: var(--bordeaux);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'Libre Baskerville', serif;
  font-size: .84rem; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, transform .2s;
  margin-top: 8px;
}
.wpcf7 .form-submit:hover,
.wpcf7 input[type="submit"].form-submit:hover { background: var(--bordeaux-lt); transform: translateY(-2px); }
.wpcf7-not-valid-tip { color: var(--bordeaux); font-size: .9rem; margin-top: 5px; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; border-color: var(--bordeaux); color: var(--text-mid); }
@media(max-width:860px){ .wpcf7 .form-row { grid-template-columns: 1fr; } }

/* ===== V2.3 targeted visual refinements =====
   Migliorie mirate a contrasto, leggibilità e coerenza fotografica senza cambiare markup o struttura modulare. */

/* Header più staccato dalle immagini sottostanti */
nav {
  background: rgba(30, 17, 9, .985);
  border-bottom: 1px solid rgba(201,168,76,.28);
  box-shadow: 0 10px 34px rgba(0,0,0,.24);
}

.nav-logo {
  min-width: 116px;
  padding-left: 4px;
}

.nav-logo img {
  height: 68px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
}

.nav-links a:hover,
.nav-links a.active,
nav .current-menu-item > a,
nav .current_page_item > a,
nav .current-menu-ancestor > a {
  color: #D8BC62;
  text-shadow: 0 0 18px rgba(216,188,98,.16);
}

.nav-cta {
  background: var(--cream) !important;
  color: var(--brown-dark) !important;
  border: 1px solid rgba(201,168,76,.55);
  box-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.45);
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--brown-dark) !important;
  transform: translateY(-1px);
}

/* Page hero: overlay più leggibile su qualsiasi foto caricata via ACF */
.page-header::before {
  background:
    linear-gradient(to top, rgba(20,10,5,.82) 0%, rgba(20,10,5,.54) 48%, rgba(20,10,5,.36) 100%),
    linear-gradient(135deg, rgba(139,26,26,.42) 0%, rgba(42,26,14,.72) 100%);
}

.page-header-bg {
  filter: brightness(.62) saturate(.82) sepia(.08) contrast(1.04);
}

.page-header-content {
  padding: 0 28px;
  text-shadow: 0 8px 24px rgba(0,0,0,.42);
}

.page-header h1 {
  text-shadow: 0 8px 28px rgba(0,0,0,.46);
}

.page-header p {
  color: rgba(245,239,230,.9);
  text-shadow: 0 5px 18px rgba(0,0,0,.38);
}

/* Specialità: più respiro e testi piccoli più leggibili */
.specialita-hero {
  padding: 108px 0 34px;
}

.specialita-hero .section-title {
  margin-bottom: 0;
}

.hero-features {
  margin-top: 72px;
  box-shadow: 0 10px 38px rgba(42,26,14,.045);
}

.hero-feat {
  padding: 60px 44px 58px;
}

.hero-feat-num {
  margin-bottom: 18px;
}

.hero-feat-title {
  margin-bottom: 16px;
  line-height: 1.25;
}

.hero-feat-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .96rem;
  line-height: 1.86;
  letter-spacing: .005em;
  color: rgba(90,61,43,.9);
}

/* Il Forno: grading uniforme e caldo sulla fascia immagini */
.photo-strip-item img {
  filter: brightness(.82) saturate(.82) sepia(.16) hue-rotate(-4deg) contrast(1.05);
}

.photo-strip-item:hover img {
  transform: scale(1.06);
  filter: brightness(.9) saturate(.94) sepia(.1) hue-rotate(-3deg) contrast(1.07);
}

.photo-strip-item-overlay {
  background:
    linear-gradient(to top, rgba(42,26,14,.78) 0%, rgba(42,26,14,.38) 48%, rgba(42,26,14,.12) 100%);
}

.photo-strip-item-label {
  text-shadow: 0 4px 14px rgba(0,0,0,.38);
}

@media (max-width: 640px) {
  .nav-logo img { height: 58px; max-width: 110px; }
  .nav-logo { min-width: auto; }
  .nav-cta { display: none; }
  .specialita-hero { padding: 82px 0 22px; }
  .hero-features { margin-top: 48px; }
  .hero-feat { padding: 42px 30px; }
}


/* ===== V2.4 layout coherence fixes =====
   Correzione della fascia prodotti che spingeva il page hero verso il basso e
   hardening della coerenza visiva dei page hero interni. */

/* Il page hero deve essere sempre il primo elemento visivo sotto la navbar fissa. */
.page-header {
  margin-top: var(--nav-h);
  height: 340px;
}

/* Se in futuro viene riattivata una promo strip prima di un page hero, non deve creare
   la banda chiara/taglio visibile sotto l'header. */
.promo-strip {
  margin-top: 0;
}
.promo-strip + .page-header {
  margin-top: 0;
}

/* La pagina prodotti non deve avere una fascia superiore nascosta dietro la navbar:
   il banner deve partire pulito e coerente con Il Forno, Specialità e Contatti. */
body.page-template-page-prodotti-php .promo-strip,
body.page-template-page-prodotti .promo-strip {
  display: none;
}

/* Hero interni più coerenti: stessa profondità, overlay e centratura tipografica. */
.page-header-bg {
  background-position: center center;
}
.page-header-content {
  max-width: 760px;
  margin: 0 auto;
}
.page-header-eyebrow {
  color: rgba(245,239,230,.9);
  font-style: italic;
}

/* Product page: dopo la rimozione della fascia nascosta, manteniamo il ritmo verticale
   identico agli altri layout senza schiacciare il listino. */
.products-section {
  padding-top: 84px;
}

/* Photo strip: impedisce celle apparentemente vuote e rende uniforme il taglio fotografico. */
.photo-strip-item {
  min-height: 280px;
}
.photo-strip-item img {
  display: block;
  background: var(--brown-mid);
}
.photo-strip-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,26,14,.95), rgba(92,15,15,.68));
  z-index: 0;
}
.photo-strip-item img,
.photo-strip-item-overlay {
  position: relative;
  z-index: 1;
}
.photo-strip-item-overlay {
  position: absolute;
}

@media (max-width: 760px) {
  .page-header { height: 300px; }
  .products-section { padding-top: 70px; }
  .photo-strip-item { min-height: 180px; }
}


/* ── V2.5 REVIEWS SLIDER REFINEMENT ────────────────── */
.reviews-slider-section { padding: 96px 0 88px; }
.reviews-section-head { text-align: center; margin-bottom: 42px; }
.reviews-section-head .section-eyebrow { color: var(--gold); }
.reviews-section-head .section-title { color: #fff; }
.reviews-slider-section .slider-cards-container {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
}
.reviews-slider-section .slider-cards {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.reviews-slider-section .slider-card {
  min-width: 100%;
  padding: 48px 56px 44px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}
.slider-card-stars {
  font-family: 'Libre Baskerville', serif;
  color: var(--gold);
  letter-spacing: .22em;
  font-size: .86rem;
  margin-bottom: 22px;
}
.reviews-slider-section .slider-card-quote {
  max-width: 760px;
  margin: 0 auto 26px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 1.42rem;
  line-height: 1.65;
}
.reviews-slider-section .slider-card-cat {
  margin: 0;
  color: rgba(245,239,230,.72);
  letter-spacing: .16em;
}
@media(max-width:780px){
  .reviews-slider-section { padding: 76px 0 72px; }
  .reviews-slider-section .slider-card { padding: 36px 24px 34px; }
  .reviews-slider-section .slider-card-quote { font-size: 1.18rem; line-height: 1.55; }
}

/* ── V3.0.1 MOBILE HARD FIX: nav + recensioni ───────────────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 86px; }

  nav {
    height: var(--nav-h) !important;
    min-height: var(--nav-h) !important;
    padding: 0 28px !important;
    background: rgba(42,26,14,.985) !important;
    overflow: visible !important;
  }

  .nav-logo img {
    height: 58px !important;
    max-height: 58px !important;
  }

  .nav-cta { display: none !important; }

  .nav-hamburger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 46px !important;
    height: 36px !important;
    min-width: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(201,168,76,.38) !important;
    border-radius: 8px !important;
    background: var(--cream) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    z-index: 1002 !important;
  }

  .nav-hamburger span {
    display: block !important;
    width: 23px !important;
    height: 2px !important;
    min-height: 2px !important;
    background: var(--brown-dark) !important;
    border-radius: 99px !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0 !important;
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  .nav-links {
    display: none !important;
    position: fixed !important;
    top: var(--nav-h) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    background: rgba(42,26,14,.99) !important;
    border-top: 1px solid rgba(201,168,76,.16) !important;
    border-bottom: 1px solid rgba(201,168,76,.16) !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 18px 24px 22px !important;
    list-style: none !important;
    z-index: 1001 !important;
  }

  .nav-links.open,
  body.nav-open .nav-links {
    display: flex !important;
  }

  .nav-links li {
    width: 100% !important;
    text-align: center !important;
  }

  .nav-links a {
    display: block !important;
    width: 100% !important;
    padding: 15px 0 !important;
    font-size: .82rem !important;
    letter-spacing: .16em !important;
  }

  .hero,
  .page-header {
    margin-top: var(--nav-h) !important;
  }

  .reviews-slider-section {
    overflow: hidden !important;
    padding: 76px 0 74px !important;
  }

  .reviews-slider-section .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    overflow: hidden !important;
  }

  .reviews-slider-section .slider-cards-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  .reviews-slider-section .slider-cards {
    display: flex !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    transition: transform .45s ease !important;
    will-change: transform !important;
  }

  .reviews-slider-section .slider-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 34px 22px 32px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .reviews-slider-section .slider-card-quote {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 24px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto !important;
    font-size: clamp(1.08rem, 5vw, 1.42rem) !important;
    line-height: 1.48 !important;
    text-align: center !important;
  }

  .reviews-slider-section .slider-card-cat,
  .reviews-slider-section .slider-card-stars {
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-align: center !important;
  }
}

@media (max-width: 420px) {
  nav { padding: 0 22px !important; }
  .reviews-slider-section .container { padding-left: 18px !important; padding-right: 18px !important; }
  .reviews-slider-section .slider-card { padding: 30px 18px 30px !important; }
}


/* ── V3.0.2 HOME MOBILE DEFINITIVE FIX ───────────────────────── */
@media (max-width: 900px) {
  body.home nav,
  body.front-page nav,
  body.page-template-front-page nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 86px !important;
    min-height: 86px !important;
    z-index: 2147483000 !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  body.home .nav-hamburger,
  body.front-page .nav-hamburger,
  body.page-template-front-page .nav-hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 2147483001 !important;
    flex: 0 0 46px !important;
  }

  body.home .nav-hamburger span,
  body.front-page .nav-hamburger span,
  body.page-template-front-page .nav-hamburger span {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.home .nav-links.open,
  body.home.nav-open .nav-links,
  body.front-page .nav-links.open,
  body.front-page.nav-open .nav-links,
  body.page-template-front-page .nav-links.open,
  body.page-template-front-page.nav-open .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 86px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2147482999 !important;
  }

  body.home .hero,
  body.front-page .hero,
  body.page-template-front-page .hero {
    position: relative !important;
    z-index: 0 !important;
  }

  body.home .hero-slides,
  body.home .hero-slide,
  body.home .hero-content,
  body.home .hero-arrows,
  body.home .hero-dots {
    z-index: auto;
  }

  body.home .reviews-slider-section .slider-cards,
  body.front-page .reviews-slider-section .slider-cards,
  body.page-template-front-page .reviews-slider-section .slider-cards {
    display: block !important;
    width: 100% !important;
    transform: none !important;
  }

  body.home .reviews-slider-section .slider-card,
  body.front-page .reviews-slider-section .slider-card,
  body.page-template-front-page .reviews-slider-section .slider-card {
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    transform: none !important;
    overflow: visible !important;
  }

  body.home .reviews-slider-section .slider-card.active,
  body.front-page .reviews-slider-section .slider-card.active,
  body.page-template-front-page .reviews-slider-section .slider-card.active {
    display: block !important;
  }

  body.home .reviews-slider-section .slider-card-quote,
  body.front-page .reviews-slider-section .slider-card-quote,
  body.page-template-front-page .reviews-slider-section .slider-card-quote {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ── V3.0.3 HOME HERO MOBILE READABILITY RESET ─────────────────────────
   Fix definitivo per Home: evita sovrapposizione/fading delle slide e forza
   contrasto corretto dei testi su mobile. */
@media (max-width: 900px) {
  body.home .hero,
  body.front-page .hero,
  body.page-template-front-page .hero {
    margin-top: var(--nav-h) !important;
    height: calc(100svh - var(--nav-h)) !important;
    min-height: 690px !important;
    background: var(--brown-dark) !important;
    overflow: hidden !important;
  }

  body.home .hero-slide,
  body.front-page .hero-slide,
  body.page-template-front-page .hero-slide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 0 !important;
    transition: opacity .7s ease !important;
  }

  body.home .hero-slide.active,
  body.front-page .hero-slide.active,
  body.page-template-front-page .hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
  }

  body.home .hero-slide-bg,
  body.front-page .hero-slide-bg,
  body.page-template-front-page .hero-slide-bg {
    opacity: 1 !important;
    filter: brightness(.72) saturate(.9) contrast(1.04) !important;
    background-position: center center !important;
    z-index: 0 !important;
  }

  body.home .hero-slide::before,
  body.front-page .hero-slide::before,
  body.page-template-front-page .hero-slide::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    opacity: 1 !important;
    background:
      linear-gradient(90deg, rgba(42,26,14,.90) 0%, rgba(42,26,14,.72) 48%, rgba(42,26,14,.38) 100%),
      linear-gradient(0deg, rgba(42,26,14,.62) 0%, rgba(42,26,14,.22) 48%, rgba(42,26,14,.10) 100%) !important;
  }

  body.home .hero-content,
  body.front-page .hero-content,
  body.page-template-front-page .hero-content {
    z-index: 5 !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 38px 96px !important;
    align-items: flex-end !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.home .hero-inner,
  body.front-page .hero-inner,
  body.page-template-front-page .hero-inner {
    width: 100% !important;
    max-width: 520px !important;
    color: #fffaf5 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.home .hero-eyebrow,
  body.front-page .hero-eyebrow,
  body.page-template-front-page .hero-eyebrow {
    color: #fffaf5 !important;
    background: #9e1b1f !important;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.55) !important;
  }

  body.home .hero-title,
  body.front-page .hero-title,
  body.page-template-front-page .hero-title {
    color: #fffaf5 !important;
    opacity: 1 !important;
    filter: none !important;
    font-size: clamp(3.05rem, 13vw, 4.25rem) !important;
    line-height: .98 !important;
    text-shadow: 0 5px 20px rgba(0,0,0,.95), 0 14px 42px rgba(0,0,0,.72) !important;
  }

  body.home .hero-sub,
  body.front-page .hero-sub,
  body.page-template-front-page .hero-sub {
    color: #fff7ef !important;
    opacity: 1 !important;
    filter: none !important;
    font-size: 1.35rem !important;
    line-height: 1.55 !important;
    text-shadow: 0 4px 15px rgba(0,0,0,.95), 0 10px 30px rgba(0,0,0,.70) !important;
  }

  body.home .hero-ctas,
  body.front-page .hero-ctas,
  body.page-template-front-page .hero-ctas {
    opacity: 1 !important;
    filter: none !important;
  }

  body.home .hero-ctas .btn-primary,
  body.front-page .hero-ctas .btn-primary,
  body.page-template-front-page .hero-ctas .btn-primary {
    background: #a61d22 !important;
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.38) !important;
  }

  body.home .hero-ctas .btn-outline,
  body.front-page .hero-ctas .btn-outline,
  body.page-template-front-page .hero-ctas .btn-outline {
    color: #fffaf5 !important;
    border-color: rgba(255,255,255,.9) !important;
    background: rgba(0,0,0,.08) !important;
    opacity: 1 !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.28) !important;
  }
}

@media (max-width: 420px) {
  body.home .hero,
  body.front-page .hero,
  body.page-template-front-page .hero {
    min-height: 675px !important;
  }
  body.home .hero-content,
  body.front-page .hero-content,
  body.page-template-front-page .hero-content {
    padding: 0 34px 92px !important;
  }
  body.home .hero-sub,
  body.front-page .hero-sub,
  body.page-template-front-page .hero-sub {
    font-size: 1.26rem !important;
  }
}

/* === V6 UI FIX: header/shop WooCommerce robusto === */
.laspada-site-header,
.laspada-site-header * {
  box-sizing: border-box;
}

.laspada-site-header {
  position: relative;
  z-index: 5000;
}

.laspada-site-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--nav-h) !important;
  min-height: var(--nav-h) !important;
  max-height: var(--nav-h) !important;
  background: rgba(42,26,14,.97) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center !important;
  gap: 24px !important;
  padding: 0 clamp(18px, 3vw, 40px) !important;
  z-index: 5000 !important;
  border-bottom: 1px solid rgba(201,168,76,.2) !important;
  box-shadow: 0 14px 42px rgba(26,14,8,.18);
  overflow: visible !important;
}

body.admin-bar .laspada-site-nav { top: 32px !important; }
@media (max-width: 782px) { body.admin-bar .laspada-site-nav { top: 46px !important; } }

.laspada-nav-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 132px;
  height: var(--nav-h) !important;
  line-height: 1 !important;
  text-decoration: none !important;
  color: var(--gold) !important;
}

.laspada-nav-logo img {
  display: block !important;
  width: auto !important;
  max-width: 150px !important;
  height: 58px !important;
  object-fit: contain !important;
  filter: none !important;
  background: transparent !important;
}

.laspada-nav-links,
.laspada-site-nav .menu,
.laspada-site-nav > ul {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: clamp(14px, 2vw, 32px) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.laspada-nav-links li,
.laspada-site-nav .menu li,
.laspada-site-nav > ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.laspada-site-nav a,
.laspada-nav-links a,
.laspada-site-nav .menu a,
.laspada-site-nav > ul a {
  color: rgba(245,239,230,.9) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.laspada-nav-links a,
.laspada-site-nav .menu a,
.laspada-site-nav > ul a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 40px !important;
  font-family: 'Libre Baskerville', serif !important;
  font-size: .74rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  transition: color .25s ease, transform .25s ease !important;
}

.laspada-nav-links a:hover,
.laspada-site-nav .menu a:hover,
.laspada-site-nav > ul a:hover,
.laspada-nav-links a.active {
  color: var(--gold) !important;
  transform: translateY(-1px);
}

.laspada-nav-cta,
.laspada-nav-cart {
  white-space: nowrap !important;
  text-decoration: none !important;
}

.laspada-nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  background: var(--bordeaux) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 11px 20px !important;
  font-family: 'Libre Baskerville', serif !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: 0 12px 28px rgba(139,26,26,.18) !important;
}

.laspada-nav-hamburger {
  display: none !important;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(201,168,76,.28) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.04) !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding: 0 !important;
}

.laspada-nav-hamburger span {
  display: block !important;
  width: 18px !important;
  height: 2px !important;
  background: var(--cream) !important;
  border-radius: 2px !important;
}

.woo-shop-hero .page-header-bg {
  filter: brightness(.68) saturate(.95) !important;
}
.woo-shop-hero .page-header-content,
.woo-shop-hero .page-header-inner {
  position: relative !important;
  z-index: 2 !important;
  text-align: center !important;
  color: var(--text-light) !important;
  max-width: 760px !important;
  margin-inline: auto !important;
  padding-inline: 24px !important;
}
.woo-shop-hero .page-header-inner > span,
.woo-shop-hero .page-header-eyebrow {
  display: block !important;
  font-family: 'Libre Baskerville', serif !important;
  font-size: .72rem !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin-bottom: 14px !important;
}
.woo-shop-hero h1 {
  color: var(--text-light) !important;
  text-shadow: 0 10px 32px rgba(0,0,0,.38) !important;
}
.woo-shop-hero p {
  color: rgba(245,239,230,.86) !important;
  text-shadow: 0 6px 20px rgba(0,0,0,.28) !important;
}

@media (max-width: 1120px) {
  .laspada-site-nav {
    grid-template-columns: auto 1fr auto auto !important;
    gap: 14px !important;
  }
  .laspada-nav-links,
  .laspada-site-nav .menu,
  .laspada-site-nav > ul {
    gap: 14px !important;
  }
  .laspada-nav-links a,
  .laspada-site-nav .menu a,
  .laspada-site-nav > ul a {
    font-size: .66rem !important;
    letter-spacing: .09em !important;
  }
}

@media (max-width: 860px) {
  .laspada-site-nav {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 18px !important;
  }
  .laspada-nav-logo { min-width: 0 !important; }
  .laspada-nav-logo img { max-width: 130px !important; height: 50px !important; }
  .laspada-nav-links,
  .laspada-site-nav .menu,
  .laspada-site-nav > ul {
    display: none !important;
    position: absolute !important;
    top: var(--nav-h) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(42,26,14,.99) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 16px 22px 22px !important;
    border-top: 1px solid rgba(201,168,76,.18) !important;
    box-shadow: 0 28px 44px rgba(26,14,8,.24) !important;
  }
  .laspada-nav-links.open,
  .laspada-site-nav .menu.open,
  .laspada-site-nav > ul.open {
    display: flex !important;
  }
  .laspada-nav-links li,
  .laspada-site-nav .menu li,
  .laspada-site-nav > ul li { width: 100% !important; }
  .laspada-nav-links a,
  .laspada-site-nav .menu a,
  .laspada-site-nav > ul a {
    width: 100% !important;
    min-height: 44px !important;
    font-size: .78rem !important;
    letter-spacing: .12em !important;
  }
  .laspada-nav-cta { display: none !important; }
  .laspada-nav-hamburger { display: inline-flex !important; }
}

/* === V8 ECOMMERCE UI FINAL: header + shop hero === */
:root { --nav-h: 82px; }

.laspada-site-nav {
  height: var(--nav-h) !important;
  min-height: var(--nav-h) !important;
  max-height: var(--nav-h) !important;
  grid-template-columns: minmax(126px, 180px) minmax(0, 1fr) auto auto !important;
  background: linear-gradient(90deg, rgba(42,26,14,.995), rgba(52,31,16,.985)) !important;
  border-bottom: 1px solid rgba(201,168,76,.26) !important;
  box-shadow: 0 16px 46px rgba(26,14,8,.24) !important;
}
.laspada-nav-logo {
  min-width: 136px !important;
  height: var(--nav-h) !important;
}
.laspada-nav-logo img {
  height: 66px !important;
  max-width: 156px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.24)) !important;
}
.laspada-nav-links,
.laspada-site-nav .menu,
.laspada-site-nav > ul { gap: clamp(18px, 2.15vw, 34px) !important; }
.laspada-nav-links a,
.laspada-site-nav .menu a,
.laspada-site-nav > ul a {
  min-height: 42px !important;
  color: rgba(245,239,230,.88) !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.18) !important;
}
.laspada-nav-cta {
  min-height: 44px !important;
  padding: 12px 22px !important;
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-lt)) !important;
}
.laspada-nav-cart {
  min-height: 44px !important;
  padding: 11px 18px !important;
}

.panificio-shop-hero-v8 {
  margin-top: var(--nav-h) !important;
  height: clamp(360px, 42vw, 460px) !important;
  min-height: 360px !important;
  isolation: isolate;
}
.panificio-shop-hero-v8::before {
  background:
    radial-gradient(circle at 50% 44%, rgba(139,26,26,.18) 0%, rgba(42,26,14,.30) 42%, rgba(20,10,5,.74) 100%),
    linear-gradient(to top, rgba(20,10,5,.82) 0%, rgba(20,10,5,.44) 48%, rgba(20,10,5,.34) 100%) !important;
}
.panificio-shop-hero-v8 .page-header-bg {
  filter: brightness(.58) saturate(.92) sepia(.08) contrast(1.06) !important;
  transform: scale(1.015) !important;
}
.panificio-shop-hero-v8 .woo-shop-hero-content {
  max-width: 820px !important;
  padding: 0 26px !important;
}
.panificio-shop-hero-v8 .page-header-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: rgba(201,168,76,.13) !important;
  border: 1px solid rgba(201,168,76,.24) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18) !important;
}
.panificio-shop-hero-v8 h1 {
  font-size: clamp(3rem, 5.8vw, 5.2rem) !important;
  line-height: .95 !important;
  margin-top: 4px !important;
  margin-bottom: 12px !important;
}
.panificio-shop-hero-v8 p:not(.page-header-eyebrow) {
  font-size: clamp(1.08rem, 1.8vw, 1.32rem) !important;
  line-height: 1.58 !important;
  max-width: 680px !important;
  margin-inline: auto !important;
}

@media (max-width: 1040px) {
  .laspada-site-nav { grid-template-columns: auto 1fr auto auto !important; gap: 14px !important; }
  .laspada-nav-logo img { height: 60px !important; max-width: 132px !important; }
}
@media (max-width: 860px) {
  :root { --nav-h: 74px; }
  .laspada-site-nav { height: var(--nav-h) !important; min-height: var(--nav-h) !important; max-height: var(--nav-h) !important; }
  .laspada-nav-logo { height: var(--nav-h) !important; }
  .laspada-nav-logo img { height: 54px !important; max-width: 118px !important; }
  .laspada-nav-cart { right: 74px !important; top: 16px !important; min-height: 40px !important; }
  .panificio-shop-hero-v8 { min-height: 330px !important; height: 330px !important; }
  .panificio-shop-hero-v8 h1 { font-size: clamp(2.6rem, 13vw, 4rem) !important; }
}
@media (max-width: 520px) {
  .laspada-site-nav { padding: 0 14px !important; }
  .laspada-nav-logo img { height: 50px !important; max-width: 108px !important; }
  .laspada-nav-cart { right: 62px !important; padding: 8px 10px !important; }
  .panificio-shop-hero-v8 { min-height: 310px !important; height: 310px !important; }
}
