html {
  scroll-behavior: smooth;
}

:root {
  --radius-card: 24px;
  --radius-input: 12px;
  --radius-image: 16px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05);
  --space-section: clamp(3rem, 6vw, 5rem);
  --type-h1: clamp(2rem, 4vw, 2.5rem);
  --type-h2: 1.6rem;
  --type-h3: 1.25rem;
  --type-body: 1rem;
  --type-small: 0.875rem;
  --type-eyebrow: 0.72rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  color: var(--color-text-primary);
  background: var(--color-background);
  text-wrap: pretty;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  text-wrap: balance;
}

h1,
.h1-size {
  font-size: var(--type-h1);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2,
.h2-size {
  font-size: var(--type-h2);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h3,
.h3-size {
  font-size: var(--type-h3);
  line-height: 1.25;
}

.small-text {
  font-size: var(--type-small);
}

.eyebrow {
  font-size: var(--type-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-secondary);
}

.section-pad {
  padding-block: var(--space-section);
}

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

.hero-home {
  min-height: 620px;
  background-image: linear-gradient(rgba(26, 15, 33, 0.26), rgba(26, 15, 33, 0.26)), url('../images/hero-caffe-cesano-boscone.jpg');
  background-size: cover;
  background-position: center;
}

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

.nav-link {
  color: var(--color-text-primary);
  transition: color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-primary);
}

.card-soft {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  border: 1px solid rgba(95, 76, 136, 0.12);
  transition: transform 160ms ease, border-color 160ms ease;
}

.card-soft:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 76, 136, 0.24);
}

.stack-card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  border: 1px solid rgba(95, 76, 136, 0.12);
}

.rounded-site-image {
  border-radius: var(--radius-image);
}

.btn-site,
button.btn-site,
a.btn-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 9999px;
  padding: 0.82rem 1.18rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  box-shadow: none;
  transition: transform 160ms ease, background-color 160ms ease;
  cursor: pointer;
}

.btn-site:hover,
.btn-site:focus {
  transform: scale(1.02);
  background: var(--color-primary-dark);
}

.btn-site-secondary,
a.btn-site-secondary {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border: 1px solid rgba(95, 76, 136, 0.18);
}

.btn-site-secondary:hover,
.btn-site-secondary:focus {
  background: #fff;
  color: var(--color-primary-dark);
}

.input-site,
textarea.input-site,
select.input-site {
  width: 100%;
  border-radius: var(--radius-input);
  border: 1px solid rgba(95, 76, 136, 0.22);
  background: #fff;
  color: var(--color-text-primary);
  padding: 0.85rem 0.95rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-site:focus,
textarea.input-site:focus,
select.input-site:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(95, 76, 136, 0.14);
}

.section-marker {
  position: relative;
}

.section-marker::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.35rem;
  width: 3px;
  height: 3.2rem;
  border-radius: 9999px;
  background: var(--color-accent);
}

@media (max-width: 768px) {
  .section-marker::before {
    left: 0;
    top: -0.85rem;
    width: 3.5rem;
    height: 3px;
  }

  .hero-home {
    min-height: 560px;
  }
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: none;
  border-radius: 24px;
  border: 1px solid rgba(95, 76, 136, 0.18);
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(26, 15, 33, 0.12);
  padding: 1rem;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.form-confirmation {
  display: none;
  border-radius: 16px;
  background: rgba(0, 132, 144, 0.1);
  color: var(--color-text-primary);
  border: 1px solid rgba(0, 132, 144, 0.22);
  padding: 0.9rem 1rem;
}

.form-confirmation.is-visible {
  display: block;
}

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