/* ==========================================================================
   Enotecnica Moderna SRL — Design system
   Palette derivata dal logo e dalla locandina aziendale
   ========================================================================== */

:root {
  --verde-scuro: #052927;
  --verde: #052927;
  --verde-chiaro: #052927;
  --verde-fondo: #052927;
  --verde-fondo-profondo: #052927;
  --verde-fondo-luce: #052927;
  --bordeaux: #7A1220;
  --bordeaux-scuro: #5A0D18;
  --sughero: #C2A075;
  --oro: #E4C56A;
  --sughero-chiaro: #E4D5BF;
  --crema: #F7F3EA;
  --panna: #FCFAF6;
  --bianco: #FFFFFF;
  --testo: #2A2724;
  --testo-soft: #6B6760;
  --bordo: #E3DCCE;

  --font-title: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gap: 1.5rem;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(5,41,39, .05), 0 8px 28px rgba(5,41,39, .07);
  --shadow-lg: 0 2px 4px rgba(5,41,39, .06), 0 18px 50px rgba(5,41,39, .12);
  --t: 220ms cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--testo);
  background: var(--panna);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--bordeaux-scuro); }
:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--verde-scuro);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bordeaux); color: #fff; padding: .8rem 1.2rem; font-weight: 600;
}
.skip:focus { left: .5rem; top: .5rem; color: #fff; }

/* ---------- Elementi ricorrenti ---------- */
.eyebrow {
  font-family: var(--font-title);
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bordeaux); margin: 0 0 .9rem; display: flex; align-items: center; gap: .7rem;
}
.eyebrow::after { content: ""; flex: 0 0 42px; height: 2px; background: var(--sughero); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { content: ""; flex: 0 0 42px; height: 2px; background: var(--sughero); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--testo-soft); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-title); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: .95rem 1.8rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all var(--t); text-align: center;
}
.btn-primary { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.btn-primary:hover { background: var(--bordeaux-scuro); border-color: var(--bordeaux-scuro); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--verde-scuro); border-color: var(--bordo); }
.btn-ghost:hover { border-color: var(--verde); color: var(--verde); background: var(--crema); }
.btn-light { background: #fff; color: var(--bordeaux); border-color: #fff; }
.btn-light:hover { background: var(--crema); color: var(--bordeaux-scuro); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-crema { background: var(--crema); }
.section-verde { background: var(--verde-fondo); color: rgba(255,255,255,.92); }
.section-verde h2, .section-verde h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Header ---------- */
.topbar {
  background: var(--verde-fondo); color: rgba(255,255,255,.92);
  font-size: .82rem; letter-spacing: .01em;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; align-items: center; padding: .55rem 0; }
.topbar a { color: rgba(255,255,255,.92); display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--crema); }
.topbar svg { width: 14px; height: 14px; flex: none; }
.topbar .spacer { margin-left: auto; }
@media (max-width: 900px) { .topbar .claim { display: none; } }
.topbar .claim { color: var(--crema); font-weight: 500; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 250, 246, .93); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordo);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: block; padding: .55rem 0; }
.brand img { height: 60px; width: auto; }
@media (max-width: 520px) { .brand img { height: 46px; } }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--verde-scuro);
}
.nav-toggle svg { width: 26px; height: 26px; }

.nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-title); font-weight: 600; font-size: .93rem;
  color: var(--verde-scuro); padding: .6rem .85rem; border-radius: var(--radius);
  display: block; position: relative;
}
.nav a:hover { color: var(--bordeaux); background: var(--crema); }
.nav a[aria-current="page"] { color: var(--bordeaux); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem;
  height: 2px; background: var(--bordeaux);
}
.nav .nav-cta { margin-left: .6rem; }
.nav .nav-cta a { background: var(--bordeaux); color: #fff; padding: .65rem 1.25rem; }
.nav .nav-cta a:hover { background: var(--bordeaux-scuro); color: #fff; }
.nav .nav-cta a::after { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  /* backdrop-filter creerebbe un containing block e intrappolerebbe
     il pannello .nav (position: fixed) dentro l'header */
  .site-header { backdrop-filter: none; background: var(--panna); }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: var(--panna); border-left: 1px solid var(--bordo);
    padding: 5.5rem 1.5rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform var(--t); box-shadow: var(--shadow-lg);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav a { padding: .95rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--bordo); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav-cta { margin: 1.25rem 0 0; }
  .nav .nav-cta a { text-align: center; border-bottom: 0; border-radius: var(--radius); }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(5,41,39,.45); opacity: 0; visibility: hidden;
    transition: opacity var(--t), visibility var(--t); z-index: 99;
  }
  .nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }
  body[data-locked="true"] { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--crema); overflow: hidden;
  border-bottom: 1px solid var(--bordo);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 88% 12%, rgba(194,160,117,.22), transparent 62%),
    radial-gradient(700px 420px at 6% 92%, rgba(5,41,39,.08), transparent 60%);
}
.hero .wrap { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero h1 { margin-bottom: .5rem; }
.hero h1 .accent { color: var(--bordeaux); display: block; }
.hero-rule { width: 84px; height: 3px; background: var(--bordeaux); margin: 1.5rem 0; }
.hero .lead { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-visual {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--bordo); background: #fff;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--bordo); border-top: 1px solid var(--bordo);
}
.hero-stats div { background: var(--panna); padding: 1.6rem 1.25rem; text-align: center; }
.hero-stats strong {
  display: block; font-family: var(--font-title); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--bordeaux); line-height: 1.1;
}
.hero-stats span { font-size: .84rem; color: var(--testo-soft); letter-spacing: .03em; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin-inline: auto; }
}

/* ---------- Page header (pagine interne) ---------- */
.page-head {
  background: var(--verde-fondo); color: rgba(255,255,255,.92);
  padding: clamp(3rem, 6vw, 4.75rem) 0; position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 380px at 82% 18%, rgba(194,160,117,.2), transparent 62%);
}
.page-head .wrap { position: relative; max-width: 800px; }
.page-head h1 { color: #fff; margin-bottom: .35rem; }
.page-head .eyebrow { color: var(--crema); }
.page-head .eyebrow::after { background: rgba(194,160,117,.5); }
.page-head p { color: rgba(255,255,255,.92); max-width: 60ch; }

.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.92); margin-bottom: 1.4rem; }
.breadcrumb a { color: rgba(255,255,255,.92); }
.breadcrumb a:hover { color: var(--crema); }
.breadcrumb span { margin: 0 .45rem; }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--bordo); border-radius: var(--radius);
  padding: 2rem 1.75rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sughero); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--testo-soft); font-size: .97rem; }
.card .icon { color: var(--bordeaux); margin-bottom: 1.15rem; }
.card .icon svg { width: 40px; height: 40px; }

.card-num { position: relative; }
.card-num::before {
  content: attr(data-num);
  position: absolute; top: 1.1rem; right: 1.35rem;
  font-family: var(--font-title); font-weight: 800; font-size: 2.6rem;
  color: var(--crema); line-height: 1; pointer-events: none;
}

/* Card prodotto */
.prod {
  background: #fff; border: 1px solid var(--bordo); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sughero); }
.prod-top {
  background: var(--crema); border-bottom: 1px solid var(--bordo);
  display: grid; place-items: center; padding: 2.25rem 1rem; color: var(--verde);
}
.prod-top svg { width: 60px; height: 60px; }
.prod-body { padding: 1.6rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.08rem; text-transform: uppercase; letter-spacing: .04em; }
.prod-body p { color: var(--testo-soft); font-size: .95rem; }
.prod-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: 1.1rem; }
.tag {
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--crema); color: var(--verde); border: 1px solid var(--bordo);
  padding: .28rem .6rem; border-radius: 100px;
}

/* Lista con spunta */
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.check li { position: relative; padding-left: 2rem; color: var(--testo-soft); }
.check li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--bordeaux);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section-verde .check li { color: rgba(255,255,255,.92); }
.section-verde .check li::before { background: var(--sughero); }

/* Split immagine + testo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse > .split-media, .split.reverse > .media-col { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--bordo); box-shadow: var(--shadow); background: #fff; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media, .split.reverse > .media-col { order: 0; }
}

/* Placeholder immagini mancanti */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, var(--crema) 0 12px, #F1EBDE 12px 24px);
  border: 1px dashed var(--sughero); border-radius: var(--radius);
  color: var(--testo-soft); padding: 1.5rem; min-height: 220px; aspect-ratio: 4 / 3;
}
.ph svg { width: 34px; height: 34px; color: var(--sughero); margin-bottom: .65rem; }
.ph strong { display: block; font-family: var(--font-title); font-size: .85rem; color: var(--verde); letter-spacing: .03em; }
.ph small { font-size: .76rem; opacity: .8; }

/* Timeline / valori */
.values { display: grid; gap: 1px; background: var(--bordo); border: 1px solid var(--bordo); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.values > div { background: #fff; padding: 2rem 1.75rem; }
.values h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bordeaux); }
.values p { color: var(--testo-soft); font-size: .95rem; margin: 0; }

/* Banda partner */
.partner {
  background: #fff; border: 1px solid var(--bordo); border-left: 4px solid var(--bordeaux);
  border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem);
}
.partner .name { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--verde-scuro); line-height: 1.1; margin: .3rem 0 1rem; }

/* CTA finale */
.cta-band {
  background: var(--bordeaux); color: rgba(255,255,255,.92);
  padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 340px at 85% 20%, rgba(255,255,255,.1), transparent 60%); }
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; max-width: 18ch; }
.cta-band p { max-width: 46ch; margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--bordo); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--font-title); font-weight: 600; font-size: .88rem; color: var(--verde-scuro); margin-bottom: .4rem; }
.field .req { color: var(--bordeaux); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--testo);
  padding: .8rem .95rem; border: 1px solid var(--bordo); border-radius: var(--radius);
  background: var(--panna); transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(5,41,39,.12); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.15rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .87rem; color: var(--testo-soft); margin: 1.4rem 0; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: .2rem; accent-color: var(--bordeaux); }
