/* =========================================================
   Artigiangel — Landing page (bozza proposta Clion)
   Base stilistica: tema "Sweetness" (Ingrid Kuhn) reinterpretato
   in chiave più pulita: crema, corallo del logo, pistacchio, cacao.
   ========================================================= */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --panna: #FBF5EC;
  --panna-2: #F4E8D8;
  --rosa: #F8E6E1;
  --bianco: #FFFDF9;
  --corallo: #C64B3A;        /* CTA: contrasto AA con testo bianco */
  --corallo-chiaro: #EE7C69; /* decorativo (bordo logo) */
  --pistacchio: #A9C79B;
  --menta: #2F7A68;          /* linea verde del logo */
  --menta-chiaro: #DCEBDD;
  --nocciola: #C99A66;
  --cacao: #3B2621;
  --cacao-2: #6A4F47;
  --bordo: rgba(59, 38, 33, .12);

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Karla", system-ui, sans-serif;
  --f-script: "Cherry Swash", Georgia, serif;

  --container: 1220px;
  --pad-x: clamp(1.25rem, 5vw, 3.5rem);
  --sec-y: clamp(4.5rem, 10vw, 8rem);
  --header-h: 84px;

  --r-s: 14px;
  --r-m: 24px;
  --r-leaf: 28px 110px;      /* angoli "a foglia" del tema */
  --shadow: 0 18px 40px -22px rgba(59, 38, 33, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
/* regole di lenis.css 1.1.18 (prima caricato da unpkg) */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* niente scorrimento orizzontale su mobile (i badge sporgono dal contenitore) */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--panna);
  color: var(--cacao);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--cacao); color: #fff; padding: .6rem 1rem; border-radius: 30px; }
.skip-link:focus { top: 1rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
em.soft { font-style: italic; color: var(--corallo); font-variation-settings: "SOFT" 100, "WONK" 1; }

.eyelid {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-script);
  font-size: 1.15rem;
  color: var(--menta);
  margin-bottom: .9rem;
}
.eyelid::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: currentColor;
}
.lead { font-size: 1.15rem; color: var(--cacao-2); max-width: 46ch; }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { position: relative; padding-block: var(--sec-y); }
.section-head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head .eyelid { justify-content: center; }
.section-head .lead { margin-inline: auto; }
.center { text-align: center; }

/* Bordo "crema che cola" tra sezioni (variante del curveUp del tema) */
.drip {
  position: absolute; left: 0; right: 0; bottom: 1px;
  height: clamp(36px, 5vw, 80px);
  transform: translateY(100%);
  color: var(--panna);
  pointer-events: none; z-index: 2;
}
.drip svg { width: 100%; height: 100%; display: block; }
.drip path { fill: currentColor; }

/* ===== BUTTONS ===== */
.btn {
  --btn-bg: var(--corallo); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.7rem;
  border: 2px solid var(--btn-bg); border-radius: 40px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn::after { /* riempimento "a mestolo" dal basso */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -150%; height: 140%;
  background: var(--cacao); border-radius: 50% 50% 0 0;
  transition: bottom .45s var(--ease); z-index: -1;
}
.btn:hover, .btn:focus-visible { border-color: var(--cacao); transform: translateY(-2px); }
.btn:hover::after, .btn:focus-visible::after { bottom: -10%; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--cacao); border-color: var(--cacao); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; }
.btn--light { --btn-bg: var(--bianco); --btn-fg: var(--cacao); }
.btn--light:hover, .btn--light:focus-visible { color: #fff; }
.btn--sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--menta); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--corallo); }
.link-arrow svg { width: 1em; height: 1em; }

/* ===== HEADER ===== */
/* Barra a tutta larghezza arrotondata in basso, logo al centro in una "gobba"
   che scende sotto la barra, voci di menu divise ai lati (come il tema Sweetness). */
