/* =================================================================
   PONTINATURA — Design System
   Fresh & Natural / 2026 rebuild
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --green-900: #102b18;
  --green-800: #1a4527;
  --green-700: #226034;
  --green-600: #2e7d3f;
  --green-500: #4ca64f;
  --green-400: #6cbf57;
  --green-300: #9ad97c;
  --green-100: #e4f3da;
  --lime: #b6e388;
  --cream: #f6faf1;
  --cream-2: #eef5e6;
  --ink: #16221a;
  --ink-soft: #46584b;
  --muted: #6f8073;
  --white: #ffffff;
  --line: #e2ecd9;
  --shadow-sm: 0 2px 10px rgba(16, 43, 24, .06);
  --shadow-md: 0 12px 34px rgba(16, 43, 24, .10);
  --shadow-lg: 0 28px 70px rgba(16, 43, 24, .16);

  /* Type */
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 18px;
  --radius-lg: 30px;
  --radius-xl: 44px;
  --gut: clamp(20px, 4vw, 48px);
  --header-h: 78px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; color: var(--green-900); letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.bg-cream2 { background: var(--cream-2); }
.bg-green { background: var(--green-900); color: var(--cream); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-720 { max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-600);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green-400); border-radius: 2px; }
.bg-green .eyebrow { color: var(--green-300); }
.bg-green h1, .bg-green h2, .bg-green h3 { color: var(--white); }
.bg-green p { color: rgba(255,255,255,.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: .95em 1.7em; border-radius: 100px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px rgba(46,125,63,.35); }
.btn--primary:hover { background: var(--green-700); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(46,125,63,.45); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--green-800); box-shadow: inset 0 0 0 2px var(--green-300); }
.btn--ghost:hover { background: var(--green-100); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--green-800); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 110; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.header--over-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,43,24,.5), rgba(16,43,24,0));
  opacity: 1; transition: opacity .4s var(--ease);
}
.header.scrolled { background: rgba(246,250,241,.86); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); height: 66px; }
.header--over-hero.scrolled::before { opacity: 0; }
.brand { display: flex; align-items: center; gap: .6rem; z-index: 2; }
.brand img { height: 48px; width: auto; transition: height .4s var(--ease); }
.header.scrolled .brand img { height: 40px; }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav__link {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--green-900);
  position: relative; padding: .2em 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--green-500); border-radius: 2px; transition: width .3s var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--green-600); }

/* Transparent header OVER A DARK HERO — white logo & links for contrast.
   Only applies to pages flagged .header--over-hero (home + inner pheros).
   Pages over a light background keep the default dark header. */
@media (min-width: 821px) {
  .header--over-hero:not(.scrolled) .nav__link { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
  .header--over-hero:not(.scrolled) .nav__link.active { color: #fff; }
  .header--over-hero:not(.scrolled) .nav__link::after { background: var(--lime); }
  .header--over-hero:not(.scrolled) .lang a { color: rgba(255,255,255,.75); }
  .header--over-hero:not(.scrolled) .lang a.active { color: #fff; background: rgba(255,255,255,.18); }
  .header--over-hero:not(.scrolled) .lang span { color: rgba(255,255,255,.4); }
}
.header--over-hero:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.header.scrolled .brand img { filter: none; }
/* Burger: white over dark hero, dark otherwise / when scrolled or menu open */
.header--over-hero:not(.scrolled) .burger span { background: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.header.scrolled .burger span { background: var(--green-900); }
.burger.open span { background: var(--green-900) !important; filter: none; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.lang {
  display: flex; align-items: center; gap: .35rem; font-family: var(--font-head); font-weight: 700; font-size: .82rem;
}
.lang a { color: var(--muted); padding: .25em .5em; border-radius: 8px; transition: color .25s, background .25s; }
.lang a.active { color: var(--green-700); background: var(--green-100); }
.lang span { color: var(--line); }

/* Hamburger */
.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; z-index: 110; }
.burger span { width: 26px; height: 2.5px; background: var(--green-900); border-radius: 3px; transition: transform .35s var(--ease), opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(16,43,24,.86) 0%, rgba(16,43,24,.55) 45%, rgba(16,43,24,.15) 100%);
}
.hero__inner { padding-top: var(--header-h); max-width: 760px; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .lead { color: rgba(255,255,255,.9); margin-top: 1.4rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5em 1.1em; margin-bottom: 1.6rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px; backdrop-filter: blur(8px); font-family: var(--font-head); font-weight: 600; font-size: .85rem;
}
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(108,191,87,.3); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(108,191,87,0); } }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero__scroll .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: #fff; border-radius: 3px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,12px); } }

/* Page hero (inner pages) */
.phero { position: relative; min-height: 60vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; padding-bottom: clamp(40px, 6vw, 80px); }
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,43,24,.35) 0%, rgba(16,43,24,.8) 100%); }
.phero__inner { padding-top: var(--header-h); }
.phero h1 { color: #fff; max-width: 800px; }
.phero .lead { color: rgba(255,255,255,.88); max-width: 600px; margin-top: 1rem; }
.crumbs { font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,.7); margin-bottom: 1.2rem; }
.crumbs a:hover { color: #fff; }

/* ---------- Plus / feature cards ---------- */
.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 1.9rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--green-400), var(--lime)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--green-100); color: var(--green-600); margin-bottom: 1.3rem; transition: transform .4s var(--ease); }
.feature:hover .feature__icon { transform: rotate(-6deg) scale(1.06); }
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { margin-bottom: .5rem; }
.feature p { font-size: .96rem; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.split__body h2 { margin-bottom: 1.1rem; }
.split__body p + p { margin-top: 1rem; }
.media-tag {
  position: absolute; bottom: -22px; left: -22px; background: #fff; border-radius: 18px; padding: 1rem 1.4rem;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .9rem;
}
.media-tag .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--green-600); line-height: 1; }
.media-tag small { font-size: .78rem; color: var(--muted); font-weight: 600; display: block; max-width: 110px; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--lime); line-height: 1; }
.stat__label { margin-top: .5rem; font-size: .92rem; color: rgba(255,255,255,.78); }

