/* ============================================================
   CloudPBX — Stylesheet principale
   Design: fresco, professionale, Italian corporate
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:        #0B1E3D;
  --navy-mid:    #132B52;
  --navy-light:  #1A3A6B;
  --blue:        #1A56DB;
  --blue-light:  #3B82F6;
  --teal:        #0EA5E9;
  --accent:      #F97316;
  --green:       #10B981;
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --gray-50:     #F1F5F9;
  --gray-100:    #E2E8F0;
  --gray-300:    #94A3B8;
  --gray-500:    #64748B;
  --gray-700:    #334155;
  --gray-900:    #0F172A;
  --font-d:      'Manrope', sans-serif;
  --font-b:      'Inter', sans-serif;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(11,30,61,.10);
  --shadow-lg:   0 12px 40px rgba(11,30,61,.15);
  --r:           12px;
  --r-lg:        20px;
  --t:           all .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); color: var(--gray-900); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }

/* ── Typography ── */
.section-label { font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: block; }
.section-title { font-family: var(--font-d); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -.5px; margin-bottom: 8px; }
.section-sub { color: var(--gray-500); font-size: 1.05rem; max-width: 560px; line-height: 1.7; margin-top: 0; }
.section-header { margin-bottom: 44px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,30,61,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  height: 66px;
}
.nav__inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-family: var(--font-d); font-size: 1.4rem; font-weight: 800; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -.4px; }
.nav__logo-icon { width: 30px; height: 30px; background: linear-gradient(135deg,var(--blue),var(--teal)); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__links a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .88rem; font-weight: 500; padding: 7px 13px; border-radius: 7px; transition: var(--t); }
.nav__links a:hover, .nav__links a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav__cta { background: var(--accent) !important; color: #fff !important; padding: 7px 18px !important; border-radius: 8px !important; font-weight: 600 !important; }
.nav__cta:hover { background: #e06810 !important; }

/* ── Hero ── */
.hero { min-height: 100vh; background: var(--navy); display: flex; align-items: center; padding-top: 66px; position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 55% at 65% 40%, rgba(26,86,219,.22) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 88% 75%, rgba(14,165,233,.13) 0%, transparent 60%); }
.hero__grid { position: absolute; inset: 0; opacity: .035; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 56px 56px; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 0; position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(26,86,219,.18); border: 1px solid rgba(26,86,219,.38); color: var(--blue-light); padding: 5px 13px; border-radius: 100px; font-size: .75rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 22px; }
.hero__badge::before { content: '●'; font-size: .5rem; color: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero h1 { font-family: var(--font-d); font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; color: #fff; line-height: 1.14; letter-spacing: -.6px; margin-bottom: 12px; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero__sub { color: rgba(255,255,255,.62); font-size: 1.05rem; line-height: 1.72; margin-bottom: 32px; max-width: 460px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero__trust-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.55); font-size: .83rem; }
.hero__trust-item::before { content: '✓'; color: var(--green); font-weight: 700; }

/* Hero card */
.hero__card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 28px; backdrop-filter: blur(8px); }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.stat-box { background: rgba(255,255,255,.06); border-radius: var(--r); padding: 18px; text-align: center; }
.stat-box__num { font-family: var(--font-d); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-box__label { color: rgba(255,255,255,.45); font-size: .76rem; margin-top: 3px; }
.plan-rows { display: flex; flex-direction: column; gap: 9px; }
.plan-row { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.07); border-radius: 8px; padding: 11px 15px; transition: var(--t); }
.plan-row:hover { background: rgba(255,255,255,.12); }
.plan-row__name { color: #fff; font-weight: 600; font-size: .88rem; }
.plan-row__detail { color: rgba(255,255,255,.45); font-size: .76rem; }
.plan-row__price { color: var(--teal); font-weight: 700; }
.plan-row--popular { background: rgba(249,115,22,.14) !important; border: 1px solid rgba(249,115,22,.28); }
.plan-badge { font-size: .68rem; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 100px; font-weight: 700; margin-left: 6px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-b); font-weight: 600; font-size: .95rem; padding: 13px 26px; border-radius: 10px; border: none; cursor: pointer; text-decoration: none; transition: var(--t); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e06810; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,.35); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-outline:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.5); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1548c0; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards generiche ── */
.card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--gray-100); padding: 28px; transition: var(--t); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #c7d7f8; }
.card__icon { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, #EFF6FF, #DBEAFE); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; }

/* ── Sezione vantaggi ── */
.vantaggi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.price-card { border-radius: var(--r-lg); padding: 32px; border: 2px solid var(--gray-100); position: relative; transition: var(--t); background: #fff; }
.price-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-light); transform: translateY(-4px); }
.price-card--featured { background: var(--navy); border-color: var(--navy); transform: scale(1.03); }
.price-card--featured:hover { transform: scale(1.03) translateY(-4px); }
.featured-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 15px; border-radius: 100px; white-space: nowrap; letter-spacing: .5px; }
.price-plan-label { font-family: var(--font-d); font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.price-card--featured .price-plan-label { color: var(--teal); }
.price-target { font-size: .85rem; color: var(--gray-500); margin-bottom: 4px; }
.price-card--featured .price-target { color: rgba(255,255,255,.5); }
.price-main { font-family: var(--font-d); font-size: 2.8rem; font-weight: 800; color: var(--navy); line-height: 1; margin: 14px 0 4px; }
.price-main sup { font-size: 1.1rem; font-weight: 600; vertical-align: top; margin-top: 7px; }
.price-main sub { font-size: .9rem; font-weight: 400; }
.price-card--featured .price-main { color: #fff; }
.price-annual { font-size: .82rem; color: var(--gray-500); margin-bottom: 20px; }
.price-card--featured .price-annual { color: rgba(255,255,255,.45); }
.price-sep { height: 1px; background: var(--gray-100); margin-bottom: 20px; }
.price-card--featured .price-sep { background: rgba(255,255,255,.1); }
.price-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.price-features li { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: var(--gray-700); }
.price-card--featured .price-features li { color: rgba(255,255,255,.8); }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; width: 17px; height: 17px; background: #D1FAE5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .68rem; }
.price-card--featured .price-features li::before { background: rgba(16,185,129,.2); color: #34D399; }
.price-features .opt { opacity: .55; }
.price-features .opt::after { content: ' (+10€/m)'; font-size: .78rem; }
.btn-plan { width: 100%; padding: 13px; border-radius: 9px; font-weight: 700; font-size: .92rem; cursor: pointer; border: 2px solid var(--navy); background: transparent; color: var(--navy); transition: var(--t); font-family: var(--font-b); text-decoration: none; display: block; text-align: center; }
.btn-plan:hover { background: var(--navy); color: #fff; }
.btn-plan--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-plan--primary:hover { background: #e06810; border-color: #e06810; }

/* Addons */
.addons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.addon-chip { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--r); padding: 16px 18px; transition: var(--t); }
.addon-chip:hover { border-color: var(--blue-light); box-shadow: var(--shadow-sm); }
.addon-chip__name { font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 3px; }
.addon-chip__price { color: var(--blue); font-weight: 700; font-size: .95rem; }
.addon-chip__margin { color: var(--green); font-size: .72rem; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .84rem; color: var(--gray-700); margin-bottom: 7px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-100); border-radius: 8px; font-family: var(--font-b); font-size: .93rem; background: #fff; color: var(--gray-900); outline: none; transition: var(--t); }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.09); }
.form-control::placeholder { color: var(--gray-300); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.form-check input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.form-check label { font-size: .9rem; color: var(--gray-700); cursor: pointer; font-weight: 400; }
.form-section-title { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 28px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-100); }
.field-hint { font-size: .78rem; color: var(--gray-300); margin-top: 4px; }
.field-error { font-size: .78rem; color: #DC2626; margin-top: 4px; }
.form-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--gray-100); padding: 36px; box-shadow: var(--shadow-sm); }

/* ── Alert ── */
.alert { padding: 14px 18px; border-radius: var(--r); margin-bottom: 20px; font-size: .92rem; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: #F0FDF4; border: 1px solid #A7F3D0; color: #065F46; }
.alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.alert-warn    { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

/* ── Tabelle ── */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--gray-100); }
table.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { background: var(--navy); color: #fff; font-family: var(--font-d); font-weight: 600; font-size: .82rem; letter-spacing: .3px; padding: 13px 16px; text-align: left; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; color: var(--gray-700); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--off-white); }

/* ── Badges stato ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .74rem; font-weight: 700; letter-spacing: .3px; }
.badge-nuovo      { background: #EFF6FF; color: var(--blue); }
.badge-attivo     { background: #F0FDF4; color: #065F46; }
.badge-sospeso    { background: #FFFBEB; color: #92400E; }
.badge-cancellato { background: #FEF2F2; color: #991B1B; }
.badge-attesa     { background: #F5F3FF; color: #5B21B6; }
.badge-config     { background: #ECFEFF; color: #0E7490; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border-radius: var(--r); border: 1px solid var(--gray-100); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--navy); transition: var(--t); user-select: none; }
.faq-q:hover { background: var(--off-white); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--blue); font-weight: 300; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 22px 18px; color: var(--gray-500); font-size: .93rem; line-height: 1.72; }
.faq-item.open .faq-a { display: block; }

/* ── Sezione dark (navy) ── */
.section-dark { background: var(--navy); }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,.6); }
.section-dark .section-label { color: var(--teal); }

/* ── CTA band ── */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--navy)); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 80% at 50% 50%, rgba(14,165,233,.18), transparent); }
.cta-band h2 { font-family: var(--font-d); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,.68); font-size: 1.02rem; margin-bottom: 30px; position: relative; }
.cta-band .btn-primary { font-size: 1rem; padding: 14px 32px; position: relative; }

