/*
Theme Name: Il Costo dell'Ignoranza
Theme URI: https://ilcostodellignoranza.com
Author: George / claude-george2
Description: Theme WordPress one-page custom per la landing del libro "Il costo dell'ignoranza" di Ares Arman Pola. Manuale antifrode per professionisti, PMI e privati.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ilcostodellignoranza
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: #ffffff; color: #1a1e2b; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: 90px; }
.navbar { position: sticky; top: 0; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); z-index: 100; border-bottom: 1px solid #e9edf2; padding: 16px 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.3px; background: linear-gradient(135deg, #0B2B5E, #1E4A7A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo span { color: #c25b2e; background: none; -webkit-text-fill-color: #c25b2e; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 500; color: #2c3e4e; transition: color 0.2s; font-size: 0.95rem; }
.nav-links a:hover { color: #c25b2e; }
.btn-outline-nav { background: transparent; border: 1.5px solid #c25b2e; padding: 8px 18px; border-radius: 40px; font-weight: 600; color: #c25b2e; transition: all 0.2s; }
.btn-outline-nav:hover { background: #c25b2e; color: white; }
.mobile-menu { display: none; font-size: 1.6rem; cursor: pointer; }
.btn-primary { display: inline-flex; align-items: center; gap: 12px; background: #c25b2e; color: white; padding: 14px 32px; border-radius: 48px; font-weight: 700; font-size: 1.1rem; text-decoration: none; transition: all 0.25s ease; box-shadow: 0 8px 18px rgba(194, 91, 46, 0.2); }
.btn-primary:hover { background: #a2441f; transform: translateY(-3px); color: #fff; }
.hero { padding: clamp(28px, 4vw, 48px) 0 28px 0; }
.hero-grid { display: flex; align-items: center; gap: clamp(32px, 5vw, 48px); flex-wrap: wrap; }
.hero-content { flex: 1 1 420px; }
.hero-badge { background: #fef3e8; color: #c25b2e; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 40px; font-size: 0.8rem; font-weight: 600; margin-bottom: 24px; }
.hero-content h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -1px; color: #0B2B5E; margin-bottom: 20px; }
.hero-content p { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: #2c3e4e; margin-bottom: 32px; line-height: 1.6; max-width: 92%; }
.price-tag { font-size: 1.8rem; font-weight: 800; color: #0B2B5E; margin-right: 20px; }
.hero-stats { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.stat-item { background: #f8fafd; border: 1px solid #eef2fa; padding: 14px 18px; border-radius: 22px; font-weight: 600; font-size: 0.92rem; color: #44586b; flex: 1 1 180px; line-height: 1.35; }
.stat-number { display: block; font-size: 1.7rem; font-weight: 800; color: #c25b2e; margin-bottom: 2px; }
.hero-image { flex: 1 1 320px; text-align: center; background: linear-gradient(160deg, #f0f4f9 0%, #e7eef7 100%); border-radius: 32px; padding: 28px 20px 20px; box-shadow: 0 20px 40px -16px rgba(11,43,94,0.12); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mock-cover { max-width: 100%; width: 100%; max-height: 460px; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 22px 30px rgba(11,43,94,0.28)); }
.hero-caption { margin-top: 14px; font-size: 0.82rem; color: #6c86a3; }
section { padding: clamp(38px, 4.5vw, 56px) 0; border-bottom: 1px solid #eef2f8; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 12px; color: #0B2B5E; letter-spacing: -0.5px; }
.section-sub { color: #5b6f82; max-width: 700px; margin-bottom: 32px; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.55; }
.cards-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: stretch; }
.card { background: #ffffff; border-radius: 26px; padding: 26px 24px; flex: 1 1 260px; box-shadow: 0 12px 28px rgba(11,43,94,0.05); border: 1px solid #eef2fa; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(11,43,94,0.1); }
.card i { font-size: 2.2rem; color: #c25b2e; margin-bottom: 14px; }
.card h3 { font-size: 1.35rem; margin-bottom: 8px; color: #0B2B5E; }
.list-check { list-style: none; padding: 0; }
.list-check li { margin-bottom: 9px; display: flex; align-items: center; gap: 12px; }
.list-check i.fa-check-circle { color: #c25b2e; font-size: 1.2rem; }
.testimonial { background: #f5f9ff; border-radius: 28px; padding: 30px; margin-top: 8px; text-align: center; }
.author-card { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; background: #eef3fc; border-radius: 36px; padding: 32px; }
.author-card h3 { color: #0B2B5E; }
.author-card p { margin-bottom: 10px; color: #2c3e4e; line-height: 1.55; }
.cta-final { background: linear-gradient(125deg, #0B2B5E 0%, #173e64 100%); color: white; border-radius: 40px; text-align: center; padding: 48px 32px; }
.cta-final h2 { font-size: 2.2rem; }
.btn-white { background: white; color: #0B2B5E; padding: 16px 40px; border-radius: 60px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; }
.btn-white:hover { background: #f0f4f9; }
footer { padding: 28px 0 24px; background: #fafcff; text-align: center; color: #4a627a; }
footer p { margin-top: 8px; }
.social-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 16px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #0B2B5E; color: #fff; font-size: 1.55rem; transition: transform 0.2s ease, background 0.2s ease; text-decoration: none; }
.social-links a:hover { background: #c25b2e; transform: translateY(-3px); }
.quote-block { background: #fff6ed; border-left: 6px solid #c25b2e; padding: 20px 26px; border-radius: 24px; margin: 22px 0; font-style: italic; font-size: 1.08rem; line-height: 1.5; }
.private-badge { background: #e1ecf9; border-radius: 60px; padding: 8px 20px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 24px; }
.image-gallery { display: flex; gap: 16px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.gallery-thumb { width: 80px; border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.2s; cursor: pointer; }
.gallery-thumb:hover { transform: scale(1.05); }
.private-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.private-box { flex: 1 1 260px; background: #fff; border-radius: 28px; padding: 30px 28px; border: 1px solid #eef2fa; box-shadow: 0 12px 28px rgba(11,43,94,0.05); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.private-box:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(11,43,94,0.1); }
.private-box h3 { margin: 16px 0 8px; color: #0B2B5E; }
.alert-blue { background: #eef2fc; border-left: 5px solid #c25b2e; padding: 22px 24px; border-radius: 20px; line-height: 1.55; }
.pill { background: rgba(255,255,255,0.18); padding: 8px 18px; border-radius: 60px; display: inline-block; margin: 6px; font-weight: 600; font-size: 0.92rem; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .nav-links { gap: 18px; }
    .author-card { gap: 28px; }
}
@media (max-width: 900px) {
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .nav-links.mobile-open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; background: rgba(255,255,255,0.99); width: 100%; padding: 24px; gap: 18px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
    .nav-links.mobile-open .btn-outline-nav { display: inline-block; text-align: center; }
    .hero-grid { flex-direction: column-reverse; text-align: center; }
    .hero-content p { max-width: 100%; }
    .hero-content .hero-badge, .hero-grid > .hero-content > div { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { width: 100%; }
    .author-card { flex-direction: column-reverse; text-align: center; }
    .author-card p { text-align: left; }
}
/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .container { padding: 0 18px; }
    .btn-primary { padding: 13px 26px; font-size: 1rem; width: 100%; justify-content: center; }
    .hero-content > div:first-of-type { flex-direction: column; align-items: stretch; }
    .price-tag { margin: 0 0 6px; text-align: center; }
    .stat-item { flex-basis: 100%; }
    .cta-final { padding: 48px 22px; border-radius: 32px; }
    .card, .private-box { border-radius: 24px; }
    .quote-block { padding: 20px 22px; font-size: 1.02rem; }
}
