/* Ferruccio's Pizza | ferruccios.com | Netlify rebuild, Sept 2026 */
:root {
  --navy: #0A1A2F;
  --navy-soft: #13263f;
  --ink: #22303f;
  --cream: #F7F4EF;
  --white: #FFFFFF;
  --line: #E4DED4;
  --silver: #A9A9A9;
  --red: #A11D26;
  --red-dark: #7E141C;
  --green: #1F7A3D;
  --flame: #D97B2F;
  --max: 1120px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(10, 26, 47, 0.08);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Open Sans", -apple-system, Segoe UI, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--flame); outline-offset: 2px;
}

h1, h2, h3, .brandline {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(1.7rem, 4.6vw, 2.9rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: 0.02em; }
h3 { font-size: 1.12rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.section-tight { padding: 36px 0; }

/* tricolore hairline, the house signature */
.tricolore {
  height: 4px; width: 84px; border-radius: 2px; margin: 14px 0 22px;
  background: linear-gradient(to right, var(--green) 0 33%, var(--white) 33% 66%, var(--red) 66% 100%);
  border: 1px solid var(--line);
}
.tricolore.center { margin-left: auto; margin-right: auto; }

/* ------- header ------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { filter: drop-shadow(0 0 6px rgba(255,255,255,0.35)); }
.nav-brand:hover { text-decoration: none; color: var(--white); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
}
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a {
  color: #D8DEE7; font-weight: 600; font-size: 0.98rem;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--white); border-bottom: 2px solid var(--red); padding-bottom: 3px; }
.nav-cta {
  background: var(--red); color: var(--white) !important;
  padding: 10px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--red-dark); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; line-height: 0;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--white);
  margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}

/* ------- hero ------- */
.hero {
  position: relative; overflow: hidden; padding: 0;
  background: var(--navy);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.62;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,26,47,0.35) 0%, rgba(10,26,47,0.72) 100%);
}
.hero-inner {
  position: relative; z-index: 1; text-align: center;
  padding: clamp(36px, 6vw, 70px) 20px clamp(90px, 14vw, 150px);
  max-width: 820px; margin: 0 auto;
}
.hero-logo {
  height: clamp(170px, 30vw, 300px); width: auto; margin: 0 auto 22px;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.30)) drop-shadow(0 0 2px rgba(255,255,255,0.18));
}
.hero h1 { color: var(--white); letter-spacing: 0.04em; }
.hero p {
  color: #E8E4DC; font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  margin: 16px auto 30px; max-width: 34em;
}
.hero p em { font-style: italic; font-family: var(--font-display); }