.form-note { font-size: .82rem; color: var(--testo-soft); margin-top: 1rem; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--bordeaux); flex: none; margin-top: .25rem; }
.contact-list strong { display: block; font-family: var(--font-title); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--testo-soft); margin-bottom: .15rem; }
.contact-list a, .contact-list span { color: var(--verde-scuro); font-size: 1.02rem; }
.contact-list a:hover { color: var(--bordeaux); }

.map-frame { border: 1px solid var(--bordo); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .85rem; color: var(--testo-soft); margin-top: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--verde-fondo); color: rgba(255,255,255,.92); font-size: .93rem; }
.footer-main { padding: clamp(3rem, 6vw, 4.25rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.01em; line-height: 1.15; }
.footer-logo span { display: block; color: var(--crema); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-top: .5rem; }
.site-footer h4 { font-family: var(--font-title); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.92); }
.site-footer a:hover { color: var(--crema); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.92);
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ==========================================================================
   LAYER CINEMA — preloader, hero full-screen, grain, micro-interazioni,
   menu mobile immersivo, scroll-snap orizzontale
   ========================================================================== */

/* ---------- 12. Barra di avanzamento pagina ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 300; pointer-events: none; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--bordeaux), var(--sughero));
  transform-origin: left; transform: scaleX(0); will-change: transform;
}

/* ---------- 3. Grana pellicola globale (visibile sulle sezioni scure) ---------- */
body::after {
  content: ""; position: fixed; inset: -8%; z-index: 4000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045; animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 10% { transform: translate(-3%,2%) }
  30% { transform: translate(2%,-3%) } 50% { transform: translate(-2%,-2%) }
  70% { transform: translate(3%,1%) } 90% { transform: translate(1%,3%) }
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* Vignettatura sulle testate scure */
.page-head { box-shadow: inset 0 0 140px rgba(0,0,0,.4); }

/* ---------- 5. Preloader ---------- */
html.is-loading { overflow: hidden; }
#preloader {
  position: fixed; inset: 0; z-index: 6000; display: grid; place-items: center;
  background: #052927; transition: transform .75s cubic-bezier(.7,0,.3,1), visibility .75s;
}
#preloader.done { transform: translateY(-101%); visibility: hidden; }
#preloader .pl-card {
  width: min(1100px, 96vw); text-align: center;
  animation: plPop .8s cubic-bezier(.22,1,.36,1) both;
}
#preloader img { width: 100%; height: auto; }
#preloader .pl-bar {
  width: min(320px, 64vw); height: 2px; background: rgba(228,197,106,.2);
  margin: 0 auto; overflow: hidden; border-radius: 2px;
}
#preloader .pl-bar i {
  display: block; height: 100%; background: var(--oro);
  animation: plLoad 1.1s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes plPop { from { opacity: 0; transform: scale(.94) translateY(12px); } }
@keyframes plLoad { from { transform: translateX(-101%); } to { transform: translateX(0); } }

/* ---------- 1+6. Hero cinematografico full-screen ---------- */
.hero-cinema {
  position: relative; min-height: min(92svh, 900px); display: flex; align-items: center;
  background:
    radial-gradient(1000px 600px at 85% 10%, rgba(194,160,117,.14), transparent 60%),
    linear-gradient(165deg, var(--verde-fondo-profondo) 0%, var(--verde-fondo) 45%, var(--verde-fondo-luce) 100%);
  color: #fff; overflow: hidden;
  box-shadow: inset 0 -60px 90px -60px rgba(0,0,0,.55);
}
.hero-media {
  position: absolute; top: -5%; right: 0; bottom: -5%; width: 58%;
  -webkit-mask-image: linear-gradient(to left, #000 62%, transparent 98%);
  mask-image: linear-gradient(to left, #000 62%, transparent 98%);
  will-change: transform;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.2) translate(-2.5%, 1.5%); }
}
.hero-cinema::after { /* velo per leggibilità testo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,41,39,.88) 22%, rgba(5,41,39,.25) 55%, transparent 75%);
}
.hero-cinema .hero-inner {
  position: relative; z-index: 2; padding: clamp(6rem, 12vh, 9rem) 0 clamp(6.5rem, 13vh, 9.5rem);
  will-change: transform, opacity;
}
.hero-cinema h1 { color: #fff; margin-bottom: .4rem; font-size: clamp(2.4rem, 5.8vw, 4.1rem); }
.hero-cinema h1 .accent { color: var(--oro); display: block; }
.hero-cinema .eyebrow { color: var(--crema); }
.hero-cinema .eyebrow::after { background: rgba(194,160,117,.55); }
.hero-cinema .hero-rule { background: var(--sughero); }
.hero-cinema .lead { color: rgba(255,255,255,.92); max-width: 44ch; }

@media (max-width: 860px) {
  .hero-cinema { min-height: 86svh; }
  .hero-media { inset: 0; width: 100%; -webkit-mask-image: none; mask-image: none; opacity: .34; }
  .hero-cinema::after {
    background: linear-gradient(180deg, rgba(5,41,39,.5) 0%, rgba(5,41,39,.75) 70%, #052927 100%);
  }
}

/* indicatore di scroll */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; z-index: 3; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .5rem;
  font-family: var(--font-title); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--sughero), transparent);
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 2. Titoli con reveal mascherato parola per parola ---------- */
.title-fx .wline {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .12em; margin-bottom: -.12em;
}
.title-fx .w { display: inline-block; transform: translateY(118%); }
body.app-ready .title-fx .w {
  animation: wordUp .8s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(90ms + var(--wi, 0) * 55ms);
}
@keyframes wordUp { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .title-fx .w { transform: none; } }

/* ---------- 7. Contatori ---------- */
.hero-stats strong { font-variant-numeric: tabular-nums; }


/* ---------- 4. Transizioni a onda tra le sezioni ---------- */
.wave { line-height: 0; margin-bottom: -1px; position: relative; z-index: 1; }
.wave svg { display: block; width: 100%; height: clamp(30px, 5vw, 64px); }
.wave-bordeaux path { fill: var(--bordeaux); }
.wave-verde path { fill: var(--verde-fondo); }

/* ---------- 8. Reveal a sipario per le immagini ---------- */
.curtain { position: relative; overflow: hidden; }
.curtain::after {
  content: ""; position: absolute; inset: 0; background: var(--verde-fondo); z-index: 2;
  transform: scaleX(1); transform-origin: right;
  transition: transform .85s cubic-bezier(.7,0,.3,1) .1s;
}
.curtain.is-in::after { transform: scaleX(0); }
.curtain img, .curtain .ph { transform: scale(1.12); transition: transform 1.1s cubic-bezier(.22,1,.36,1) .1s; }
.curtain.is-in img, .curtain.is-in .ph { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .curtain::after { display: none; }
  .curtain img, .curtain .ph { transform: none; }
}

/* ---------- 9. Reveal direzionale ---------- */
[data-reveal][data-rdir="left"]  { transform: translateX(-32px); }
[data-reveal][data-rdir="right"] { transform: translateX(32px); }
[data-reveal].is-in { transform: none; }

/* ---------- 13. Tilt 3D + riflesso sulle card ---------- */
.card, .prod { position: relative; }
.tilt { transform-style: preserve-3d; }
.tilt:hover { will-change: transform; }
.tilt .shine {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 55%);
}
.tilt:hover .shine { opacity: 1; }

/* ---------- 15. Zoom immagini in hover ---------- */
.split-media { overflow: hidden; }
.split-media img { transition: transform .8s cubic-bezier(.22,1,.36,1); }
.split-media:hover img { transform: scale(1.05); }
.curtain.is-in:hover img { transform: scale(1.05); }
.gallery figure { position: relative; }
.gallery figure img { transition: transform .7s cubic-bezier(.22,1,.36,1), filter .4s; }
.gallery figure:hover img { transform: scale(1.04); filter: brightness(1.04); }


/* ---------- 11. Icone prodotto "pinnate" durante lo scroll ---------- */
@media (min-width: 861px) {
  #bottiglie .media-col, #barattoli .media-col, #sughero .split-media,
  #baginbox .split-media, #pet .split-media {
    position: sticky; top: 120px; align-self: start;
  }
  #bottiglie .media-col .split-media, #barattoli .media-col .split-media { position: relative; }
  #bottiglie .split, #barattoli .split, #sughero .split,
  #baginbox .split, #pet .split { align-items: start; }
}

