/* Stile delle pagine Agenda AI (2026). Usato da index-agenda*.html, agenda/*.html e pianificazione-percorsi. */
:root {
  --ai-green-900: #0b3d1a;
  --ai-green-700: #1b5e20;
  --ai-green-600: #2e7d32;
  --ai-green-500: #43a047;
  --ai-teal: #14b8a6;
  --ai-lime: #c6f36b;
  --ai-ink: #10231a;
  --ai-muted: #5a6b62;
  --ai-bg: #f5f8f6;
  --ai-card: #ffffff;
  --ai-line: #e1e9e4;
  --radius-xl: 28px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ai-ink); background: var(--ai-bg); }
.navbar { background: #fff; }

/* ---------- Hero ---------- */
.ai-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(198, 243, 107, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(20, 184, 166, .35), transparent 60%),
    linear-gradient(135deg, var(--ai-green-900) 0%, var(--ai-green-700) 55%, #0f766e 100%);
  padding: 72px 0 96px;
}
.ai-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.ai-hero .container { position: relative; z-index: 1; }
.ai-brand { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-weight: 800; }
.ai-brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ai-hero h1 { font-weight: 900; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; margin: 22px 0 18px; }
.ai-hero h1 .hl { background: linear-gradient(90deg, var(--ai-lime), #7ef0d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-hero .lead { color: rgba(255,255,255,.88); font-size: 1.2rem; max-width: 560px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.ai-chips li { font-size: .9rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.ai-chips i { color: var(--ai-lime); margin-right: 6px; }
.ai-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ai-cta .badge-link img { height: 58px; width: auto; }
.btn-web { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 800;
  color: var(--ai-green-900); background: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .2s; }
.btn-web:hover { transform: translateY(-2px); color: var(--ai-green-900); }

/* Phone mockups */
.phone { position: relative; width: 100%; max-width: 270px; aspect-ratio: 600 / 1158; border-radius: 36px; padding: 10px;
  background: linear-gradient(145deg, #1f2a24, #0b100d); box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.06); }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 64px; height: 8px; margin-left: -32px; border-radius: 8px; background: #0b100d; z-index: 2; opacity: .9; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; display: block; background: #e8efe9; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; }
.hero-phones .p1 { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; max-width: 280px; }
.hero-phones .p2 { left: 0; top: 70px; transform: rotate(-8deg); z-index: 2; max-width: 230px; }
.hero-phones .p3 { right: 0; top: 70px; transform: rotate(8deg); z-index: 2; max-width: 230px; }
.float-tag { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: #fff; color: var(--ai-ink); font-weight: 800; font-size: .9rem; box-shadow: 0 14px 30px rgba(0,0,0,.25); white-space: nowrap; }
.float-tag i { color: var(--ai-green-600); }
.float-tag.t1 { left: 4%; bottom: 40px; }
.float-tag.t2 { right: 2%; top: 20px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ai-green-600);
  background: #e6f4ea; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.sec-title { font-weight: 900; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.015em; line-height: 1.15; }
.sec-lead { color: var(--ai-muted); font-size: 1.12rem; max-width: 680px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 1.05rem; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%; background: #e6f4ea; color: var(--ai-green-600); font-size: .75rem; display: grid; place-items: center; }

.for-who { margin-top: -48px; position: relative; z-index: 2; padding: 0 0 24px; }
.who-card { background: var(--ai-card); border: 1px solid var(--ai-line); border-radius: 20px; padding: 20px; height: 100%;
  box-shadow: 0 10px 30px rgba(16, 35, 26, .06); }
.who-card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--ai-green-600), var(--ai-teal)); }
.who-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 4px; }
.who-card p { color: var(--ai-muted); margin: 0; font-size: .95rem; }

.feature-row .phone { margin: 0 auto; }
.feature-pair { display: flex; justify-content: center; gap: 18px; }
.feature-pair .phone { max-width: 240px; }
.feature-pair .phone:nth-child(2) { margin-top: 48px; }
.alt-bg { background: #fff; }

.step-card { position: relative; background: var(--ai-card); border: 1px solid var(--ai-line); border-radius: var(--radius-xl); padding: 22px 22px 0; height: 100%;
  overflow: hidden; box-shadow: 0 10px 30px rgba(16, 35, 26, .06); }
.step-card .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--ai-green-600), var(--ai-teal)); margin-bottom: 12px; }
.step-card h3 { font-size: 1.15rem; font-weight: 800; }
.step-card p { color: var(--ai-muted); }
.step-card .phone { max-width: 220px; margin: 18px auto -90px; }
.route-band { background: linear-gradient(180deg, #eaf5ee 0%, var(--ai-bg) 100%); }

.ai-band { color: #fff; background:
    radial-gradient(600px 400px at 90% 10%, rgba(198, 243, 107, .2), transparent 60%),
    linear-gradient(135deg, #0f2b1c, #12372a 60%, #0f4d45); }
.ai-band .sec-lead { color: rgba(255,255,255,.82); }
.ai-band .eyebrow { background: rgba(198, 243, 107, .15); color: var(--ai-lime); }
.bubble { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px 18px 18px 4px; padding: 14px 16px;
  margin-bottom: 12px; max-width: 440px; font-weight: 600; }
.bubble.me { margin-left: auto; border-radius: 18px 18px 4px 18px; background: rgba(198, 243, 107, .16); border-color: rgba(198, 243, 107, .35); }
.bubble small { display: block; opacity: .7; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

.mini-card { background: var(--ai-card); border: 1px solid var(--ai-line); border-radius: 20px; padding: 22px; height: 100%; transition: transform .2s, box-shadow .2s; }
.mini-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16, 35, 26, .1); }
.mini-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 14px; background: #e6f4ea; color: var(--ai-green-600); }
.mini-card h3 { font-size: 1.1rem; font-weight: 800; }
.mini-card p { color: var(--ai-muted); margin: 0; }

.video-wrap { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px rgba(16, 35, 26, .18); aspect-ratio: 16/9; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.short-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ai-line);
  text-decoration: none; color: var(--ai-ink); font-weight: 700; margin-bottom: 12px; transition: transform .2s; }
.short-link:hover { transform: translateX(4px); color: var(--ai-ink); }
.short-link i { color: #ff0033; font-size: 1.5rem; }

.price-card { background: #fff; border: 1px solid var(--ai-line); border-radius: var(--radius-xl); padding: 30px; height: 100%; position: relative; }
.price-card.pro { border: 2px solid var(--ai-green-500); box-shadow: 0 24px 50px rgba(46, 125, 50, .18); }
.price-card .tag { position: absolute; top: -14px; left: 30px; background: linear-gradient(90deg, var(--ai-green-600), var(--ai-teal)); color: #fff;
  font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.price { font-size: 2.6rem; font-weight: 900; letter-spacing: -.02em; }
.price small { font-size: 1rem; color: var(--ai-muted); font-weight: 700; }

.accordion-item { border: 1px solid var(--ai-line); border-radius: 16px !important; overflow: hidden; margin-bottom: 12px; }
.accordion-button { font-weight: 800; }
.accordion-button:not(.collapsed) { background: #e6f4ea; color: var(--ai-green-900); box-shadow: none; }

.final-cta { color: #fff; border-radius: 32px; padding: 56px 32px; text-align: center; overflow: hidden; position: relative;
  background: radial-gradient(600px 300px at 80% 0%, rgba(198, 243, 107, .25), transparent 60%), linear-gradient(135deg, var(--ai-green-700), #0f766e); }
.final-cta h2 { font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.final-cta .ai-cta { justify-content: center; }

/* Banner mobile comune: colori di questa pagina */
.mobile-download-banner.agenda-theme { background: linear-gradient(135deg, var(--ai-green-700), #0f766e); }
.mobile-download-banner.agenda-theme .mobile-download-banner__cta { color: var(--ai-green-700); }

/* Animazioni di comparsa (solo se JS attivo) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 991.98px) {
  .ai-hero { padding: 48px 0 80px; text-align: center; }
  .ai-hero .lead { margin-left: auto; margin-right: auto; }
  .ai-chips, .ai-cta { justify-content: center; }
  .hero-phones { height: 470px; margin-top: 36px; }
  .hero-phones .p1 { max-width: 230px; }
  .hero-phones .p2, .hero-phones .p3 { max-width: 180px; top: 60px; }
  .float-tag.t2 { display: none; }
  section { padding: 64px 0; }
  .step-card .phone { margin-bottom: -60px; }
}
@media (max-width: 575.98px) {
  .hero-phones { height: 420px; }
  .hero-phones .p2 { left: -24px; }
  .hero-phones .p3 { right: -24px; }
  .feature-pair .phone { max-width: 46%; }
  .float-tag.t1 { left: 50%; transform: translateX(-50%); bottom: 10px; }
}

/* ---------- Pagine interne ---------- */
.ai-hero.sub { padding: 48px 0 72px; }
.ai-hero.sub h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.ai-hero .ai-cta { margin-top: 26px; }
.crumbs { font-size: .85rem; font-weight: 700; margin-bottom: 18px; color: rgba(255,255,255,.75); }
.crumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-size: .6rem; margin: 0 6px; opacity: .7; }
.phone.hero-single { max-width: 280px; transform: rotate(3deg); }
.method { display: grid; gap: 14px; }
.m-step { display: flex; gap: 16px; align-items: flex-start; background: var(--ai-card); border: 1px solid var(--ai-line); border-radius: 20px; padding: 20px; }
.m-step > span { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--ai-green-600), var(--ai-teal)); }
.m-step h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 4px; }
.m-step p { color: var(--ai-muted); margin: 0; }
.note-card { display: flex; gap: 14px; align-items: flex-start; background: #eef7f1; border: 1px solid #cfe7d6; border-radius: 18px; padding: 18px 20px; }
.note-card i { color: var(--ai-green-600); font-size: 1.3rem; margin-top: 2px; }
@media (max-width: 991.98px) { .phone.hero-single { max-width: 220px; margin-top: 12px; } }
