/* ── Google Fonts — Premium Artisanal ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Playfair+Display+SC:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables — Premium Palette ── */
:root {
  --primary:    #6B3410;   /* marrone profondo, nobile */
  --secondary:  #8B4513;   /* saddlebrown */
  --cta:        #A07820;   /* oro antico, raffinato */
  --bg:         #FEFDFB;   /* bianco caldo, non giallo */
  --bg-alt:     #F7F4EE;   /* grigio sabbia caldo */
  --text:       #1C0F07;   /* quasi nero caldo */
  --text-muted: #7A6554;   /* taupe caldo */
  --border:     #E8DDD0;   /* bordo sabbia discreta */
  --terracotta: #B07060;
  --white:      #FFFFFF;
  --wa-green:   #1DAA61;
  --shadow:     0 2px 16px rgba(28,15,7,.07);
  --shadow-lg:  0 8px 40px rgba(28,15,7,.12);
  --radius:     8px;       /* piu squadrato = piu premium */
  --radius-sm:  4px;
  --font-h:     'Playfair Display SC', Georgia, serif;
  --font-sub:   'Cormorant Garamond', Georgia, serif;
  --font-b:     'Inter', system-ui, sans-serif;
  --max-w:      1200px;
  --gap:        clamp(1rem,3vw,2rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-b); }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-h); line-height: 1.15; }
h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem,3.5vw,2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem,2vw,1.5rem); font-weight: 400; }
p  { font-size: 1rem; max-width: 65ch; }

/* ── Layout ── */
.container { width: min(var(--max-w), 100% - 2rem); margin-inline: auto; }
.section { padding-block: clamp(3rem,6vw,5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary); color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--font-b); font-weight: 600; font-size: .95rem;
  transition: transform .2s ease-out, box-shadow .2s ease-out, background .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--cta); color: var(--white); }
.btn--primary:hover { background: var(--secondary); }
.btn--wa { background: var(--wa-green); color: var(--white); }
.btn--wa:hover { background: #178a4f; }
.btn--outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn--outline:hover { background: rgba(255,255,255,.12); }

/* ── Badge ── */
.badge {
  display: inline-block; padding: .25rem .8rem;
  border-radius: 999px; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(200,130,10,.15); color: var(--cta);
  border: 1px solid rgba(200,130,10,.3);
  margin-bottom: .75rem;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.scrolled {
  background: rgba(255,252,245,.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(62,31,10,.07);
  padding: .65rem 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo img {
  height: 54px; width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.3));
  transition: filter .35s ease;
}
.nav.scrolled .nav__logo img {
  filter: none;
}
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-family: var(--font-b); font-weight: 600; font-size: .875rem;
  color: rgba(255,255,255,.92); letter-spacing: .03em;
  transition: color .2s, opacity .2s; position: relative;
}
.nav.scrolled .nav__link { color: var(--text); }
.nav__link::after {
  content:''; position: absolute; bottom:-4px; left:0; right:0; height:2px;
  background: var(--cta); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease-out;
}
.nav__link:hover { opacity: .85; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { font-size: .85rem; padding: .55rem 1.1rem; border-radius: var(--radius-sm); }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px; background: none; border: none; cursor: pointer;
}
.nav__burger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px; transition: .3s;
}
.nav.scrolled .nav__burger span { background: var(--text); }
.nav__drawer {
  display: flex; position: fixed; inset: 0; background: rgba(62,31,10,.97);
  backdrop-filter: blur(12px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem; z-index: 200;
  /* Hidden state */
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(6%);
  transition: opacity .32s ease-out, transform .32s ease-out, visibility 0s .33s;
}
.nav__drawer.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
  transition: opacity .32s ease-out, transform .32s ease-out, visibility 0s 0s;
}
/* Stagger drawer links entrance */
.nav__drawer > * { opacity: 0; transform: translateX(18px); transition: opacity .28s ease-out, transform .28s ease-out; }
.nav__drawer.open > *:nth-child(1) { opacity: 1; transform: none; transition-delay: .08s; }
.nav__drawer.open > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .13s; }
.nav__drawer.open > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .18s; }
.nav__drawer.open > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .23s; }
.nav__drawer.open > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .28s; }
.nav__drawer.open > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .33s; }
.nav__drawer.open > *:nth-child(7) { opacity: 1; transform: none; transition-delay: .38s; }
.nav__drawer .nav__link { color: rgba(255,255,255,.85); font-size: 1.5rem; letter-spacing: .04em; }
.nav__drawer .nav__link:hover { color: var(--white); opacity: 1; }
.nav__drawer-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: rgba(255,255,255,.7); font-size: 2.2rem;
  background: none; border: none; cursor: pointer; line-height: 1;
  transition: color .2s;
}
.nav__drawer-close:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,8,2,.10) 0%,
    rgba(20,8,2,.22) 45%,
    rgba(20,8,2,.45) 75%,
    rgba(20,8,2,.65) 100%
  );
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 160px;
}
.hero__content {
  position: relative; z-index: 2; text-align: center;
  width: calc(100% - 3rem); max-width: 720px;
  margin: 0 auto;
  padding: 3rem 3rem 3rem;
  background: rgba(18,6,1,.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(195,150,30,.20);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(210,165,40,.14),
    0 8px 40px rgba(0,0,0,.28);
}
.hero__badge {
  background: rgba(200,130,10,.25); color: #FBBF24; border-color: rgba(200,130,10,.4);
  animation: heroIn .6s ease-out .3s both;
}
.hero__title { color: var(--white); margin-bottom: 1rem; animation: heroIn .8s ease-out .55s both; }
.hero__sub {
  color: rgba(255,255,255,.85); font-size: 1.15rem;
  max-width: 55ch; margin: 0 auto 2rem;
  animation: heroIn .7s ease-out .85s both;
}
.hero__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: heroIn .7s ease-out 1.1s both; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); z-index: 2;
  animation: bounce 2s 2s infinite, heroFade .6s ease-out 1.5s both;
}
@keyframes heroIn  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounce  { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }
@media (prefers-reduced-motion: reduce) {
  
  .hero__badge, .hero__title, .hero__sub, .hero__btns, .hero__scroll { animation: none; opacity: 1; transform: none; }
}

