/* ===== AVEMI Communication — Design System Moderno ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- RESET BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: #F8FAFC; color: #1E293B; overflow-x: hidden; }
a { color: #1D4ED8; text-decoration: none; }
a:hover { color: #1E40AF; }
img { max-width: 100%; height: auto; }

/* === VARIABILI === */
:root {
  --blue:    #1D4ED8;
  --blue-l:  #3B82F6;
  --blue-xl: #EBF4FF;
  --green:   #059669;
  --green-l: #10B981;
  --green-xl:#D1FAE5;
  --orange:  #EA580C;
  --orange-l:#F97316;
  --orange-xl:#FFF7ED;
  --teal:    #0891B2;
  --purple:  #7C3AED;
  --text:    #1E293B;
  --muted:   #64748B;
  --border:  #E2E8F0;
  --card:    #FFFFFF;
  --bg:      #F8FAFC;
  --radius:  .75rem;
  --shadow:  0 2px 12px rgba(0,0,0,.06);
}

/* === HIDE OLD THEME NAV / HEADER === */
#header, #nav, .menu.classic, #header-shadow, #menu-shadow,
#logo, #footer, #sidebar, .sidebar, #secondary,
.bg-shadow, #wrapper, #primary, #content-home, #content-single,
.hentry, .hentry-post, .inner.group { all: unset; display: block; }
body { padding: 0 !important; }
#primary { padding: 0 !important; }
.inner.group { max-width: unset !important; }
.content.group, .content-home.group, #content-single.content.group { background: none !important; }

/* === MODERN TOPBAR === */
.avemi-bar {
  background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 100%);
  height: 4px; width: 100%;
}
.avemi-header {
  position: sticky; top: 0; z-index: 9999;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(30,64,175,.08);
}
.avemi-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  height: 68px;
}
.avemi-logo {
  font-size: 1.35rem; font-weight: 800; color: var(--blue);
  letter-spacing: -.03em; white-space: nowrap;
  display: flex; align-items: center; gap: .4rem; flex-shrink: 0;
}
.avemi-logo span { color: var(--orange); }
.avemi-logo img { height: 42px; }

/* === NAV MENU === */
.avemi-nav { display: flex; align-items: center; gap: .1rem; flex: 1; }
.avemi-nav > li { list-style: none; position: relative; }
.avemi-nav > li > a {
  display: block; padding: .45rem .8rem; font-size: .82rem; font-weight: 600;
  color: var(--text); border-radius: .45rem; white-space: nowrap;
  transition: background .15s, color .15s;
}
.avemi-nav > li > a:hover { background: var(--blue-xl); color: var(--blue); }
.avemi-nav > li > a.active { color: var(--blue); }