.btn {
  display: inline-block; background: var(--red); color: var(--white);
  font-weight: 700; font-size: 1.05rem; padding: 14px 30px;
  border-radius: 999px; border: 0; cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn.ghost {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.hero .btn { box-shadow: 0 4px 18px rgba(0,0,0,0.35); }

/* centered section titles */
section .wrap > h2 { text-align: center; }
section .wrap > h2 + .tricolore { margin-left: auto; margin-right: auto; }
.reviews-head > div:first-child, .gallery-head > div:first-child { flex: 1; text-align: center; }
.reviews-head > div:first-child .tricolore, .gallery-head > div:first-child .tricolore { margin-left: auto; margin-right: auto; }
.reviews-head .rating-line { text-align: center; }
.intro p, .menu .menu-sub, .menu-note { margin-left: auto; margin-right: auto; text-align: center; }
.reviews-more { text-align: center; margin-top: 10px; font-weight: 600; }

/* ------- trust bar ------- */
.trust-bar { background: var(--navy); padding: 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 22px 20px; gap: 18px;
}
.trust-item { text-align: center; color: var(--white); }
.trust-item strong {
  display: block; font-family: var(--font-display);
  font-size: 1.25rem; color: var(--white);
}
.trust-item span { font-size: 0.88rem; color: #C9CFD8; }

/* ------- intro ------- */
.intro { background: var(--white); border-bottom: 1px solid var(--line); }
.intro p.lead { font-size: 1.18rem; max-width: 52em; }

/* ------- how it works ------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px;
}
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.step img { aspect-ratio: 4/3; object-fit: cover; object-position: 50% 22%; width: 100%; }
.step-body { padding: 18px; }
.step-num {
  font-family: var(--font-display); color: var(--red);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step h3 { margin: 6px 0 8px; }
.step p { font-size: 0.97rem; }

/* ------- reviews ------- */
.reviews { background: var(--white); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; justify-content: space-between; }
.rating-line { font-size: 1.05rem; color: var(--ink); }
.rating-line .stars { color: var(--flame); letter-spacing: 2px; font-size: 1.1rem; }
.review-track {
  display: flex; gap: 18px; overflow-x: auto; padding: 26px 4px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.review-card {
  flex: 0 0 320px; max-width: 86vw; scroll-snap-align: start;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.review-card .stars { color: var(--flame); letter-spacing: 2px; margin-bottom: 8px; }
.review-card p { font-size: 0.98rem; }
.review-card footer { margin-top: 12px; font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.review-card footer span { font-weight: 400; color: var(--silver); display: block; font-size: 0.85rem; }
.review-nav { display: flex; gap: 8px; }
.review-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--navy);
  background: var(--white); color: var(--navy); font-size: 1.1rem; cursor: pointer;
}
.review-nav button:hover { background: var(--navy); color: var(--white); }
.review-fallback { padding: 26px 0 6px; }
.review-marquee { background: var(--navy); overflow: hidden; padding: 0; }
.review-marquee a {
  display: flex; width: max-content; color: #E8E4DC; font-weight: 600;
  padding: 13px 0; animation: rmq 36s linear infinite;
}
.review-marquee a:hover { color: var(--white); text-decoration: none; }
.review-marquee span { white-space: nowrap; padding-right: 3.5em; }
@keyframes rmq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .review-marquee a { animation: none; padding-left: 20px; }
  .review-marquee span:nth-child(n+2) { display: none; }
}

/* ------- gallery ------- */
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.gallery-track {
  display: flex; gap: 14px; overflow-x: auto; padding: 26px 4px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gallery-track img {
  height: 300px; width: auto; flex: 0 0 auto; border-radius: 8px;
  scroll-snap-align: start;
}
@media (max-width: 700px) { .gallery-track img { height: 210px; } }

/* ------- menu ------- */
.menu { background: var(--navy); }
.menu h2, .menu h3 { color: var(--white); }
.menu .menu-sub { color: #C9CFD8; max-width: 46em; }
.menu-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; margin-top: 30px;
}
.menu-item { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.menu-item h3 { font-size: 1.18rem; }
.menu-item p { color: #B9C1CC; font-size: 0.95rem; margin-top: 4px; }
.menu-note { color: #C9CFD8; margin-top: 28px; font-size: 0.97rem; max-width: 58em; }
.menu-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.menu-photos img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }

/* ------- story ------- */
.story-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: center; margin-top: 10px; }
.story-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.story p { margin-bottom: 14px; }

/* ------- badges / credentials ------- */
.badge-a {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); border: 1.5px solid var(--green);
  border-radius: var(--radius); padding: 14px 20px; margin-top: 6px;
}
.badge-a .grade {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem;
  color: var(--green); border: 2.5px solid var(--green); border-radius: 8px;
  width: 52px; height: 52px; display: grid; place-items: center;
}
.badge-a div span { display: block; font-size: 0.9rem; color: var(--ink); }
.badge-a div strong { color: var(--navy); }

.cred-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.cred-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cred-card h3 { margin-bottom: 10px; }
.cred-card ul { list-style: none; }
.cred-card li { padding: 6px 0 6px 24px; position: relative; font-size: 0.97rem; }
.cred-card li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
}

/* ------- FAQ ------- */
.faq-list { max-width: 800px; margin-top: 26px; }
.faq-list details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; padding-right: 48px;
}
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--red); font-weight: 400;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 22px 18px; }

