/* Oleificio Sollami · nero-oliva, oro d'olio, verde foglia, panna */
:root {
  --ink: #14160d;
  --ink-2: #1e2215;
  --leaf: #2f4a22;
  --leaf-2: #5f7a2e;
  --oil: #d4a62a;
  --oil-2: #e8c45a;
  --cream: #f4eedd;
  --paper: #ebe2c8;
  --muted: #5d5a48;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4vw, 56px);
  --gap: clamp(120px, 16vw, 220px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.loading { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: var(--oil); color: var(--ink); }
:focus-visible { outline: 3px solid var(--oil); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }

.h2 {
  font: 400 clamp(40px, 6.4vw, 96px)/.98 var(--serif); letter-spacing: -.03em;
  margin: 0 0 28px; max-width: 16ch; text-wrap: balance;
  font-variation-settings: "opsz" 144;
}
.h2.big { font-size: clamp(44px, 7vw, 112px); max-width: 18ch; }
.h2.huge { font-size: clamp(48px, 9vw, 150px); max-width: 12ch; }
.h2.small { font-size: clamp(32px, 4vw, 56px); }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 38em; margin: 0; }
.light { color: var(--cream); }

/* Bottoni: pieni, angoli tondi pieni, decisi una volta */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-oil { background: var(--oil); color: var(--ink); }
.btn-oil:hover { background: var(--oil-2); }
.btn-ghost { background: rgba(244, 238, 221, .14); color: var(--cream); }
.btn-ghost:hover { background: rgba(244, 238, 221, .26); }

/* ---------- Caricamento ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--cream);
  display: grid; place-content: center; justify-items: center; gap: 10px;
}
.ld-drop { width: 96px; color: var(--oil-2); }
.ld-n { font: 300 64px/1 var(--serif); font-variant-numeric: tabular-nums; }
.ld-t { margin: 0; font-size: 15px; color: rgba(244, 238, 221, .7); }

/* ---------- Cursore a goccia ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 26px; display: none; }
.cursor svg { width: 26px; transition: transform .35s var(--ease-out); transform-origin: 50% 70%; }
.cursor.big svg { transform: scale(1.7); }
.cursor-l {
  position: absolute; left: 34px; top: 14px; white-space: nowrap; font: 600 13px/1 var(--sans);
  background: var(--ink); color: var(--oil-2); padding: 6px 10px; border-radius: 999px;
  opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease-out);
}
.cursor.big .cursor-l:not(:empty) { opacity: 1; transform: none; }
@media (pointer: fine) {
  .has-cursor .cursor { display: block; }
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor input { cursor: none; }
}

/* ---------- Testata ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 18px var(--pad); color: var(--cream);
  transition: background-color .45s, padding .45s var(--ease-out), translate .5s var(--ease-out);
}
.hd.solid { background: var(--ink); padding-top: 10px; padding-bottom: 10px; }
.hd.hide { translate: 0 -110%; }
.hd-l { display: flex; gap: 30px; }
.hd-l a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
/* sotto il link scorre una goccia d'olio invece della solita riga */
.hd-l a::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 7px; height: 9px; margin-left: -3.5px;
  background: var(--oil); clip-path: path("M3.5 0C3.5 0 0 4.4 0 6a3.5 3.5 0 0 0 7 0C7 4.4 3.5 0 3.5 0z");
  opacity: 0; translate: 0 -8px; transition: opacity .25s, translate .45s var(--ease-out);
}
.hd-l a:hover::after { opacity: 1; translate: 0 0; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; text-align: center; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; transition: width .45s var(--ease-out), height .45s var(--ease-out); }
.brand-t { display: grid; gap: 2px; }
.brand-t b { font: 500 19px/1 var(--serif); font-variant: small-caps; letter-spacing: .06em; font-variation-settings: "opsz" 24; }
.brand-t small { font-size: 12px; color: rgba(244, 238, 221, .75); }
.hd.solid .brand { flex-direction: row; gap: 12px; text-align: left; }
.hd.solid .brand img { width: 38px; height: 38px; }
.hd-r { display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.hd-order {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px;
  border-radius: 999px; background: rgba(244, 238, 221, .14); text-decoration: none; font-weight: 600; font-size: 15px;
}
/* al passaggio il pulsante si riempie d'olio dal basso */
.hd-order::before { content: ""; position: absolute; inset: 0; background: var(--oil); translate: 0 101%; transition: translate .45s var(--ease-out); }
.hd-order:hover::before { translate: 0 0; }
.hd-order span { position: relative; transition: color .3s; }
.hd-order:hover span { color: var(--ink); }
.menu-btn { display: none; }
.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--oil); color: var(--ink); padding: 120px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: space-between; clip-path: circle(0 at calc(100% - 44px) 40px);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font: 400 clamp(40px, 12vw, 64px)/1.05 var(--serif); letter-spacing: -.02em; text-decoration: none; }
.menu p { margin: 0; font-weight: 500; }

