/* ==========================================================================
   Landing page: logo grande al centro, occhiolino e spiga che si muove.
   I colori (variabili CSS) cambiano lentamente passando per le palette dei gusti.
   ========================================================================== */

.nowrap { white-space: nowrap; }

.home {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 2vh, 24px);
  padding: 4px var(--pad) clamp(24px, 5vh, 56px);
  text-align: center;
}

/* cerchi centrati sul logo (posizione aggiornata da JS) */
.home-rings { left: 50%; top: 42%; }
.home-rings .r1 { width: 190vmax; height: 190vmax; }
.home-rings .r2 { width: 128vmin; height: 128vmin; }
.home-rings .r3 { width: 96vmin;  height: 96vmin; }
.home-rings .r4 { width: 66vmin;  height: 66vmin; }

/* ===== Logo ===== */
.home-logo {
  position: relative; z-index: 2;
  height: min(60svh, 640px); aspect-ratio: 809 / 925;
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 40px;
  animation: float 6s ease-in-out infinite;
}
.home-logo:focus-visible { outline-offset: 10px; }
.home-logo-inner {
  position: absolute; inset: 0; display: block;
  transform: perspective(1200px) rotateX(calc(var(--my) * -6deg)) rotateY(calc(var(--mx) * 8deg));
  filter: drop-shadow(0 30px 34px rgba(0,0,0,.28)) drop-shadow(0 6px 10px rgba(0,0,0,.16));
}
.home-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }

/* entrata del logo al caricamento */
.home-logo-inner { animation: logoIn 1s cubic-bezier(.2,1.35,.35,1) both; }
@keyframes logoIn { from { opacity: 0; scale: .7; rotate: -6deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }

/* ===== Saluto del toro (al passaggio del mouse / al tocco) ===== */
.hl-spiga { transform-origin: 66.8% 22.3%; }          /* punto tra le labbra */
.hl-palpebra { clip-path: inset(0 0 100% 0); }        /* palpebra nascosta */
.saluta .hl-palpebra { animation: occhiolino .7s ease-in-out; }
.saluta .hl-spiga    { animation: spiga 1.1s ease-in-out; }
@keyframes occhiolino {
  0%, 100% { clip-path: inset(0 0 100% 0); }
  30%, 70% { clip-path: inset(0 0 0 0); }
}
@keyframes spiga {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(11deg); }
  40% { transform: rotate(-9deg); }
  60% { transform: rotate(7deg); }
  80% { transform: rotate(-4deg); }
}

/* ===== Patatine intorno ===== */
.home-chips { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.home-chips span {
  position: absolute; width: clamp(60px, 8vw, 120px);
  translate: calc(var(--mx) * var(--d) * -1px) calc(var(--my) * var(--d) * -1px);
  animation: chipIn .9s cubic-bezier(.2,1.4,.4,1) both;
}
.home-chips img { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 16px rgba(0,0,0,.22)); animation: chipfloat 4.5s ease-in-out infinite; }
@keyframes chipIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* ===== Testo ===== */
.home-text { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; }
.home-slogan {
  margin: 0; font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 64px); line-height: 1; letter-spacing: .01em; text-wrap: balance;
}
.home-sub { margin: 0; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-soft); }
.home-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.home-ctas .btn-cart { text-decoration: none; }
.home-btn-ghost {
  height: 54px; padding: 0 24px; border-radius: var(--radius);
  display: inline-flex; align-items: center; text-decoration: none; font-weight: 700;
  color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink);
  transition: background-color .25s, transform .2s;
}
.home-btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }

@media (max-width: 900px) {
  .home-logo { height: min(48svh, 460px); }
  .home-chips span { width: clamp(46px, 13vw, 80px); } /* su smartphone patatine più piccole, lungo i bordi */
  .home-ctas .btn-cart, .home-btn-ghost { height: 50px; }
}
@media (max-width: 420px) {
  .home-ctas { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .home-ctas .btn-cart { grid-column: 1 / -1; justify-content: space-between; }
  .home-btn-ghost { justify-content: center; padding: 0 12px; grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-logo, .home-logo-inner, .home-chips span, .home-chips img { animation: none !important; }
  .home-logo-inner { transform: none; }
  .saluta .hl-spiga { animation: none; }
}

/* ==========================================================================
   Home a scorrimento: sezioni sotto la landing
   ========================================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hs-sec { scroll-margin-top: 0; }

.home-scroll {
  position: relative; z-index: 2; margin-top: 4px;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink);
  animation: nudge 2.2s ease-in-out infinite;
}
.home-scroll svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.hs { position: relative; }
.hs-sec {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 92svh; padding: clamp(72px, 12vh, 130px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
/* cerchio decorativo dietro ogni sezione */
.hs-sec::before {
  content: ""; position: absolute; z-index: -1; right: -12vmax; top: 50%; translate: 0 -50%;
  width: 80vmax; height: 80vmax; border-radius: 50%;
  background: radial-gradient(closest-side, var(--ring4), var(--ring3) 45%, var(--ring2) 70%, transparent 71%);
  opacity: .9;
}
.hs-prod { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.hs-prod::before { right: auto; left: 50%; translate: -50% -50%; }
.hs-center { text-align: center; display: grid; justify-items: center; }

.hs-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.hs-h2 { margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 5.4vw, 88px); line-height: .95; }
.hs-p { margin: 18px 0 0; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; max-width: 50ch; color: var(--ink-soft); }
.hs-p strong { color: var(--ink); }
.hs-btn { margin-top: 30px; text-decoration: none; }

.hs-visual { display: grid; place-items: center; }
.hs-disc {
  width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--pill-bg); box-shadow: 0 40px 80px -40px rgba(0,0,0,.5), inset 0 0 0 12px var(--surface);
}
.hs-disc img { width: 72%; height: auto; filter: drop-shadow(0 12px 16px rgba(0,0,0,.2)); }

/* pacchetti */
.hs-packs { list-style: none; margin: 40px 0 0; padding: 0; width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 16px; }
.hs-packs a { display: grid; justify-items: center; gap: 12px; text-decoration: none; color: var(--ink); text-align: center; }
.hs-packs img { width: 100%; height: clamp(170px, 20vw, 260px); object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(0,0,0,.28)); transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
.hs-packs a:hover img, .hs-packs a:focus-visible img { transform: translateY(-12px) rotate(-4deg) scale(1.04); }
.hs-packs span { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); text-transform: uppercase; line-height: 1.05; }

/* certificato */
.hs-cert { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.hs-cert strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 3.4vw, 52px); line-height: 1; }
.hs-cert span { font-weight: 700; color: var(--ink-soft); }
.hs-cert-img { display: block; width: min(100%, 380px); border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); transform: rotate(3deg); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.hs-cert-img:hover { transform: rotate(0) scale(1.02); }
.hs-cert-img img { width: 100%; height: auto; display: block; }