/* ── TRUST BAR ── */
.trust { background: var(--primary); color: var(--white); padding: .875rem 0; }
.trust__list {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem,3vw,3rem); flex-wrap: wrap;
}
.trust__item { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.trust__item svg { flex-shrink: 0; color: var(--cta); }

/* ── PRODUCTS ── */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card__img { aspect-ratio: 4/3; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__body { padding: 1.25rem; }
.product-card__title { margin-bottom: .5rem; }
.product-card__text { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; max-width: 100%; }
.product-card__cta { font-size: .875rem; padding: .55rem 1.1rem; }

/* ── STORY ── */
.story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,4rem);
  align-items: center;
}
.story__text .badge { display: inline-block; }
.story__text h2 { margin-bottom: 1rem; }
.story__text p { color: var(--text-muted); margin-bottom: 1rem; }
.story__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.story__img img { width: 100%; height: 360px; object-fit: cover; }

/* ── HOW TO ORDER ── */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2rem; margin-top: 2.5rem;
}
.step-card { text-align: center; padding: 1.5rem; }
.step-card__num {
  font-family: var(--font-h); font-size: 3rem; color: var(--cta);
  line-height: 1; margin-bottom: .75rem;
}
.step-card__icon { margin: 0 auto .75rem; color: var(--primary); }
.step-card__title { margin-bottom: .5rem; font-size: 1.1rem; }
.step-card__text { font-size: .9rem; color: var(--text-muted); max-width: 100%; }

/* ── REVIEWS ── */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.review-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem;
  transition: box-shadow .3s;
}
.review-card:hover { box-shadow: var(--shadow); }
.review-card__stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: .75rem; letter-spacing: .1em; }
.review-card__text { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; max-width: 100%; font-style: italic; }
.review-card__name { font-weight: 700; font-size: .875rem; }
.reviews__more { display: block; text-align: center; margin-top: 1.5rem; color: var(--secondary); font-weight: 600; }
.reviews__more:hover { text-decoration: underline; }