/* ---------- 17. Menu mobile full-screen cinematografico ---------- */
@media (max-width: 960px) {
  .nav {
    inset: 0; width: 100%; border-left: 0; box-shadow: none;
    transform: none; opacity: 0; visibility: hidden;
    transition: opacity .4s ease, visibility .4s;
    background:
      radial-gradient(700px 400px at 85% 12%, rgba(194,160,117,.14), transparent 60%),
      linear-gradient(160deg, #052927 0%, var(--verde-fondo) 55%, var(--verde-fondo-luce) 100%);
    padding: 6.2rem 2rem 2.4rem; display: flex; flex-direction: column;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; }
  .nav ul { counter-reset: navnum; flex-direction: column; gap: 0; }
  .nav li {
    opacity: 0; transform: translateY(26px);
    transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
    transition-delay: 0ms;
  }
  .nav[data-open="true"] li { opacity: 1; transform: none; }
  .nav[data-open="true"] li:nth-child(1) { transition-delay: 60ms; }
  .nav[data-open="true"] li:nth-child(2) { transition-delay: 115ms; }
  .nav[data-open="true"] li:nth-child(3) { transition-delay: 170ms; }
  .nav[data-open="true"] li:nth-child(4) { transition-delay: 225ms; }
  .nav[data-open="true"] li:nth-child(5) { transition-delay: 280ms; }
  .nav[data-open="true"] li:nth-child(6) { transition-delay: 335ms; }
  .nav[data-open="true"] li:nth-child(7) { transition-delay: 400ms; }
  .nav[data-open="true"] li:nth-child(8) { transition-delay: 460ms; }
  .nav li:not(.nav-cta):not(.nav-contact) a {
    counter-increment: navnum;
    display: flex; align-items: baseline; gap: 1rem;
    font-size: clamp(1.7rem, 7.5vw, 2.5rem); font-weight: 800; letter-spacing: -.02em;
    color: var(--crema); padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.09);
    background: none;
  }
  .nav li:not(.nav-cta):not(.nav-contact) a::before {
    content: "0" counter(navnum);
    font-size: .8rem; font-weight: 700; letter-spacing: .18em; color: var(--crema);
  }
  .nav a[aria-current="page"] { color: var(--crema); }
  .nav .nav-cta { margin-top: 1.6rem; }
  .nav .nav-cta a {
    display: block; text-align: center; background: var(--bordeaux); color: #fff;
    font-size: 1.05rem; padding: 1rem; border-radius: var(--radius); border-bottom: 0;
  }
  .nav .nav-contact { margin-top: auto; padding-top: 1.5rem; }
  .nav .nav-contact p {
    margin: 0 0 .3rem; color: rgba(255,255,255,.92); font-size: .92rem;
  }
  .nav .nav-contact a {
    display: inline; padding: 0; border: 0; font-size: .95rem; font-weight: 600;
    color: var(--crema); background: none;
  }
  .nav-scrim { display: none !important; }
  .nav-toggle { position: relative; z-index: 160; }
  .nav-toggle[aria-expanded="true"] { color: var(--crema); position: fixed; top: 1.1rem; right: 1.1rem; }
  .nav-toggle .i-close { display: none; }
  .nav-toggle[aria-expanded="true"] .i-burger { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
}
@media (min-width: 961px) { .nav .nav-contact { display: none; } }

/* ---------- 19. Scroll-snap orizzontale su mobile ---------- */
@media (max-width: 860px) {
  .snap-mobile {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 1rem; padding: .25rem 1.25rem 1.25rem;
    margin-inline: calc(-1 * (50vw - 50%)); padding-inline: max(1.25rem, calc(50vw - 50%));
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .snap-mobile::-webkit-scrollbar { display: none; }
  .snap-mobile > * { flex: 0 0 min(78%, 320px); scroll-snap-align: center; }
}

/* ==========================================================================
   LAYER LEGALE — cookie banner, mappa con consenso, pagine informativa
   ========================================================================== */

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 250; max-width: 640px; margin-inline: auto;
  background: var(--panna); border: 1px solid var(--bordo);
  border-left: 4px solid var(--bordeaux); border-radius: 6px;
  box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem;
  transform: translateY(140%); opacity: 0; visibility: hidden;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .4s, visibility .5s;
}
.cookie-bar[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
.cookie-bar h2 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--bordeaux); margin-bottom: .5rem;
}
.cookie-bar p { font-size: .9rem; color: var(--testo-soft); margin-bottom: 1.1rem; }
.cookie-bar .cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-bar .btn { padding: .7rem 1.3rem; font-size: .88rem; }
@media (max-width: 700px) {
  .cookie-bar { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
  .cookie-bar .cookie-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Mappa con consenso ---------- */
.map-frame[data-map] { position: relative; min-height: 380px; background: var(--crema); }
.map-frame[data-map] iframe { display: none; }
.map-frame[data-map].is-loaded iframe { display: block; }
.map-consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  text-align: center; gap: .4rem; padding: 2rem 1.5rem;
  background: repeating-linear-gradient(45deg, var(--crema) 0 12px, #F1EBDE 12px 24px);
}
.map-frame.is-loaded .map-consent { display: none; }
.map-consent p { font-size: .9rem; color: var(--testo-soft); margin: 0; }
.map-consent .btn { margin: .6rem 0 .2rem; }
.map-consent-note { font-size: .82rem; }

/* ---------- Pagine legali ---------- */
.legal { max-width: 760px; }
.legal h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-top: 2.6rem; margin-bottom: .7rem;
  padding-top: 1.6rem; border-top: 1px solid var(--bordo);
}
.legal > p:first-child {
  background: var(--crema); border-left: 3px solid var(--sughero);
  padding: 1.2rem 1.4rem; border-radius: var(--radius); font-size: .95rem;
}
.legal p { color: var(--testo-soft); }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  background: var(--crema); padding: .12em .45em; border-radius: 3px; color: var(--verde);
}

