/* ArniAmica — design system */
:root {
  --ink: #1f1a12;
  --ink-2: #463d2f;
  --muted: #7d715d;
  --cream: #fff8ea;
  --cream-2: #fdf0d5;
  --paper: #ffffff;
  --honey: #f5a524;
  --honey-d: #d27f06;
  --honey-l: #ffe7ad;
  --leaf: #3f7d4e;
  --leaf-l: #e3f1e5;
  --red: #d9480f;
  --line: #efe3cb;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 0, .06), 0 12px 32px -12px rgba(60, 40, 0, .18);
  --shadow-l: 0 30px 60px -20px rgba(60, 40, 0, .35);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--honey-d); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- bottoni ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font: 700 1rem/1 var(--sans); padding: 16px 26px; border-radius: 999px;
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-honey { --bg: var(--honey); --fg: var(--ink); }
.btn-honey:hover { --bg: #ffb53a; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--honey-d); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 234, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }
.logo svg { width: 38px; height: 38px; }
.logo small { display: block; font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 100px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(245, 165, 36, .35), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 em { font-style: italic; color: var(--honey-d); font-weight: 500; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.trust div { font-size: .9rem; color: var(--muted); line-height: 1.3; }
.trust strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
.hero-art { position: relative; aspect-ratio: 1 / 1.02; }
.hero-art .blob {
  position: absolute; inset: 6% 4% 4% 6%; background: linear-gradient(145deg, #ffcf6b, var(--honey) 55%, #e48a00);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; animation: blob 14s ease-in-out infinite; box-shadow: var(--shadow-l);
}
.hero-art .blob::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: url("../img/hex.svg") center/60px; opacity: .18; }
@keyframes blob { 50% { border-radius: 56% 44% 52% 48% / 44% 56% 44% 56%; } }
.hero-art .hive-illu { position: absolute; left: 50%; bottom: 8%; width: 62%; transform: translateX(-50%); filter: drop-shadow(0 30px 30px rgba(80, 40, 0, .35)); }
.live-card {
  position: absolute; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-radius: 18px;
  box-shadow: var(--shadow-l); padding: 14px 16px; min-width: 190px;
}
.live-card.a { left: -4%; top: 12%; animation: float 6s ease-in-out infinite; }
.live-card.b { right: -2%; top: 44%; animation: float 7s ease-in-out -2s infinite; }
.live-card.c { left: 4%; bottom: 4%; animation: float 8s ease-in-out -4s infinite; }
.live-card .k { font-size: .75rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.live-card .v { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.live-card .v small { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 600; }
@keyframes float { 50% { transform: translateY(-10px); } }
.pill-live {
  display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  color: #c92a2a; background: #fff0f0; padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.pill-live::before { content: ''; width: 7px; height: 7px; background: #fa5252; border-radius: 50%; animation: pulse 1.6s infinite; }
.pill-off { color: var(--muted); background: #f1ece2; }
.pill-off::before { background: #adb5bd; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(250, 82, 82, .6); } 100% { box-shadow: 0 0 0 8px rgba(250, 82, 82, 0); } }
@media (max-width: 900px) {
  .hero { padding: 24px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .live-card { min-width: 0; padding: 10px 12px; }
  .live-card .v { font-size: 1.25rem; }
  .live-card.a { left: 0; } .live-card.b { right: 0; }
}

/* flying bees */
.bee { position: absolute; width: 26px; height: 26px; pointer-events: none; }
.bee svg { width: 100%; height: 100%; }
.bee.b1 { top: 22%; left: 30%; animation: fly1 9s linear infinite; }
.bee.b2 { top: 30%; left: 60%; animation: fly2 11s linear infinite; }
.bee.b3 { top: 60%; left: 80%; animation: fly1 13s linear -5s infinite reverse; }
@keyframes fly1 { 0% { transform: translate(0, 0) rotate(10deg); } 25% { transform: translate(60px, -40px) rotate(-10deg); } 50% { transform: translate(120px, 10px) rotate(15deg); } 75% { transform: translate(40px, 50px) rotate(-5deg); } 100% { transform: translate(0, 0) rotate(10deg); } }
@keyframes fly2 { 0% { transform: translate(0, 0) scaleX(-1); } 33% { transform: translate(-80px, 30px) scaleX(-1); } 66% { transform: translate(-30px, -60px) scaleX(-1); } 100% { transform: translate(0, 0) scaleX(-1); } }
.bee .wing { transform-origin: 50% 90%; animation: flap .08s linear infinite alternate; }
@keyframes flap { to { transform: scaleY(.4); } }

/* ---------- sezioni ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.1rem; color: var(--ink-2); }
.dark { background: var(--ink); color: #f6efe1; }
.dark .muted, .dark .section-head p { color: #c8bca4; }
.dark .eyebrow { color: var(--honey); }
.cream2 { background: var(--cream-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; }
.step .ico { width: 58px; height: 58px; border-radius: 16px; background: var(--honey-l); display: grid; place-items: center; margin-bottom: 20px; }
.step .ico svg { width: 30px; height: 30px; }
.step::after { counter-increment: s; content: '0' counter(s); position: absolute; right: 26px; top: 22px; font-family: var(--serif); font-size: 2.6rem; color: var(--line); font-weight: 700; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* piani */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 980px; margin: 0 auto; }
.plan {
  background: var(--paper); color: var(--ink); border-radius: 28px; padding: 36px; position: relative; display: flex;
  flex-direction: column; box-shadow: var(--shadow); border: 2px solid transparent; transition: transform .2s, border-color .2s;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured { background: linear-gradient(160deg, #fff6df, #fff 45%); border-color: var(--honey); }
.plan .badge { position: absolute; top: -14px; right: 28px; background: var(--honey); color: var(--ink); font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.plan-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.plan-top svg { width: 68px; height: 68px; flex: none; }
.plan h3 { margin: 0; font-size: 1.55rem; }
.plan .sub { color: var(--muted); font-size: .92rem; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 22px; }
.price strong { font-family: var(--serif); font-size: 3.4rem; line-height: 1; font-weight: 600; }
.price span { color: var(--muted); font-weight: 600; }
.perks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; flex: 1; }
.perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.perks li::before {
  content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--leaf-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f7d4e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.plans-note { text-align: center; margin-top: 30px; font-size: .92rem; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } .plan { padding: 28px 24px; } }

/* dashboard preview */
.preview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.features { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 18px; }
.features li { display: flex; gap: 16px; }
.features .fi { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(245, 165, 36, .14); display: grid; place-items: center; }
.features .fi svg { width: 22px; height: 22px; }
.features strong { display: block; color: #fff; }
.features span { color: #c8bca4; font-size: .95rem; }
.mock { background: #2a241a; border-radius: 26px; padding: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); border: 1px solid #3a3226; }
.mock-bar { display: flex; gap: 6px; margin: 0 0 14px 4px; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a4033; }
.mock .cam { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; position: relative; background: #111; }
.mock .cam canvas { width: 100%; height: 100%; display: block; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.mock-tile { background: #342c20; border-radius: 14px; padding: 12px 14px; }
.mock-tile .k { font-size: .72rem; color: #b5a88e; font-weight: 600; }
.mock-tile .v { font-family: var(--serif); font-size: 1.35rem; color: #fff; }
.mock-tile .v small { font-size: .75rem; color: #b5a88e; font-family: var(--sans); }
@media (max-width: 900px) { .preview-grid { grid-template-columns: 1fr; gap: 40px; } }

/* hive gallery */
.hive-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hive-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hive-card .top { height: 150px; position: relative; display: grid; place-items: center; overflow: hidden; }
.hive-card .top::before { content: ''; position: absolute; inset: 0; background: url("../img/hex.svg") center/44px; opacity: .25; }
.hive-card .top svg { height: 118px; width: auto; position: relative; margin-top: 20px; }
.hive-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.hive-card h3 { margin-bottom: 2px; }
.hive-card .meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.hive-card p { font-size: .95rem; color: var(--ink-2); flex: 1; }
.frames-bar { display: flex; gap: 3px; margin: 4px 0 8px; }
.frames-bar i { flex: 1; height: 8px; border-radius: 3px; background: var(--honey); }
.frames-bar i.t { background: #e9dfcc; }
.avail { font-size: .85rem; font-weight: 700; color: var(--leaf); }
.avail.no { color: var(--muted); }
@media (max-width: 960px) { .hive-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .hive-cards { grid-template-columns: 1fr; } }

/* testimonianze */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quote p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; }
.quote .who { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); }
.stars { color: var(--honey); letter-spacing: 2px; margin-bottom: 10px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--paper); border-radius: 18px; padding: 4px 24px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; font-weight: 400; color: var(--honey-d); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* cta finale */
.cta-band { background: linear-gradient(120deg, var(--honey) 0%, #ffc64d 100%); border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: url("../img/hex.svg") right center/70px; opacity: .2; }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; font-size: 1.1rem; color: var(--ink-2); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 40px 26px; } }

/* footer */
.site-footer { background: var(--ink); color: #c8bca4; padding: 64px 0 34px; margin-top: 96px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--honey); }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo small { color: #a89a80; }
.foot-bottom { border-top: 1px solid #3a3226; margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; }
.pay-icons { display: flex; gap: 8px; }
.pay-icons span { background: #2e281e; border: 1px solid #3f3628; border-radius: 6px; padding: 4px 8px; font-weight: 800; font-size: .72rem; color: #e8dcc4; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- form ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .88rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 15px; font: 500 1rem var(--sans);
  color: var(--ink); transition: border-color .15s, box-shadow .15s; outline: none;
}
.input:focus { border-color: var(--honey); box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); }
textarea.input { resize: vertical; min-height: 90px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--honey-d); margin-top: 2px; flex: none; }
.alert { padding: 13px 16px; border-radius: 14px; font-size: .92rem; margin-bottom: 16px; font-weight: 600; }
.alert.err { background: #fff0ec; color: #b23a0a; }
.alert.ok { background: var(--leaf-l); color: #2b5e38; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }

/* ---------- pagina adotta ---------- */
.page-head { padding: 48px 0 24px; }
.stepper { display: flex; gap: 8px; margin: 18px 0 34px; flex-wrap: wrap; }
.stepper .st { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; color: var(--muted); padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.stepper .st b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); font-size: .8rem; }
.stepper .st.on { color: var(--ink); border-color: var(--honey); }
.stepper .st.on b { background: var(--honey); }
.stepper .st.done b { background: var(--leaf); color: #fff; }
.adopt-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .adopt-grid { grid-template-columns: 1fr; } .summary { position: static !important; } }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  display: block; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 20px; cursor: pointer;
  font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; width: 100%;
}
.choice:hover:not(:disabled) { border-color: #f3cf86; transform: translateY(-2px); }
.choice.sel { border-color: var(--honey); box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); }
.choice.sel::after { content: '✓'; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.choice:disabled { opacity: .5; cursor: not-allowed; }
.choice .ch-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.choice .ch-price { font-weight: 800; color: var(--honey-d); }
.choice .ch-desc { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.choice-plan { display: flex; gap: 16px; align-items: center; }
.choice-plan svg { width: 56px; height: 56px; flex: none; }
.block-title { font-size: 1.35rem; margin: 34px 0 16px; display: flex; align-items: center; gap: 12px; }
.block-title .n { font-family: var(--sans); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 800; }
.hive-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .hive-pick { grid-template-columns: 1fr 1fr; } }
.hive-pick .choice { padding: 16px; }
.hive-pick .sw { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 10px; display: grid; place-items: center; }
.hive-pick .sw svg { width: 22px; height: 22px; }

/* selettore telaini (vista dall'alto dell'arnia) */
.hive-top { background: linear-gradient(180deg, #c98d4c, #a8712f); border-radius: 18px; padding: 18px; box-shadow: inset 0 0 0 6px #8c5a22, var(--shadow); }
.frames { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; background: #2a1d0e; border-radius: 10px; padding: 14px 12px; }
.frame-btn {
  aspect-ratio: 1 / 4.2; border: 0; border-radius: 6px; cursor: pointer; position: relative; font: 800 .85rem var(--sans); color: var(--ink);
  background: linear-gradient(90deg, #d9a441 0 12%, #f5c55c 12% 88%, #d9a441 88%); display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px; transition: transform .15s, box-shadow .15s;
}
.frame-btn::before { content: ''; position: absolute; inset: 14% 22% 22%; border-radius: 3px; background: url("../img/hex.svg") center/10px, #f7b733; opacity: .95; }
.frame-btn span { position: relative; background: rgba(255,255,255,.85); border-radius: 6px; padding: 2px 5px; }
.frame-btn:hover:not(:disabled) { transform: translateY(-5px); }
.frame-btn.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--honey); transform: translateY(-5px); }
.frame-btn:disabled { cursor: not-allowed; background: linear-gradient(90deg, #6b5536 0 12%, #7e6644 12% 88%, #6b5536 88%); }
.frame-btn:disabled::before { background: #5c4a2f; }
.frame-btn:disabled span { background: rgba(255,255,255,.35); color: #fff; }
.frames-legend { display: flex; gap: 20px; margin-top: 12px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.frames-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
@media (max-width: 560px) { .frames { gap: 4px; padding: 10px 8px; } .frame-btn { font-size: .7rem; } .frame-btn span { padding: 1px 3px; } }

.summary { position: sticky; top: 96px; }
.summary .card { padding: 24px; }
.sum-hero { border-radius: 16px; height: 130px; display: grid; place-items: center; margin-bottom: 18px; position: relative; overflow: hidden; }
.sum-hero::before { content: ''; position: absolute; inset: 0; background: url("../img/hex.svg") center/40px; opacity: .25; }
.sum-hero svg { height: 100px; width: auto; position: relative; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.sum-row:last-of-type { border-bottom: 0; }
.sum-row span:first-child { color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 18px; padding-top: 14px; border-top: 2px solid var(--ink); }
.sum-total strong { font-family: var(--serif); font-size: 2rem; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }

.pay-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 560px) { .pay-tabs { grid-template-columns: 1fr 1fr; } }
.pay-tab { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 8px; cursor: pointer; font: 700 .85rem var(--sans); display: grid; place-items: center; gap: 6px; color: var(--ink); }
.pay-tab.sel { border-color: var(--honey); box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); }
.pay-tab svg { height: 22px; width: auto; }
.card-preview { background: linear-gradient(135deg, #2c2418, #574530); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 20px; aspect-ratio: 1.7; max-width: 340px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.card-preview::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(var(--honey), transparent 70%); opacity: .5; }
.card-preview .num { font: 600 1.25rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .12em; }
.card-preview .chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #f7d27a, #c4972f); }
.card-preview .row { display: flex; justify-content: space-between; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; background: #fff7e0; border: 1px dashed #f1c96b; border-radius: 14px; padding: 12px 14px; font-size: .85rem; color: var(--ink-2); margin-bottom: 18px; }

.success { text-align: center; max-width: 620px; margin: 30px auto; }
.success .big { width: 110px; height: 110px; margin: 0 auto 24px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .5, 1); }
.success .big svg { width: 54px; height: 54px; }
@keyframes pop { from { transform: scale(0); } }
.confetti { position: fixed; top: -20px; width: 14px; height: 16px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); pointer-events: none; z-index: 100; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- accedi ---------- */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #f6efe1; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; inset: 0; background: url("../img/hex-light.svg") center/64px; opacity: .06; }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; }
.auth-main { display: grid; place-items: center; padding: 48px 16px; }
.auth-box { width: min(420px, 100%); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-2); border-radius: 999px; padding: 5px; margin-bottom: 26px; }
.tabs button { border: 0; background: none; padding: 11px; border-radius: 999px; font: 700 .95rem var(--sans); cursor: pointer; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.demo-creds { font-size: .85rem; background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 22px; color: var(--muted); }
.demo-creds code { background: var(--cream-2); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- area riservata ---------- */
.app { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 76px); }
.side { background: #fff; border-right: 1px solid var(--line); padding: 26px 18px; }
.side h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 10px 12px; }
.ad-item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 11px 10px; border-radius: 14px; cursor: pointer; font: inherit; color: inherit; margin-bottom: 4px; }
.ad-item:hover { background: var(--cream); }
.ad-item.on { background: var(--cream-2); }
.ad-item .sw { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ad-item .sw svg { width: 26px; height: 26px; }
.ad-item b { display: block; font-size: .95rem; }
.ad-item small { color: var(--muted); font-size: .8rem; }
.side .add { margin-top: 18px; }
.main { padding: 30px 34px 60px; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 4px 0 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.chip.honey { background: var(--honey-l); border-color: #f5d489; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-h h3 { margin: 0; font-size: 1.15rem; }
.cam-box { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #111; }
.cam-box canvas, .cam-box img, .cam-box video, .cam-box iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.cam-overlay { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.cam-overlay span { background: rgba(0,0,0,.55); color: #fff; font: 600 .75rem ui-monospace, Menlo, monospace; padding: 5px 9px; border-radius: 8px; backdrop-filter: blur(6px); }
.cam-overlay .rec { color: #ff8787; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--cream); border-radius: 16px; padding: 14px; position: relative; overflow: hidden; min-width: 0; cursor: pointer; border: 2px solid transparent; transition: border-color .15s; text-align: left; font: inherit; color: inherit; }
.tile:hover { border-color: #f3cf86; }
.tile.on { border-color: var(--honey); background: #fff; }
.tile .k { display: flex; gap: 7px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.tile .k svg { width: 16px; height: 16px; flex: none; }
.tile .v { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-top: 4px; transition: color .6s; }
.tile .v small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 600; }
.tile .v.flash { color: var(--honey-d); }
.tile .d { font-size: .75rem; font-weight: 700; }
.tile .d.up { color: var(--leaf); } .tile .d.down { color: var(--red); } .tile .d.flat { color: var(--muted); }
.tile svg.spark { position: absolute; right: 0; bottom: 0; width: 55%; height: 40px; opacity: .5; }
.seg { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 999px; font: 700 .8rem var(--sans); cursor: pointer; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.chart { position: relative; height: 300px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; padding: 7px 10px; border-radius: 10px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .1s; }
.chart .tip b { font-family: var(--serif); font-size: 1rem; }
.chart-stats { display: flex; gap: 26px; margin-top: 12px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.chart-stats b { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; margin-left: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; }
.timeline li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.timeline b { display: block; font-size: .95rem; }
.timeline small { color: var(--muted); font-size: .78rem; }
.timeline p { margin: 4px 0 0; font-size: .88rem; color: var(--ink-2); }
.info-list { display: grid; gap: 0; }
.info-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.info-list div:last-child { border-bottom: 0; }
.info-list span:first-child { color: var(--muted); }
.progress { height: 10px; background: var(--cream-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--honey), #ffc64d); border-radius: 99px; }
.span2 { grid-column: 1 / -1; }
.empty { text-align: center; padding: 60px 20px; }
.empty svg { width: 120px; margin: 0 auto 20px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; display: flex; gap: 8px; overflow-x: auto; align-items: center; }
  .side h4, .side .add { display: none; }
  .ad-item { width: auto; flex: none; margin: 0; padding: 8px 12px 8px 8px; }
  .main { padding: 22px 16px 50px; }
  .chart { height: 240px; }
}
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .tile .v { font-size: 1.35rem; } }

/* tabelle admin */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
code.key { font-size: .78rem; background: var(--cream-2); padding: 3px 7px; border-radius: 6px; word-break: break-all; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stats .panel strong { display: block; font-family: var(--serif); font-size: 2.2rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 14px; font-weight: 600; z-index: 200; transition: transform .3s; box-shadow: var(--shadow-l); max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* certificato */
@media print {
  .site-header, .no-print { display: none !important; }
  body { background: #fff; }
}

/* header compatto su smartphone */
@media (max-width: 520px) {
  .nav { height: 64px; gap: 10px; }
  .logo { font-size: 1.08rem; white-space: nowrap; gap: 8px; }
  .logo svg { width: 32px; height: 32px; }
  .site-header .logo small { display: none; }
  .nav-actions .btn { padding: 9px 14px; font-size: .82rem; }
  .nav-links { top: 64px; }
  .auth-wrap, .app { min-height: calc(100vh - 64px); }
}
@media (max-width: 860px) {
  #adList { display: contents; }
  .tile svg.spark { width: 45%; height: 26px; opacity: .4; }
}

/* ---------- modulo contatti ---------- */
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-checks label { cursor: pointer; }
.chip-checks input { position: absolute; opacity: 0; pointer-events: none; }
.chip-checks span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; transition: .15s; }
.chip-checks input:checked + span { border-color: var(--honey); background: var(--honey-l); }
.chip-checks input:focus-visible + span { box-shadow: 0 0 0 4px rgba(245, 165, 36, .25); }
.lead-ok { text-align: center; padding: 30px 10px; }
.lead-ok .big { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .5, 1); }
.lead-ok .big svg { width: 38px; height: 38px; }

/* ---------- aziende (home) ---------- */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.biz-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.biz-points li { display: flex; gap: 16px; }
.biz-points .fi { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--leaf-l); display: grid; place-items: center; color: var(--leaf); }
.biz-points .fi svg { width: 22px; height: 22px; }
.biz-points b { display: block; }
.biz-points span { color: var(--ink-2); font-size: .95rem; }
.fine { font-size: .8rem; color: var(--muted); margin-top: 22px; }
@media (max-width: 900px) { .biz-grid { grid-template-columns: 1fr; gap: 30px; } }

.beek-band { background: var(--ink); color: #f6efe1; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.beek-band::before { content: ''; position: absolute; inset: 0; background: url("../img/hex-light.svg") right center/64px; opacity: .06; }
.beek-band > * { position: relative; }
.beek-band h2 { color: #fff; }
.beek-band p { color: #c8bca4; font-size: 1.08rem; }
.beek-band .sensors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.beek-band .sensors div { background: #2e281e; border: 1px solid #3f3628; border-radius: 16px; padding: 14px; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .92rem; }
.beek-band .sensors svg { width: 22px; height: 22px; color: var(--honey); flex: none; }
@media (max-width: 860px) { .beek-band { grid-template-columns: 1fr; padding: 36px 24px; } }

/* ---------- pagina apicoltori ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feat .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--honey-l); display: grid; place-items: center; margin-bottom: 16px; color: var(--honey-d); }
.feat .ico svg { width: 26px; height: 26px; }
.feat p { color: var(--ink-2); margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
.kit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.kit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.kit-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.kit-list .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; color: var(--honey-d); }
.kit-list .fi svg { width: 22px; height: 22px; }
.kit-list b { display: block; }
.kit-list span { font-size: .9rem; color: var(--muted); }
.kit-art { position: relative; background: linear-gradient(160deg, #ffe7ad, #f5a524); border-radius: 32px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.kit-art::before { content: ''; position: absolute; inset: 0; background: url("../img/hex.svg") center/56px; opacity: .15; }
.kit-art svg.h { width: 58%; position: relative; filter: drop-shadow(0 24px 24px rgba(80, 40, 0, .3)); }
.kit-art .tag { position: absolute; background: #fff; border-radius: 12px; padding: 7px 11px; font-size: .78rem; font-weight: 700; box-shadow: var(--shadow); display: flex; gap: 6px; align-items: center; }
.kit-art .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
@media (max-width: 900px) { .kit { grid-template-columns: 1fr; } }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: f; }
.flow div { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.flow div::before { counter-increment: f; content: counter(f); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 12px; }
.flow p { margin: 0; color: var(--ink-2); font-size: .94rem; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

section[id] { scroll-margin-top: 72px; }