.site-header {
  --bar-h: var(--header-h);
  --logo: 130px;
  --bump: 230px;
  position: fixed; inset: 0 0 auto 0; z-index: 100;
}
.site-header.is-scrolled { --bar-h: 70px; --logo: 88px; --bump: 124px; }
.header-bar {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: var(--bar-h); align-items: center;
  height: var(--bar-h);
  padding-inline: clamp(1rem, 4vw, 3rem);
  background: var(--bianco);
  border-radius: 0 0 100px 100px;
  box-shadow: 0 4px 0 rgba(59, 38, 33, .07);
  transition: height .35s var(--ease), box-shadow .35s;
}
.site-header.is-scrolled .header-bar { box-shadow: 0 4px 0 rgba(59, 38, 33, .07), 0 16px 30px -22px rgba(59, 38, 33, .5); }
.header-side { display: flex; align-items: center; gap: clamp(.4rem, 1vw, .9rem); min-width: 0; }
.header-left { justify-content: flex-end; padding-right: clamp(.75rem, 2.5vw, 2.5rem); }
.header-right { justify-content: flex-start; padding-left: clamp(.75rem, 2.5vw, 2.5rem); }

.brand {
  position: relative; z-index: 1;
  align-self: start;
  display: flex; align-items: center; justify-content: center;
  width: var(--bump); height: calc(var(--bar-h) + var(--bump) * .3);
  transition: width .35s var(--ease), height .35s var(--ease);
}
.brand::before { /* gobba circolare sotto la barra */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--bump);
  border-radius: 50%; background: var(--bianco);
  box-shadow: 0 4px 0 rgba(59, 38, 33, .07);
  z-index: -1; transition: height .35s var(--ease);
}
.brand img {
  width: var(--logo); height: var(--logo); margin-top: 4px;
  transition: width .35s var(--ease), height .35s var(--ease), transform .5s var(--ease);
}
.brand:hover img { transform: rotate(-6deg) scale(1.04); }

.nav-desk ul { display: flex; align-items: center; gap: clamp(.1rem, 1vw, .9rem); list-style: none; margin: 0; padding: 0; }
.nav-desk a, .mobile-menu .nav-link {
  position: relative; display: block; padding: .45rem .65rem;
  font-family: var(--f-script); font-size: 1.14rem; letter-spacing: .01em;
  color: var(--cacao-2); text-decoration: none; white-space: nowrap;
  transition: color .25s;
}
.nav-desk a:not(.nav-social)::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--corallo); transform: scale(0); transition: transform .3s var(--ease);
}
.nav-desk a:hover, .nav-desk a.is-active, .mobile-menu .nav-link:hover, .mobile-menu .nav-link.is-active { color: var(--corallo); }
.nav-desk a:hover::after, .nav-desk a.is-active::after { transform: scale(1); }
.nav-desk a.nav-social { padding: 0; display: inline-flex; }
.nav-social { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; color: var(--cacao); border: 1.5px solid var(--bordo); transition: background .25s, color .25s, border-color .25s; }
.nav-social:hover, .nav-desk a.nav-social:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.nav-social svg { width: 18px; height: 18px; }
.header-right .btn { margin-left: clamp(.25rem, 1vw, .75rem); }
.lbl-short { display: none; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--cacao); color: #fff; cursor: pointer; align-items: center; justify-content: center; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; }

/* ===== HERO SLIDER ===== */
/* Come nel tema Sweetness: slide a tutta larghezza con zoom lento (Ken Burns),
   testo centrato in un riquadro con angoli 20px/100px e curva SVG sul bordo inferiore. */
.hero {
  position: relative;
  height: clamp(620px, 100svh, 920px);
  background: var(--cacao);
  color: #fff;
  overflow: hidden;
}
.hero-slider, .hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 0s 1.1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 8s linear; }
.hero-slide.is-active .hero-bg img { transform: scale(1); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 55%, rgba(59, 38, 33, .38), transparent 75%),
    linear-gradient(180deg, rgba(59, 38, 33, .45) 0%, rgba(59, 38, 33, .12) 30%, rgba(59, 38, 33, .18) 65%, rgba(59, 38, 33, .55) 100%);
}

