/* AbilityRoom — Landing "Carta & Inchiostro". */

/* ---- Hero (carta a puntini, foto incorniciata) ---- */
.hero { position: relative; overflow: hidden; background-color: var(--paper); background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px); background-size: 24px 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { max-width: 40ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; color: var(--ink); font-size: .9rem; font-weight: 600; font-family: var(--font-head); }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust i { color: var(--terra); width: 1.1rem; height: 1.1rem; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); border: var(--bd); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.float-card { position: absolute; display: flex; align-items: center; gap: .6rem; background: var(--card); border: var(--bd); border-radius: 12px; padding: .65rem 1rem; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--ink); }
.float-card .ic { width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; border: 1.5px solid var(--ink); }
.float-card .ic i { width: 1.1rem; height: 1.1rem; }
.fc1 { top: 7%; left: -5%; transform: rotate(-4deg); }
.fc2 { bottom: 8%; right: -4%; transform: rotate(3deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 30rem; margin-inline: auto; }
  .fc1 { left: 1%; } .fc2 { right: 1%; }
}

/* ---- Intestazioni sezione ---- */
.sec-head { max-width: 46rem; margin: 0 auto 2.6rem; text-align: center; }
.sec-head .lead { margin-top: .8rem; }

/* ---- Header pagine interne ---- */
.page-hero { background-color: var(--paper); background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px); background-size: 24px 24px; border-bottom: var(--bd); padding-block: clamp(2.6rem, 6vw, 4.4rem); text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.page-hero .lead { max-width: 44rem; margin-inline: auto; }
.page-hero .breadcrumb { font-family: var(--font-head); font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--terra); }

/* ---- Testo legale / articoli ---- */
.legal { max-width: 48rem; margin: 0 auto; }
.legal h2 { font-family: var(--font-head); font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: .7rem; }
.legal ul { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.legal strong { color: var(--ink); }

/* ---- Griglie ---- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.4rem; }

/* value cards */
.value-card { background: var(--card); border: var(--bd); border-radius: var(--radius); padding: 1.6rem; height: 100%; box-shadow: var(--shadow); }
.value-card .pic { margin-bottom: 1rem; }
.value-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }

/* AI opportunità / attenzioni */
.ai-card { border-radius: var(--radius); padding: 1.6rem; border: var(--bd); height: 100%; box-shadow: var(--shadow); }
.ai-card.opp { background: #e7f1ec; }
.ai-card.risk { background: #fbe9df; }
.ai-row { display: flex; gap: .9rem; padding: .75rem 0; border-bottom: 1.5px dashed var(--ink); }
.ai-row:last-child { border-bottom: none; }
.ai-row .b { width: 2.3rem; height: 2.3rem; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; border: 1.5px solid var(--ink); }
.ai-card.opp .b { background: var(--pine); }
.ai-card.risk .b { background: var(--terra); }
.ai-row h4 { font-size: .98rem; margin-bottom: .1rem; }
.ai-row p { font-size: .86rem; margin: 0; }

.tools-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.6rem; }

/* ---- Sezioni scure ---- */
.dark-sec { background-color: var(--dark); color: var(--paper); background-image: radial-gradient(rgba(251,245,234,.07) 1.4px, transparent 1.4px); background-size: 24px 24px; }
.dark-sec h2, .dark-sec h3, .dark-sec h4 { color: var(--paper); }
.dark-sec p { color: rgba(251, 245, 234, .74); }
.dark-sec .eyebrow { background: rgba(251, 245, 234, .1); color: var(--ochre); border-color: var(--ochre); box-shadow: none; }
.room-item { display: flex; gap: 1rem; padding: 1.2rem; background: rgba(251, 245, 234, .05); border: 1.5px solid rgba(251, 245, 234, .28); border-radius: var(--radius); transition: transform .2s var(--ease), background .3s var(--ease); }
.room-item:hover { background: rgba(251, 245, 234, .1); transform: translate(-2px, -2px); }
.room-item .ic { width: 3rem; height: 3rem; border-radius: 10px; background: var(--ochre); border: 1.5px solid var(--paper); display: grid; place-items: center; flex: 0 0 auto; color: var(--ink); }
.room-item h4 { font-size: 1.05rem; margin-bottom: .25rem; }

/* come funziona */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.4rem; }
.step { position: relative; padding-top: 1rem; }
.step .num { width: 2.8rem; height: 2.8rem; border-radius: 10px; background: var(--ochre); border: 1.5px solid var(--paper); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: .8rem; color: var(--ink); }
.step h4 { margin-bottom: .3rem; }

