/* Impronto Enterprise — sito istituzionale temporaneo */
:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --accent: #ff6f00;
  --text: #1f2430;
  --text-muted: #5f6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --border: #e2e8f0;
  --radius: 12px;
  --max-width: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

nav.main-nav { display: flex; gap: 28px; }

nav.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a:hover, nav.main-nav a.active { color: var(--primary); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #5c6bc0 100%);
  color: #fff;
  padding: 96px 0 88px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero p.subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-left: 12px;
}

/* Sections */
section.section { padding: 72px 0; }
section.section.alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon { font-size: 2rem; margin-bottom: 14px; display: block; }

.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Checklist */
.checklist { list-style: none; max-width: 720px; margin: 0 auto; }

.checklist li {
  padding: 10px 0 10px 36px;
  position: relative;
  font-size: 1.02rem;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA band */
.cta-band {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.cta-band p { opacity: 0.9; margin-bottom: 28px; }

/* Article (privacy / support) */
.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.article h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }

.article p.updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

.article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-top: 8px;
}

.article h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; }

.article p { margin-bottom: 14px; }

.article ul, .article ol { margin: 0 0 16px 26px; }
.article li { margin-bottom: 6px; }

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.93rem;
}

.article th, .article td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article th { background: var(--bg-alt); font-weight: 700; }

.infobox {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-light);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 16px 0 24px;
}

.infobox.accent { border-left-color: var(--accent); }

/* Contact cards (support) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 8px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  background: var(--bg);
}

.contact-card .icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.contact-card a { font-weight: 700; }

/* Footer */
footer.site-footer {
  background: #12162b;
  color: #aab2c8;
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

footer .footer-brand { color: #fff; font-weight: 800; font-size: 1.05rem; }
footer .footer-brand span { color: var(--accent); }
footer nav { display: flex; gap: 20px; }
footer nav a { color: #aab2c8; }
footer nav a:hover { color: #fff; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  nav.main-nav { gap: 16px; }
  .header-inner { flex-direction: row; }
}