.hero-copy {
  position: relative; z-index: 2; width: 100%; max-width: 880px;
  padding: calc(var(--header-h) + 50px) var(--pad-x) clamp(110px, 12vw, 150px);
}
.hero-card {
  text-align: center;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.4rem, 5vw, 4rem);
 /* border-radius: 20px 100px;
  background: rgba(59, 38, 33, .34);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);*/
}
.hero-card > * { transform: translateY(26px); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.hero-slide.is-active .hero-card > * { transform: none; opacity: 1; }
.hero-slide.is-active .hero-card > :nth-child(1) { transition-delay: .25s; }
.hero-slide.is-active .hero-card > :nth-child(2) { transition-delay: .35s; }
.hero-slide.is-active .hero-card > :nth-child(3) { transition-delay: .45s; }
.hero-slide.is-active .hero-card > :nth-child(4) { transition-delay: .55s; }
.hero-card .eyelid { color: #FFE2D6; justify-content: center; }
.hero-card h1, .hero-card .h1-like { color: #fff; font-size: clamp(2.4rem, 5.8vw, 4.8rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-card em.soft { color: #FFB8A8; }
.hero-card p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .92); max-width: 52ch; margin: 0 auto 1.8rem; }
.hero-card .btn-row { justify-content: center; }
.hero-card .btn:hover, .hero-card .btn:focus-visible { border-color: #fff; }

/* Curva inferiore — stesso path del tema ("curveUp") */
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; display: block; width: 100%; height: clamp(50px, 8vw, 110px); pointer-events: none; }
.hero-curve path { fill: var(--panna); }

.hero-badge { position: absolute; z-index: 4; right: clamp(16px, 6vw, 96px); bottom: clamp(36px, 6vw, 80px); width: clamp(92px, 10vw, 140px); }

.scallop { color: var(--bianco); }
.scallop svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 18px rgba(59, 38, 33, .18)); }
.scallop path.fill { fill: currentColor; }
.scallop path.line { fill: none; stroke: var(--corallo-chiaro); stroke-width: 3; }
/* Testo del badge: dimensioni proporzionali al badge (cqw) e cifre allineate,
   così resta centrato otticamente nel cerchio a qualunque dimensione */
.scallop { container-type: inline-size; }
.badge-txt {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2cqw; text-align: center; color: var(--cacao);
}
.badge-txt small { display: block; font-family: var(--f-script); font-size: 12cqw; line-height: 1; color: var(--menta); }
.badge-txt strong {
  display: block; font-family: var(--f-display); font-size: 25cqw; font-weight: 650; line-height: .8;
  font-variant-numeric: lining-nums; letter-spacing: -.02em;
}
.badge-txt--long small { font-size: 9.5cqw; line-height: 1.1; }
.badge-txt--long strong { font-size: 22cqw; }

.hero-arrow {
  position: absolute; top: 50%; z-index: 4; margin-top: -26px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.hero-prev { left: clamp(12px, 3vw, 40px); }
.hero-next { right: clamp(12px, 3vw, 40px); }
.hero-arrow:hover { background: var(--bianco); border-color: var(--bianco); color: var(--cacao); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-dots {
  position: absolute; z-index: 4; left: 50%; transform: translateX(-50%);
  bottom: clamp(60px, 9vw, 120px);
  display: flex; gap: .4rem;
}
.hero-dot {
  position: relative; width: 48px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.hero-dot::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 255, 255, .4); }
.hero-dot i { position: absolute; left: 6px; top: 50%; height: 4px; margin-top: -2px; width: 0; border-radius: 4px; background: #fff; }
.hero-dot.is-active i { animation: dotfill var(--slide-time, 6.5s) linear forwards; }
.hero-slider.is-paused .hero-dot.is-active i { animation-play-state: paused; }
@keyframes dotfill { to { width: calc(100% - 12px); } }

/* ===== PILASTRI ===== */
.pillars-wrap { position: relative; z-index: 3; padding-top: clamp(.5rem, 2vw, 1.5rem); }
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bianco); border-radius: var(--r-m);
  box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 0;
}
.pillar { padding: clamp(1.5rem, 2.6vw, 2.2rem); position: relative; }
.pillar + .pillar::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--bordo); }
.pillar h3 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.pillar p { margin: 0; font-size: .96rem; color: var(--cacao-2); line-height: 1.5; }