/* ---------- Livello dell'olio ---------- */
.gauge {
  position: fixed; right: clamp(10px, 1.6vw, 26px); top: 50%; z-index: 40; transform: translateY(-50%);
  display: grid; justify-items: center; gap: 8px; color: var(--oil); mix-blend-mode: normal;
  font-size: 13px; font-weight: 600;
}
.gauge-n { font-variant-numeric: tabular-nums; }
.gauge-tube { width: 8px; height: 160px; border-radius: 8px; background: rgba(212, 166, 42, .22); position: relative; overflow: hidden; }
.gauge-tube i { position: absolute; inset: auto 0 0; height: 100%; background: var(--oil); transform-origin: bottom; transform: scaleY(0); border-radius: 8px; }
.gauge-l { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .02em; }

/* ---------- Hero ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); color: var(--cream); }
/* sotto il nome scorre il montaggio dei video del frantoio, scurito perché le lettere restino leggibili */
.hero-bg { position: absolute; inset: 0; background: var(--ink) url("../assets/video/montaggio-poster.jpg") center / cover; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 13, .8) 0%, rgba(20, 22, 13, .58) 38%, rgba(20, 22, 13, .66) 70%, rgba(20, 22, 13, .92) 100%);
}
.hero-inner {
  position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto;
  gap: 32px 48px; padding-top: 150px; padding-bottom: 56px; align-items: end;
}
.hero-title { margin: 0; align-self: end; }
/* il nome si adatta anche all'altezza dello schermo: sotto devono restare testo e pulsanti */
.name { width: min(100%, 1060px, calc((100svh - 380px) * 1.7)); height: auto; overflow: visible; }
.nm { font-family: var(--serif); font-size: 168px; font-weight: 400; letter-spacing: -6px; font-variation-settings: "opsz" 144; }
.nm.base { fill: var(--cream); }
.drips { fill: var(--oil); opacity: 0; }
.drips text { fill: var(--oil); }
.dr { transform-box: fill-box; transform-origin: 50% 0; animation: drip 4.6s cubic-bezier(.6, 0, .85, .45) infinite; }
.d1 { animation-delay: .4s; } .d2 { animation-delay: 2.1s; animation-duration: 5.4s; }
.d3 { animation-delay: 1.2s; animation-duration: 4.1s; } .d4 { animation-delay: 3.2s; animation-duration: 5s; }
/* la goccia si gonfia sotto la lettera, si allunga e cade */
@keyframes drip {
  0% { transform: translateY(-6px) scale(.2); }
  40% { transform: translateY(2px) scale(1); }
  58% { transform: translateY(12px) scale(.85, 1.25); }
  100% { transform: translateY(190px) scale(.7, 1.1); opacity: 0; }
}
.hero-side { align-self: start; justify-self: end; }
.badge { position: relative; width: clamp(150px, 15vw, 220px); aspect-ratio: 1; }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; font: 600 11px var(--sans); letter-spacing: .16em; fill: var(--oil-2); animation: spin 28s linear infinite; will-change: transform; }
.badge img { position: absolute; inset: 17%; width: 66%; height: 66%; border-radius: 50%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.hero-sub { font-size: clamp(18px, 1.5vw, 22px); max-width: 34em; margin: 0; line-height: 1.45; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-right: clamp(0px, 4vw, 64px); }
.cue {
  position: absolute; left: 50%; top: 50%; translate: -50% 0; display: none;
}
.hero-olives { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ol { position: absolute; top: -14vh; }
.ol svg { width: 100%; height: auto; }
.ol1 { left: 6%; width: 54px; } .ol2 { left: 18%; width: 70px; } .ol3 { left: 31%; width: 48px; }
.ol4 { left: 44%; width: 80px; } .ol5 { left: 55%; width: 58px; } .ol6 { left: 67%; width: 66px; }
.ol7 { left: 77%; width: 50px; } .ol8 { left: 86%; width: 74px; } .ol9 { left: 93%; width: 46px; }
.hero-pour { position: absolute; left: 0; right: 0; bottom: -2px; height: 42vh; fill: var(--cream); transform: translateY(101%); z-index: 4; }
.hero-pour.gold { fill: var(--oil); }
.hero-pour svg { width: 100%; height: 100%; }

/* ---------- Storia ---------- */
.storia { padding: var(--gap) 0; background: var(--cream); }
.statement {
  font: 400 clamp(24px, 2.6vw, 36px)/1.3 var(--serif); letter-spacing: -.01em; max-width: 30em; margin: 0 0 clamp(80px, 10vw, 140px);
}
.statement .wd { color: rgba(20, 22, 13, .22); transition: color .35s; }
.statement .wd.on { color: var(--ink); }
.statement .wd.on.gold { color: #9a7412; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.duo-card:nth-child(2) { margin-top: clamp(0px, 10vw, 160px); }
.portrait { position: relative; aspect-ratio: 1; max-width: 520px; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; font: 600 9.4px var(--sans); letter-spacing: .14em; fill: var(--leaf); }
.ph { position: absolute; inset: 13%; border-radius: 50%; overflow: hidden; background: var(--paper); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.duo-card:hover .ph img { transform: scale(1.06); }
.duo-copy { max-width: 30em; margin-top: 24px; }
.duo-copy h3 { font: 400 clamp(30px, 3vw, 44px)/1 var(--serif); margin: 0 0 14px; letter-spacing: -.02em; }
.duo-copy p { margin: 0; }

/* ---------- Percorso ---------- */
.route { background: #e9e5cf; transition: background-color .8s; overflow: hidden; }
.route-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 48px; }
.route-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.route-head .h2 { margin: 0; }
.route-line-wrap { position: relative; margin: 28px var(--pad) 28px; height: 40px; }
.route-line { width: 100%; height: 40px; overflow: visible; }
#routeBase { stroke: rgba(20, 22, 13, .35); }
#routePath { stroke: var(--oil); }
.route-drop { position: absolute; left: 0; top: 0; width: 30px; will-change: transform; }
.track { display: flex; gap: clamp(40px, 5vw, 80px); padding: 0 var(--pad); width: max-content; will-change: transform; }
/* le tappe si adattano all'altezza: foto e testo devono stare nello schermo bloccato */
.stop { width: min(74vw, 560px, calc((100svh - 440px) * 4 / 3)); min-width: 300px; display: grid; gap: 16px; flex: none; align-content: start; }
.frame { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--paper); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.stop-n { margin: 0 0 8px; font: 400 20px/1.2 var(--serif); font-style: italic; color: #6a5410; }
.stop h3 { font: 400 clamp(30px, 3vw, 44px)/1 var(--serif); margin: 0 0 10px; letter-spacing: -.02em; }
.stop-copy > p:last-of-type { margin: 0; max-width: 30em; }
.link { display: inline-flex; gap: 8px; margin-top: 16px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--oil); padding-bottom: 4px; }
.link .arr { transition: transform .3s var(--ease-out); }
.link:hover .arr { transform: translateY(3px); }

/* ---------- Il frantoio in immagini ---------- */
.studio { background: var(--ink); color: var(--cream); padding: var(--gap) 0 clamp(80px, 10vw, 160px); overflow: hidden; }
.studio-head { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(56px, 7vw, 100px); }
.studio-head .h2 { margin: 0; }
.reel-stage { position: relative; display: grid; gap: 20px; }
.marquee { display: flex; gap: 20px; width: max-content; will-change: transform; }
.marquee img { height: clamp(180px, 22vw, 320px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; flex: none; }
.drop-logo {
  position: absolute; left: 50%; top: 50%; width: clamp(220px, 24vw, 340px); aspect-ratio: 3 / 4;
  translate: -50% -50%; z-index: 2;
}
.drop-in { position: absolute; inset: 0; clip-path: url(#dropClip); background: #f3e7c4; display: grid; place-items: center; padding-top: 30%; }
.drop-in img { width: 92%; height: auto; mix-blend-mode: multiply; }
.drop-ring { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); overflow: visible; z-index: 1; }

/* ---------- Molitura ---------- */
.engine { background: var(--leaf); color: var(--cream); padding: var(--gap) 0; }
.engine-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; margin-top: 56px; }
.stat b { display: block; font: 300 clamp(48px, 5.4vw, 84px)/1 var(--serif); color: var(--oil-2); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; font-size: 16px; }
.engine-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }
/* le fasi della molitura: una scheda con i video veri che si sfoglia come una storia */
.fasi { align-self: center; justify-self: center; width: min(100%, 460px); }
.fasi-k { margin: 0 0 14px; font: 600 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--oil-2); }
.fasi-card { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--ink); }
.fasi-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out); }
.fasi-stage video.on { opacity: 1; }
.fasi-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 22, 13, .55) 0%, transparent 22%, transparent 48%, rgba(20, 22, 13, .88) 100%); }
.fasi-bars { position: absolute; z-index: 3; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; }
.fasi-bars button { flex: 1; height: 24px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.fasi-bars i { display: block; height: 4px; border-radius: 4px; background: rgba(244, 238, 221, .3); overflow: hidden; position: relative; }
.fasi-bars i::after { content: ""; position: absolute; inset: 0; background: var(--oil-2); transform-origin: left; transform: scaleX(var(--p, 0)); }
.fasi-prev, .fasi-next { position: absolute; z-index: 2; top: 0; bottom: 0; width: 38%; border: 0; background: none; cursor: pointer; }
.fasi-prev { left: 0; } .fasi-next { right: 0; }
.fasi-caps { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 20px; pointer-events: none; }
.fasi-cap { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity .5s, translate .6s var(--ease-out), visibility 0s .5s; }
.fasi-cap.on { position: relative; opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.fasi-cap h3 { margin: 0 0 6px; font: 400 clamp(28px, 2.6vw, 36px)/1.05 var(--serif); letter-spacing: -.02em; color: var(--cream); }
.fasi-cap p:last-child { margin: 0; font-size: 16px; line-height: 1.45; color: rgba(244, 238, 221, .9); max-width: 28em; }
.fasi-pause {
  position: absolute; z-index: 4; top: 36px; right: 14px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  background: rgba(20, 22, 13, .55); color: var(--cream); font: 600 13px/1 var(--sans); cursor: pointer;
}

/* ---------- Aurora d'Oro ---------- */
.aurora { background: var(--cream); padding: 0 0 var(--gap); }
.aurora-media { height: clamp(360px, min(82vh, 60vw), 860px); overflow: hidden; }
.aurora-media img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 78%; }
.aurora-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.profile { margin: 40px 0 0; display: grid; gap: 18px; }
.profile div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; }
.profile dt { font-weight: 600; }
.profile dd { margin: 0; }
.tins { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: end; }
.tin {
  display: grid; gap: 6px; text-decoration: none; padding: 28px 24px 24px; border-radius: 10px; background: var(--paper);
  transition: transform .5s var(--ease-out), background-color .3s; transform-style: preserve-3d;
}
.tin:hover { background: #e4d8b4; }
.tin-art { width: 70%; margin: 0 auto 18px; transition: transform .6s var(--ease-out); }
.tin:hover .tin-art { transform: translateY(-8px) rotate(-3deg); }
.tin-n { font-weight: 600; }
.tin-p { font: 400 44px/1 var(--serif); letter-spacing: -.02em; }
.tin-d { color: var(--muted); font-size: 15px; }
.aurora-foot { margin-top: 48px; color: var(--ink); }

/* ---------- Certificazioni ---------- */
.trust { background: var(--paper); padding: var(--gap) 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.certs { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; }
.certs li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.certs img { width: 96px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; padding: 8px; }
.certs h3 { font: 400 26px/1.1 var(--serif); margin: 0 0 4px; }
.certs p { margin: 0; }
.pnrr { background: var(--cream); border-radius: 10px; padding: clamp(24px, 3vw, 40px); align-self: start; text-align: center; }
.pnrr > img { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.pnrr h3 { font: 400 28px/1.1 var(--serif); margin: 24px 0 12px; }
.pnrr p { font-size: 15px; margin: 0 auto; max-width: 34em; text-wrap: pretty; }
.pnrr-logos { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; justify-content: center; align-items: center; }
.pnrr-logos img { height: 56px; width: auto; }

/* ---------- Vieni a trovarci ---------- */
.landing { position: relative; color: var(--cream); padding: var(--gap) 0; overflow: hidden; background: var(--leaf); }
.landing-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.visit { margin: 48px 0 0; display: grid; gap: 18px; }
.visit div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; }
.visit dt { color: var(--oil-2); font-weight: 600; }
.visit dd { margin: 0; }
.cestone { position: relative; display: grid; justify-items: center; gap: 20px; }
.cestone-stage { position: relative; width: min(100%, 480px); aspect-ratio: 400 / 440; }
.cestone-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.cestone-hint {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; margin: 0; white-space: nowrap;
  font-size: 13px; color: rgba(244, 238, 221, .7); opacity: 0; transition: opacity .6s;
}
.cestone.done .cestone-hint { opacity: 1; }
.cestone-after { display: grid; gap: 14px; justify-items: center; text-align: center; opacity: 0; visibility: hidden; }
.cestone-after p { margin: 0; font: 400 24px/1.3 var(--serif); }
.cestone-after .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cestone-again {
  border: 0; background: none; color: var(--oil-2); font: 600 15px/1 var(--sans); padding: 12px 8px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(232, 196, 90, .5);
}
.cestone-again[hidden] { display: none; }
.cestone.done .cestone-btn { display: none; }
.cestone.done .cestone-after { opacity: 1; visibility: visible; transition: opacity .6s .2s; }

/* ---------- Domande ---------- */
.faq { background: var(--cream); padding: var(--gap) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); }
.faq-list details { background: var(--paper); border-radius: 10px; margin-bottom: 10px; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font: 400 22px/1.25 var(--serif); position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 18px; margin-top: -9px;
  background: var(--oil); clip-path: path("M7 0C7 0 0 8 0 12a7 7 0 0 0 14 0C14 8 7 0 7 0z"); transition: transform .35s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list details p { margin: 0; padding: 0 24px 22px; max-width: 40em; }
.voices { margin-top: var(--gap); }
.voices-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: 40px; }
.voices blockquote { margin: 0; }
.voices blockquote p { font: 400 clamp(20px, 1.6vw, 24px)/1.35 var(--serif); margin: 0 0 16px; }
.voices cite { font-style: normal; font-weight: 600; color: var(--muted); }
.press { margin: 56px 0 0; }

/* ---------- Chiusura ---------- */
.contact { background: var(--ink); color: var(--cream); padding: var(--gap) 0 40px; overflow: hidden; }
.mega {
  display: block; text-decoration: none; font: 400 clamp(56px, 11.5vw, 190px)/.9 var(--serif); letter-spacing: -.045em;
  font-variation-settings: "opsz" 144;
}
.mega span { display: inline-block; }
/* le quattro colonne del sito di oggi: marchio, contatti, orari, link */
.ft {
  display: grid; grid-template-columns: 1.15fr 1.2fr .9fr .8fr; gap: 40px clamp(24px, 4vw, 64px);
  margin-top: clamp(64px, 8vw, 112px); padding-top: 48px; border-top: 1px solid rgba(244, 238, 221, .14);
  font-size: 15px; color: rgba(244, 238, 221, .82);
}
.ft a { text-decoration: none; transition: color .2s; }
.ft a:hover { color: var(--oil-2); }
.ft-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; color: var(--cream); }
.ft-logo img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.ft-logo b { display: block; font: 400 24px/1.1 var(--serif); }
.ft-logo small { display: block; margin-top: 4px; font-size: 13px; color: rgba(244, 238, 221, .65); }
.ft-brand p { margin: 0; max-width: 28em; line-height: 1.6; }
.ft-h { margin: 0 0 20px; font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--oil); }
.ft-list, .ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ft-links { gap: 10px; }
.ft-list li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; line-height: 1.5; }
.ft-list svg { width: 20px; height: 20px; fill: none; stroke: var(--oil); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.ft-tels { display: grid; gap: 6px; }
.ft-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(244, 238, 221, .14);
  font-size: 13px; color: rgba(244, 238, 221, .65);
}
.ft-bottom p { margin: 0; letter-spacing: .02em; }
.ft-social { display: flex; align-items: center; gap: 10px; }
.ft-social span { margin-right: 6px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.ft-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(244, 238, 221, .2); color: var(--cream); transition: background-color .25s, border-color .25s, color .25s;
}
.ft-social a:hover { background: var(--oil); border-color: var(--oil); color: var(--ink); }
.ft-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pagina Contatti ---------- */
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(20, 22, 13, .28); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(20, 22, 13, .04); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--leaf); }
.page-contatti .hd, .page-blog .hd { background: var(--ink); }
.ct-hero { background: var(--ink); color: var(--cream); padding: clamp(180px, 20vw, 240px) 0 clamp(72px, 8vw, 112px); }
.ct-kicker { margin: 0 0 12px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--oil); }
.ct-title { margin: 0; font: 400 clamp(64px, 12vw, 180px)/.9 var(--serif); letter-spacing: -.045em; font-variation-settings: "opsz" 144; }
.ct-title span { display: inline-block; padding-bottom: .08em; }
.ct-sub { max-width: 34em; margin: 28px 0 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: rgba(244, 238, 221, .85); }
.ct-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.ct-q {
  display: flex; align-items: center; gap: 16px; padding: 22px 22px; border-radius: 10px; text-decoration: none;
  background: rgba(244, 238, 221, .07); transition: background-color .25s, transform .3s var(--ease-out);
}
.ct-q:hover { background: rgba(212, 166, 42, .18); transform: translateY(-3px); }
.ct-q:active { transform: scale(.98); }
.ct-q svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--oil); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ct-q b { display: block; font: 400 22px/1.1 var(--serif); }
.ct-q small { display: block; margin-top: 4px; font-size: 14px; color: rgba(244, 238, 221, .7); overflow-wrap: anywhere; }

