/* Carrozzeria Lainate — landing palette inspired by facade: charcoal, orange, red */

:root {
  --bg: #121418;
  --bg-elevated: #1a1d24;
  --surface: #23262f;
  --text: #f4f5f7;
  --text-muted: #a7adb8;
  --accent: #e85d04;
  --accent-soft: rgba(232, 93, 4, 0.15);
  --red: #c1121f;
  --red-soft: rgba(193, 18, 31, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", var(--font);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --max: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ff8c42;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(232, 93, 4, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff6b1a);
  color: #1a0b00;
  box-shadow: 0 8px 28px rgba(232, 93, 4, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: #1a0b00;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section.alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card + .card {
  margin-top: 1.25rem;
}

.card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.callout {
  border-left: 4px solid var(--red);
  background: var(--red-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  color: var(--text);
}

.callout strong {
  color: var(--text);
}

.gallery {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.poll {
  margin-top: 1.5rem;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.poll-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}

.poll-option:hover {
  border-color: rgba(232, 93, 4, 0.4);
  background: var(--surface);
}

.poll-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.poll-option input {
  margin-top: 0.35rem;
  accent-color: var(--accent);
}

.poll-option span {
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

.poll-option small {
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

.poll-results h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.poll-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.poll-row label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.poll-row label span:last-child {
  font-weight: 600;
  color: var(--text);
}

.poll-track {
  height: 12px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.poll-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--accent));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}

.poll-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

input,
textarea,
select {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: rgba(232, 93, 4, 0.5);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.check input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.form-actions {
  margin-top: 0.5rem;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form-status.ok {
  color: #7dd87a;
}

.form-status.err {
  color: #ff8a8a;
}

.biz-card {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .biz-card {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

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

.biz-meta a {
  word-break: break-all;
}

.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0 0 0.75rem;
}

.footer-inner p:last-child {
  margin-bottom: 0;
}