.icon-bubble {
  --c: var(--rosa);
  width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--c); color: var(--cacao);
  border: 2px dashed rgba(59, 38, 33, .18);
  transition: transform .5s var(--ease), background .3s;
}
.icon-bubble svg { width: 26px; height: 26px; stroke-width: 1.7; }
.icon-bubble--mint { --c: var(--menta-chiaro); }
.icon-bubble--cream { --c: var(--panna-2); }
.pillar:hover .icon-bubble, .gelato-card:hover .icon-bubble { transform: rotate(-12deg) scale(1.06); }

/* ===== CHI SIAMO ===== */
.about { background: var(--panna); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-media { position: relative; }
.about-photo { border-radius: var(--r-leaf); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 120%; object-fit: cover; object-position: 35% 50%; will-change: transform; }
.about-media .badge { position: absolute; width: 150px; right: -28px; top: -34px; }
.about-media .note {
  position: absolute; left: -22px; bottom: 34px; max-width: 230px;
  background: var(--menta); color: #fff; padding: 1rem 1.2rem; border-radius: 20px 20px 20px 4px;
  font-family: var(--f-script); font-size: 1.05rem; line-height: 1.35; box-shadow: var(--shadow);
}
.about-copy p { color: var(--cacao-2); }
.about-copy p.first { font-size: 1.15rem; color: var(--cacao); }
.about-copy .btn-row { margin-top: 2rem; }
.signature { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--bordo); font-size: .95rem; color: var(--cacao-2); }
.signature strong { color: var(--cacao); font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; display: block; }

/* ===== GELATO ===== */
.gelato { background: var(--rosa); }
.gelato .drip { color: var(--rosa); }
.about .drip { color: var(--panna); }
.gelato-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.gelato-card {
  position: relative; background: var(--bianco); border-radius: var(--r-m);
  padding: clamp(1.8rem, 3vw, 2.6rem); text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden;
}
.gelato-card::after { /* cucchiaiata di colore in basso */
  content: ""; position: absolute; left: 50%; bottom: -110px; width: 160px; height: 160px; margin-left: -80px;
  border-radius: 50%; background: var(--tone, var(--panna-2)); opacity: .55; transition: transform .6s var(--ease);
}
.gelato-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.gelato-card:hover::after { transform: scale(1.5); }
.gelato-card > * { position: relative; z-index: 1; }
.gelato-card .icon-bubble { width: 76px; height: 76px; margin-bottom: 1.2rem; }
.gelato-card .icon-bubble svg { width: 32px; height: 32px; }
.gelato-card p { color: var(--cacao-2); margin: 0; }
.gelato-card:nth-child(1) { --tone: var(--panna-2); }
.gelato-card:nth-child(2) { --tone: var(--menta-chiaro); }
.gelato-card:nth-child(3) { --tone: #F6D9C9; }
.gelato-cta { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }

.audience {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 4vw, 3rem);
  border: 2px dashed rgba(59, 38, 33, .2); border-radius: 100px;
}
.audience h3 { margin: 0; font-family: var(--f-script); font-weight: 400; font-variation-settings: normal; color: var(--menta); font-size: 1.5rem; }
.audience ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.audience li { display: flex; align-items: center; gap: .9rem; }
.audience h4 { margin: 0; font-size: 1.1rem; }
.audience .icon-bubble { width: 52px; height: 52px; flex: none; background: var(--bianco); border-style: solid; border-color: transparent; }
.audience .icon-bubble svg { width: 22px; height: 22px; }

/* ===== PRODOTTI ===== */
.products { background: var(--panna); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.product-card { position: relative; background: var(--bianco); border-radius: var(--r-m); overflow: hidden; box-shadow: 0 1px 0 var(--bordo); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 14% 14%; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1s var(--ease); }
.product-card:hover img { transform: scale(1.22); }
.product-body { padding: 1.4rem 1.6rem 1.8rem; }
.product-body h3 { margin-bottom: .35rem; }
.product-body p { margin: 0; color: var(--cacao-2); font-size: 1rem; }
.product-num { position: absolute; top: 14px; left: 14px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: var(--bianco); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--corallo); box-shadow: 0 4px 12px -6px rgba(59, 38, 33, .4); }
.carousel-hint { display: none; }

