/* ==========================================================================
   Apicoltura Carta – stile del sito
   Palette e caratteri ripresi dalla brochure (brochure/index.html).
   ========================================================================== */

:root {
  /* Palette di marca: oro del logo + antracite + crema */
  --night: #1d1914;
  --night-2: #2a241c;
  --ink: #221d17;
  --text: #3d362e;
  --muted: #7a6f62;
  --gold: #e8b23d;
  --gold-soft: #f3cf73;
  --gold-deep: #a7741a;
  --cream: #fbf6ec;
  --sand: #f3e9d6;
  --line: #e5d8bf;
  --on-dark: #f4ead8;
  --on-dark-soft: #cfc2ab;

  /* Un colore per varietà, preso dalle capsule dei vasetti */
  --acacia: #d9a520;     --acacia-tint: #fbefcc;
  --tiglio: #5a6772;     --tiglio-tint: #e7ebee;
  --castagno: #b4561f;   --castagno-tint: #f5e1d2;
  --millefiori: #a0802c; --millefiori-tint: #f1e7cf;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 18px;
  --shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(80, 60, 20, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;

  /* Nido d'ape decorativo (stesso motivo della brochure) */
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 2 L54 17 L54 47 L28 62 L2 47 L2 17 Z M28 62 L28 97 M0 80 L28 97 L56 80' fill='none' stroke='%23e8b23d' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* Transizione morbida tra le pagine (browser recenti) */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html:has(.pills) { scroll-padding-top: calc(var(--header-h) + 80px); } /* spazio per la barra dei mieli */
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.1; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 36px; height: 1.5px; background: currentColor; }
.kicker.center { justify-content: center; }
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; color: var(--text); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Pulsanti ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(232, 178, 61, .65); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--on-dark); border-color: rgba(244, 234, 216, .55); }
.btn--ghost:hover { --bg: var(--on-dark); --fg: var(--ink); box-shadow: none; }
.btn--dark { --bg: var(--night); --fg: var(--on-dark); }
.btn--dark:hover { box-shadow: 0 12px 24px -10px rgba(29, 25, 20, .6); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btns { justify-content: center; }

/* ==========================================================================
   Intestazione
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 246, 236, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; transition: width .4s var(--ease), transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1; }
.brand small { display: block; font: 600 .62rem/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .96rem; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 11px 22px; margin-left: 8px; }
.nav .btn::after { display: none; }

/* Sulla home l'intestazione parte trasparente sopra la foto */
.home .site-header:not(.is-scrolled) { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.is-scrolled) .brand,
.home .site-header:not(.is-scrolled) .nav a:not(.btn) { color: var(--on-dark); }
.home .site-header:not(.is-scrolled) .brand small { color: var(--gold); }
.home .site-header:not(.is-scrolled) .menu-toggle span { background: var(--on-dark); }
.site-header.is-scrolled { --header-h: 68px; }
.site-header.is-scrolled .brand img { width: 46px; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 11px; border-radius: 12px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle span + span { margin-top: 6px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1040px) { /* menu a tendina: con 6 voci la barra non ci sta sotto i 1040 px */
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 8px;
    background: var(--night); padding: 80px 24px;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a { color: var(--on-dark) !important; font-family: var(--serif); font-size: 2rem; transform: translateY(14px); transition: transform .5s var(--ease); }
  .nav a::after { bottom: 2px; }
  .nav .btn { margin: 18px 0 0; font-family: var(--sans); font-size: 1rem; color: var(--ink) !important; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* il filtro sfocato dell'intestazione confinerebbe il menu a schermo intero dentro la barra */
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--night); }
  .menu-open .site-header .brand { visibility: hidden; }
  .menu-open .nav a { transform: none; }
  .menu-open .menu-toggle span { background: var(--on-dark) !important; }
  .menu-open { overflow: hidden; }
}

/* ==========================================================================
   Hero della home
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; align-items: center;
  color: var(--on-dark); background: var(--night);
  padding: calc(var(--header-h) + 40px) 0 0;
}
.hero__bg {
  position: absolute; inset: -4%; z-index: -2;
  background: url("../img/arnie-tramonto.jpg") center 62% / cover no-repeat;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(232, 178, 61, .38), transparent 70%),
    linear-gradient(180deg, rgba(29, 25, 20, .82) 0%, rgba(29, 25, 20, .45) 45%, rgba(29, 25, 20, .92) 100%);
}
.hero__comb { position: absolute; z-index: -1; width: 520px; height: 560px; background: var(--honeycomb) 0 0 / 56px auto; opacity: .14; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 15%, transparent 70%); mask-image: radial-gradient(circle at 70% 30%, #000 15%, transparent 70%); }
.hero__comb--a { top: -80px; right: -120px; }
.hero__comb--b { bottom: 120px; left: -200px; transform: rotate(12deg); opacity: .09; }
.hero__inner { text-align: center; }
.hero__eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.hero h1 { color: #f7eedf; margin-bottom: 18px; }
.hero h1 em { color: var(--gold); }
.hero__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--on-dark-soft); margin-bottom: 34px; }

/* Lo "scaffale" con i quattro vasetti, come in copertina della brochure */
.shelf { position: relative; margin: clamp(40px, 7vw, 70px) auto 0; max-width: 820px; padding-bottom: 96px; }
.shelf::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 94px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.shelf__jars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2.5vw, 28px); align-items: end; }
.jar { margin: 0; text-align: center; text-decoration: none; color: inherit; }
.jar img {
  width: min(100%, 170px); margin: 0 auto; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .55));
  animation: float 6s ease-in-out infinite; animation-delay: var(--d, 0s);
  transition: transform .5s var(--ease), filter .5s;
}
.jar:hover img { transform: translateY(-10px) rotate(-3deg) scale(1.04); filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(232, 178, 61, .35)); }
.jar figcaption { margin-top: 26px; font-size: .75rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #efe3cc; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(244, 234, 216, .5); border-radius: 20px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scrollhint 2s ease-in-out infinite; }

@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -2%); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Testata delle pagine interne ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px);
  background: var(--night); color: var(--on-dark);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--honeycomb) 0 0 / 56px auto; opacity: .1;
  -webkit-mask-image: radial-gradient(ellipse at 85% 20%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 85% 20%, #000 10%, transparent 65%); }
.page-hero::after { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(232, 178, 61, .28), transparent); }
.page-hero h1 { color: #f7eedf; }
.page-hero h1 em { color: var(--gold); }
.page-hero .kicker { color: var(--gold); }
.page-hero .lead { color: var(--on-dark-soft); }
.page-hero--photo .page-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
/* sfumatura: scura a sinistra dove c'è il testo, la foto si vede bene a destra */
.page-hero--photo .page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 25, 20, .95) 0%, rgba(29, 25, 20, .8) 38%, rgba(29, 25, 20, .3) 75%, rgba(29, 25, 20, .15) 100%); }
/* su telefono: una fascia di foto libera sopra il testo, poi la sfumatura scura sotto il testo */
@media (max-width: 860px) {
  .page-hero--photo { padding-top: calc(var(--header-h) + 210px); }
  .page-hero--photo .page-hero__bg::after { background: linear-gradient(180deg, rgba(29, 25, 20, .1) 0%, rgba(29, 25, 20, .15) 30%, rgba(29, 25, 20, .85) 50%, rgba(29, 25, 20, .95) 100%); }
  /* pagina Mieli: sul telefono la foto intera (meno larga) fa stare tutta l'ape nella fascia in alto */
  .page-hero__bg--ape { background-image: url("../img/galleria/ape-fiori-gialli.jpg") !important; background-position: 62% 0 !important; }
  /* pagina Idee regalo: sul telefono un ritaglio sui vasetti, a tutta larghezza nella fascia in alto */
  .page-hero--photo .page-hero__bg--vasetti { background-image: linear-gradient(180deg, transparent 55%, var(--night)), url("../img/galleria/bomboniere-testata.jpg") !important; background-size: 100% 62.5vw; background-position: center var(--header-h); background-repeat: no-repeat; background-color: var(--night); }
}

