/* Sistema visivo Teiwybre Pizzeria */
:root {
  --radius-pill: 9999px;
  --radius-card: 24px;
  --radius-input: 12px;
  --radius-image: 16px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05);
  --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;
  --section-py: clamp(3rem, 6vw, 5rem);
  --measure: 68ch;
}

html {
  scroll-behavior: smooth;
}

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

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

h1 { font-size: var(--type-h1); line-height: 1.08; }
h2 { font-size: var(--type-h2); line-height: 1.18; }
h3 { font-size: var(--type-h3); line-height: 1.25; }
p, li { text-wrap: pretty; }
small, .text-small { font-size: var(--type-small); }

.prose-measure { max-width: var(--measure); }
.section-pad { padding-top: var(--section-py); padding-bottom: var(--section-py); }

.site-header {
  transition: padding 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  box-shadow: none;
}

.site-header.is-shrunk {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  background: rgba(255, 248, 251, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.logo-mark {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  transition: width 180ms ease, height 180ms ease;
}

.site-header.is-shrunk .logo-mark {
  width: 2.35rem;
  height: 2.35rem;
}

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

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

.btn-pill,
button[type="submit"] {
  border-radius: var(--radius-pill);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  box-shadow: none;
}

.btn-pill:hover,
.btn-pill:focus,
button[type="submit"]:hover,
button[type="submit"]:focus {
  transform: scale(1.02);
}

.card-soft {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

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

input,
select,
textarea {
  border-radius: var(--radius-input);
  font: inherit;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-secondary);
  font-size: var(--type-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 2.1rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.hero-fullbleed {
  min-height: 680px;
  background-image: linear-gradient(rgba(26, 13, 21, 0.24), rgba(26, 13, 21, 0.24)), url('../images/hero-pizzeria-milano.jpg');
  background-size: cover;
  background-position: center;
}

.sidebar-note {
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.icon-line {
  width: 1.9rem;
  height: 1.9rem;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.form-field {
  width: 100%;
  border: 1px solid rgba(129, 35, 92, 0.18);
  background: var(--color-surface);
  color: var(--color-text-primary);
  padding: 0.78rem 0.9rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(129, 35, 92, 0.12);
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-text-primary);
  font-size: var(--type-small);
  font-weight: 700;
}

.form-confirmation {
  display: none;
  border-radius: var(--radius-card);
  background: rgba(216, 106, 0, 0.10);
  color: var(--color-text-primary);
  padding: 1rem;
}

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

.map-frame {
  width: 100%;
  min-height: 230px;
  border: 0;
  border-radius: var(--radius-image);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: none;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(26, 13, 21, 0.12);
  padding: 1rem;
}

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

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

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

@media (max-width: 767px) {
  .hero-fullbleed { min-height: 620px; }
  .mobile-panel { display: none; }
  .mobile-panel.is-open { display: block; }
}