/* ── Blog cards ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--gray-100); transition: var(--t); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-thumb { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.blog-body { padding: 22px; }
.blog-cat { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.blog-card h3 { font-family: var(--font-d); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: .86rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 14px; }
.blog-meta { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--gray-300); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.tag-blue   { background: #EFF6FF; color: var(--blue); }
.tag-green  { background: #F0FDF4; color: #059669; }
.tag-orange { background: #FFF7ED; color: #D97706; }

/* ── KPI strip ── */
.kpi-strip { background: var(--navy); padding: 56px 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.kpi-item { text-align: center; }
.kpi-num { font-family: var(--font-d); font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1; }
.kpi-num span { color: var(--teal); }
.kpi-label { color: rgba(255,255,255,.48); font-size: .87rem; margin-top: 7px; }

/* ── Testimonianze ── */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi-card { background: var(--off-white); border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--gray-100); transition: var(--t); }
.testi-card:hover { box-shadow: var(--shadow-md); }
.stars { color: #F59E0B; letter-spacing: 2px; margin-bottom: 14px; }
.testi-text { font-size: .93rem; color: var(--gray-700); line-height: 1.72; margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--teal)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .88rem; font-family: var(--font-d); flex-shrink: 0; }
.testi-name { font-weight: 700; font-size: .92rem; color: var(--navy); }
.testi-role { font-size: .8rem; color: var(--gray-500); }