.ct-people { background: var(--cream); padding: clamp(80px, 10vw, 140px) 0; }
.ct-cards { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ct-card { background: var(--paper); border-radius: 10px; padding: 28px 24px; display: grid; gap: 6px; align-content: start; }
.ct-card.main { background: var(--leaf); color: var(--cream); }
.ct-role { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ct-card.main .ct-role { color: var(--oil-2); }
.ct-card h3 { margin: 6px 0 0; font: 400 clamp(32px, 3vw, 44px)/1 var(--serif); letter-spacing: -.02em; }
.ct-num { font-size: 18px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.ct-num:hover { text-decoration: underline; text-decoration-color: var(--oil); text-underline-offset: 4px; }
.ct-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ct-card.main .btn-line { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(244, 238, 221, .4); }

.ct-write { background: var(--paper); padding: clamp(80px, 10vw, 140px) 0; }
.ct-write-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.ct-info { margin: 40px 0 0; display: grid; gap: 18px; }
.ct-info div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; }
.ct-info dt { font-weight: 600; }
.ct-info dd { margin: 0; }
.ct-form { background: var(--cream); border-radius: 10px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.ct-form input, .ct-form select, .ct-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid rgba(20, 22, 13, .2); border-radius: 8px;
  background: #fffdf6; color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
.ct-form textarea { resize: vertical; min-height: 140px; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline: none; border-color: var(--oil); box-shadow: 0 0 0 3px rgba(212, 166, 42, .3); }
.ct-form [aria-invalid="true"] { border-color: #a5352a; }
.ct-err { margin: 0; min-height: 1.4em; color: #a5352a; font-weight: 600; font-size: 15px; }
.ct-err:empty { display: none; }
.ct-send { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-note { margin: 0; font-size: 14px; color: var(--muted); }

.ct-map { background: var(--cream); padding: clamp(80px, 10vw, 140px) 0; }
.ct-map-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ct-coord { margin: 20px 0 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.ct-frame { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper); }
.ct-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Blog (Approfondimenti) ---------- */
.art-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font-size: 14px; color: rgba(244, 238, 221, .7); }
.art-crumbs a { text-decoration: none; color: rgba(244, 238, 221, .85); }
.art-crumbs a:hover { color: var(--oil-2); }
.art-hero { background: var(--ink); color: var(--cream); padding: clamp(160px, 18vw, 220px) 0 clamp(120px, 14vw, 200px); }
.art-wrap { max-width: 860px; }
.art-title { margin: 0; font: 400 clamp(40px, 5.6vw, 76px)/1.02 var(--serif); letter-spacing: -.03em; text-wrap: balance; font-variation-settings: "opsz" 144; }
.art-meta { margin: 24px 0 0; font-size: 15px; color: rgba(244, 238, 221, .72); }
/* la copertina sale sopra il bordo della testata scura */
.art-cover { margin: calc(clamp(80px, 10vw, 150px) * -1) auto 0; max-width: 1120px; }
.art-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.art-body { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); }
.art-body p { margin: 0 0 1.2em; font-size: 18px; line-height: 1.7; max-width: 66ch; }
.art-body .art-intro { font: 400 clamp(22px, 2vw, 27px)/1.45 var(--serif); letter-spacing: -.005em; max-width: 34em; margin-bottom: 1.6em; }
.art-body h2 { margin: 2em 0 .6em; font: 400 clamp(28px, 2.8vw, 40px)/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.art-cta { margin-top: 64px; padding: clamp(28px, 4vw, 48px); border-radius: 10px; background: var(--leaf); color: var(--cream); }
.art-cta h2 { margin: 0 0 12px; }
.art-cta p { color: rgba(244, 238, 221, .9); }
.art-cta .ct-acts { margin-top: 8px; }
.art-related { background: var(--paper); padding: clamp(80px, 10vw, 140px) 0; }
.art-related .blog-list { margin-top: 40px; grid-template-columns: repeat(2, 1fr); }
.blog-index { background: var(--cream); padding: clamp(72px, 9vw, 120px) 0 clamp(96px, 12vw, 160px); }
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.blog-card { display: grid; align-content: start; gap: 10px; text-decoration: none; }
.blog-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 8px; transition: transform .8s var(--ease-out); }
.blog-card:hover img { transform: scale(1.03); }
.blog-tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6a5410; }
.blog-card h3 { margin: 0; font: 400 clamp(24px, 2vw, 30px)/1.15 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.blog-card:hover h3 { text-decoration: underline; text-decoration-color: var(--oil); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.blog-card p { margin: 0; color: var(--muted); font-size: 16px; }
.blog-date { font-size: 14px; color: var(--muted); }
/* in home, sotto le domande: i link agli articoli */
.reads { margin-top: 64px; max-width: 760px; }
.reads h3 { margin: 0 0 16px; font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); }
.reads ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.reads li a { display: block; padding: 12px 0; font-size: 18px; text-decoration: none; border-bottom: 1px solid rgba(20, 22, 13, .12); }
.reads li a:hover { color: #6a5410; }

/* ---------- Pagina 404 ---------- */
.nf { min-height: 100svh; display: grid; align-items: center; background: var(--ink); color: var(--cream); padding: 64px 0; }
.nf-logo img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 40px; }
.nf-title { margin: 0; max-width: 14ch; font: 400 clamp(44px, 7vw, 104px)/.95 var(--serif); letter-spacing: -.035em; }
.nf-sub { max-width: 32em; margin: 24px 0 0; font-size: clamp(18px, 1.5vw, 22px); color: rgba(244, 238, 221, .85); }

/* ---------- Dall'olio al vino: bottone verso Cantine Sollami (la scena è in js/viaggio.js) ---------- */
:root { --wine: #6b1424; }
.hd-wine {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: inset 0 0 0 1.5px rgba(244, 238, 221, .35); transition: box-shadow .3s;
}
.hd-wine svg { position: relative; width: 12px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd-wine span { position: relative; }
/* al passaggio il pulsante si riempie di vino, come "Ordina l'olio" si riempie d'olio */
.hd-wine::before { content: ""; position: absolute; inset: 0; background: var(--wine); translate: 0 101%; transition: translate .45s var(--ease-out); }
.hd-wine:hover::before { translate: 0 0; }
.hd-wine:hover { box-shadow: inset 0 0 0 1.5px var(--wine); }
.menu .menu-wine { font-size: clamp(28px, 8vw, 40px); color: var(--wine); margin-top: 12px; }
@media (max-width: 1180px) and (min-width: 981px) { .hd-wine span { display: none; } .hd-wine { padding: 0 14px; } }
@media (max-width: 980px) { .hd .hd-wine { display: none; } }

/* ---------- Banner cookie iubenda: i colori li mette js/cookie.js, qui forma e caratteri.
   L'ID ripetuto serve a superare le regole di iubenda, che usano anch'esse !important ---------- */
#iubenda-cs-banner .iubenda-cs-container { border-radius: 14px !important; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55) !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-content, #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-content * { font-family: var(--sans) !important; }
#iubenda-cs-banner#iubenda-cs-banner .iub-p { line-height: 1.55 !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-content a, #iubenda-cs-banner#iubenda-cs-banner .iubenda-vendor-list-link, #iubenda-cs-banner#iubenda-cs-banner .iubenda-advertising-preferences-link { color: var(--oil-2) !important; text-decoration: underline !important; text-underline-offset: 3px; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group button { border-radius: 999px !important; min-height: 44px !important; padding: 0 22px !important; font-weight: 600 !important; font-size: 15px !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-close-btn { opacity: .85 !important; font-size: 26px !important; border-radius: 999px !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-close-btn:hover { opacity: 1 !important; }
.iubenda-cs-preferences-link { cursor: pointer; }

/* ---------- Titoli che si riempiono d'olio ---------- */
@property --lvl { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --wx { syntax: "<length>"; inherits: true; initial-value: 0px; }
.oilfill {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='600' viewBox='0 0 240 600' preserveAspectRatio='none'%3E%3Cpath d='M0 300 Q60 282 120 300 T240 300 V600 H0z' fill='%23d4a62a'/%3E%3C/svg%3E");
  color: transparent; background: var(--wave) var(--wx) var(--lvl) / 240px 200% repeat-x, var(--ink);
  -webkit-background-clip: text; background-clip: text; animation: wave 3.2s linear infinite paused;
}
/* la firma ha parole animate: ogni parola porta il proprio olio */
.oilfill.dark { background: none; color: var(--cream); }
.oilfill.dark span {
  color: transparent; background: var(--wave) var(--wx) var(--lvl) / 240px 200% repeat-x, var(--cream);
  -webkit-background-clip: text; background-clip: text;
}
@keyframes wave { to { --wx: 240px; } }
/* l'onda gira solo quando il titolo è sullo schermo (classe messa da main.js / pagina.js) */
.oilfill.vivo { animation-play-state: running; }
/* fuori schermo la prima schermata non anima niente */
.hero.fuori .dr, .hero.fuori .badge-ring { animation-play-state: paused; }

/* ---------- Portatili con schermo basso ---------- */
@media (min-width: 981px) and (max-height: 860px) {
  .route-pin { padding-top: 84px; padding-bottom: 28px; }
  .route .h2 { font-size: clamp(40px, 8svh, 72px); }
  .route-line-wrap { margin: 14px var(--pad); }
  .stop-copy > p:last-of-type { font-size: 15px; }
  .stop h3 { font-size: clamp(26px, 4.4svh, 40px); }
}

/* ---------- Telefono e tablet ---------- */
@media (max-width: 980px) {
  .hd { grid-template-columns: 1fr auto; padding-top: 14px; padding-bottom: 14px; }
  .hd .hd-l, .hd-order { display: none; }
  .brand { order: -1; flex-direction: row; gap: 12px; text-align: left; justify-self: start; }
  .brand img { width: 42px; height: 42px; }
  .hd-r { gap: 12px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
    background: rgba(244, 238, 221, .14); color: inherit; font: 600 15px/1 var(--sans); position: relative; z-index: 51;
  }
  .menu-btn span { display: none; }
  .menu-open .hd { background: transparent; color: var(--ink); }
  .menu-open .menu-btn { background: var(--ink); color: var(--oil-2); }
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding-top: 110px; }
  .hero-side { grid-row: 1; justify-self: start; }
  .hero-title { grid-row: 2; }
  .landing-grid { grid-template-columns: 1fr; }
  .gauge { display: none; }
  .duo, .engine-grid, .aurora-grid, .trust-grid, .faq-grid, .studio-head { grid-template-columns: 1fr; }
  .duo-card:nth-child(2) { margin-top: 0; }
  .portrait { max-width: 420px; }
  .route-pin { padding: var(--gap) 0; min-height: 0; }
  .route-line-wrap { display: none; }
  .track { flex-direction: column; width: auto; gap: 72px; margin-top: 48px; }
  .stop { width: 100%; }
  .voices-row { grid-template-columns: 1fr; }
  .ft { grid-template-columns: 1fr 1fr; }
  .ct-quick, .ct-cards { grid-template-columns: 1fr 1fr; }
  .ct-write-grid, .ct-map-grid { grid-template-columns: 1fr; }
  .blog-list, .art-related .blog-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* il filtro che fonde le gocce è il più pesante per un telefono: qui restano gocce semplici */
  .drips { filter: none; }
  .hero-act .btn { flex: 1 1 100%; }
  .cue { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tins { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tin { padding: 20px 14px 18px; }
  .tin-p { font-size: 34px; }
  .profile div { grid-template-columns: 1fr; gap: 2px; }
  .badge { width: 120px; }
  .brand-t small { display: none; }
  .visit div { grid-template-columns: 1fr; gap: 2px; }
  .drop-logo { width: 190px; }
  .hd-r .menu-btn { min-height: 42px; }
  .ft { grid-template-columns: 1fr; }
  .ct-quick, .ct-cards, .ct-row { grid-template-columns: 1fr; }
  .ct-info div { grid-template-columns: 1fr; gap: 2px; }
  .ct-send .btn { flex: 1 1 100%; }
  .blog-list, .art-related .blog-list { grid-template-columns: 1fr; }
  .art-body p { font-size: 17px; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .loader, .cursor { display: none !important; }
  .statement .wd { color: var(--ink); }
  .hero-olives, .hero-pour, .drips, .cestone-hint { display: none; }
  .badge-ring { animation: none; }
  .oilfill { --lvl: 0%; animation: none; }
  .menu { clip-path: none; }
}

.drop-ring { z-index: 1; }