/* ---------- Products ---------- */
.prod-tabs { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 3rem; }
.prod-tab { font-family: var(--font-head); font-weight: 700; font-size: .92rem; padding: .7em 1.4em; border-radius: 100px; color: var(--green-800); background: var(--white); box-shadow: var(--shadow-sm); transition: all .3s var(--ease); }
.prod-tab.active, .prod-tab:hover { background: var(--green-600); color: #fff; box-shadow: 0 10px 22px rgba(46,125,63,.3); }

.prod-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.prod-card__img { aspect-ratio: 1/1; background: var(--cream-2); display: grid; place-items: center; padding: 1.4rem; overflow: hidden; }
.prod-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); mix-blend-mode: multiply; }
.prod-card:hover .prod-card__img img { transform: scale(1.08) rotate(-2deg); }
.prod-card__body { padding: 1.2rem 1.4rem 1.6rem; }
.prod-card__body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.tag { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 600; font-size: .76rem; padding: .35em .8em; border-radius: 100px; background: var(--green-100); color: var(--green-700); }
.tag--season { background: #fff4e0; color: #b9791b; }

/* ---------- Product detail (PDP) ---------- */
.pdp-hero { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 64px)); padding-bottom: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, var(--green-100) 0%, var(--cream) 100%); }
.pdp-hero .crumbs { color: var(--muted); margin-bottom: 1.4rem; }
.pdp-hero .crumbs a { color: var(--green-700); }
.pdp-hero .crumbs a:hover { color: var(--green-500); }
.pdp-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.pdp-media { position: relative; }
.pdp-media .disc { aspect-ratio: 1/1; max-width: 460px; margin-inline: auto; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff, var(--green-100) 78%); box-shadow: var(--shadow-md); display: grid; place-items: center; padding: 11%; position: relative; }
.pdp-media .disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(46,125,63,.12); }
.pdp-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 22px 30px rgba(16,43,24,.22)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.pdp-body .botanical { font-family: var(--font-head); font-weight: 600; font-style: italic; color: var(--green-600); font-size: 1.05rem; margin-bottom: 1.1rem; }
.pdp-body h1 { margin-bottom: .3rem; }
.pdp-body > p { font-size: 1.05rem; }
.pdp-spec { margin-top: 1.8rem; }
.pdp-spec__row { display: flex; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.pdp-spec__row:first-child { border-top: 1px solid var(--line); }
.pdp-spec__row dt { flex: 0 0 38%; font-family: var(--font-head); font-weight: 700; color: var(--green-900); font-size: .92rem; display: flex; align-items: center; gap: .55rem; }
.pdp-spec__row dt svg { width: 18px; height: 18px; color: var(--green-500); flex: 0 0 auto; }
.pdp-spec__row dd { color: var(--ink-soft); font-size: .95rem; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
@media (max-width: 820px) { .pdp-grid { grid-template-columns: 1fr; } .pdp-media { order: -1; } .pdp-media .disc { max-width: 320px; } }

/* ---------- Events / News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.ev-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ev-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.ev-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.ev-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ev-card:hover .ev-card__media img { transform: scale(1.06); }
.ev-status { position: absolute; top: 14px; left: 14px; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; padding: .4em .9em; border-radius: 100px; backdrop-filter: blur(6px); }
.ev-status--up { background: rgba(108,191,87,.92); color: #0c2912; }
.ev-status--past { background: rgba(255,255,255,.88); color: var(--muted); }
.ev-card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.ev-card__date { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--green-600); display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.ev-card__date svg { width: 16px; height: 16px; }
.ev-card h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.ev-card__excerpt { font-size: .95rem; margin-bottom: 1.2rem; }
.ev-card__loc { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; margin-bottom: 1.1rem; }
.ev-card__loc svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ev-card__more { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--green-600); display: inline-flex; align-items: center; gap: .4em; }
.ev-card__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.ev-card:hover .ev-card__more { gap: .7em; }
.ev-feature__body .ev-card__more { color: var(--lime); }

/* Featured (first upcoming) event */
.ev-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--green-900); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: clamp(32px,4vw,48px); }
.ev-feature__media { position: relative; min-height: 320px; }
.ev-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-feature__body { padding: clamp(2rem, 4vw, 3.4rem); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.ev-feature__body .ev-card__date { color: var(--green-300); }
.ev-feature__body h2 { color: #fff; margin: .4rem 0 1rem; }
.ev-feature__body p { color: rgba(255,255,255,.8); margin-bottom: 1.6rem; }
.ev-feature__body .ev-card__loc { color: rgba(255,255,255,.7); }

/* Event detail */
.ev-hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; padding-bottom: clamp(36px,5vw,64px); }
.ev-hero__media { position: absolute; inset: 0; z-index: -2; }
.ev-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.ev-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,43,24,.35), rgba(16,43,24,.85)); }
.ev-hero__inner { padding-top: var(--header-h); }
.ev-hero h1 { color: #fff; max-width: 880px; margin-top: .6rem; }
.ev-hero .ev-pill { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .04em; padding: .4em 1em; border-radius: 100px; background: rgba(108,191,87,.9); color: #0c2912; }
.ev-metabar { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); margin-bottom: 2.4rem; }
.ev-metabar .m { display: flex; align-items: center; gap: .7rem; }
.ev-metabar .m svg { width: 22px; height: 22px; color: var(--green-500); flex: 0 0 auto; }
.ev-metabar .m small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-metabar .m span { font-family: var(--font-head); font-weight: 700; color: var(--green-900); font-size: .98rem; }
.ev-article { max-width: 760px; }
.ev-article p { font-size: 1.08rem; margin-bottom: 1.2rem; }
.ev-article h2, .ev-article h3 { margin: 1.8rem 0 .8rem; }
.ev-gallery { columns: 3; column-gap: 14px; margin-top: 2rem; }
.ev-gallery img { width: 100%; border-radius: var(--radius); margin-bottom: 14px; break-inside: avoid; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .35s var(--ease); }
.ev-gallery img:hover { transform: scale(1.02); }
.ev-empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* ---------- Bandi e pubblicazioni ---------- */
.news-grid--docs { grid-template-columns: repeat(2, 1fr); }
.doc-card__files { display: flex; flex-direction: column; gap: .6rem; margin-top: auto; padding-top: 1.1rem; }
.doc-file { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--cream-2); font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--green-800); transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.doc-file:hover { background: var(--green-100); border-color: var(--green-300); transform: translateY(-2px); }
.doc-file svg { width: 20px; height: 20px; color: var(--green-600); flex: 0 0 auto; }
.doc-file span { min-width: 0; }
.doc-file__cta { margin-left: auto; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--green-600); flex: 0 0 auto; }
@media (max-width: 820px) { .news-grid--docs { grid-template-columns: 1fr; } }