/* ---- Premium ---- */
.premium { background: var(--pine); color: var(--paper); border: var(--bd); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.premium h2, .premium .eyebrow { color: var(--paper); }
.premium .eyebrow { border-color: var(--ochre); }
.premium ul { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .6rem; }
.premium ul li { display: flex; gap: .6rem; align-items: center; color: var(--paper); }
.premium ul li i { color: var(--ochre); flex: 0 0 auto; }
.premium .price { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 2.8rem); margin-bottom: 1rem; color: var(--paper); }
.premium .price small { font-size: 1rem; font-weight: 600; opacity: .85; font-family: var(--font-head); }

.webinar-card { background: var(--card); border: var(--bd); border-radius: var(--radius); padding: 1.5rem; height: 100%; box-shadow: var(--shadow); }
.webinar-card .ic { width: 3.2rem; height: 3.2rem; border-radius: 12px; background: var(--terra); border: var(--bd); display: grid; place-items: center; color: #fff; margin-bottom: 1rem; }

/* ---- Founder ---- */
.founder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.founder-grid img { border-radius: var(--radius-lg); border: var(--bd); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1; object-fit: cover; }
.founder-grid blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; color: var(--ink); border-left: 5px solid var(--terra); padding-left: 1.2rem; margin: 1rem 0; font-style: italic; }
.founder-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-top: .6rem; }
.founder-role { color: var(--terra-ink); font-weight: 600; font-size: .92rem; font-family: var(--font-head); }
@media (max-width: 760px) { .founder-grid { grid-template-columns: 1fr; text-align: center; } .founder-grid img { max-width: 18rem; margin-inline: auto; } .founder-grid blockquote { text-align: left; } }

/* ---- Contatti ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.ci { display: flex; gap: .9rem; padding: .8rem 0; }
.ci .ic { width: 3rem; height: 3rem; border-radius: 10px; background: var(--ochre); border: 1.5px solid var(--paper); display: grid; place-items: center; color: var(--ink); flex: 0 0 auto; }
.ci h4 { color: var(--paper); font-size: 1rem; margin-bottom: .15rem; }
.contact-form { background: var(--card); border: var(--bd); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-lg); }
.contact-form h3 { color: var(--ink); margin-bottom: 1.2rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Chatbot ---- */
.chat-fab { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: var(--z-nav); width: 3.8rem; height: 3.8rem; border-radius: 14px; border: var(--bd); background: var(--terra); color: #fff; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.chat-fab:hover { transform: translate(-2px, -2px) rotate(-4deg); box-shadow: var(--shadow-lg); }
.chat-fab i { width: 1.6rem; height: 1.6rem; }
.chat-panel { position: fixed; bottom: 5.8rem; right: 1.4rem; z-index: var(--z-nav); width: min(22rem, 92vw); background: var(--card); border: var(--bd); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-head { background: var(--terra); color: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .7rem; border-bottom: var(--bd); }
.chat-head .avatar { background: rgba(255, 255, 255, .2); border-color: #fff; }
.chat-head .status { font-size: .78rem; opacity: .9; display: flex; align-items: center; gap: .35rem; }
.chat-head .status::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #7be0a0; }
.chat-body { padding: 1rem; height: 16rem; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; background: var(--paper); }
.msg { max-width: 85%; padding: .6rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.5; border: 1.5px solid var(--ink); }
.msg.bot { background: var(--card); align-self: flex-start; border-bottom-left-radius: 3px; color: var(--ink); }
.msg.user { background: var(--terra); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem; }
.chat-quick button { font-size: .78rem; background: var(--card); border: 1.5px solid var(--ink); color: var(--ink); padding: .35rem .7rem; border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-head); font-weight: 600; }
.chat-quick button:hover { background: var(--paper-2); }
.chat-input { display: flex; gap: .5rem; padding: .8rem 1rem 1rem; border-top: 1.5px solid var(--line); }
.chat-input input { flex: 1; }