/* ==========================================================================
   Sezioni
   ========================================================================== */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--white { background: #fff; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--night); color: var(--on-dark); }
.section--dark h2 { color: #f7eedf; }
.section--dark h2 em { color: var(--gold); }
.section--dark .kicker { color: var(--gold); }
.section__head { margin-bottom: clamp(36px, 5vw, 56px); }
.section__head.center .kicker { justify-content: center; }

/* Fascia scorrevole con i punti di forza */
.ticker { background: var(--gold); color: var(--ink); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(0, 0, 0, .06); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
.ticker__item i { width: 14px; height: 14px; background: var(--night); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); flex: none; }
.ticker__item em { font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Schede dei vasetti in home */
.jar-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.jar-card {
  --c: var(--gold); --t: var(--sand);
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px 22px 28px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: radial-gradient(circle at 50% 30%, #fff 0, var(--t) 72%);
  overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.jar-card::before { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--c); transform: scaleX(0); transition: transform .5s var(--ease); }
.jar-card:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -24px rgba(80, 60, 20, .45); color: var(--text); }
.jar-card:hover::before { transform: scaleX(1); }
.jar-card img { height: 210px; width: auto; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .2)); transition: transform .6s var(--ease); }
.jar-card:hover img { transform: translateY(-6px) rotate(-4deg) scale(1.05); }
.jar-card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 22px 0 4px; }
.jar-card .tag { font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.jar-card .more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.jar-card .more span { display: inline-block; transition: transform .35s var(--ease); }
.jar-card:hover .more span { transform: translateX(5px); }
.acacia { --c: var(--acacia); --t: var(--acacia-tint); }
.tiglio { --c: var(--tiglio); --t: var(--tiglio-tint); }
.castagno { --c: var(--castagno); --t: var(--castagno-tint); }
.millefiori { --c: var(--millefiori); --t: var(--millefiori-tint); }

/* Citazione grande su oro */
.quote-band { background: var(--gold); color: var(--ink); text-align: center; padding: clamp(72px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.quote-band::before { content: ""; position: absolute; inset: 0; background: var(--honeycomb) 0 0 / 70px auto; opacity: .22; filter: brightness(.35);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 90%); mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 90%); }
.quote-band blockquote { position: relative; margin: 0 auto; max-width: 900px; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.3; }
.quote-band blockquote::before { content: "“"; display: block; font-size: 5em; line-height: .5; height: .45em; font-style: normal; color: var(--night); opacity: .85; }
.quote-band blockquote strong { font-weight: 600; }
.quote-band cite { display: block; margin-top: 26px; font: 700 .78rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; font-style: normal; }

/* Metodo: tre passi con esagoni */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.hex {
  width: 58px; height: 52px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--gold); color: var(--ink); font: 700 1.15rem/1 var(--serif);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  transition: transform .6s var(--ease);
}
.step:hover .hex { transform: rotate(60deg); }
.step:hover .hex span { display: inline-block; transform: rotate(-60deg); }
.hex span { transition: transform .6s var(--ease); }
.step h3 { font-size: 1.15rem; letter-spacing: .02em; }
.step p { font-size: .97rem; margin: 0; }