/* ---------- Banda showcase a tutta larghezza ---------- */
.showcase { position: relative; background: var(--verde-fondo); overflow: hidden; }
.showcase-media { position: absolute; inset: 0; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.showcase::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,41,39,.55), rgba(5,41,39,.82));
}
.showcase-quote {
  position: relative; z-index: 2; text-align: center; color: #fff;
  padding: clamp(4rem, 11vw, 7.5rem) 1.5rem;
  max-width: 720px; margin-inline: auto;
}
.showcase-quote blockquote {
  margin: 0 0 1rem; font-family: var(--font-title); font-weight: 800;
  font-size: clamp(1.6rem, 4.2vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em;
  color: #fff; text-wrap: balance;
}
.showcase-quote p { color: rgba(255,255,255,.92); margin-bottom: 1.8rem; }
.showcase-quote .eyebrow { color: var(--sughero); justify-content: center; }
.showcase-quote .eyebrow::before,
.showcase-quote .eyebrow::after { background: rgba(194,160,117,.5); }
.showcase-quote .mission-title {
  color: var(--oro); font-size: clamp(1.15rem, 2.6vw, 1.8rem);
  letter-spacing: .12em; margin-bottom: 1.6rem; text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.showcase-quote .mission-title::before,
.showcase-quote .mission-title::after { background: var(--oro); }
/* dentro la banda il sipario non serve: l'immagine è di sfondo */
.showcase .curtain::after { display: none; }
.showcase .curtain img { transform: none; }

/* prodotti: le foto sostituiscono le icone, quindi niente padding interno */
.split-media.curtain img { width: 100%; display: block; }

/* ---------- Galleria a mosaico uniforme ---------- */
.gallery figure > .curtain { aspect-ratio: 4 / 3; }
.gallery figure > .curtain img { width: 100%; height: 100%; object-fit: cover; }
.gallery .is-wide { grid-column: span 2; }
.gallery .is-wide > .curtain { aspect-ratio: 21 / 9; }
.gallery .is-poster > a { display: block; aspect-ratio: 4 / 3; background: var(--crema); border: 1px solid var(--bordo); border-radius: var(--radius); overflow: hidden; }
.gallery .is-poster img { width: 100%; height: 100%; object-fit: contain; border: 0 !important; }
@media (max-width: 860px) {
  .gallery .is-wide { grid-column: auto; }
  .gallery .is-wide > .curtain { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   HEADER CINEMATOGRAFICI (pagine interne) + CARD CON IMMAGINE DI SFONDO
   ========================================================================== */

/* ---------- Testata con immagine di sfondo ---------- */
.page-head { position: relative; isolation: isolate; }
.page-head-media {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
}
.page-head-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  animation: kenburnsSlow 34s ease-in-out infinite alternate;
}
@keyframes kenburnsSlow {
  from { transform: scale(1.05); }
  to   { transform: scale(1.16) translate(-1.5%, 1%); }
}
@media (prefers-reduced-motion: reduce) { .page-head-media img { animation: none; } }

/* velo scuro: il testo resta sempre leggibile */
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(5,41,39,.9) 8%, rgba(5,41,39,.62) 46%, rgba(5,41,39,.3) 100%),
    linear-gradient(180deg, rgba(5,41,39,.45) 0%, transparent 40%, rgba(5,41,39,.55) 100%);
}
/* le foto sono spesso scure di loro: le alzo un filo perché restino leggibili sotto il velo */
.page-head-media img { filter: brightness(1.12) saturate(1.05); }
.page-head.has-media { box-shadow: inset 0 0 180px rgba(0,0,0,.5); }
.page-head.has-media { padding-block: clamp(4rem, 9vw, 6.5rem); }
@media (max-width: 640px) {
  .page-head::before {
    background:
      linear-gradient(180deg, rgba(5,41,39,.72) 0%, rgba(5,41,39,.88) 60%, rgba(5,41,39,.95) 100%);
  }
}

/* ---------- Card con immagine di sfondo ---------- */
.card-bg {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--bordo); border-radius: var(--radius);
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.9rem 1.7rem 1.75rem; color: #fff;
  transition: transform var(--t), box-shadow var(--t);
}
.card-bg .cb-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.card-bg .cb-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}
.card-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,41,39,.28) 0%, rgba(5,41,39,.72) 55%, rgba(5,41,39,.93) 100%);
  transition: background .4s;
}
.card-bg:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-bg:hover .cb-media img { transform: scale(1.07); }
.card-bg:hover::before {
  background: linear-gradient(180deg, rgba(122,18,32,.3) 0%, rgba(5,41,39,.75) 55%, rgba(5,41,39,.95) 100%);
}
.card-bg h3 { color: #fff; margin-bottom: .4rem; }
.card-bg p { color: rgba(255,255,255,.92); font-size: .95rem; margin: 0; }
.card-bg .cb-num {
  position: absolute; top: 1.2rem; right: 1.4rem; z-index: 1;
  font-family: var(--font-title); font-weight: 800; font-size: 2.4rem; line-height: 1;
  color: rgba(255,255,255,.28);
  text-shadow: 0 1px 12px rgba(5,41,39,.5);
}
.card-bg .icon { color: var(--sughero); margin-bottom: .9rem; }
.card-bg .icon svg { width: 34px; height: 34px; }
.page-servizi .card-bg h3 {
  align-self: flex-start; max-width: 100%; padding: .55rem .75rem;
  border: 1px solid var(--oro); border-radius: 2px; background: transparent;
  margin-bottom: .8rem;
}
.page-servizi .card-bg .icon {
  color: var(--oro); margin-bottom: 1.1rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.page-servizi .card-bg .icon svg { width: 48px; height: 48px; stroke-width: 2; }
@media (max-width: 400px) {
  .page-servizi .grid-2, .page-servizi .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
a.card-bg:hover { color: #fff; }

/* la card-bg non partecipa al tilt 3D: l'immagine ne soffrirebbe */
.card-bg.tilt { transform-style: flat; }

/* ---------- Card prodotto: foto al posto dell'icona ---------- */
.prod-top { position: relative; padding: 0; overflow: hidden; aspect-ratio: 16 / 10; display: block; }
.prod-top img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.prod:hover .prod-top img { transform: scale(1.06); }
.prod-top .prod-icon {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: rgba(252, 250, 246,.92); border-radius: 50%; color: var(--bordeaux);
  box-shadow: 0 2px 10px rgba(5,41,39,.25);
}
.prod-top .prod-icon svg { width: 22px; height: 22px; }
.prod-top::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(5,41,39,.35) 100%);
}

/* ==========================================================================
   FAQ · LIGHTBOX · BLUR-UP · TRANSIZIONI TRA PAGINE
   ========================================================================== */

/* ---------- FAQ ad accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--bordo); }
.faq-item:first-child { border-top: 1px solid var(--bordo); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; gap: 1.1rem; text-align: left;
  padding: 1.5rem .25rem; font-family: var(--font-title); font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.14rem); line-height: 1.35; letter-spacing: -.01em;
  color: var(--verde-scuro); transition: color var(--t);
}
.faq-q:hover { color: var(--bordeaux); }
.faq-q .faq-icon {
  flex: none; width: 26px; height: 26px; margin-top: .1rem; position: relative;
  border-radius: 50%; background: var(--crema); border: 1px solid var(--bordo);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
  content: ""; position: absolute; inset: 50% 50%; background: var(--bordeaux);
  transform: translate(-50%, -50%); transition: opacity var(--t), transform var(--t);
}
.faq-q .faq-icon::before { width: 11px; height: 2px; }
.faq-q .faq-icon::after  { width: 2px; height: 11px; }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--bordeaux); border-color: var(--bordeaux); }
.faq-q[aria-expanded="true"] .faq-icon::before { background: #fff; }
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq-q .faq-text { flex: 1; }

.faq-a { overflow: hidden; }
.js .faq-a {
  height: 0;
  transition: height .38s cubic-bezier(.4, 0, .2, 1);
}
.faq-a-inner { padding: 0 0 1.6rem 2.35rem; color: var(--testo-soft); font-size: .99rem; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner strong { color: var(--verde-scuro); }
@media (max-width: 560px) { .faq-a-inner { padding-left: 0; } }

/* senza JavaScript le risposte restano aperte e leggibili */

/* ---------- Lightbox galleria ---------- */
.lb {
  position: fixed; inset: 0; z-index: 400; display: grid;
  grid-template-rows: 1fr auto; place-items: center;
  background: rgba(5,41,39, .95); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  padding: clamp(1rem, 4vw, 3rem);
}
.lb[data-open="true"] { opacity: 1; visibility: visible; }
.lb-stage {
  grid-row: 1; position: relative; width: 100%; height: 100%; min-height: 0;
}
/* posizionamento assoluto + object-fit: in un grid item max-height:100% non si
   risolve e l'immagine finirebbe sopra la didascalia */
.lb-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  transform: scale(.96); opacity: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.lb[data-open="true"] .lb-stage img { transform: scale(1); opacity: 1; }
.lb-cap {
  grid-row: 2; color: rgba(255,255,255,.92); font-size: .92rem;
  text-align: center; padding-top: 1.1rem; max-width: 60ch;
}
.lb-cap b { display: block; color: var(--sughero); font-family: var(--font-title);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .35rem; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; transition: background var(--t), border-color var(--t), transform var(--t);
}
.lb-btn:hover { background: var(--bordeaux); border-color: var(--bordeaux); transform: scale(1.06); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: clamp(.8rem, 2.5vw, 1.6rem); right: clamp(.8rem, 2.5vw, 1.6rem); }
.lb-prev { left: clamp(.5rem, 2vw, 1.6rem); top: 50%; margin-top: -24px; }
.lb-next { right: clamp(.5rem, 2vw, 1.6rem); top: 50%; margin-top: -24px; }
@media (max-width: 640px) {
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
  .lb-btn { width: 42px; height: 42px; }
}
body[data-lb="true"] { overflow: hidden; }
.gallery figure > .curtain, .gallery .is-poster > a { cursor: zoom-in; }

/* ---------- Blur-up (LQIP) ---------- */
[data-lqip] { background-size: cover; background-position: center; background-repeat: no-repeat; }
.js [data-lqip] > img { opacity: 0; transition: opacity .65s ease; }
.js [data-lqip] > img.img-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { [data-lqip] > img { transition: none; } }

/* Il velo con logo in main.js gestisce la transizione tra le pagine. */
@view-transition { navigation: none; }


/* ==========================================================================
   18. CINEMA PASS v2 — color grading, vignetta, luce, materia
   ========================================================================== */

/* ---------- 18.1 Hero: grading + vignetta + letterbox ---------- */
.hero-cinema { isolation: isolate; }

/* grading caldo sull'immagine */
.hero-media img { filter: saturate(1.1) contrast(1.07) brightness(.95); }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 60% at 70% 26%, rgba(255, 196, 120, .22), transparent 62%),
    linear-gradient(200deg, rgba(120, 190, 255, .10), transparent 45%);
  mix-blend-mode: screen;
}

/* vignetta + barre cinema */
.hero-cinema::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(125% 95% at 52% 44%, transparent 38%, rgba(5,41,39, .62) 100%),
    linear-gradient(to bottom, rgba(5,41,39, .72) 0%, transparent 16%, transparent 74%, rgba(5,41,39, .8) 100%);
}

/* raggio di luce che attraversa lentamente la scena */
.hero-rays {
  position: absolute; inset: -20% -10%; z-index: 1; pointer-events: none;
  background: linear-gradient(102deg, transparent 38%, rgba(255, 226, 176, .13) 47%, rgba(255, 226, 176, .04) 52%, transparent 62%);
  mix-blend-mode: screen;
  animation: rayDrift 17s ease-in-out infinite alternate;
}
@keyframes rayDrift {
  from { transform: translate3d(-9%, 0, 0) rotate(-1deg); opacity: .55; }
  to   { transform: translate3d(9%, 0, 0) rotate(1deg); opacity: 1; }
}

/* titolo con più peso scenico */
.hero-cinema h1 { text-shadow: 0 22px 60px rgba(0, 0, 0, .5); letter-spacing: -.018em; }
.hero-cinema .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }

@media (prefers-reduced-motion: reduce) {
  .hero-rays { animation: none; }
}

/* ---------- 18.2 Fascia numeri: da bianca a notturna ---------- */
.hero-stats {
  background: linear-gradient(180deg, var(--verde-fondo-profondo) 0%, var(--verde-fondo) 100%);
  border-top: 0; gap: 0; position: relative; overflow: hidden;
}
.hero-stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 140% at 50% 0%, rgba(194, 160, 117, .16), transparent 70%);
}
.hero-stats div {
  background: transparent; padding: clamp(2rem, 4vw, 2.9rem) 1.25rem;
  position: relative;
}
.hero-stats div + div::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(194, 160, 117, .38), transparent);
}
.hero-stats strong {
  color: var(--crema); font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  letter-spacing: -.02em; text-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.hero-stats span {
  color: rgba(255,255,255,.92); text-transform: uppercase;
  font-size: .72rem; letter-spacing: .14em;
}

/* ---------- 18.3 Marquee editoriale delle linee di prodotto ---------- */
.linee-marquee {
  background: var(--verde-fondo); color: #fff; overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-block: 1px solid rgba(194, 160, 117, .18);
}
.linee-marquee .lm-track {
  display: flex; width: max-content; gap: 0;
  animation: lmScroll 42s linear infinite;
}
.linee-marquee:hover .lm-track { animation-play-state: paused; }
.linee-marquee b {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px var(--oro);
  padding-inline: 1.6rem; white-space: nowrap;
}
.linee-marquee i {
  font-style: normal; color: var(--sughero); align-self: center; font-size: .8rem;
}
@keyframes lmScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .linee-marquee .lm-track { animation: none; }
}

/* ---------- 18.4 Card prodotto: trattamento editoriale ---------- */
.prod-media, .prod figure, .cb-media { position: relative; overflow: hidden; }
.prod img, .card-bg img { transition: transform 1s cubic-bezier(.22, 1, .36, 1), filter .55s ease; }
.prod:hover img, .card-bg:hover img { transform: scale(1.06); }

/* filo sughero che si apre in hover */
.prod::after, .card-bg::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4;
  background: linear-gradient(90deg, var(--sughero), var(--bordeaux));
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.prod:hover::after, .card-bg:hover::after { transform: scaleX(1); }
.prod:hover, .card-bg:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -28px rgba(5,41,39, .45);
}