/* ------- calculator ------- */
.calc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 640px;
}
.calc label { font-weight: 700; color: var(--navy); display: block; margin: 14px 0 6px; }
.calc input, .calc select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 8px; font-size: 1.05rem; font-family: var(--font-body); background: var(--cream);
}
.calc-result {
  margin-top: 20px; border-top: 2px solid var(--line); padding-top: 18px;
  display: none;
}
.calc-result.show { display: block; }
.calc-result .big { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.calc-result p { font-size: 0.98rem; margin-top: 6px; }

/* ------- form ------- */
.book-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); max-width: 720px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-form label { font-weight: 700; color: var(--navy); display: block; margin: 14px 0 6px; font-size: 0.98rem; }
.book-form input, .book-form select, .book-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 8px; font-size: 1.02rem; font-family: var(--font-body); background: var(--cream);
}
.book-form textarea { min-height: 110px; resize: vertical; }
.book-form .consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 0.95rem; }
.book-form .consent input { width: auto; margin-top: 4px; }
.book-form button { width: 100%; margin-top: 8px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ------- events ------- */
.events-list { margin-top: 24px; display: grid; gap: 14px; }
.event-row {
  display: flex; gap: 20px; align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.event-date {
  font-family: var(--font-display); color: var(--red); font-weight: 700;
  min-width: 86px; text-align: center; line-height: 1.2;
}
.event-row h3 { font-size: 1.1rem; }
.event-row p { font-size: 0.95rem; color: var(--ink); }

/* ------- CTA band ------- */
.cta-band { background: var(--navy); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C9CFD8; max-width: 40em; margin: 12px auto 26px; }

/* ------- page hero (inner pages) ------- */
.page-hero { background: var(--navy); padding: 64px 0 52px; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #C9CFD8; max-width: 54em; margin-top: 14px; font-size: 1.12rem; }
.breadcrumb { font-size: 0.88rem; color: var(--silver); margin-bottom: 14px; }
.breadcrumb a { color: var(--silver); }

/* ------- footer ------- */
.site-footer { background: var(--navy); color: #C9CFD8; padding: 54px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
}
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #C9CFD8; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.footer-nap { font-style: normal; line-height: 1.8; }
.footer-nap strong { color: var(--white); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.social-row a {
  padding: 7px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.35);
  font-size: 0.9rem; line-height: 1.2; display: inline-block;
}
.social-row a:hover { border-color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; }
.footer-bottom {
  max-width: var(--max); margin: 36px auto 0; padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.88rem; color: #8C97A6;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ------- blog ------- */
.post-list { display: grid; gap: 20px; margin-top: 28px; max-width: 800px; }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: start;
}
.post-thumb {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px;
  background: var(--cream);
}
@media (max-width: 700px) {
  .post-card { grid-template-columns: 1fr; }
  .post-thumb { aspect-ratio: 16/9; }
}
.post-card time { color: var(--silver); font-size: 0.9rem; }
.post-card h2 { font-size: 1.4rem; margin: 6px 0 10px; }
article.post { max-width: 760px; margin: 0 auto; }
article.post .ciao { font-size: 1.12rem; margin: 26px 0 0; }
article.post .saying {
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
  color: var(--navy); border-left: 4px solid var(--red); padding-left: 18px; margin: 12px 0 26px;
}
article.post .saying span { display: block; font-size: 0.95rem; font-style: normal; color: var(--silver); margin-top: 4px; }
article.post h2 { margin: 34px 0 12px; }
article.post p, article.post ul, article.post ol { margin-bottom: 16px; }
article.post ul, article.post ol { padding-left: 24px; }
article.post img { border-radius: var(--radius); margin: 24px 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ------- responsive ------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cred-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.15); padding: 8px 0 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px 20px; }
  .nav-cta { margin: 10px 20px 0; }
  .nav-toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-photos { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.book-form, .calc { margin-left: auto; margin-right: auto; }
