/* COYOTE CRM — Stile delle pagine interne (moduli, video)
   Stessi colori e stesse proporzioni della home, ma in un file a parte: le pagine
   interne sono molte e tenerne lo stile dentro ognuna significherebbe copiarlo
   dieci volte e non poterlo più cambiare. Il browser lo scarica una volta sola. */

:root {
    --primary-coyote: #A01B20;
    --primary-crm: #0D5279;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --radius: 12px;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark); background: var(--bg-white); line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-crm); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Barra superiore ─────────────────────────────────────────────────── */
.topbar {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.topbar .brand { font-weight: 700; font-size: 19px; text-decoration: none; color: var(--text-dark); }
.topbar .brand .c { color: var(--primary-coyote); }
.topbar .brand .r { color: var(--primary-crm); }
.topbar nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar nav a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.topbar nav a:hover { color: var(--primary-crm); }
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 8px;
    font-size: 14.5px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
    transition: var(--transition); cursor: pointer;
}
.btn-primary { background: var(--primary-crm); color: #fff; }
.btn-primary:hover { background: #0a4162; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-color); color: var(--text-dark); background: #fff; }
.btn-ghost:hover { border-color: var(--primary-crm); color: var(--primary-crm); }

/* ── Briciole di pane ────────────────────────────────────────────────── */
.briciole { font-size: 13px; color: var(--text-muted); padding: 22px 0 0; }
.briciole a { color: var(--text-muted); text-decoration: none; }
.briciole a:hover { color: var(--primary-crm); text-decoration: underline; }

/* ── Testata della pagina ────────────────────────────────────────────── */
.testata { padding: 34px 0 10px; }
.testata .etichetta {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--primary-coyote); margin-bottom: 12px;
}
.testata h1 { font-size: 40px; line-height: 1.18; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.testata .occhiello { font-size: 18px; color: var(--text-muted); max-width: 760px; }

/* ── Contenuti ───────────────────────────────────────────────────────── */
section.blocco { padding: 40px 0; }
section.blocco h2 { font-size: 27px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
section.blocco h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
section.blocco p { color: var(--text-muted); margin-bottom: 14px; }

.griglia { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.scheda {
    background: var(--bg-light); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 24px; transition: var(--transition);
}
.scheda:hover { border-color: rgba(13,82,121,.25); transform: translateY(-3px); }
.scheda p { font-size: 14.5px; margin: 0; }

.video-box {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--border-color); background: #000;
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.faq-item { border-bottom: 1px solid var(--border-color); padding: 18px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.faq-item p { font-size: 15px; margin: 0; }

/* ── Richiamo finale ─────────────────────────────────────────────────── */
.cta {
    background: linear-gradient(135deg, var(--primary-crm), #0a4162); color: #fff;
    border-radius: 16px; padding: 44px 36px; margin: 20px 0 56px; text-align: center;
}
.cta h2 { font-size: 26px; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 22px; }
.cta .btn-primary { background: #fff; color: var(--primary-crm); }
.cta .btn-primary:hover { background: #f1f5f9; }
.cta .btn-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ── Piede ───────────────────────────────────────────────────────────── */
footer.piede { border-top: 1px solid var(--border-color); padding: 30px 0; background: var(--bg-light); }
footer.piede .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer.piede p, footer.piede a { font-size: 13.5px; color: var(--text-muted); }
footer.piede a { text-decoration: none; }
footer.piede a:hover { color: var(--primary-crm); }
.piede-link { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
    .testata h1 { font-size: 30px; }
    .topbar nav a:not(.btn) { display: none; }
    .cta { padding: 32px 22px; }
}