/* ── Footer ── */
footer { background: var(--gray-900); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand p { color: var(--gray-500); font-size: .88rem; line-height: 1.72; max-width: 270px; margin-top: 12px; }
.footer-col h5 { font-family: var(--font-d); font-weight: 700; color: #fff; font-size: .88rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: var(--gray-500); text-decoration: none; font-size: .86rem; transition: var(--t); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { color: var(--gray-500); font-size: .8rem; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--gray-500); text-decoration: none; font-size: .8rem; }
.footer-legal a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.footer-contact a { color: var(--gray-500); text-decoration: none; font-size: .86rem; display: flex; align-items: center; gap: 7px; transition: var(--t); }
.footer-contact a:hover { color: #fff; }

/* ── Admin layout ── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar__logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.sidebar__logo a { font-family: var(--font-d); font-size: 1.2rem; font-weight: 800; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 7px; }
.sidebar__logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg,var(--blue),var(--teal)); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.sidebar__nav { list-style: none; padding: 0 10px; }
.sidebar__nav li a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; transition: var(--t); margin-bottom: 3px; }
.sidebar__nav li a:hover, .sidebar__nav li a.active { color: #fff; background: rgba(255,255,255,.1); }
.sidebar__nav li a .nav-icon { width: 18px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.sidebar__section { padding: 16px 20px 8px; font-size: .7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.28); }
.admin-main { background: var(--off-white); overflow-y: auto; }
.admin-topbar { background: #fff; padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 100; }
.admin-topbar h1 { font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.admin-topbar .topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-content { padding: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--r); padding: 22px; border: 1px solid var(--gray-100); }
.stat-card__num { font-family: var(--font-d); font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-card__label { color: var(--gray-500); font-size: .84rem; margin-top: 4px; }
.stat-card__trend { font-size: .78rem; color: var(--green); font-weight: 600; margin-top: 6px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .price-card--featured { transform: none; }
  .vantaggi-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav__links { display: none; }
  .vantaggi-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Addon chips ── */
.addons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.addon-chip { background: #fff; border: 1.5px solid var(--gray-100); border-radius: var(--r); padding: 14px 16px; transition: var(--t); }
.addon-chip:hover { border-color: var(--blue); }
.addon-chip__name { font-weight: 700; color: var(--navy); font-size: .87rem; margin-bottom: 5px; }
.addon-chip__price { color: var(--blue); font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.addon-chip__margin { font-size: .74rem; color: var(--gray-300); }

/* ── Testimonials ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: #fff; border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--gray-100); }
.stars { color: #F59E0B; font-size: 1rem; margin-bottom: 14px; }
.testi-text { color: var(--gray-700); font-size: .9rem; line-height: 1.7; margin-bottom: 18px; }
.testi-author { display: flex; align-items: center; gap: 13px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--teal)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.testi-name { font-weight: 700; color: var(--navy); font-size: .88rem; }
.testi-role { color: var(--gray-300); font-size: .76rem; }

/* ── Tags ── */
.tag { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.tag-blue { background: #EFF6FF; color: #1E40AF; }
.tag-orange { background: #FFF7ED; color: #C2410C; }
.tag-green { background: #ECFDF5; color: #065F46; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--r); border: 1px solid var(--gray-100); overflow: hidden; }
.faq-q { padding: 18px 22px; font-weight: 700; color: var(--navy); font-size: .95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--blue); transition: var(--t); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { padding: 0 22px; color: var(--gray-500); font-size: .9rem; line-height: 1.72; }
.faq-item.open .faq-a { padding: 0 22px 18px; }

/* ── KPI strip ── */
.kpi-strip { background: linear-gradient(135deg, var(--navy), #1A3A6B); padding: 48px 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.kpi-num { font-family: var(--font-d); font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.kpi-num span { font-size: 1.4rem; color: var(--teal); }
.kpi-label { color: rgba(255,255,255,.55); font-size: .84rem; }

/* ── Data table ── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--gray-100); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th { padding: 13px 16px; text-align: center; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: #1A3A6B; border-bottom: 2px solid var(--blue); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: .88rem; text-align: center; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #F8FAFC; }

/* ── CTA Band ── */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--teal)); padding: 72px 0; text-align: center; }
.cta-band h2 { font-family: var(--font-d); font-size: 1.9rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.75); font-size: 1rem; margin-bottom: 24px; }

/* ── Form card ── */
.form-card { background: #fff; border-radius: var(--r-lg); padding: 36px; border: 1px solid var(--gray-100); box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.field-error { border-color: #DC2626 !important; }
.field-ok { border-color: #10B981 !important; }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); padding: 9px 20px; border-radius: var(--r); font-weight: 600; font-size: .88rem; cursor: pointer; transition: var(--t); display: inline-block; }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: .84rem; }


/* ── PAGE HERO (pagine interne) ─────────────────────────── */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--gray-100); margin-bottom: 0; }
.page-hero .section-label { margin-bottom: 10px; }
.page-hero__title { font-family: var(--font-d); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--navy); line-height: 1.15; letter-spacing: -.5px; margin: 0 0 12px; }
.page-hero__title em { color: var(--blue); font-style: italic; }
.page-hero__sub { color: var(--gray-500); font-size: 1.05rem; line-height: 1.7; max-width: 640px; margin: 0; }

/* ── FEATURES GRID (funzionalita.php) ───────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media(max-width:900px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:580px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card { background: #fff; border: 1.5px solid var(--gray-100); border-radius: var(--r-lg); padding: 28px; transition: var(--t); }
.feature-card:hover { border-color: var(--blue); box-shadow: 0 4px 24px rgba(26,86,219,.08); transform: translateY(-2px); }
.feature-card__icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.feature-card__title { font-family: var(--font-d); font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.feature-card__desc { font-size: .88rem; color: var(--gray-500); line-height: 1.65; margin: 0; }

/* ── PLANS GRID (prezzi.php) ────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
@media(max-width:900px) { .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }

.plan-card { background: #fff; border: 2px solid var(--gray-100); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: var(--t); }
.plan-card:hover { box-shadow: 0 8px 32px rgba(26,86,219,.10); transform: translateY(-3px); }
.plan-card--featured { border-color: var(--blue); box-shadow: 0 8px 32px rgba(26,86,219,.14); }

.plan-card__badge { background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-align: center; padding: 7px; }

.plan-card__header { padding: 28px 28px 20px; border-bottom: 1px solid var(--gray-100); }
.plan-card__name { font-family: var(--font-d); font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.plan-card__interni { font-size: .85rem; color: var(--gray-400); margin-bottom: 14px; }
.plan-card__price { font-family: var(--font-d); font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.plan-card__price sup { font-size: 1rem; font-weight: 600; vertical-align: top; margin-top: 6px; }
.plan-card__price sub { font-size: .85rem; font-weight: 400; color: var(--gray-400); }
.plan-card__annual { font-size: .8rem; color: var(--gray-400); margin-top: 6px; }
.plan-card__target { font-size: .82rem; color: var(--gray-500); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--gray-100); }

.plan-card__features { padding: 20px 28px; flex: 1; }
.plan-card__footer { padding: 20px 28px 28px; }

/* ── FAQ ICON ────────────────────────────────────────────── */
.faq-icon { font-size: 1.2rem; font-weight: 400; color: var(--blue); transition: var(--t); flex-shrink: 0; }

/* ── CARD CLICCABILI ── */
.feature-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--t);
}
.feature-card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  border-color: var(--blue);
}
.feature-card__more {
  display: block;
  margin-top: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  opacity: 0;
  transition: opacity .2s;
}
.feature-card--link:hover .feature-card__more {
  opacity: 1;
}

.addon-chip--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--t);
  cursor: pointer;
}
.addon-chip--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  border-color: var(--blue);
}
.addon-chip--link .addon-chip__price {
  transition: color .2s;
}
.addon-chip--link:hover .addon-chip__price {
  color: var(--blue);
}