/* ---------- 18.5 Atmosfera nelle sezioni chiare ---------- */
.section-crema { position: relative; overflow: hidden; }
.section-crema::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 82% 8%, rgba(194, 160, 117, .16), transparent 62%);
}
.section-crema > .wrap { position: relative; z-index: 1; }

/* ---------- 18.6 Fascia CTA più scenica ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 120% at 15% 50%, rgba(255, 255, 255, .1), transparent 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, .18), transparent 40%, rgba(0, 0, 0, .28));
}
.cta-band > * { position: relative; z-index: 1; }

/* ---------- 18.7 Titoli di sezione con reveal parola per parola allo scroll ---------- */
.title-fx[data-reveal] { opacity: 1; transform: none; }
body.app-ready .title-fx[data-reveal] .w { animation: none; }
body.app-ready .title-fx[data-reveal].is-in .w {
  animation: wordUp .85s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--wi, 0) * 55ms);
}
@media (prefers-reduced-motion: reduce) {
  .title-fx[data-reveal] .w { transform: none; }
}


/* ==========================================================================
   19. SEQUENZA FIRMA + VIAGGIO ORIZZONTALE + CAPITOLI
   ========================================================================== */

/* ---------- 19.1 "Dalla materia al contenitore" ---------- */
.firma {
  position: relative; background: var(--verde-fondo); color: #fff;
  height: 300vh;
}
.firma-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
}
.firma::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 46% at 68% 44%, rgba(194, 160, 117, .17), transparent 68%);
}
.firma-testo { position: relative; z-index: 2; }
.firma-testo .eyebrow { color: var(--crema); }
.firma-testo h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.4rem; }
.firma-step {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.1rem;
  padding: .95rem 0; border-top: 1px solid rgba(255, 255, 255, .12);
  opacity: .3; transition: opacity .45s ease, transform .45s ease;
  transform: translateX(-6px);
}
.firma-step.on { opacity: 1; transform: none; }
.firma-step .n {
  font-family: var(--font-title); font-size: .74rem; letter-spacing: .16em;
  color: var(--crema); padding-top: .25rem;
}
.firma-step b { display: block; font-family: var(--font-title); font-size: 1.06rem; color: #fff; }
.firma-step span { color: rgba(255,255,255,.92); font-size: .92rem; line-height: 1.55; }

.firma-scena { position: relative; display: grid; place-items: center; height: 100%; }
.firma-svg { width: min(100%, 320px); height: auto; overflow: visible; }
.firma-svg .vetro { fill: rgba(255, 255, 255, .045); stroke: rgba(226, 214, 195, .5); stroke-width: 2.2; }
.firma-svg .riflesso { fill: rgba(255, 255, 255, .12); }
.firma-svg .cork-body { fill: #C2A075; }
.firma-svg .cork-top { fill: #D8BE99; }
.firma-svg .cork-grain { stroke: rgba(122, 87, 48, .35); stroke-width: 1.4; }
.firma-ombra {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  width: 46%; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
  filter: blur(3px);
}

@media (max-width: 860px) {
  .firma { height: 240vh; }
  .firma-stage {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr;
    gap: .6rem; align-content: start; padding-top: 88px; padding-bottom: 1rem;
  }
  .firma-svg { width: min(38vw, 140px); }
  .firma-scena { align-self: center; }
  .firma-ombra { bottom: 2%; width: 34%; height: 16px; }
  .firma-testo h2 { font-size: clamp(1.45rem, 5.6vw, 1.9rem); margin-bottom: .6rem; }
  .firma-step { padding: .5rem 0; gap: .35rem .8rem; }
  .firma-step b { font-size: .95rem; }
  .firma-step span { font-size: .8rem; line-height: 1.45; }
}

/* ---------- 19.2 Viaggio orizzontale delle sei linee ---------- */
.linee-journey { position: relative; background: var(--verde-fondo); }
.lj-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.lj-track {
  display: flex; gap: clamp(1rem, 2vw, 1.6rem); will-change: transform;
  padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2));
}
.lj-panel {
  position: relative; flex: 0 0 auto;
  width: min(62vw, 780px); height: min(76vh, 620px);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end;
  border: 1px solid rgba(226, 214, 195, .16);
}
.lj-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
}
.lj-panel:hover img { transform: scale(1.11); }
.lj-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,41,39, .92) 0%, rgba(5,41,39, .3) 48%, rgba(5,41,39, .12) 100%);
}
.lj-body {
  position: relative; z-index: 2; padding: clamp(1.4rem, 3vw, 2.6rem);
  display: grid; gap: .7rem; justify-items: start;
}
.lj-body .eyebrow { color: var(--sughero); }
.lj-body h3 {
  color: #fff; font-size: clamp(1.4rem, 2.7vw, 2.2rem); line-height: 1.12; max-width: 16ch;
}
.lj-body p { color: rgba(255,255,255,.92); max-width: 46ch; font-size: clamp(.9rem, 1.2vw, 1rem); }
.lj-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.lj-tags span {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .34rem .7rem; border-radius: 100px;
  border: 1px solid rgba(226, 214, 195, .35); color: rgba(255,255,255,.92);
}
.lj-num {
  position: absolute; top: clamp(1rem, 2.4vw, 1.8rem); right: clamp(1.1rem, 2.4vw, 2rem); z-index: 2;
  font-family: var(--font-title); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .42);
}
.lj-hud {
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vh, 2rem); z-index: 5;
  display: flex; align-items: center; gap: 1rem;
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  font-family: var(--font-title); font-size: .8rem; letter-spacing: .16em;
  color: rgba(255,255,255,.92);
}
.lj-hud b { color: #fff; }
.lj-bar { flex: 1; height: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.lj-bar i {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--sughero), var(--bordeaux));
}
.lj-head {
  position: relative; z-index: 3;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1rem, 2vw, 1.5rem);
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
}
.lj-head h2 { color: #fff; }
.lj-head .eyebrow { color: var(--crema); }
.lj-head .lead { color: rgba(255,255,255,.92); }

/* mobile: niente carrellata, pannelli impilati */
@media (max-width: 900px) {
  .linee-journey { height: auto !important; }
  .lj-stage { position: static; height: auto; display: block; padding-bottom: 2.5rem; }
  .lj-track { flex-direction: column; width: auto; padding-inline: 1.25rem; gap: 1rem; transform: none !important; }
  .lj-panel { width: auto; height: 62vh; min-height: 340px; }
  .lj-hud { display: none; }
}

/* ---------- 19.3 Cartelli di capitolo ---------- */
.chapter {
  position: relative; background: var(--verde-fondo); color: #fff; overflow: hidden;
  padding: clamp(2.6rem, 6vw, 4.4rem) 0;
  border-block: 1px solid rgba(194, 160, 117, .16);
}
.chapter::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 140% at var(--mx, 50%) var(--my, 50%), rgba(194, 160, 117, .14), transparent 62%);
  opacity: 0; transition: opacity .5s;
}
.chapter:hover::before { opacity: 1; }
.chapter .wrap { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); position: relative; z-index: 1; }
.chapter .ch-num {
  font-family: var(--font-title); font-weight: 800; line-height: .85;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  color: transparent; -webkit-text-stroke: 1.5px var(--sughero-chiaro);
  flex: none;
}
.chapter p {
  font-family: var(--font-title); font-weight: 600;
  font-size: clamp(1.05rem, 2.3vw, 1.7rem); line-height: 1.25; color: rgba(255,255,255,.92);
  max-width: 34ch; margin: 0;
}
.chapter .ch-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(194, 160, 117, .5), transparent); }
@media (max-width: 700px) { .chapter .ch-line { display: none; } }

/* stato senza pin: reduced-motion o fallback */
.firma.no-pin { height: auto; }
.firma.no-pin .firma-stage { position: static; height: auto; padding: clamp(3rem, 7vw, 5rem) 0; }
.firma.no-pin .firma-step { opacity: 1; transform: none; }
.linee-journey.no-pin { height: auto !important; }
.linee-journey.no-pin .lj-stage { position: static; height: auto; display: block; padding-bottom: 2.5rem; }
.linee-journey.no-pin .lj-track {
  overflow-x: auto; transform: none !important;
  scroll-snap-type: x mandatory; padding-bottom: .8rem;
}
.linee-journey.no-pin .lj-panel { scroll-snap-align: center; }
.linee-journey.no-pin .lj-hud { display: none; }


/* ==========================================================================
   20. GRADING FOTOGRAFICO, MATERIA E LUCE, RIFINITURE
   ========================================================================== */

/* ---------- 20.1 Grading coerente su tutte le foto di contenuto ---------- */
main img, .lj-panel img { filter: saturate(1.07) contrast(1.05) brightness(.985); }
.brand img, #preloader img, .site-footer img { filter: none; }

/* ---------- 20.2 Texture sughero nelle sezioni chiare ---------- */
.section-crema::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.76 0 0 0 0 0.63 0 0 0 0 0.46 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- 20.3 Riflesso di vetro sui pannelli ---------- */
.lj-panel .vetro-luce {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(104deg, transparent 40%, rgba(255, 255, 255, .14) 47%, transparent 56%);
  background-size: 260% 100%; background-position: 128% 0;
  transition: background-position 1.2s cubic-bezier(.22, 1, .36, 1);
}
.lj-panel:hover .vetro-luce { background-position: -30% 0; }

/* alone caldo che segue il cursore sui pannelli scuri */
.lj-panel .alone {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(194, 160, 117, .22), transparent 60%);
}
.lj-panel:hover .alone { opacity: 1; }

