:root {
  --ts-h1: clamp(2.4rem, 5vw, 3.4rem);
  --ts-h2: 2.2rem;
  --ts-h3: 1.5rem;
  --ts-body: 1.125rem;
  --ts-small: 0.95rem;
  --ts-eyebrow: 0.78rem;
  --section-pad: clamp(5rem, 8vw, 7rem);
  --radius-card: 24px;
  --radius-input: 12px;
  --radius-image: 16px;
  --inset-soft: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--ts-body);
  line-height: 1.65;
  background: var(--color-background);
  color: var(--color-text-primary);
  text-wrap: pretty;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: var(--ts-h1); }
h2 { font-size: var(--ts-h2); }
h3 { font-size: var(--ts-h3); }
small, .text-small { font-size: var(--ts-small); }

.section-pad {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.prose-measure {
  max-width: 64ch;
}

.eyebrow {
  font-size: var(--ts-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-accent);
}

.accent-underline,
.nav-link[aria-current="page"],
.nav-link.active {
  position: relative;
  text-decoration: none;
}

.accent-underline::after,
.nav-link[aria-current="page"]::after,
.nav-link.active::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 9999px;
  margin-top: 0.75rem;
}

.nav-link[aria-current="page"]::after,
.nav-link.active::after {
  width: 26px;
  margin-top: 0.25rem;
}

.site-header {
  background: rgba(255, 254, 252, 0.96);
  border-bottom: 1px solid rgba(0, 7, 27, 0.08);
  backdrop-filter: blur(10px);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  object-fit: contain;
  background: var(--color-surface);
}

.hero-home {
  min-height: 680px;
  background-image: linear-gradient(rgba(0, 3, 77, 0.24), rgba(0, 3, 77, 0.24)), url('images/hero-oscuramento-vetri-torino.jpg');
  background-size: cover;
  background-position: center;
}

.card-soft {
  background: var(--color-surface);
  border: 1px solid rgba(0, 7, 27, 0.08);
  border-radius: var(--radius-card);
  box-shadow: none;
}

.work-card {
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.work-card:hover {
  transform: translateY(-2px);
  border-color: rgba(158, 104, 0, 0.35);
}

.work-image,
.rounded-image {
  border-radius: var(--radius-image);
  object-fit: cover;
}

.btn-primary,
.btn-secondary,
button,
input,
select,
textarea {
  font: inherit;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  border-radius: 9999px;
  border: 0;
  box-shadow: var(--inset-soft);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--color-surface);
  color: var(--color-primary);
}

.btn-primary:hover,
.btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 254, 252, 0.78);
  color: var(--color-text-primary);
}

.btn-on-light {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn-on-light:hover {
  background: var(--color-primary-light);
  color: var(--color-surface);
}

.form-control,
.form-select {
  width: 100%;
  border: 0;
  border-radius: var(--radius-input);
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--inset-soft);
  padding: 0.85rem 1rem;
  outline: 1px solid rgba(0, 7, 27, 0.08);
  transition: outline-color 180ms ease, background-color 180ms ease;
}

.form-control:focus,
.form-select:focus {
  outline-color: var(--color-primary-light);
  background: #ffffff;
}

label {
  font-size: var(--ts-small);
  font-weight: 700;
  color: var(--color-text-primary);
}

.numeric {
  font-variant-numeric: tabular-nums;
}

.site-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  transition: color 180ms ease;
}

.site-link:hover {
  color: var(--color-accent);
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid rgba(0, 7, 27, 0.1);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.notice-success {
  border-radius: var(--radius-input);
  background: rgba(178, 170, 125, 0.24);
  color: var(--color-text-primary);
  padding: 0.9rem 1rem;
}

.footer-newsletter-message[hidden],
.form-message[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .hero-home { min-height: 600px; }
  body { font-size: 1.05rem; }
  .accent-underline::after { margin-top: 0.6rem; }
}
