:root {
  /* Colori dal logo AAP */
  --orange: #f15a22;
  --orange-dark: #c8461a;
  --green: #82b93a;
  --cyan: #00aeef;
  --grey: #808285;
  --ink: #231f20;
  --text: #3a3637;
  --muted: #6b6d70;
  --line: #e4e4e6;
  --bg: #ffffff;
  --bg-soft: #f5f5f6;
  --radius: 10px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.nav a:hover { color: var(--orange); }
.nav .nav-cta { background: var(--orange); color: #fff; padding: 9px 18px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--orange-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 16px; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 96px 0 72px; background:
  radial-gradient(600px 300px at 95% 10%, rgba(0,174,239,.10), transparent 70%),
  radial-gradient(500px 300px at 80% 100%, rgba(130,185,58,.12), transparent 70%),
  var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: center; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--orange); margin: 0 0 12px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { margin: 0; display: grid; gap: 18px; }
.stats div { border-left: 4px solid var(--orange); padding: 6px 0 6px 18px; }
.stats div:nth-child(2) { border-color: var(--green); }
.stats div:nth-child(3) { border-color: var(--cyan); }
.stats dt { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1; }
.stats dd { margin: 4px 0 0; color: var(--muted); }

/* Section heads */
.section-title { font-size: clamp(28px, 3.2vw, 38px); }
.section-sub { color: var(--muted); max-width: 64ch; margin: 0 0 40px; }

/* Agencies */
.agencies { background: var(--bg-soft); }
.agency-grid, .news-grid, .plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.agency { background: #fff; border-radius: var(--radius); padding: 28px; border-top: 5px solid var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.04); display: flex; flex-direction: column; }
.agency h3 { font-size: 26px; margin-bottom: 4px; }
.agency-tag { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 0 0 12px; }
.agency p { margin-top: 0; }
.agency a { margin-top: auto; font-weight: 700; color: var(--ink); text-decoration: none; }
.agency a:hover { color: var(--accent); }

/* News */
.feed { border-top: 3px solid var(--accent); padding-top: 16px; }
.feed h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.feed h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed-list a { color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.35; display: block; }
.feed-list a:hover { color: var(--accent); }
.feed-list time { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }
.feed-list .skeleton { height: 64px; background: linear-gradient(90deg, var(--bg-soft), #ececee, var(--bg-soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; margin-bottom: 10px; border: 0; }
.feed-more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 15px; }
.feed-more:hover { color: var(--accent); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Plans */
.plans { background: var(--bg-soft); }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 24px; }
.price { font-size: 16px; color: var(--muted); margin: 0 0 20px; }
.price span { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--ink); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan .btn { text-align: center; }
.plan-featured { border: 2px solid var(--orange); box-shadow: 0 12px 30px rgba(241,90,34,.12); }
.badge { position: absolute; top: -13px; left: 28px; margin: 0; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; }

/* Contacts */
.contacts { background: var(--ink); color: #d6d6d8; }
.contacts .section-title { color: #fff; }
.contacts .section-sub { color: #b4b5b8; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.contact-list strong { color: #fff; }
.contact-list a { color: var(--cyan); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfcfd2; border-radius: 6px; width: 100%; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { background: #fff; border-top: 4px solid var(--orange); padding: 32px 0; font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 18px; margin-left: auto !important; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--orange); }

/* Responsive */
@media (max-width: 900px) {
  section { padding: 60px 0; }
  .hero-grid, .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .agency-grid, .news-grid, .plan-grid { grid-template-columns: 1fr; }
  .plan-grid { gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { text-align: center; margin-top: 12px; border: 0; }
  .stats { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .contact-form { padding: 22px; }
  .footer-links { margin-left: 0 !important; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .feed-list .skeleton { animation: none; } }