/* Nav più compatta con 9 voci su viewport medi */
@media (min-width: 821px) and (max-width: 1240px) {
  .nav { gap: 1.15rem; }
  .nav__link { font-size: .88rem; }
}

@media (max-width: 820px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .ev-feature { grid-template-columns: 1fr; }
  .ev-feature__media { min-height: 240px; }
  .ev-gallery { columns: 2; }
}
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } .ev-gallery { columns: 1; } }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 16px; }
.gallery img { width: 100%; border-radius: var(--radius); margin-bottom: 16px; break-inside: avoid; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), filter .4s; cursor: pointer; }
.gallery img:hover { transform: scale(1.02); filter: brightness(1.05); }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.cert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: .8rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.cert-card__badge { width: 54px; height: 54px; border-radius: 14px; background: var(--green-900); color: var(--lime); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
.cert-card__logo { height: 60px; display: flex; align-items: center; }
.cert-card__logo img { max-height: 54px; max-width: 160px; width: auto; height: auto; object-fit: contain; }
.cert-card h3 { font-size: 1.1rem; }
.cert-card p { font-size: .9rem; }
.cert-card a.cert-link { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--green-600); margin-top: auto; display: inline-flex; align-items: center; gap: .35em; }
.cert-card a.cert-link:hover { gap: .6em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 1.4rem; }
.info-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.info-item__icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; }
.info-item__icon svg { width: 24px; height: 24px; }
.info-item h4 { font-family: var(--font-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.info-item p, .info-item a { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.info-item a:hover { color: var(--green-600); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: .45rem; color: var(--green-900); }
.field input, .field textarea {
  width: 100%; padding: .9em 1.1em; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-400); background: #fff; box-shadow: 0 0 0 4px rgba(108,191,87,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.check input { margin-top: .25rem; accent-color: var(--green-600); width: 18px; height: 18px; flex: 0 0 auto; }
.check a { color: var(--green-600); text-decoration: underline; }
.form-note { font-size: .86rem; padding: .9rem 1.1rem; border-radius: 12px; margin-top: 1rem; display: none; }
.form-note.ok { display: block; background: var(--green-100); color: var(--green-800); }
.form-note.err { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Packaging icons ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.pack { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.2rem; transition: transform .35s var(--ease), box-shadow .35s; }
.pack:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pack img { height: 64px; width: auto; margin: 0 auto 1rem; object-fit: contain; }
.pack span { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--green-900); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: clamp(48px, 7vw, 90px) var(--gut); text-align: center; color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, var(--green-700), var(--green-900)); }
.cta-band__leaf { position: absolute; opacity: .12; z-index: -1; }
.cta-band h2 { color: #fff; max-width: 640px; margin: 0 auto 1rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,.72); padding-block: clamp(48px, 6vw, 80px) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand img { height: 52px; width: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); }
.footer__brand p { font-size: .92rem; max-width: 280px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer__col a, .footer__col li { display: block; font-size: .94rem; padding: .3em 0; color: rgba(255,255,255,.72); transition: color .25s, padding-left .25s; }
.footer__col a:hover { color: var(--lime); padding-left: 5px; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; font-size: .84rem; }
.footer__bottom a:hover { color: var(--lime); }
.footer__legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Marquee (cert logos strip) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scrollX 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--green-700); opacity: .65; white-space: nowrap; display: flex; align-items: center; gap: .5rem; }
.marquee__item::before { content: "✓"; color: var(--green-400); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__media img { animation: none; transform: none; }
  * { scroll-behavior: auto; }
}

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: auto; }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head.left { margin-inline: 0; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(16,43,24,.92); display: none; align-items: center; justify-content: center; padding: 4vw; opacity: 0; transition: opacity .3s; }
.lb.open { display: flex; opacity: 1; }
.lb img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); user-select: none; }
.lb__close { position: absolute; top: 22px; right: 26px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.6rem; display: grid; place-items: center; border: none; cursor: pointer; transition: background .25s, transform 0.25s; z-index: 210; }
.lb__close:hover { background: rgba(255,255,255,.3); }
.lb__close:active { transform: scale(0.95); }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s, transform 0.25s; z-index: 210; }
.lb__prev { left: 24px; }
.lb__next { right: 24px; }
.lb__prev:hover, .lb__next:hover { background: rgba(255,255,255,.3); }
.lb__prev:active { transform: translateY(-50%) scale(0.92); }
.lb__next:active { transform: translateY(-50%) scale(0.92); }
.lb__prev svg, .lb__next svg { width: 28px; height: 28px; }
.lb__prev.hidden, .lb__next.hidden { display: none; }

@media (max-width: 768px) {
  .lb__prev, .lb__next { width: 44px; height: 44px; }
  .lb__prev { left: 12px; }
  .lb__next { right: 12px; }
  .lb__prev svg, .lb__next svg { width: 24px; height: 24px; }
  .lb__close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 1.4rem; }
}

/* ---------- Mobile nav drawer ---------- */
.nav-overlay { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery { columns: 2; }
}
@media (max-width: 820px) {
  .nav, .header__actions .lang { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); height: 100svh;
    background: var(--cream); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2.5rem; transform: translateX(105%); transition: transform .45s var(--ease);
    box-shadow: var(--shadow-lg); z-index: 105;
  }
  .nav.open { display: flex; transform: translateX(0); }
  .nav__link { font-size: 1.5rem; }
  .nav .lang-mobile { display: flex; gap: .5rem; margin-top: 1rem; }
  .nav-overlay.show { display: block; position: fixed; inset: 0; background: rgba(16,43,24,.4); z-index: 104; backdrop-filter: blur(2px); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .media-tag { left: 16px; bottom: -18px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2, .cert-grid, .pack-grid, .stats { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
.lang-mobile { display: none; }