/* ── CAP CHECKER ── */
.cap { text-align: center; }
.cap h2 { margin-bottom: .5rem; }
.cap__sub { color: var(--text-muted); margin: 0 auto 2rem; }
.cap__form {
  display: flex; gap: .75rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.cap__input {
  padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: var(--white);
  font-family: var(--font-b); font-size: 1.05rem; font-weight: 600;
  color: var(--text); width: 160px; text-align: center;
  transition: border-color .2s;
}
.cap__input:focus { outline: none; border-color: var(--cta); }
.cap__result {
  min-height: 3rem; font-size: 1rem; font-weight: 600;
  transition: opacity .3s;
}
.cap__result--ok { color: #059669; }
.cap__result--ko { color: #DC2626; }
.cap__map { margin: 1.5rem auto 0; max-width: 340px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cap__map img { width: 100%; }

/* ── FOOTER ── */
.footer {
  background: var(--primary); color: rgba(255,255,255,.85);
  padding: 3.5rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2.5rem; margin-bottom: 2rem;
}
.footer__logo img { height: 60px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer__tagline { font-size: .875rem; opacity: .75; max-width: 100%; }
.footer__title { font-family: var(--font-h); font-size: 1rem; color: var(--white); margin-bottom: .75rem; }
.footer__list li { font-size: .875rem; margin-bottom: .4rem; display: flex; align-items: flex-start; gap: .5rem; }
.footer__list svg { flex-shrink: 0; margin-top: 2px; color: var(--cta); }
.footer__map { border-radius: var(--radius-sm); overflow: hidden; }
.footer__map iframe { width: 100%; height: 200px; border: 0; display: block; margin: 0 auto; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem;
  display: flex; gap: 1rem; justify-content: space-between;
  font-size: .8rem; opacity: .6; flex-wrap: wrap;
}
.footer__social { display: flex; gap: .75rem; }
.footer__social a { opacity: .7; transition: opacity .2s; }
.footer__social a:hover { opacity: 1; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transition: opacity .5s ease-out; }
.reveal.visible { opacity: 1; }

/* ── PAGE HERO (small pages) ── */
.page-hero {
  padding: 7rem 0 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white); text-align: center;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.8); margin: 0 auto; max-width: 55ch; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; gap: .5rem; align-items: center;
  font-size: .8rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── GALLERY GRID ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; }
.gallery__item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.gallery__item:hover img { transform: scale(1.06); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: .5rem; }
.section-header p { color: var(--text-muted); margin: 0 auto; }

/* ── DELIVERY TABLE ── */
.delivery-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.delivery-table th, .delivery-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
.delivery-table th { font-family: var(--font-h); font-size: .85rem; color: var(--primary); background: var(--bg-alt); }
.delivery-table tr:hover td { background: var(--bg-alt); }

/* ── CONTACT CARD ── */
.contact-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 2rem; }
.contact-card h3 { margin-bottom: 1rem; }
.contact-card ul { display: flex; flex-direction: column; gap: .75rem; }
.contact-card li { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; }
.contact-card li svg { flex-shrink: 0; color: var(--cta); margin-top: 2px; }

/* ── LEGAL ── */
.legal-content { max-width: 72ch; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--text-muted); margin-bottom: .75rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }
  .story__inner { grid-template-columns: 1fr; }
  .story__img { order: -1; }
  .story__img img { height: 240px; }
  .hero__btns { flex-direction: column; align-items: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .trust__list { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; }
}

/* ── PRODOTTI masonry gallery responsive ── */
.masonry { columns: 3; gap: .5rem; column-gap: .5rem; }
.masonry-item { break-inside: avoid; margin-bottom: .5rem; border-radius: 8px; overflow: hidden; }
.masonry-item img { width: 100%; display: block; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 480px) { .masonry { columns: 2; } }

/* ── Fix horizontal overflow ── */
.container { overflow-x: hidden; }
html, body { max-width: 100%; overflow-x: hidden; }

/* ── TRUST BAR mobile: 2x2 grid ── */
@media (max-width: 600px) {
  .trust__list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .6rem .75rem;
    overflow: visible;
    padding-inline: 1rem;
  }
  .trust__item { white-space: normal; font-size: .8rem; }
}

/* ── HERO: disable Ken Burns + simplify text anim on mobile ── */
@media (max-width: 768px) {
  
  .hero__badge,
  .hero__title,
  .hero__sub,
  .hero__btns,
  .hero__scroll {
    animation: heroFade .7s ease-out both !important;
  }
  .hero__badge { animation-delay: .1s !important; }
  .hero__title  { animation-delay: .3s !important; }
  .hero__sub    { animation-delay: .5s !important; }
  .hero__btns   { animation-delay: .7s !important; }
  .hero__scroll { animation-delay: .9s !important; }
}

/* ── LIGHTBOX MODAL ── */
.lb-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease-out;
}
.lb-overlay.open { opacity: 1; pointer-events: auto; }