/* Foto + testo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) + 6px); }
.split__media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: calc(var(--radius) + 6px); z-index: -1; transition: inset .6s var(--ease); }
.split__media:hover::before { inset: 12px -12px -12px 12px; }
.split__media .badge {
  position: absolute; left: -26px; bottom: 36px; width: 128px; height: 112px; display: grid; place-items: center; text-align: center;
  background: var(--night); color: var(--gold); font: 600 .8rem/1.25 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  animation: float 7s ease-in-out infinite;
}
.split__media .badge b { display: block; font: italic 600 1.35rem/1 var(--serif); text-transform: none; letter-spacing: 0; color: #f7eedf; margin-bottom: 4px; }

/* Chiusura scura con invito al contatto */
.cta { text-align: center; }
.cta img { width: 110px; margin: 0 auto 26px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.cta p { color: var(--on-dark-soft); font-size: 1.12rem; max-width: 52ch; margin: 0 auto 32px; }
.cta .honey { position: absolute; inset: 0; pointer-events: none; background: var(--honeycomb) 0 0 / 56px auto; opacity: .06; }

/* ==========================================================================
   Pagina "I nostri mieli"
   ========================================================================== */
.pills { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; background: rgba(251, 246, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: top .4s var(--ease); }
.pills .wrap { display: flex; gap: 10px; overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.pills .wrap::-webkit-scrollbar { display: none; }
.pills a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .3s, border-color .3s, color .3s; }
.pills a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pills a:hover, .pills a.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.pills a.is-active i, .pills a:hover i { background: #fff; }

.product {
  display: grid; grid-template-columns: minmax(240px, 5fr) 7fr; align-items: stretch;
  background: #fff; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow);
}
.product + .product { margin-top: 40px; }
/* nelle schede pari la foto va a destra: si invertono anche le larghezze delle colonne */
.product:nth-child(even) { grid-template-columns: 7fr minmax(240px, 5fr); }
.product:nth-child(even) .product__shot { order: 2; border-right: 0; border-left: 4px solid var(--c); }
.product__shot { position: relative; display: grid; place-items: center; padding: 48px 24px; background: radial-gradient(circle at 50% 55%, #fff 0, var(--t) 72%); border-right: 4px solid var(--c); overflow: hidden; }
.product__shot::before { content: ""; position: absolute; inset: 0; background: var(--honeycomb) 0 0 / 46px auto; opacity: .18; filter: saturate(0); }
.product__shot img { position: relative; height: clamp(240px, 30vw, 320px); width: auto; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .22)); transition: transform .7s var(--ease); }
.product:hover .product__shot img { transform: rotate(-4deg) scale(1.04); }
.product__body { padding: clamp(30px, 4vw, 52px); }
.product__tag { font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.product h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 8px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font-size: .84rem; padding: 6px 14px; border-radius: 999px; background: var(--t); color: var(--ink); }
.chip b { font-weight: 600; }
.product__desc { font-size: 1.04rem; }
.pair { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0 0; padding-top: 20px; border-top: 1px dashed var(--line); font-size: .95rem; }
.pair svg { flex: none; width: 22px; height: 22px; color: var(--c); margin-top: 2px; }
.pair b { color: var(--ink); }
.meter { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: background .4s var(--ease), transform .4s var(--ease); }
.is-visible .dots i.on { background: var(--c); transform: scale(1.1); }
.dots i:nth-child(2) { transition-delay: .1s; } .dots i:nth-child(3) { transition-delay: .2s; }
.dots i:nth-child(4) { transition-delay: .3s; } .dots i:nth-child(5) { transition-delay: .4s; }

/* Calendario delle raccolte */
.calendar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.cal-row { display: grid; grid-template-columns: 130px repeat(5, 1fr); align-items: center; }
.cal-row + .cal-row { border-top: 1px solid var(--line); }
.cal-row > * { padding: 14px 6px; }
.cal-head { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cal-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.cal-bar { grid-row: 1; height: 16px; border-radius: 999px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .2s; margin-inline: 4px; }
.is-visible .cal-bar { transform: scaleX(1); }
.cal-note { margin: 16px 0 0; font-size: .85rem; color: var(--muted); }

/* Tabella profili */
.profiles { display: grid; gap: 12px; }
.profile { display: grid; grid-template-columns: 220px 150px 1fr; gap: 20px; align-items: center; background: #fff; border-radius: 14px; padding: 20px 26px; border-left: 5px solid var(--c); box-shadow: 0 1px 0 var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.profile:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.profile .v { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.profile .p { font-size: .85rem; color: var(--muted); }
.profile p { margin: 0; font-size: .97rem; }

.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.tip { position: relative; overflow: hidden; background: var(--night); color: #e9dfcd; border-radius: var(--radius); padding: 40px 36px; }
.tip::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: var(--honeycomb) 0 0 / 40px auto; opacity: .12; }
.tip h3 { color: var(--gold); display: flex; align-items: center; gap: 12px; font-size: 1.15rem; }
.tip svg { width: 26px; height: 26px; flex: none; }
.tip p { margin: 0; }
.small { font-size: .85rem; color: var(--muted); }

/* ==========================================================================
   Pagina "La nostra storia"
   ========================================================================== */
.journey { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.journey::before { content: ""; position: absolute; left: 8%; right: 8%; top: 29px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
.journey__step { position: relative; text-align: center; padding: 0 10px; }
.journey__step .hex { margin: 0 auto 22px; position: relative; }
.journey__step h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.journey__step p { font-size: .98rem; color: var(--text); }

.photo-band { position: relative; min-height: 70vh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; color: #f7eedf; padding: 80px 0; }
.photo-band__bg { position: absolute; inset: -12% 0; z-index: -2; background: url("../img/arnie-tramonto.jpg") center / cover no-repeat; will-change: transform; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29, 25, 20, .55), rgba(29, 25, 20, .35) 50%, rgba(29, 25, 20, .75)); }
.photo-band p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.25; max-width: 22ch; margin: 0 auto; }

/* ==========================================================================
   Pagina "Contatti"
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card {
  display: flex; align-items: center; gap: 20px; padding: 28px 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); color: var(--text); }
.contact-card .ico { flex: none; width: 60px; height: 54px; display: grid; place-items: center; background: var(--gold); color: var(--ink); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); transition: transform .6s var(--ease); }
.contact-card:hover .ico { transform: rotate(-12deg) scale(1.06); }
.contact-card svg { width: 24px; height: 24px; }
.contact-card small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { display: block; font-size: 1.12rem; color: var(--ink); font-weight: 600; word-break: break-word; }
.gift { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 40px; padding: 36px 40px; border-radius: var(--radius); background: var(--night); color: var(--on-dark-soft); position: relative; overflow: hidden; }
.gift::before { content: ""; position: absolute; inset: 0; background: var(--honeycomb) 0 0 / 50px auto; opacity: .07; }
.gift > * { position: relative; }
.gift h3 { color: #f7eedf; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 6px; }
.gift p { margin: 0; }
.gift .hex { margin: 0; width: 72px; height: 64px; }
.gift .hex svg { width: 30px; height: 30px; }

/* ==========================================================================
   Galleria "Dall'apiario" + visore a schermo intero
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 210px); grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--sand); grid-row: span 2; cursor: zoom-in; }
.g-item--big { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(29, 25, 20, .75)); opacity: 0; transition: opacity .5s; }
.g-item figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #f7eedf; font-size: .9rem; font-weight: 500; line-height: 1.35; transform: translateY(10px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.07); }
.g-item:hover::after, .g-item:focus-visible::after, .g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; }
.gallery-foot p { margin: 0; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 70px; background: rgba(21, 18, 14, .94); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lightbox img { max-width: min(100%, 1100px); max-height: calc(100vh - 160px); width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { color: var(--on-dark-soft); font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(244, 234, 216, .25); background: rgba(29, 25, 20, .6); color: var(--on-dark); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .3s, color .3s; }
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 28px; left: 24px; color: var(--on-dark-soft); font-size: .85rem; letter-spacing: .14em; }

/* Pagina Storia: il viaggio del miele (3 tappe con foto) */
.honey-path { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.path-step { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.path-step:hover { transform: translateY(-6px); }
.path-step__img { aspect-ratio: 4 / 3; overflow: hidden; }
.path-step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.path-step:hover .path-step__img img { transform: scale(1.06); }
.path-step figcaption { position: relative; padding: 40px 28px 30px; }
.path-step .hex { position: absolute; top: -28px; left: 26px; margin: 0; box-shadow: 0 0 0 4px #fff; }
.path-step h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.path-step p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .honey-path { grid-template-columns: 1fr; } }

/* Pagina Idee regalo */
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 20px; background: var(--gold);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.jar-card .hint { margin: 12px 0 0; font-size: .92rem; line-height: 1.5; color: var(--text); }


/* Idee regalo con foto (pagina Contatti) */
.gift-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.gift-photos img { width: 100%; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.gift-photos img:first-child { aspect-ratio: 4 / 5; }
.gift-photos img:last-child { aspect-ratio: 4 / 3; margin-bottom: 40px; }

/* ==========================================================================
   Piè di pagina
   ========================================================================== */
.site-footer { background: #15120e; color: var(--on-dark-soft); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(244, 234, 216, .1); }
.site-footer .brand { color: #f7eedf; margin-bottom: 16px; }
.site-footer .brand small { color: var(--gold); }
.site-footer h4 { margin: 0 0 14px; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(244, 234, 216, .2); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .82rem; color: #8f8472; }
.site-footer .credit { display: inline-flex; align-items: center; gap: 6px; color: #8f8472; transition: color .3s; }
.credit img { width: 18px; height: 18px; filter: grayscale(1) opacity(.65); transition: filter .3s; }
.credit strong { font-weight: 600; letter-spacing: .04em; }
.site-footer .credit:hover { color: var(--gold); }
.credit:hover img { filter: none; }

/* ==========================================================================
   Animazioni di comparsa allo scorrimento
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Comparsa iniziale dell'hero */
.hero__inner > *, .shelf .jar { animation: rise 1.1s var(--ease) both; }
.hero__inner > :nth-child(1) { animation-delay: .1s; }
.hero__inner > :nth-child(2) { animation-delay: .22s; }
.hero__inner > :nth-child(3) { animation-delay: .34s; }
.hero__inner > :nth-child(4) { animation-delay: .46s; }
.shelf .jar:nth-child(1) { animation-delay: .6s; }
.shelf .jar:nth-child(2) { animation-delay: .72s; }
.shelf .jar:nth-child(3) { animation-delay: .84s; }
.shelf .jar:nth-child(4) { animation-delay: .96s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Schermi piccoli
   ========================================================================== */
@media (max-width: 1000px) {
  .jar-cards { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 1fr auto; }
  .profile p { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand img { width: 50px; }
  .steps, .tips, .journey, .contact-grid { grid-template-columns: 1fr; }
  .journey::before { left: 29px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 18px); }
  .journey__step { display: grid; grid-template-columns: 58px 1fr; gap: 0 20px; text-align: left; padding: 0; }
  .journey__step .hex { margin: 0; grid-row: span 2; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { margin: 0 22px 22px 0; }
  .split__media .badge { left: auto; right: -12px; bottom: -12px; width: 110px; height: 96px; }
  .product, .product:nth-child(even) { grid-template-columns: 1fr; }
  .product__shot, .product:nth-child(even) .product__shot { order: 0; border: 0; border-bottom: 4px solid var(--c); padding: 34px 24px; }
  .product__shot img { height: 230px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .gift { grid-template-columns: 1fr; text-align: left; padding: 30px 26px; }
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-rows: 150px; }
  .g-item figcaption { opacity: 1; transform: none; font-size: .8rem; }
  .g-item::after { opacity: 1; }
  .lightbox { padding: 64px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .shelf__jars { gap: 6px; }
  .jar figcaption { font-size: .6rem; letter-spacing: .14em; margin-top: 18px; }
  .jar-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .jar-card { padding: 24px 12px 20px; }
  .jar-card img { height: 150px; }
  .jar-card h3 { font-size: 1.3rem; margin-top: 16px; }
  .jar-card .tag { font-size: .66rem; letter-spacing: .1em; }
  .cal-row { grid-template-columns: 92px repeat(5, 1fr); }
  .cal-row > * { padding: 12px 2px; }
  .cal-head { font-size: .62rem; letter-spacing: .06em; }
  .cal-name { font-size: 1rem; }
  .profile { padding: 18px 20px; }
  .contact-card { padding: 22px; }
  .btn { padding: 14px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Rispetto per chi ha disattivato le animazioni nel sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .cal-bar { transform: none; }
}