.accessories {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--cacao); color: var(--panna);
  border-radius: var(--r-leaf); padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1.6rem, 4vw, 3.2rem);
  position: relative; overflow: hidden;
}
.accessories::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.accessories h3 { color: #fff; margin-bottom: .3rem; }
.accessories p { margin: 0; color: rgba(251, 245, 236, .82); }
.accessories .icon-bubble { width: 72px; height: 72px; background: var(--corallo-chiaro); border-color: rgba(255, 255, 255, .3); color: var(--cacao); }
.accessories .icon-bubble svg { width: 30px; height: 30px; }

/* ===== BANNER CARRETTO ===== */
.events { background: var(--menta); color: #fff; }
.events .drip { color: var(--menta); }
.events-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.events-media { position: relative; }
.events-media .arch {
  aspect-ratio: 3 / 4; max-width: 400px; margin-inline: auto;
  border-radius: 220px 220px var(--r-m) var(--r-m); overflow: hidden;
  border: 10px solid rgba(255, 255, 255, .14);
}
.events-media img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 70%; will-change: transform; }
.events .eyelid { color: #FFE2D6; }
.events h2 { color: #fff; }
.events p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 46ch; }
.events .btn { margin-top: 1rem; }
.events .stripe {
  position: absolute; inset: 0 0 auto 0; height: 18px;
  background: repeating-linear-gradient(90deg, var(--cacao) 0 36px, var(--panna) 36px 72px);
  border-radius: 0 0 14px 14px; opacity: .9;
}

/* ===== CONTATTI ===== */
.contact { background: var(--panna); padding-bottom: calc(var(--sec-y) + 40px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.contact-list { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: .8rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; background: var(--bianco); border-radius: 18px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
a.contact-item:hover { transform: translateX(6px); box-shadow: 0 10px 24px -18px rgba(59, 38, 33, .6); }
.contact-item .icon-bubble { width: 46px; height: 46px; flex: none; border: 0; }
.contact-item .icon-bubble svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cacao-2); }
.contact-item span { font-weight: 700; }
.placeholder-tag { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 20px; background: #FFE9A8; color: #6A4A00; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.contact-map {
  position: relative; min-height: 460px; border-radius: var(--r-leaf); overflow: hidden;
  box-shadow: var(--shadow); background: var(--panna-2);
}
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.12); }
.contact-map .map-card {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 320px;
  background: var(--bianco); border-radius: 18px; padding: 1rem 1.2rem; box-shadow: var(--shadow);
}
.contact-map .map-card strong { display: block; font-family: var(--f-display); font-weight: 600; }
.map-placeholder {
  position: absolute; inset: 0 0 110px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 1.5rem; text-align: center;
}
.notfound { min-height: 72vh; display: grid; align-items: center; padding-top: calc(var(--header-h) + 3rem); text-align: center; }
.notfound .btn-row { justify-content: center; }
.map-placeholder p { margin: 0; max-width: 34ch; color: var(--cacao-2); }

/* ===== FOOTER ===== */
.footer-curve { display: block; width: 100%; height: clamp(40px, 6vw, 90px); margin-top: -1px; background: var(--panna); }
.footer-curve path { fill: var(--cacao); }
.site-footer { background: var(--cacao); color: rgba(251, 245, 236, .8); font-size: .96rem; margin-top: -1px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-block: 1rem 3rem; }
.footer-brand { display: flex; gap: 1.2rem; align-items: center; }
.footer-brand img { width: 110px; height: 110px; flex: none; }
.footer-claim { font-family: var(--f-script); color: var(--panna); font-size: 1.25rem; line-height: 1.3; margin: 0; }
.site-footer h3 { font-family: var(--f-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--pistacchio); font-weight: 700; margin-bottom: 1rem; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--panna); text-decoration: none; }
.site-footer a:hover { color: var(--corallo-chiaro); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-links svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(251, 245, 236, .14); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Credits Clion */
.credits_link{
  color: #38B5E6 !important;
  font-weight: 700;
  font-family: sans-serif;
}

.credits_link:hover{
  color: #fff !important;
}

.credits_link:before{
  content: "";
  vertical-align: middle;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 5px;
  margin-left: 5px;
  background-image: url(https://www.clion.it/favicon-96x96.png);
  background-repeat: no-repeat;
  -webkit-background-size: contain;
  background-size: contain;
  background-position: center center;
  transition: all 450ms ease;
}

.credits_link:hover:before{
  transform: rotateZ(360deg) rotateY(360deg);
}

/* ===== MODALE PREVENTIVO ===== */
.quote-modal {
  width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--r-m);
  background: var(--bianco); color: var(--cacao); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.quote-modal::backdrop { background: rgba(59, 38, 33, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.quote-modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.modal-scroll { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.modal-head { position: relative; padding: 2rem clamp(1.4rem, 4vw, 2.6rem) 1.4rem; background: var(--rosa); }
.modal-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: .3rem; }
.modal-head p { margin: 0; color: var(--cacao-2); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bianco); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--cacao); color: #fff; }
.modal-close svg { width: 20px; height: 20px; }

.quote-form { padding: 1.6rem clamp(1.4rem, 4vw, 2.6rem) 2.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field .req { color: var(--corallo); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem 1rem;
  background: var(--panna); border: 1.5px solid transparent; border-radius: 14px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233B2621' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--bianco); border-color: var(--menta); box-shadow: 0 0 0 4px rgba(47, 122, 104, .15); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--corallo); background: #FFF4F1; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: rgba(47, 122, 104, .5); }
.field-error { display: none; font-size: .85rem; color: var(--corallo); font-weight: 700; }
.field.is-invalid .field-error { display: block; }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: .45rem 1rem;
  border-radius: 30px; background: var(--panna); border: 1.5px solid var(--bordo); cursor: pointer; font-size: .93rem;
  transition: background .2s, border-color .2s, color .2s;
}
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .5; transition: all .2s; }
.chip input:checked + span { background: var(--menta); border-color: var(--menta); color: #fff; }
.chip input:checked + span::before { opacity: 1; background: #fff; box-shadow: inset 0 0 0 3px var(--menta); }
.chip input:focus-visible + span { outline: 3px solid var(--menta); outline-offset: 2px; }
.field.is-invalid .chip span { border-color: rgba(198, 75, 58, .5); }

.field--date { display: none; }
.field--date.is-visible { display: flex; animation: modalIn .35s var(--ease); }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--menta); }
.check a { color: var(--menta); font-weight: 700; }
.field .check { font-weight: 400; font-size: .9rem; line-height: 1.5; color: var(--cacao-2); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.form-foot small { color: var(--cacao-2); }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn-label::after { content: "…"; }

.field--captcha { margin-top: .4rem; }
.field--captcha .g-recaptcha { min-height: 78px; }
.field--captcha.is-invalid .g-recaptcha { outline: 2px solid var(--corallo); outline-offset: 4px; border-radius: 4px; width: max-content; }

/* ===== MODALE ESITO INVIO (al posto degli alert) ===== */
.result-modal {
  width: min(460px, calc(100% - 32px)); padding: 0; border: 0;
  border-radius: 20px 70px;               /* angoli "a foglia" del tema */
  background: var(--bianco); color: var(--cacao);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
  text-align: center; overflow: hidden;
}
.result-modal::backdrop { background: rgba(59, 38, 33, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.result-modal[open] { animation: modalIn .45s var(--ease); }
.result-box { position: relative; padding: 3rem clamp(1.4rem, 5vw, 2.6rem) 2.2rem; }
.result-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 78px; height: 78px; margin-bottom: 1.2rem; border-radius: 50%;
  background: var(--menta-chiaro); color: var(--menta);
  border: 2px dashed rgba(47, 122, 104, .35);
}
.result-icon svg { width: 36px; height: 36px; stroke-width: 2.4; }
.result-icon .i-err { display: none; }
.result-modal.is-error .result-icon { background: #FDE3DD; color: var(--corallo); border-color: rgba(198, 75, 58, .35); }
.result-modal.is-error .result-icon .i-ok { display: none; }
.result-modal.is-error .result-icon .i-err { display: block; }
.result-modal h2 { font-size: clamp(1.6rem, 4vw, 2rem); margin-bottom: .5rem; }
.result-modal p { color: var(--cacao-2); margin: 0 auto 1.6rem; max-width: 34ch; }
.result-modal p a { color: var(--corallo); font-weight: 700; }
.result-modal .btn-row { justify-content: center; }
.result-modal:not(.is-error) .result-retry { display: none; }

/* ===== PAGINE DI SERVIZIO (privacy / cookie) ===== */
.page-hero { padding: calc(var(--header-h) + 5rem) 0 3rem; background: var(--rosa); position: relative; }
.page-hero .drip { color: var(--rosa); }
.legal { padding-block: 5rem; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 2rem; }
.legal-note { padding: 1rem 1.2rem; border-radius: 16px; background: #FFF3CC; color: #5A4300; font-weight: 700; }

/* ===== REVEAL ===== */
.js [data-reveal] { opacity: 0; transform: translateY(34px); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-desk a { padding: .45rem .45rem; font-size: 1.05rem; }
  .header-right .btn-label-long { display: none; }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .site-header, .site-header.is-scrolled { --bar-h: var(--header-h); --logo: 76px; --bump: 104px; }
  .header-bar { border-radius: 0 0 44px 44px; padding-inline: 14px; }
  .header-left, .header-right { padding: 0; }
  .header-left { justify-content: flex-start; }
  .header-right { justify-content: flex-end; }
  .nav-desk { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-right .btn { margin-left: 0; }
  .mobile-menu {
    display: block; position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 44px);
    background: var(--bianco); border-radius: var(--r-m); box-shadow: var(--shadow);
    padding: 1rem; opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; text-align: center; }
  .mobile-menu .nav-link { padding: .8rem 1rem; font-size: 1.35rem; border-radius: 16px; }
  .mobile-menu .nav-link.is-active { background: var(--rosa); }
  .mobile-menu li.social-li { display: flex; justify-content: center; padding-top: .6rem; }

  .hero-copy { padding-inline: 76px; }

  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3)::before { display: none; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--bordo); }

  .about-grid, .events-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin-inline: auto; width: 100%; }
  .audience { grid-template-columns: 1fr; border-radius: 40px; text-align: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .header-right .btn { min-height: 44px; padding: .5rem 1rem; font-size: .92rem; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }

  .hero { height: clamp(600px, 94svh, 780px); }
  .hero-copy { padding: calc(var(--header-h) + 46px) 16px 120px; }
  .hero-card { border-radius: 16px 60px; padding: 1.6rem 1.2rem; }
  .hero-card .eyelid { font-size: 1rem; }
  .hero-card .eyelid::before { display: none; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 52px; }
  .hero-badge { width: 84px; right: 10px; bottom: 26px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
  .pillar .icon-bubble { grid-row: span 2; width: 52px; height: 52px; }
  .pillar h3 { margin-top: 0; }
  .pillar + .pillar::before { display: none; }
  .pillar + .pillar { border-top: 1px solid var(--bordo); }

  .about-media .badge { width: 112px; right: -8px; top: -26px; }
  .about-media .note { left: 10px; bottom: -22px; }
  .about-copy { margin-top: 1.5rem; }

  .gelato-grid { grid-template-columns: 1fr; }
  .audience ul { grid-template-columns: 1fr; justify-items: center; }

  /* Prodotti: carosello a scorrimento */
  .products-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
    margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scroll-padding-inline: var(--pad-x);
    scrollbar-width: none;
  }
  .products-grid::-webkit-scrollbar { display: none; }
  .product-card { scroll-snap-align: start; }
  .carousel-hint { display: flex; justify-content: center; align-items: center; gap: .5rem; color: var(--cacao-2); font-size: .9rem; margin-top: .5rem; }
  .carousel-hint svg { width: 18px; height: 18px; }

  .accessories { grid-template-columns: 1fr; text-align: center; justify-items: center; border-radius: 28px 70px; }

  .contact-map { min-height: 380px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 4.5rem; } /* spazio per l'icona del pannello cookie Clion (in basso a sinistra) */
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .quote-modal { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .modal-scroll { max-height: 100dvh; }
}

@media (max-width: 380px) {
  .header-right .btn { padding: .5rem .8rem; font-size: .85rem; }
  .header-right .btn svg { display: none; }
}

@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; }
}