/* marchio privato */
.hs-mp { position: relative; display: block; width: min(100%, 420px); aspect-ratio: 1.15; }
.hs-mp img { position: absolute; top: 10%; width: 40%; height: auto; filter: drop-shadow(0 20px 26px rgba(0,0,0,.45)); transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.hs-mp-l { left: 6%; transform: rotate(-12deg); }
.hs-mp-r { right: 6%; transform: rotate(12deg); }
.hs-mp-pouch { position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 820 / 1100; translate: -50% -50%; rotate: -3deg;
  display: grid; place-content: center; text-align: center; gap: 4px; border-radius: 12px 12px 18px 18px;
  background: linear-gradient(160deg, #fffdf8, #efe6d8); color: #2B1810; box-shadow: 0 30px 50px -20px rgba(0,0,0,.65);
  transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.hs-mp-pouch::before { content: ""; position: absolute; inset: 9%; border: 2px dashed rgba(43,24,16,.35); border-radius: 8px; }
.hs-mp-pouch strong { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 36px); line-height: .95; }
.hs-mp-pouch small { font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #E8432E; }
.hs-mp:hover .hs-mp-l { transform: rotate(-18deg) translateX(-10%); }
.hs-mp:hover .hs-mp-r { transform: rotate(18deg) translateX(10%); }
.hs-mp:hover .hs-mp-pouch { transform: scale(1.05); }

/* depliant */
.hs-dep { position: relative; display: block; width: min(100%, 420px); aspect-ratio: 1.15; }
.hs-dep img { position: absolute; top: 4%; left: 30%; width: 46%; height: auto; background: #fff; border-radius: 4px;
  box-shadow: 0 26px 50px -26px rgba(0,0,0,.55); transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.hs-dep-a { transform: rotate(9deg) translateX(34%); }
.hs-dep-b { transform: rotate(-9deg) translateX(-34%); }
.hs-dep-c { transform: rotate(0deg); }
.hs-dep:hover .hs-dep-a, .hs-dep:focus-visible .hs-dep-a { transform: rotate(16deg) translateX(58%); }
.hs-dep:hover .hs-dep-b, .hs-dep:focus-visible .hs-dep-b { transform: rotate(-16deg) translateX(-58%); }
.hs-dep:hover .hs-dep-c, .hs-dep:focus-visible .hs-dep-c { transform: translateY(-4%) scale(1.04); }

/* contatti */
.hs-contatti { display: grid; gap: 16px; }
.hs-card { background: var(--pill-bg); color: var(--pill-ink); border-radius: 28px; padding: 26px; box-shadow: 0 24px 50px -30px rgba(0,0,0,.45); }
.hs-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6a5d56; }
.hs-card address { font-style: normal; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; text-transform: uppercase; }
.hs-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--pill-ink); }
.hs-tel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hs-tel a { text-decoration: none; transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.hs-tel a:hover { transform: translateY(-4px); }
.hs-tel strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 1.9vw, 30px); white-space: nowrap; }

.hs-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 28px var(--pad) 40px;
  border-top: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); font-size: 14px; }
.hs-footer p { margin: 0; flex: 1; }
.hs-footer a { color: var(--ink); font-weight: 700; }

/* comparsa allo scorrimento */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hs-sec { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hs-sec::before { right: -40vmax; }
  .hs-visual { order: -1; }
  .hs-disc { width: min(70vw, 300px); }
  .hs-cert-img { width: min(70vw, 280px); }
  .hs-dep { width: min(80vw, 340px); }
  .hs-mp { width: min(80vw, 340px); }
  .hs-packs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 10px; }
  .hs-packs::-webkit-scrollbar { display: none; }
  .hs-packs li { scroll-snap-align: center; }
}
@media (max-width: 520px) {
  .hs-tel { grid-template-columns: 1fr; }
  .hs-btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .home-scroll { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===== "…anche no" (stile del sito: kicker + titolo + schede) ===== */
.hs-no { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.hs-no::before { right: auto; left: 50%; translate: -50% -50%; }
.hs-no-list { list-style: none; margin: clamp(32px, 6vh, 56px) 0 0; padding: 0; width: 100%; max-width: 1200px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.hs-no-card { background: var(--pill-bg); color: var(--pill-ink); border-radius: 28px; padding: 24px 20px;
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.45); display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center;
  transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.hs-no-card:hover { transform: translateY(-6px); }
.hs-no-ico { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); box-shadow: 0 10px 20px -10px rgba(0,0,0,.45); transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.hs-no-card:hover .hs-no-ico { transform: rotate(-10deg) scale(1.06); }
.hs-no-ico svg { width: 80px; height: 80px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hs-no-ico .x-bg { stroke: var(--bg); stroke-width: 9; } /* stacco tra icona e barra */
.hs-no-ico .x { stroke-width: 3.6; }
.hs-no-card h3 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 1.9vw, 28px); text-transform: uppercase; line-height: 1.05; }
.hs-no-card h3 small { display: block; font-size: .6em; letter-spacing: .1em; color: #8A4E2D; }
.hs-no-card p { margin: 0; font-size: 14px; line-height: 1.45; color: #4b3f39; }
@media (max-width: 620px) { .hs-no-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hs-no-card:last-child { grid-column: 1 / -1; } }
#marchio-privato .hs-h2 { line-height: 1.18; text-wrap: balance; }
