/* ==========================================================================
   MondoPolizza — Design system
   ========================================================================== */

:root {
  --navy-900: #0a2540;
  --navy-800: #0d2f52;
  --navy-700: #123f6b;
  --blue-600: #1565c0;
  --teal-500: #00acc1;
  --teal-400: #26c6da;
  --bg-body: #ffffff;
  --bg-alt: #f4f8fb;
  --bg-navy: var(--navy-900);
  --text-main: #1c2b3a;
  --text-muted: #55697d;
  --text-on-dark: #eaf2f8;
  --text-on-dark-muted: #a9c0d6;
  --border-color: #e1e8ef;
  --white: #ffffff;
  --success: #1e8e5a;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 37, 64, 0.16);
  --container: 1160px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--navy-900);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

.section {
  padding: 88px 0;
}

.section--alt { background: var(--bg-alt); }
.section--navy {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--text-on-dark);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--text-on-dark-muted); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.breadcrumb-trail {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb-trail a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb-trail a:hover {
  color: var(--teal-500);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-500);
  background: rgba(0, 172, 193, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section--navy .eyebrow {
  color: var(--teal-400);
  background: rgba(38, 198, 218, 0.14);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal-500), var(--blue-600));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); }

.btn--outline {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn--outline:hover { background: var(--navy-900); color: var(--white); }

.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--block { width: 100%; }

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

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  padding: 6px 0;
  position: relative;
}
.main-nav a.is-active,
.main-nav a:hover { color: var(--teal-500); }

.header-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 2px;
}

.topbar {
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--text-on-dark); }
.topbar strong { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 96px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(0, 172, 193, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 600;
}
.trust-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-500);
  flex: none;
}

.hero-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
}
.hero-panel h3 { margin-bottom: 4px; }
.hero-panel .muted { font-size: 0.9rem; margin-bottom: 20px; }

.quote-form { display: grid; gap: 14px; }
.quote-form select,
.quote-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg-alt);
}
.quote-form label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-800);
  display: block;
  margin-bottom: 6px;
}
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,172,193,0.15), rgba(21,101,192,0.15));
  color: var(--blue-600);
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-600);
  margin-top: 6px;
}
.card-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  font-weight: 600;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-left: 4px; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ---------- Person / founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.founder-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--teal-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 800;
}
.founder-role { color: var(--teal-500); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--border-color); padding-left: 28px; display: grid; gap: 30px; }
.timeline-item .year { color: var(--teal-500); font-weight: 800; font-size: 0.9rem; }

/* ---------- Locations ---------- */
.location-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}
.location-card h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 56px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--text-on-dark-muted); margin: 0; }

/* ---------- Table (Sinistri) ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}
.info-table th { background: var(--bg-alt); color: var(--navy-900); }
.info-table tr:last-child td { border-bottom: none; }

/* ---------- Accordion ---------- */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.accordion-item summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy-900);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--teal-500);
  margin-left: 12px;
}
.accordion-item[open] summary::after { content: "\2212"; }
.accordion-item .accordion-body { padding: 0 22px 20px; color: var(--text-muted); }

/* ---------- Form (contatti) ---------- */
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { font-weight: 700; font-size: 0.85rem; color: var(--navy-800); margin-bottom: 6px; display: block; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg-alt);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.checkbox-row input { width: auto; margin-top: 3px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-800);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-grid a, .footer-grid li { font-size: 0.9rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand img { height: 32px; margin-bottom: 14px; }
.footer-legal {
  padding: 26px 0 30px;
  font-size: 0.78rem;
  line-height: 1.8;
  color: #7d93aa;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #7d93aa; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 180px 1fr; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-cta .btn--outline { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
  }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder-avatar { max-width: 200px; margin: 0 auto; }
  .cta-band { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
}