/* ---------- 20.4 Velo di transizione tra le pagine ---------- */
.velo {
  position: fixed; inset: 0; z-index: 6500; pointer-events: none;
  background: #052927;
  display: grid; place-items: center;
  transform: translateY(101%);
}
.velo img { width: min(1100px, 96vw); height: auto; opacity: 0; transition: opacity .3s; }
.velo.is-in { transform: translateY(0); transition: transform .5s cubic-bezier(.7, 0, .3, 1); }
.velo.is-in img { opacity: 1; transition-delay: .18s; }
.velo.is-cover { transform: translateY(0); transition: none; }
.velo.is-cover img { opacity: 1; }
.velo.is-out { transform: translateY(-101%); transition: transform .6s cubic-bezier(.7, 0, .3, 1) .05s; }
@media (prefers-reduced-motion: reduce) { .velo { display: none; } }

/* ---------- 20.6 Galleria come provino fotografico ---------- */
.gallery figure {
  background: var(--verde-fondo); padding: 8px 8px 30px; position: relative;
  border-radius: 2px;
}
.gallery figure::after {
  counter-increment: provino;
  content: counter(provino, decimal-leading-zero);
  position: absolute; left: 10px; bottom: 8px;
  font-family: var(--font-title); font-size: .64rem; letter-spacing: .18em;
  color: var(--crema); opacity: 1;
}
.gallery { counter-reset: provino; }
.gallery figure img { border-radius: 1px; }
.gallery figure > a.curtain { display: block; }
.gallery figcaption { color: rgba(255,255,255,.92); }
.gallery figcaption a { color: var(--crema); }
.gallery .is-portrait > .curtain img {
  object-fit: contain; background: var(--verde-fondo); transform: none;
}