.lb-img-wrap {
  position: relative; max-width: min(90vw, 1100px); max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img-wrap img {
  max-width: 100%; max-height: 88vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transform: scale(.94); transition: transform .25s ease-out;
}
.lb-overlay.open .lb-img-wrap img { transform: scale(1); }

.lb-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  color: rgba(255,255,255,.8); font-size: 2.2rem; line-height: 1;
  background: none; border: none; cursor: pointer; z-index: 10001;
  transition: color .15s;
}
.lb-close:hover { color: #fff; }

.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10001;
  transition: background .15s;
}
.lb-arrow:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-arrow svg { width: 22px; height: 22px; }

.lb-counter {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .8rem; z-index: 10001;
  background: rgba(0,0,0,.4); padding: .3rem .75rem; border-radius: 999px;
}

/* Make gallery items show pointer cursor */
.gallery__item, .torte-gallery-item, .prod-gallery-item, .masonry-item { cursor: zoom-in; }

/* ── TIMELINE chi-siamo ── */
.timeline {
  position: relative; max-width: 860px; margin: 0 auto;
  padding: 2rem 0 1rem;
}
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--cta) 10%, var(--cta) 90%, transparent);
  transform: translateX(-50%);
  transform-origin: top;
  animation: tlLineGrow 1.2s ease-out forwards;
}
@keyframes tlLineGrow { from { scaleY(0); opacity:0; } to { transform:scaleX(-50%) scaleY(1); } }
.tl-item {
  display: flex; align-items: flex-start; margin-bottom: 3rem;
  position: relative;
  /* scroll animation state */
  opacity: 0;
  transition: opacity .55s ease-out, transform .55s cubic-bezier(.22,1,.36,1);
}
.tl-item[data-side="left"]  { flex-direction: row-reverse; transform: translateX(-48px); }
.tl-item[data-side="right"] { flex-direction: row;         transform: translateX(48px); }
.tl-item.tl-visible {
  opacity: 1;
  transform: translateX(0) !important;
}
.tl-dot {
  position: absolute; left: 50%; top: 1.2rem; transform: translateX(-50%) scale(0);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--cta);
  box-shadow: 0 0 0 3px var(--bg-alt); z-index: 1;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1) .3s;
}
.tl-item.tl-visible .tl-dot { transform: translateX(-50%) scale(1); }
.tl-dot--accent {
  background: var(--cta);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.tl-dot--pulse {
  background: var(--wa-green);
  box-shadow: 0 0 0 3px var(--bg-alt);
  animation: tlPulse 2s ease-in-out infinite;
}
@keyframes tlPulse {
  0%,100% { box-shadow: 0 0 0 3px var(--bg-alt), 0 0 0 6px rgba(29,170,97,.2); }
  50%      { box-shadow: 0 0 0 3px var(--bg-alt), 0 0 0 10px rgba(29,170,97,.05); }
}
.tl-card {
  width: calc(50% - 2.5rem);
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s;
}
.tl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.tl-card--accent { border-color: rgba(200,130,10,.3); background: #fffdf5; }
.tl-item[data-side="left"]  .tl-card { margin-right: auto; }
.tl-item[data-side="right"] .tl-card { margin-left: auto; }
.tl-year {
  display: inline-block; background: var(--primary); color: var(--white);
  font-family: var(--font-h); font-size: .8rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: 999px; margin-bottom: .6rem;
  letter-spacing: .04em;
}
.tl-card--accent .tl-year { background: var(--cta); }
.tl-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.tl-card p  { font-size: .9rem; color: var(--text-muted); max-width: 100%; line-height: 1.7; }
@media (max-width: 680px) {
  .timeline::before { left: 20px; }
  .tl-item, .tl-item[data-side="left"] { flex-direction: row !important; }
  .tl-item[data-side="left"]  { transform: translateX(-28px); }
  .tl-item[data-side="right"] { transform: translateX(28px); }
  .tl-dot { left: 20px; }
  .tl-card, .tl-item[data-side="left"] .tl-card,
  .tl-item[data-side="right"] .tl-card {
    width: calc(100% - 52px); margin-left: 52px; margin-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl-item { opacity: 1 !important; transform: none !important; transition: none; }
  .tl-dot  { transform: translateX(-50%) scale(1) !important; }
}

/* ── 4 CARD FILA HOME ── */
@media (min-width: 900px) {
  .products__grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ── HERO: animazione piu morbida ── */

.hero__badge { animation-duration: .7s; animation-delay: .4s; }
.hero__title  { animation-duration: 1s;  animation-delay: .7s; }
.hero__sub    { animation-duration: .9s; animation-delay: 1s; }
.hero__btns   { animation-duration: .8s; animation-delay: 1.3s; }

/* ── TIMELINE piu dolce ── */
.tl-item {
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.tl-item[data-side="left"]  { transform: translateX(-32px); }
.tl-item[data-side="right"] { transform: translateX(32px); }
.tl-dot { transition: transform .5s cubic-bezier(.34,1.4,.64,1) .4s; }
@media (max-width: 680px) {
  .tl-item[data-side="left"]  { transform: translateX(-20px); }
  .tl-item[data-side="right"] { transform: translateX(20px); }
}

/* ── PREMIUM TYPOGRAPHY OVERRIDES ── */
h2 { font-family: var(--font-sub); font-weight: 500; letter-spacing: -.01em; font-style: normal; }
h3 { font-family: var(--font-sub); font-weight: 400; font-size: clamp(1.05rem,2vw,1.35rem); }
.section-header h2 { font-size: clamp(1.6rem,3.5vw,2.6rem); }
.badge {
  font-family: var(--font-b); letter-spacing: .1em; font-size: .68rem;
  background: transparent; color: var(--cta);
  border: 1px solid var(--cta); border-radius: 2px;
  padding: .2rem .7rem;
}

/* Premium card style */
.product-card {
  border-radius: var(--radius);
  border-color: var(--border);
  box-shadow: 0 1px 6px rgba(28,15,7,.06);
}
.product-card:hover { box-shadow: 0 8px 32px rgba(28,15,7,.12); }
.product-card__title { font-family: var(--font-sub); font-size: 1.25rem; font-weight: 500; }

/* Premium button */
.btn {
  letter-spacing: .04em; font-weight: 500;
  border-radius: var(--radius-sm);
}
.btn--primary { background: var(--primary); }
.btn--primary:hover { background: var(--secondary); }

/* Premium nav */
.nav.scrolled { border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 var(--border); }
.nav__link { font-weight: 500; letter-spacing: .02em; font-size: .8rem; text-transform: uppercase; }
.nav.scrolled .nav__link { color: var(--text); }

/* Premium trust bar */
.trust { background: var(--primary); }
.trust__item { font-weight: 500; letter-spacing: .03em; font-size: .8rem; }

/* Premium review cards */
.review-card { border-color: var(--border); box-shadow: none; }
.review-card:hover { box-shadow: var(--shadow); }

/* Premium footer */
.footer { background: #3A1D0C; }
.footer__title { font-family: var(--font-sub); font-size: 1rem; font-weight: 500; }

/* Premium hero text */
.hero__title { letter-spacing: -.02em; }
.hero__sub { font-family: var(--font-sub); font-size: 1.2rem; font-style: italic; }


/* ── FAQ ACCORDION ── */
.faq-list { max-width: 740px; margin: 0 auto; display: grid; gap: .55rem; }
.faq-item {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.05rem 1.4rem;
  font-family: var(--font-b); font-weight: 500; font-size: .95rem;
  color: var(--text); text-align: left; cursor: pointer;
  background: none; border: none; transition: background .15s;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q span { flex: 1; }
.faq-icon { flex-shrink: 0; color: var(--cta); transition: transform .32s ease-out; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
/* Hidden = browser-default display:none */
.faq-a[hidden] { display: none; }
/* When visible: animate in */
.faq-a {
  padding: .4rem 1.4rem 1.25rem;
  font-size: .9rem; color: var(--text-muted); line-height: 1.75;
  animation: faqSlide .28s cubic-bezier(.4,0,.2,1) both;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
}

/* ── 4 CARDS: forza 4 colonne e centra il gap ── */
@media (min-width: 920px) {
  #prodotti .products__grid {
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: 100%;
  }
}
@media (max-width: 919px) and (min-width: 600px) {
  #prodotti .products__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── STATS COUNTER ── */
.stats-strip {
  background: var(--primary);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-sub);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__suffix {
  font-size: .55em;
  vertical-align: super;
  opacity: .75;
  font-family: var(--font-b);
}
.stat__label {
  font-family: var(--font-b);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: .5rem;
}
.stat__sep {
  width: 1px;
  background: rgba(255,255,255,.15);
  align-self: stretch;
}
@media (max-width: 600px) { .stat__sep { display: none; } }

/* ── HERO: testo con text-shadow morbido per leggibilita ── */
.hero__title  { text-shadow: 0 2px 24px rgba(28,15,7,.45); }
.hero__sub    { text-shadow: 0 1px 12px rgba(28,15,7,.35); }

/* ── Font legibility: H3 piu pesante ── */
h3 { font-weight: 500; }

/* ── HERO WOW ── */
.hero__eyebrow {
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.25rem;
  max-width: 100%;
  animation: heroIn .8s ease-out .2s both;
  text-shadow: 0 1px 8px rgba(0,0,0,.95), 0 0 20px rgba(0,0,0,.7);
}
.hero__divider {
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,160,40,.9), transparent);
  margin: 0 auto 1.5rem;
  animation: heroFade .6s ease-out .45s both;
}
/* Override H1 for WOW hero */
.hero__title {
  font-size: clamp(3rem, 7.5vw, 6rem) !important;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: .9rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.9), 0 0 40px rgba(0,0,0,.6);
}
.hero__title em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: .78em;
  letter-spacing: .01em;
  display: block;
  color: rgba(255,255,255,.9);
}
.hero__sub {
  font-family: var(--font-b);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 400;
  font-style: normal;
  text-shadow: none;
  margin: 0 auto 2.25rem;
  max-width: 45ch;
}
.hero__content { max-width: 860px; }
/* Mobile hero */
@media (max-width: 768px) {
  .hero__title { font-size: clamp(2.5rem,10vw,3.5rem) !important; }
  .hero__divider { width: 40px; }

  .hero__content {
    padding: 2rem 1.25rem 2rem;
    border-radius: 16px;
    width: calc(100% - 2rem);
  }

  /* Text-shadow più forte su mobile */
  .hero__eyebrow {
    text-shadow:
      0 0 4px  rgba(0,0,0,1),
      0 0 12px rgba(0,0,0,.95),
      0 0 24px rgba(0,0,0,.8);
  }
  .hero__title {
    text-shadow:
      0 0 6px  rgba(0,0,0,1),
      0 0 16px rgba(0,0,0,.95),
      0 0 32px rgba(0,0,0,.75),
      0 2px 4px rgba(0,0,0,1);
  }
  .hero__title em {
    text-shadow:
      0 0 6px  rgba(0,0,0,1),
      0 0 16px rgba(0,0,0,.95),
      0 0 32px rgba(0,0,0,.75);
  }
  .hero__sub {
    text-shadow:
      0 0 4px  rgba(0,0,0,1),
      0 0 12px rgba(0,0,0,.9),
      0 1px 3px rgba(0,0,0,1);
  }
}


/* ── TRUST BAR PREMIUM ── */
.trust-premium {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.trust-premium__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-premium__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .5rem 3rem;
  text-align: center;
}
.trust-premium__val {
  font-family: var(--font-sub);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.trust-premium__star {
  color: #C8820A;
  font-size: .9em;
  margin-left: .1em;
}
.trust-premium__label {
  font-family: var(--font-b);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-premium__sep {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .trust-premium__list { gap: .5rem; }
  .trust-premium__item { padding: .4rem 1.25rem; }
  .trust-premium__sep { display: none; }
}
/* Hide old trust if still exists */
.trust { display: none; }

/* ── HERO BG — Ken Burns desktop + fixed parallax ── */
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../img/castello-prunetto-new.jpg');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  transform-origin: center center;
  animation: kenBurns 22s ease-out 1 forwards;
}
@keyframes kenBurns {
  0%   { transform: scale(1.10); }
  100% { transform: scale(1.00); }
}
/* Mobile: fixed parallax (graceful fallback on iOS) */
@media (max-width: 768px) {
  .hero__bg {
    display: none;
  }
  .hero {
    background-image: url('/assets/img/castello-prunetto-new.jpg');
    background-size: cover;
    background-position: center 25%;
    background-attachment: fixed;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none !important; }
}

/* ── HERO TEXT — alone scuro che segue la forma delle lettere ── */
.hero__eyebrow {
  text-shadow:
    0 0 6px  rgba(0,0,0,.95),
    0 0 14px rgba(0,0,0,.85),
    0 0 28px rgba(0,0,0,.65);
}
.hero__title {
  text-shadow:
    0 0 8px  rgba(0,0,0,.98),
    0 0 20px rgba(0,0,0,.85),
    0 0 40px rgba(0,0,0,.60),
    0 2px 4px rgba(0,0,0,.95);
}
.hero__title em {
  text-shadow:
    0 0 8px  rgba(0,0,0,.98),
    0 0 20px rgba(0,0,0,.85),
    0 0 40px rgba(0,0,0,.60);
}
.hero__sub {
  text-shadow:
    0 0 6px  rgba(0,0,0,.95),
    0 0 16px rgba(0,0,0,.80),
    0 1px 3px rgba(0,0,0,.95);
}