/* highlighted links */
.avemi-nav > li > a.nav-hl {
  background: linear-gradient(135deg, var(--orange), #FCD34D);
  color: #7C2D12 !important; font-weight: 800;
  border-radius: 999px; padding: .4rem 1rem;
  box-shadow: 0 2px 8px rgba(234,88,12,.25);
}
.avemi-nav > li > a.nav-hl:hover { filter: brightness(1.05); background: linear-gradient(135deg, #F97316, #FBBF24); }
.avemi-nav > li > a.nav-cs {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff !important; font-weight: 800;
  border-radius: 999px; padding: .4rem 1rem;
  box-shadow: 0 2px 8px rgba(5,150,105,.25);
}
.avemi-nav > li > a.nav-cs:hover { filter: brightness(1.07); }

/* DROPDOWN */
.avemi-nav li .drop {
  display: none; position: absolute; top: calc(100% + .3rem); left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: .7rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); min-width: 230px; overflow: hidden; z-index: 9999;
}
.avemi-nav li:hover .drop { display: block; }
.avemi-nav .drop a {
  display: block; padding: .6rem 1.1rem; font-size: .81rem; color: var(--text);
  transition: background .12s; font-weight: 500;
}
.avemi-nav .drop a:hover { background: var(--blue-xl); color: var(--blue); }
.avemi-nav .drop a .drop-icon { margin-right: .4rem; }

/* hamburger */
.avemi-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; margin-left: auto; }
.avemi-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.avemi-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.avemi-hamburger.open span:nth-child(2) { opacity: 0; }
.avemi-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.avemi-nav-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.btn-accedi {
  background: var(--blue); color: #fff !important; font-weight: 700 !important;
  border-radius: .5rem; padding: .4rem 1rem !important; font-size: .8rem !important;
  transition: background .15s !important;
}
.btn-accedi:hover { background: #1E40AF !important; }

@media (max-width: 960px) {
  .avemi-hamburger { display: flex; }
  .avemi-nav { display: none; flex-direction: column; align-items: flex-start; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--border); padding: 1rem; gap: 0; overflow-y: auto; z-index: 9998; }
  .avemi-nav.open { display: flex; }
  .avemi-nav > li { width: 100%; }
  .avemi-nav > li > a { padding: .7rem .9rem; font-size: .9rem; border-radius: .5rem; }
  .avemi-nav li .drop { position: static; box-shadow: none; border: none; background: var(--bg); border-radius: .5rem; margin: .2rem 0 .4rem .5rem; display: none; }
  .avemi-nav li.mob-open .drop { display: block; }
  .avemi-nav-right { display: none; }
}

/* === CONTENUTO PAGINA === */
.pg { font-family: 'Inter', 'Segoe UI', sans-serif; }
.pg-wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.pg-back { padding: 1.2rem 0 0; }
.pg-back button {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: .35rem .9rem; border-radius: .45rem; cursor: pointer; font-size: .8rem; font-family: inherit;
}
.pg-back button:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-xl); }

/* HERO */
.pg-hero {
  background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 40%, #EDE9FE 75%, #D1FAE5 100%);
  padding: 4rem 0 3rem; text-align: center; position: relative; overflow: hidden;
  border-bottom: 2px solid #BFDBFE;
}
.pg-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(59,130,246,.15), transparent 55%),
              radial-gradient(ellipse at 80% 30%, rgba(16,185,129,.1), transparent 50%);
}
.pg-hero .pg-wrap { position: relative; z-index: 2; }
.pg-hero h1 { font-size: 2.4rem; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: .75rem; letter-spacing: -.03em; }
.pg-hero p { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.6; }
.pg-badge {
  display: inline-block; background: #fff; border: 2px solid #BFDBFE;
  border-radius: 9999px; padding: .35rem 1.2rem; font-size: .75rem; color: var(--blue);
  letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  box-shadow: 0 2px 8px rgba(59,130,246,.12); margin-bottom: .75rem;
}
@media(max-width:640px) { .pg-hero h1 { font-size: 1.7rem; } .pg-hero p { font-size: .92rem; } }

/* SECTIONS */
.pg-section { padding: 3.5rem 0; }
.pg-label {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .5rem;
}
.pg-title { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: 1.2rem; letter-spacing: -.02em; line-height: 1.25; }
.pg-subtitle { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: .7rem; }
.pg-text { color: var(--muted); line-height: 1.75; font-size: .95rem; margin-bottom: 1rem; }

/* GRIDS */
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.pg-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.pg-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.pg-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
@media(max-width:640px) { .pg-grid { grid-template-columns: 1fr; } }

/* CARDS */
.pg-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.pg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.09); }
.pg-card h3, .pg-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.pg-card p { font-size: .85rem; color: var(--muted); line-height: 1.65; }
.pg-card-icon { font-size: 1.8rem; display: block; margin-bottom: .65rem; }