/* ---------- Schede tecniche a tendina (prodotti / sughero) ---------- */
.spec { margin: 1.8rem 0; }
.spec-head {
  font-family: var(--font-title); font-weight: 700; color: var(--verde-scuro);
  font-size: 1.02rem; line-height: 1.35; margin: 0 0 .15rem;
}
.spec-sub { margin: 0 0 .6rem; font-size: .9rem; color: var(--testo-soft); }
.spec-item { border-bottom: 1px solid var(--bordo); }
.spec-item:first-of-type { border-top: 1px solid var(--bordo); }
.spec-item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .8rem;
  padding: .85rem .2rem; font-family: var(--font-title); font-weight: 700;
  font-size: .95rem; color: var(--verde-scuro); transition: color var(--t);
}
.spec-item > summary::-webkit-details-marker { display: none; }
.spec-item > summary:hover { color: var(--bordeaux); }
.spec-item > summary::before {
  content: ""; flex: none; width: 20px; height: 20px; position: relative;
  border-radius: 50%; background: var(--crema); border: 1px solid var(--bordo);
  background-image:
    linear-gradient(var(--bordeaux), var(--bordeaux)),
    linear-gradient(var(--bordeaux), var(--bordeaux));
  background-size: 9px 2px, 2px 9px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: background-color var(--t), border-color var(--t), transform var(--t);
}
.spec-item[open] > summary::before {
  background-color: var(--bordeaux); border-color: var(--bordeaux);
  background-image: linear-gradient(#fff, #fff);
  background-size: 9px 2px;
}
.spec-body { padding: 0 0 1.1rem 2.6rem; color: var(--testo-soft); font-size: .95rem; }
.spec-body p { margin: 0; }
.spec-body p + p { margin-top: .8rem; }
.spec-body .fmt-btn { margin-top: 1rem; }
@media (max-width: 560px) { .spec-body { padding-left: .2rem; } }

/* ---------- Pulsanti "vedi formati" + popup ---------- */
.fmt-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.fmt-btn {
  font-family: var(--font-title); font-weight: 700; font-size: .82rem; letter-spacing: .01em;
  padding: .6rem 1rem; border-radius: 100px; cursor: pointer;
  background: #fff; color: var(--verde-scuro); border: 1px solid var(--bordo);
  transition: all var(--t);
}
.fmt-btn:hover { border-color: var(--verde); color: var(--verde); background: var(--crema); transform: translateY(-1px); }
.section-crema .fmt-btn { background: var(--panna); }

.fmt-modal { position: fixed; inset: 0; z-index: 420; display: grid; place-items: center; padding: clamp(.8rem, 3vw, 2rem); }
.fmt-modal[hidden] { display: none; }
.fmt-backdrop { position: absolute; inset: 0; background: rgba(5,41,39, .72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .28s ease; }
.fmt-dialog {
  position: relative; width: min(880px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--panna); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem); opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
.fmt-modal[data-open="true"] .fmt-backdrop { opacity: 1; }
.fmt-modal[data-open="true"] .fmt-dialog { opacity: 1; transform: none; }
.fmt-title { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: .2rem 0 1.6rem; }
.fmt-close {
  position: absolute; top: .9rem; right: .9rem; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; background: var(--crema); color: var(--verde-scuro);
  border: 1px solid var(--bordo); transition: all var(--t);
}
.fmt-close:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.fmt-close svg { width: 18px; height: 18px; }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1.2rem .8rem; align-items: end; }
.fmt-item { margin: 0; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.fmt-shape {
  width: 100%; height: calc(var(--fs, 1) * 160px);
  object-fit: contain; object-position: center bottom;
  /* lo sfondo bianco della foto sparisce sulla scheda chiara */
  mix-blend-mode: multiply;
}
.fmt-item figcaption { margin-top: .75rem; line-height: 1.35; }
.fmt-item figcaption b { display: block; font-family: var(--font-title); font-size: .87rem; color: var(--verde-scuro); }
.fmt-item figcaption span { font-size: .78rem; color: var(--testo-soft); }
.fmt-note { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--bordo); font-size: .86rem; color: var(--testo-soft); }
.fmt-modal[data-fmt-layout="gallery"] .fmt-dialog { width: min(1000px, 100%); }
.fmt-modal[data-fmt-layout="gallery"] .fmt-title { padding-right: 2rem; margin-bottom: .6rem; }
.fmt-modal[data-fmt-layout="gallery"] .fmt-close {
  position: sticky; top: 0; float: right; margin: -.6rem -.8rem 0 0; z-index: 2;
}
.vasi-intro { color: var(--testo-soft); font-size: .9rem; margin: 0 0 1.6rem; }
.vasi-card + .vasi-card { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--bordo); }
.vasi-card h4 { margin: 0 0 1rem; font-size: 1rem; color: var(--verde-scuro); }
.vasi-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.vasi-item { margin: 0; min-width: 0; }
.vasi-item figcaption { margin-top: .5rem; font-size: .82rem; color: var(--testo-soft); text-align: center; }
.vasi-image {
  position: relative; display: block; width: 100%; padding: .7rem; border: 1px solid var(--bordo);
  border-radius: 12px; background: #fff; cursor: zoom-in; transition: border-color var(--t);
}
.vasi-image:hover, .vasi-image:focus-visible { border-color: var(--oro); }
.vasi-image img { width: 100%; height: 240px; object-fit: contain; }
.vasi-image span {
  position: absolute; bottom: .6rem; right: .6rem; padding: .3rem .6rem; border-radius: 100px;
  background: var(--crema); color: var(--verde-scuro); font-size: .7rem; font-weight: 600;
}
.vasi-preview {
  width: min(1100px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: 0;
  border: 1px solid var(--oro); border-radius: var(--radius); color: var(--testo); background: #fff;
  overflow: auto; box-shadow: var(--shadow-lg);
}
.vasi-preview::backdrop { background: rgba(5,41,39,.86); backdrop-filter: blur(4px); }
.vasi-preview-bar {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem 1rem; background: var(--panna); border-bottom: 1px solid var(--bordo);
}
.vasi-preview-bar h3 { margin: 0; font-size: clamp(.9rem, 2vw, 1.1rem); }
.vasi-preview-bar .fmt-close { position: static; flex: 0 0 40px; }
.vasi-preview-image { display: block; width: 100%; height: auto; padding: 1rem; }
@media (max-width: 560px) {
  .vasi-pair { gap: .6rem; }
  .vasi-image { padding: .4rem; }
  .vasi-image img { height: 180px; }
  .vasi-image span { font-size: .62rem; right: .3rem; bottom: .3rem; padding: .25rem .4rem; }
}
.tech-dialog {
  width: min(680px, calc(100% - 2rem)); max-height: calc(100svh - 2rem);
  padding: clamp(1.5rem, 4vw, 2.5rem); padding-top: 3.5rem;
  border: 1px solid var(--oro); border-radius: var(--radius);
  color: var(--testo); background: var(--panna); box-shadow: var(--shadow-lg);
}
.tech-dialog::backdrop { background: rgba(5,41,39,.78); backdrop-filter: blur(4px); }
.tech-dialog h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.tech-dialog p:last-child { margin-bottom: 0; }
.tech-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.tech-table caption {
  text-align: left; color: var(--testo-soft); font-size: .75rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 0 .8rem;
}
.tech-table th, .tech-table td {
  padding: .85rem 0; border-bottom: 1px solid var(--bordo); text-align: left;
  vertical-align: top;
}
.tech-table th { width: 42%; padding-right: 1rem; color: var(--verde-scuro); font-weight: 600; }
.tech-table tr:last-child th, .tech-table tr:last-child td { border-bottom: 0; }
.tech-table small { display: block; margin-top: .15rem; color: var(--testo-soft); font-size: .85em; }
.tech-dialog--illustrated { width: min(980px, calc(100% - 2rem)); overflow-y: auto; }
.tech-dialog--illustrated h2 { padding-right: 1rem; }
.tech-sheet-layout {
  display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; margin-top: 1.5rem;
}
.tech-sheet-visual {
  margin: 0; padding: 1rem; background: var(--crema);
  border: 1px solid var(--bordo); border-radius: var(--radius); text-align: center;
}
.tech-sheet-visual img { width: 100%; height: 300px; object-fit: contain; }
.tech-sheet-visual figcaption { margin-top: .75rem; color: var(--testo-soft); font-size: .78rem; line-height: 1.5; }
.tech-sheet-data { min-width: 0; }
@media (max-width: 700px) {
  .tech-sheet-layout { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
  .tech-sheet-visual { padding: .6rem 1rem; }
  .tech-sheet-visual img { height: 155px; }
  .tech-sheet-visual figcaption { margin-top: .25rem; }
  .tech-dialog--illustrated .tech-table { font-size: .875rem; }
  .tech-dialog--illustrated .tech-table th, .tech-dialog--illustrated .tech-table td { padding-top: .65rem; padding-bottom: .65rem; }
}
@media (max-width: 560px) {
  .fmt-grid { grid-template-columns: repeat(3, 1fr); }
  .fmt-shape { height: calc(var(--fs, 1) * 116px); }
}

/* Menzione del partner commerciale nel footer */
.footer-partner { margin-top: .8rem; font-size: .86rem; opacity: .75; }
.footer-partner strong { font-weight: 600; }

/* Griglia a due colonne piene (4 card in 2x2) */
.grid-2x2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 861px) { .grid-2x2 { grid-template-columns: repeat(2, 1fr); } }


/* Home: ottanio scuro, prugna, beige e oro champagne. */
body.page-home {
  --verde-home: #052927;
  --prugna-home: #55002A;
  --beige-home: #EDE6E0;
  --accento-home: #D9B77A;
  --verde-scuro: var(--verde-home);
  --verde: var(--verde-home);
  --verde-fondo: var(--verde-home);
  --verde-fondo-profondo: var(--verde-home);
  --verde-fondo-luce: var(--verde-home);
  --bordeaux: var(--prugna-home);
  --bordeaux-scuro: #6D123E;
  --sughero: var(--accento-home);
  --sughero-chiaro: var(--accento-home);
  --oro: var(--accento-home);
  --crema: var(--beige-home);
  --panna: var(--beige-home);
  --testo-soft: #445551;
  background: var(--verde-home);
  color: var(--beige-home);
}
body.page-home .topbar,
body.page-home .site-header,
body.page-home .hero-cinema,
body.page-home .hero-stats,
body.page-home .linee-marquee,
body.page-home .chapter,
body.page-home .firma,
body.page-home .linee-journey,
body.page-home .cta-band,
body.page-home .site-footer { background: var(--verde-home); }
body.page-home .site-header { border-bottom-color: rgba(217,183,122,.25); }
body.page-home .brand {
  background: transparent;
  padding: .3rem 0;
  margin-block: .5rem;
}
body.page-home .brand img { height: 52px; filter: none; }
body.page-home .nav a,
body.page-home .nav-toggle { color: var(--beige-home); }
body.page-home .nav a:hover {
  color: var(--accento-home);
  background: rgba(217,183,122,.09);
}
body.page-home .nav a[aria-current="page"] { color: var(--accento-home); }
body.page-home .nav a[aria-current="page"]::after { background: var(--accento-home); }
body.page-home .topbar,
body.page-home .topbar a,
body.page-home .topbar .claim,
body.page-home .hero-cinema h1,
body.page-home .hero-cinema .lead,
body.page-home .hero-cinema .eyebrow,
body.page-home .chapter p,
body.page-home .firma-testo h2,
body.page-home .firma-step b,
body.page-home .firma-step span,
body.page-home .hero-stats span,
body.page-home .lj-head h2,
body.page-home .lj-head .lead,
body.page-home .lj-hud,
body.page-home .lj-hud b,
body.page-home .card-bg h3,
body.page-home .card-bg p,
body.page-home .showcase-quote blockquote,
body.page-home .showcase-quote > p:not(.mission-title),
body.page-home .cta-band,
body.page-home .cta-band h2,
body.page-home .site-footer,
body.page-home .site-footer a,
body.page-home .footer-logo,
body.page-home .footer-logo span,
body.page-home .footer-bottom,
body.page-home .footer-partner { color: var(--beige-home); }
body.page-home .hero-cinema h1 .accent,
body.page-home .hero-stats strong,
body.page-home .firma-testo .eyebrow,
body.page-home .firma-step .n,
body.page-home .lj-head .eyebrow,
body.page-home .card-bg .icon,
body.page-home .showcase-quote .mission-title,
body.page-home .topbar svg,
body.page-home .site-footer h4 { color: var(--accento-home); }
body.page-home .hero-cinema .eyebrow::after,
body.page-home .hero-cinema .hero-rule,
body.page-home .eyebrow::after,
body.page-home .eyebrow.center::before { background: var(--accento-home); }
/* Panorama a tutta larghezza; la bottiglia resta intera anche sugli schermi ampi. */
@media (min-width: 861px) {
  body.page-home .hero-cinema { min-height: max(35rem, calc(100svh - 7.5rem)); }
  body.page-home .hero-cinema .hero-inner {
    padding-block: clamp(3rem, 6vh, 5rem) clamp(4rem, 7vh, 6rem);
  }
}
body.page-home .hero-media {
  inset: 0; width: 100%; opacity: 1;
  -webkit-mask-image: none; mask-image: none;
  will-change: auto;
}
body.page-home .hero-media img {
  object-fit: cover; object-position: center 65%;
  animation: none; filter: none;
}
body.page-home .hero-media::after { display: none; }
body.page-home .hero-cinema::before {
  background: linear-gradient(180deg, rgba(5,41,39,.08), transparent 45%, rgba(5,41,39,.42));
}
body.page-home .hero-cinema::after {
  background: linear-gradient(90deg, rgba(5,41,39,.58), rgba(5,41,39,.3) 50%, rgba(5,41,39,.06));
}
body.page-home .hero-stats::before {
  background: radial-gradient(80% 140% at 50% 0%, rgba(217,183,122,.035), transparent 70%);
}
body.page-home .hero-stats strong { text-shadow: none; }
body.page-home .hero-stats div + div::before {
  background: linear-gradient(to bottom, transparent, rgba(217,183,122,.38), transparent);
}
body.page-home .firma::before {
  background: radial-gradient(58% 46% at 68% 44%, rgba(217,183,122,.035), transparent 68%);
}
body.page-home .firma-step,
body.page-home .firma-step.on,
body.page-home .footer-partner { opacity: 1; }
body.page-home .firma-step { border-top-color: rgba(217,183,122,.2); }
body.page-home .firma-svg .vetro { stroke: var(--accento-home); stroke-opacity: .65; }
body.page-home .firma-svg .cork-body { fill: var(--accento-home); }
body.page-home .firma-svg .cork-top { fill: var(--beige-home); }
body.page-home .firma-svg .cork-grain { stroke: var(--prugna-home); stroke-opacity: .35; }
body.page-home .linee-marquee { border-block-color: rgba(217,183,122,.2); }
body.page-home .linee-marquee b,
body.page-home .chapter .ch-num { -webkit-text-stroke-color: var(--accento-home); }
body.page-home .linee-marquee i { color: var(--accento-home); }
body.page-home .chapter .ch-line {
  background: linear-gradient(90deg, rgba(217,183,122,.6), transparent);
}
body.page-home .lj-num { -webkit-text-stroke-color: var(--accento-home); }
body.page-home .lj-bar i { background: var(--accento-home); }
body.page-home .card-bg .cb-num { color: var(--accento-home); }
body.page-home .section-crema {
  background: var(--beige-home);
  color: var(--verde-home);
}
body.page-home .section-crema .eyebrow { color: var(--prugna-home); }
body.page-home .section-crema .lead { color: var(--testo-soft); }
body.page-home .btn-primary,
body.page-home .btn-light,
body.page-home .nav .nav-cta a {
  background: var(--prugna-home);
  color: var(--beige-home);
  border: 1px solid var(--accento-home);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
body.page-home .btn-primary:hover,
body.page-home .btn-light:hover,
body.page-home .nav .nav-cta a:hover {
  background: var(--bordeaux-scuro);
  color: var(--beige-home);
  border-color: var(--accento-home);
}
body.page-home .btn-outline-light {
  color: var(--beige-home);
  border-color: var(--accento-home);
}
body.page-home .btn-outline-light:hover {
  color: var(--verde-home);
  background: var(--beige-home);
  border-color: var(--beige-home);
}
body.page-home .cta-band a[href^="tel:"] {
  background: var(--beige-home);
  color: var(--verde-home);
  border-color: var(--beige-home);
}
body.page-home .cta-band a[href^="tel:"]:hover {
  background: var(--accento-home);
  color: var(--verde-home);
  border-color: var(--accento-home);
}
body.page-home .wave-bordeaux path { fill: var(--verde-home); }
body.page-home .cta-band { border-top: 1px solid rgba(217,183,122,.24); }
body.page-home .cta-band::before {
  background: radial-gradient(700px 340px at 85% 20%, rgba(217,183,122,.05), transparent 60%);
}
body.page-home .site-footer { border-top: 1px solid rgba(217,183,122,.2); }
body.page-home .footer-bottom { border-top-color: rgba(217,183,122,.2); }
body.page-home .topbar a:hover,
body.page-home .site-footer a:hover { color: var(--accento-home); }
body.page-home .site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
body.page-home .cookie-bar { color: var(--verde-home); background: var(--beige-home); }
body.page-home .cookie-bar .btn-ghost { border-color: var(--verde-home); }
body.page-home #preloader { background: var(--verde-home); }
body.page-home :focus-visible { outline-color: var(--accento-home); }
body.page-home :is(.section-crema,.cookie-bar) :focus-visible { outline-color: var(--prugna-home); }
@media (max-width: 960px) {
  body.page-home .nav { background: var(--verde-home); }
  body.page-home .nav li:not(.nav-cta):not(.nav-contact) a,
  body.page-home .nav .nav-contact a,
  body.page-home .nav .nav-contact p,
  body.page-home .nav-toggle[aria-expanded="true"] { color: var(--beige-home); }
  body.page-home .nav li:not(.nav-cta):not(.nav-contact) a { border-bottom-color: rgba(217,183,122,.2); }
  body.page-home .nav li:not(.nav-cta):not(.nav-contact) a::before,
  body.page-home .nav li:not(.nav-cta):not(.nav-contact) a[aria-current="page"],
  body.page-home .nav li:not(.nav-cta):not(.nav-contact) a:hover { color: var(--accento-home); }
}
@media (max-width: 860px) {
  body.page-home .hero-media img { object-position: 85% center; }
  body.page-home .hero-cinema::after {
    background: linear-gradient(90deg, rgba(5,41,39,.66) 0%, rgba(5,41,39,.4) 50%, rgba(5,41,39,.14) 100%);
  }
}
@media (max-width: 560px) {
  body.page-home .hero-media {
    -webkit-mask-image: none; mask-image: none;
  }
  body.page-home .hero-media img {
    object-fit: cover; object-position: 85% center;
  }
  body.page-home .hero-cinema::after {
    background:
      linear-gradient(90deg, rgba(5,41,39,.82), rgba(5,41,39,.4)),
      linear-gradient(180deg, rgba(5,41,39,.12) 45%, rgba(5,41,39,.75) 100%);
  }
}
@media (max-width: 520px) {
  body.page-home .brand img { height: 44px; }
}


/* Galleria: fotografie su superfici chiare e percorsi tematici. */
.page-galleria .gallery-collection { padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.page-galleria .gallery-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem 2rem; padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-galleria .gallery-toolbar > p { font-size: .83rem; color: var(--testo-soft); margin: 0; }
.page-galleria .gallery-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-galleria .gallery-nav a {
  border: 1px solid var(--bordo); border-radius: 999px; padding: .55rem 1rem;
  color: var(--verde-scuro); font-family: var(--font-title); font-weight: 600; font-size: .82rem;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.page-galleria .gallery-nav a:hover { background: var(--verde-scuro); border-color: var(--verde-scuro); color: #fff; }
.page-galleria .gallery-chapter { scroll-margin-top: 110px; }
.page-galleria .gallery-chapter + .gallery-chapter { margin-top: clamp(3.5rem, 7vw, 6rem); }
.page-galleria .gallery-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
.page-galleria .gallery-section-head .eyebrow { font-size: .68rem; letter-spacing: .14em; margin-bottom: .7rem; }
.page-galleria .gallery-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin: 0; }
.page-galleria .gallery-section-head > p { max-width: 31ch; font-size: .94rem; color: var(--testo-soft); margin: 0; }
.page-galleria .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.page-galleria .gallery figure {
  padding: 0; background: #fff; border: 1px solid var(--bordo); border-radius: 6px;
  overflow: hidden; margin: 0; box-shadow: 0 3px 14px rgba(5,41,39,.025);
}
.page-galleria .gallery figure::after { content: none; }
.page-galleria .gallery .gallery-featured { grid-column: span 2; }
.page-galleria .gallery figure > .gallery-photo {
  display: block; position: relative; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 0;
}
.page-galleria .gallery .gallery-featured > .gallery-photo { aspect-ratio: 21 / 9; }
.page-galleria .gallery--cantina figure > .gallery-photo { height: clamp(290px, 34vw, 420px); aspect-ratio: auto; }
.page-galleria .gallery figure img { border-radius: 0; }
.page-galleria .gallery .is-portrait > .gallery-photo img { object-fit: contain; background: var(--panna); }
.page-galleria .gallery figcaption {
  margin: 0; padding: 1rem 1.15rem; color: var(--verde-scuro); font-size: .88rem;
  font-family: var(--font-title); font-weight: 600; line-height: 1.45;
}
.page-galleria .gallery-zoom {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 3;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(252,250,246,.95); color: var(--verde-scuro);
  box-shadow: 0 2px 12px rgba(0,0,0,.12); transition: background var(--t), color var(--t);
}
.page-galleria .gallery-zoom svg { width: 18px; height: 18px; }
.page-galleria .gallery-photo:hover .gallery-zoom,
.page-galleria .gallery-photo:focus-visible .gallery-zoom { background: var(--verde-scuro); color: #fff; }
.page-galleria .gallery--packaging { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-galleria .gallery--document { display: block; }
.page-galleria .gallery .gallery-document-card {
  display: grid; grid-template-columns: minmax(210px, .65fr) 1.35fr; align-items: center;
  background: var(--crema); border-color: var(--bordo); box-shadow: none;
}
.page-galleria .gallery-document-image {
  display: grid; place-items: center; padding: 1.8rem; background: rgba(255,255,255,.65); cursor: zoom-in;
}
.page-galleria .gallery-document-image img { width: auto; height: 300px; object-fit: contain; }
.page-galleria .gallery-document-card figcaption { padding: clamp(1.5rem, 4vw, 3rem); }
.page-galleria .gallery-document-card h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: .6rem; }
.page-galleria .gallery-document-card figcaption > p:not(.eyebrow) { font-family: var(--font-body); font-weight: 400; color: var(--testo-soft); margin-bottom: 1.6rem; }
.page-galleria .gallery-document-card figcaption a { color: #fff; }
.page-galleria .gallery-document-card .btn { font-size: .88rem; }
.page-galleria .gallery-document-card .btn span { margin-left: .4rem; font-size: .72rem; opacity: .85; }
@media (max-width: 980px) {
  .page-galleria .gallery, .page-galleria .gallery--packaging { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-galleria .gallery .gallery-featured { grid-column: auto; }
  .page-galleria .gallery .gallery-featured > .gallery-photo,
  .page-galleria .gallery--cantina figure > .gallery-photo { height: auto; aspect-ratio: 4 / 3; }
  .page-galleria .gallery-section-head { align-items: start; flex-direction: column; gap: .8rem; }
  .page-galleria .gallery-section-head > p { max-width: 52ch; }
}
@media (max-width: 640px) {
  .page-galleria .gallery, .page-galleria .gallery--packaging { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .page-galleria .gallery-toolbar { gap: 1rem; }
  .page-galleria .gallery-nav { gap: .4rem; }
  .page-galleria .gallery-nav a { font-size: .76rem; padding: .5rem .8rem; }
  .page-galleria .gallery--cantina figure:first-child > .gallery-photo { aspect-ratio: 16 / 9; }
  .page-galleria .gallery .gallery-document-card { grid-template-columns: minmax(0, 1fr); }
  .page-galleria .gallery-document-image { padding: 1.3rem; }
  .page-galleria .gallery-document-image img { height: 230px; }
  .page-galleria .gallery-document-card .btn { justify-content: center; width: 100%; padding-inline: .8rem; }
}

/* Il testo delle aziende agricole dispone di due righe su desktop. */
@media (min-width: 1100px) {
  .page-servizi .card-agricole { padding-inline: 1rem; }
  .page-servizi .card-agricole > p { text-wrap: balance; }
}

/* Pulsanti disponibilità e prezzi nelle cinque linee della pagina Prodotti. */
.btn.btn-availability {
  font-size: 1.2rem;
  line-height: 1.4;
  padding: 1.15rem 2rem;
  max-width: 100%;
  justify-content: center;
}
@media (max-width: 640px) {
  .btn.btn-availability { width: 100%; padding-inline: 1.25rem; }
}


/* Foto affiancate ai rispettivi gruppi di tappi, nella pagina Prodotti. */
#sughero .sughero-row { align-items: start; }
#sughero .sughero-row .spec { margin: 0; }
#sughero .sughero-content { min-width: 0; }
#sughero .sughero-row > .split-media {
  position: relative;
  top: auto;
  align-self: start;
}
#sughero .sughero-row + .sughero-row {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Categorie del catalogo: card intere, senza scorrimento laterale su mobile. */
.product-categories > .card-bg { min-width: 0; }
@media (max-width: 860px) {
  .product-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-categories > .card-bg { min-height: 210px; padding: 1.3rem; }
  .product-categories > .card-bg[data-reveal] { opacity: 1; transform: none; }
  .product-categories .cb-media.curtain::after { display: none; }
  .product-categories .cb-media img { transform: none; }
}
@media (max-width: 560px) {
  .product-categories { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .product-categories > .card-bg { min-height: 180px; }
  .product-categories .card-bg h3 { font-size: 1.2rem; }
}

/* Home: collaborazioni in due colonne, anche sugli schermi piccoli. */
body.page-home .home-collaborations {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(217,183,122,.2);
  background: var(--verde-home);
  color: var(--beige-home);
}
body.page-home .home-collaborations h2 {
  color: var(--beige-home);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-wrap: balance;
}
body.page-home .home-collaborations h2::before {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  margin-bottom: 1.2rem;
  background: var(--accento-home);
}
body.page-home .home-collaborations-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(10, auto);
  grid-auto-flow: column;
  column-gap: clamp(1rem, 5vw, 5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-home .home-collaborations-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-width: 0;
  padding-block: .75rem;
  border-bottom: 1px solid rgba(217,183,122,.16);
  font-size: clamp(.875rem, 1.35vw, 1.0625rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}
body.page-home .home-collaborations-list li::before {
  content: "";
  flex: 0 0 .3rem;
  height: .3rem;
  margin-top: .6em;
  border-radius: 50%;
  background: var(--accento-home);
}
