@font-face {
  font-family: 'Pizzeria';
  src: url('../fonts/pizzeria.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Sorrentina';
  src: url('../fonts/sorrentina.ttf') format('truetype');
  font-display: swap;
}

:root {
  --color-primary: #960000;
  --color-primary-dark: #6e0000;
  --color-cream: #eecfb1;
  --color-dark: #29312d;
  --color-brown: #795548;
  --color-brown-dark: #4e342e;
  --color-bg: #f4f2ef;
  --color-card: #ffffff;
  --color-border: #e5dfd6;
  --color-text: #2c2622;
  --color-text-muted: #6b6259;

  --font-display: 'Pizzeria', Georgia, serif;
  --font-script: 'Sorrentina', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 3px 14px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .18);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --container-max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.icon { flex-shrink: 0; }

/* ============ Fiore decorativo (sfondo, parti chiare del sito) ============ */
.section-flower {
  position: absolute;
  z-index: 0;
  width: clamp(220px, 30vw, 420px);
  height: auto;
  opacity: .05;
  pointer-events: none;
}

.section-flower-top-left { top: 40; left: 0; }
.section-flower-left { bottom: -10%; left: -5%; transform: rotate(180deg); }

/* ============ Header condiviso ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: var(--space-2);
  padding: .75rem var(--space-3);
  background: var(--color-dark);
  color: #fff;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-cream);
  min-width: 0;
  white-space: nowrap;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header .brand img { height: 32px; width: auto; flex-shrink: 0; }

.site-header .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .45);
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.site-header .back-link:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

@media (max-width: 480px) {
  .site-header { padding: .6rem var(--space-2); }
  .site-header .brand { font-size: 1rem; gap: .4rem; }
  .site-header .brand img { height: 26px; }

  .site-header .back-link {
    width: 40px;
    height: 40px;
    padding: 0;
    gap: 0;
  }

  .site-header .back-link-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* ============ Bottoni ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  transition: transform .15s, background .15s;
}

.btn:hover { background: var(--color-primary-dark); }
.btn:active { transform: scale(.97); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
}

.btn-outline:hover { background: rgba(150, 0, 0, .08); }

/* ============ Footer condiviso ============ */
.site-footer {
  background: var(--color-dark);
  color: #f2ede8;
  padding: var(--space-4) var(--space-3) var(--space-3);
  text-align: center;
}

.site-footer .footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-4);
  margin-bottom: var(--space-3);
  font-size: .95rem;
}

.site-footer .footer-info > * {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.site-footer a:hover { text-decoration: underline; }

.social-links {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-top: var(--space-2);
}

.social-links a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: background .15s;
}

.social-links a:hover { background: rgba(255, 255, 255, .2); }

.footer-tagline {
  font-family: var(--font-display);
  color: var(--color-cream);
  font-size: .9rem;
  margin-top: var(--space-3);
  opacity: .8;
}