/* card accenti colore */
.mod-blue  { border-top: 3px solid #3B82F6; }
.mod-cyan  { border-top: 3px solid #06B6D4; }
.mod-orange{ border-top: 3px solid #F97316; }
.mod-green { border-top: 3px solid #10B981; }
.mod-yellow{ border-top: 3px solid #F59E0B; }
.mod-emerald{ border-top: 3px solid #059669; }
.mod-indigo{ border-top: 3px solid #6366F1; }
.mod-purple{ border-top: 3px solid #8B5CF6; }
.mod-teal  { border-top: 3px solid #14B8A6; }
.mod-red   { border-top: 3px solid #EF4444; }
.mod-pink  { border-top: 3px solid #EC4899; }

/* LIST */
.pg-list { padding-left: 1.1rem; color: var(--muted); font-size: .88rem; line-height: 2; }
.pg-list li::marker { color: var(--blue); }

/* HIGHLIGHT BOXES */
.pg-highlight {
  background: linear-gradient(135deg, #EFF6FF, #E0F2FE);
  border-left: 4px solid var(--blue-l); border-radius: .6rem;
  padding: 1.1rem 1.4rem; margin-top: 1.5rem; font-size: .9rem; color: var(--text); line-height: 1.7;
}
.pg-highlight.hl-green { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); border-color: var(--green-l); }
.pg-highlight.hl-orange { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); border-color: var(--orange-l); }
.pg-highlight.hl-purple { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); border-color: #8B5CF6; }

/* PHOTO PLACEHOLDER */
.pg-photo {
  background: linear-gradient(135deg, var(--blue-xl), var(--green-xl));
  border: 2px dashed var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; color: var(--muted); font-size: .82rem; text-align: center; padding: 1rem;
}

/* SECTIONS BG */
.pg-bg-blue { background: linear-gradient(135deg, #EFF6FF, #F0F9FF); }
.pg-bg-green { background: linear-gradient(135deg, #F0FDF4, #ECFDF5); }
.pg-bg-orange { background: linear-gradient(135deg, #FFF7ED, #FFFBEB); }
.pg-bg-purple { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); }
.pg-bg-white { background: #fff; }
.pg-bg-dark { background: linear-gradient(135deg, #0F172A, #1E293B); color: #fff; }
.pg-bg-dark .pg-title, .pg-bg-dark .pg-label { color: #CBD5E1; }
.pg-bg-dark .pg-text { color: #94A3B8; }
.pg-bg-dark .pg-highlight { background: rgba(255,255,255,.05); border-color: #3B82F6; color: #CBD5E1; }

/* TABELLA */
.pg-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.pg-table th { background: linear-gradient(90deg, var(--blue), var(--blue-l)); color: #fff; padding: .7rem 1rem; text-align: left; font-weight: 700; }
.pg-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.pg-table tr:hover td { background: var(--blue-xl); }
.pg-table td:first-child { font-weight: 600; color: var(--blue); white-space: nowrap; }

/* STATS BAR */
.pg-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.pg-stat { text-align: center; }
.pg-stat .stat-n { font-size: 2.5rem; font-weight: 900; color: var(--blue); line-height: 1; letter-spacing: -.04em; }
.pg-stat .stat-l { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; font-weight: 600; }

/* STEP LIST */
.pg-steps { display: flex; flex-direction: column; gap: 1rem; }
.pg-step { display: flex; gap: 1rem; align-items: flex-start; }
.pg-step-n { background: var(--blue); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.pg-step-body h4 { font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.pg-step-body p { font-size: .83rem; color: var(--muted); line-height: 1.6; }

/* CTA */
.pg-cta {
  background: linear-gradient(135deg, #EBF4FF, #E0F2FE, #D1FAE5);
  border: 2px solid #BFDBFE; border-radius: 1.25rem; padding: 2.5rem; text-align: center; margin: 2rem 0;
}
.pg-cta h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .6rem; color: var(--text); }
.pg-cta p { font-size: .92rem; color: var(--muted); margin-bottom: 1.25rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.pg-cta a.btn-cta {
  display: inline-block; background: linear-gradient(135deg, var(--blue), var(--blue-l));
  color: #fff !important; font-weight: 700; padding: .75rem 2rem; border-radius: .75rem;
  box-shadow: 0 4px 14px rgba(29,78,216,.3); transition: all .2s; margin: .3rem;
}
.pg-cta a.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,78,216,.4); }
.pg-cta a.btn-outline {
  display: inline-block; border: 2px solid var(--blue); color: var(--blue) !important;
  font-weight: 700; padding: .7rem 1.8rem; border-radius: .75rem; transition: all .2s; margin: .3rem;
}
.pg-cta a.btn-outline:hover { background: var(--blue-xl); }

/* PRICE CARD */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.price-card {
  background: #fff; border: 2px solid var(--border); border-radius: 1.25rem; padding: 2rem;
  position: relative; transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.price-card.featured { border-color: var(--blue); box-shadow: 0 8px 32px rgba(29,78,216,.12); }
.price-card.featured::before { content: '⭐ Più richiesto'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: .7rem; font-weight: 800; padding: .25rem .9rem; border-radius: 999px; white-space: nowrap; }
.price-badge { display: inline-block; padding: .25rem .75rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.price-badge.b-blue { background: var(--blue-xl); color: var(--blue); }
.price-badge.b-green { background: var(--green-xl); color: var(--green); }
.price-badge.b-orange { background: var(--orange-xl); color: var(--orange); }
.price-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .35rem; }
.price-amount { font-size: 2rem; font-weight: 900; color: var(--blue); margin: .75rem 0; letter-spacing: -.04em; }
.price-amount small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.price-note { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.price-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.price-list li { font-size: .84rem; color: var(--text); padding: .35rem 0; display: flex; align-items: flex-start; gap: .5rem; border-bottom: 1px solid var(--bg); }
.price-list li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.price-cta { display: block; text-align: center; background: var(--blue); color: #fff !important; font-weight: 700; padding: .75rem; border-radius: .65rem; width: 100%; font-size: .88rem; transition: background .15s; }
.price-cta:hover { background: #1E40AF !important; }
.price-cta.outline { background: transparent !important; border: 2px solid var(--blue); color: var(--blue) !important; }
.price-cta.outline:hover { background: var(--blue-xl) !important; }

/* TAG CHIPS */
.pg-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.chip { display: inline-block; background: var(--blue-xl); color: var(--blue); border-radius: 999px; padding: .2rem .75rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.chip.g { background: var(--green-xl); color: var(--green); }
.chip.o { background: var(--orange-xl); color: var(--orange); }
.chip.p { background: #F5F3FF; color: #7C3AED; }

/* FOOTER */
.avemi-footer {
  background: #0F172A; color: #94A3B8; padding: 3rem 0 1.5rem;
  margin-top: 4rem; font-size: .82rem;
}
.avemi-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.avemi-footer h4 { color: #E2E8F0; font-weight: 700; margin-bottom: .75rem; font-size: .85rem; }
.avemi-footer a { color: #94A3B8; display: block; padding: .2rem 0; transition: color .15s; }
.avemi-footer a:hover { color: #fff; }
.avemi-footer .brand { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.avemi-footer .brand span { color: #F97316; }
.avemi-footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding: 1.25rem 1.5rem 0; border-top: 1px solid #1E293B; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media(max-width: 600px) { .avemi-footer-inner { grid-template-columns: 1fr; } }

/* UTILS */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.icon-big { font-size: 3rem; display: block; margin-bottom: 1rem; }
.badge-new { display: inline-block; background: #EF4444; color: #fff; font-size: .6rem; font-weight: 800; padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; margin-left: .3rem; letter-spacing: .05em; }

/* ACCORDION FAQ */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; padding: 1rem 1.25rem; font-size: .9rem; font-weight: 700; color: var(--text); background: #fff; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; transition: background .15s; }
.faq-q:hover { background: var(--blue-xl); }
.faq-q .arrow { font-size: 1rem; transition: transform .2s; flex-shrink: 0; }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.25rem 1rem; font-size: .87rem; color: var(--muted); line-height: 1.75; }
.faq-a.open { display: block; }
