/* =====================================================================
   I LOVE PANZEROTTI — official website (rebuild)
   Brand: gold + cream + tricolore, with the iconic heart logo
   ===================================================================== */

:root {
  --gold:         #F5C842;
  --gold-deep:    #E5A800;
  --gold-soft:    #FCE08E;
  --mustard:      #FBC02D;
  --cream:        #FBF6E9;
  --cream-warm:   #FCF4DF;
  --ink:          #2A2118;
  --ink-soft:     #4B3F2E;
  --line:         rgba(42, 33, 24, 0.12);
  --it-green:     #008C45;
  --it-red:       #CD212A;
  --pink-soft:    #FFD1DC;
  --shadow-sm:    0 2px 12px rgba(42, 33, 24, 0.08);
  --shadow-md:    0 8px 30px rgba(42, 33, 24, 0.12);
  --shadow-lg:    0 24px 60px rgba(42, 33, 24, 0.18);
  --radius-sm:    12px;
  --radius-md:    20px;
  --radius-lg:    32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container       { width: min(1200px, 92%); margin: 0 auto; }
.container-wide  { width: min(1380px, 94%); margin: 0 auto; }
.container-narrow{ width: min(880px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; color: var(--ink); font-weight: 700; }
.script        { font-family: 'Yellowtail', cursive; font-weight: 400; color: var(--gold-deep); }
.script-light  { font-family: 'Pacifico', cursive; font-weight: 400; color: var(--gold-deep); }

.eyebrow {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold-deep);
  display: inline-block;
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: "•••";
  color: var(--gold);
  letter-spacing: 0.1em;
  margin: 0 12px;
  opacity: 0.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(229, 168, 0, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(229, 168, 0, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Navigation ---------- */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 233, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1.05rem;
}
.nav-logo img { width: 52px; height: 52px; }
.nav-logo span { line-height: 1.1; }
.nav-logo small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 3px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color .15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}
.nav-cta { font-size: 0.88rem; padding: 12px 22px; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; }
.nav-burger span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s ease; }

/* ---------- Tricolore decoration ---------- */
.tricolore {
  display: inline-flex;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.tricolore i { width: 18px; height: 6px; display: block; }
.tricolore i:nth-child(1){ background: var(--it-green); }
.tricolore i:nth-child(2){ background: #fff; }
.tricolore i:nth-child(3){ background: var(--it-red); }

/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; }
section.tight { padding: 70px 0; }
section.alt   { background: var(--cream-warm); }
section.dark  { background: var(--ink); color: var(--cream); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--cream); }
section.dark .eyebrow { color: var(--gold); }
section.yellow {
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--cream) 100%);
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 18px;
}
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Generic Hero (used on subpages) ---------- */
.page-hero {
  position: relative;
  padding: 80px 0 70px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(252, 224, 142, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 60%, rgba(245, 200, 66, 0.25), transparent 60%),
    var(--cream);
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.page-hero h1 .script {
  font-size: 1.1em;
  display: inline-block;
  line-height: 0.95;
}
.page-hero p.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p  { color: var(--ink-soft); }
.card-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  font-size: 1.8rem;
}

/* ---------- Image cards ---------- */
.img-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/5;
  transition: transform .3s ease, box-shadow .3s ease;
}
.img-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.img-card:hover img { transform: scale(1.06); }
.img-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55));
  z-index: 1;
  pointer-events: none;
}
.img-card figcaption {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 22px;
  z-index: 2;
  color: white;
  font-family: 'Yellowtail', cursive;
  font-size: 1.7rem;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(251,246,233,0.8);
  padding: 70px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(251,246,233,0.12);
}
.foot-brand img { width: 64px; margin-bottom: 16px; }
.foot-brand h4 { color: var(--cream); margin-bottom: 12px; font-size: 1.1rem; }
.foot-brand p  { font-size: 0.92rem; line-height: 1.7; }
.foot-col h5 {
  color: var(--gold);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: 10px; font-size: 0.95rem; }
.foot-col ul li a:hover { color: var(--gold); }
.foot-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(251,246,233,0.5);
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: span 2; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-group label .req { color: var(--it-red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(229,168,0,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.check-row { display: flex; align-items: flex-start; gap: 12px; font-size: 0.88rem; color: var(--ink-soft); }
.check-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: var(--gold-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; right: 4%;
    flex-direction: column;
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: var(--radius-sm);
    align-items: flex-start;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }

  section { padding: 65px 0; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
}
