/* =========================================================
   OvvioMenù — pagina di presentazione
   ========================================================= */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* Caratteri degli stili, scaricati solo se la galleria li mostra */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Shrikhand"; src: url("../fonts/shrikhand-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Alfa Slab One"; src: url("../fonts/alfa-slab-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F5F7FB;
  --white: #FFFFFF;
  --ink: #15213A;
  --muted: #56617A;
  --line: #DCE2EC;
  --cobalt: #1F4FB0;
  --cobalt-deep: #173C88;
  --cobalt-soft: #E6ECF8;
  --lemon: #E3B23C;
  --display: "DM Serif Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "Figtree", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Testata ---------- */

.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top-logo svg { height: 34px; width: auto; }
.top-login { font-weight: 600; text-decoration: none; padding: 8px 4px; }

/* ---------- Fascia di piastrelle (la stessa del tema Maiolica) ---------- */

.tiles { height: 56px; position: relative; background: var(--white); border-bottom: 3px solid var(--cobalt); }
.tiles::before, .tiles::after { content: ""; position: absolute; inset: 0; }
.tiles::before {
  background: var(--cobalt);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><g fill='black'><path d='M32 9c7 7 7 15 0 22c-7-7-7-15 0-22z'/><path d='M32 9c7 7 7 15 0 22c-7-7-7-15 0-22z' transform='rotate(90 32 32)'/><path d='M32 9c7 7 7 15 0 22c-7-7-7-15 0-22z' transform='rotate(180 32 32)'/><path d='M32 9c7 7 7 15 0 22c-7-7-7-15 0-22z' transform='rotate(270 32 32)'/></g><g fill='none' stroke='black' stroke-width='4'><circle cx='0' cy='0' r='13'/><circle cx='64' cy='0' r='13'/><circle cx='0' cy='64' r='13'/><circle cx='64' cy='64' r='13'/></g></svg>") 0 0 / 64px 64px repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><g fill='black'><path d='M32 9c7 7 7 15 0 22c-7-7-7-15 0-22z'/><path d='M32 9c7 7 7 15 0 22c-7-7-7-15 0-22z' transform='rotate(90 32 32)'/><path d='M32 9c7 7 7 15 0 22c-7-7-7-15 0-22z' transform='rotate(180 32 32)'/><path d='M32 9c7 7 7 15 0 22c-7-7-7-15 0-22z' transform='rotate(270 32 32)'/></g><g fill='none' stroke='black' stroke-width='4'><circle cx='0' cy='0' r='13'/><circle cx='64' cy='0' r='13'/><circle cx='0' cy='64' r='13'/><circle cx='64' cy='64' r='13'/></g></svg>") 0 0 / 64px 64px repeat;
}
.tiles::after {
  background: var(--lemon);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><circle cx='32' cy='32' r='4.5' fill='black'/><circle cx='0' cy='0' r='5' fill='black'/><circle cx='64' cy='0' r='5' fill='black'/><circle cx='0' cy='64' r='5' fill='black'/><circle cx='64' cy='64' r='5' fill='black'/></svg>") 0 0 / 64px 64px repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><circle cx='32' cy='32' r='4.5' fill='black'/><circle cx='0' cy='0' r='5' fill='black'/><circle cx='64' cy='0' r='5' fill='black'/><circle cx='0' cy='64' r='5' fill='black'/><circle cx='64' cy='64' r='5' fill='black'/></svg>") 0 0 / 64px 64px repeat;
}
.tiles-light { background: var(--cobalt); border-bottom-color: var(--lemon); }
.tiles-light::before { background: rgba(255, 255, 255, .9); }

/* ---------- Apertura ---------- */

.hero { padding-bottom: 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; padding-top: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); max-width: 12ch; }
.lead { margin-top: 20px; font-size: 1.18rem; color: var(--muted); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--muted); max-width: 46ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--white); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--cobalt); }
.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }

.hero-phone { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone {
  position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px;
  background: var(--ink); box-shadow: 0 30px 60px -20px rgba(21, 33, 58, .45);
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 0 0 14px 14px; background: var(--ink); z-index: 1; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #fff; }
.phone-caption { font-size: .92rem; color: var(--muted); text-align: center; }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; padding-top: 64px; }
  .phone { width: 330px; height: 670px; }
}

/* ---------- Dati in breve ---------- */

.band-facts { background: var(--cobalt); color: #fff; }
.facts { display: grid; gap: 18px; padding-top: 30px; padding-bottom: 30px; }
.facts p { font-size: 1.02rem; color: rgba(255, 255, 255, .85); max-width: 32ch; }
.facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: #fff; line-height: 1.1; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sezioni ---------- */

.section { padding: 72px 0; }
.section-white { background: var(--white); }
.section h2 { font-size: clamp(2rem, 6vw, 3rem); max-width: 18ch; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 56ch; }

/* Esempi */
.demos { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 760px) { .demos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .demos { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.demo { border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.demo h3 { font-size: 1.6rem; margin-top: 4px; }
.demo-style { font-weight: 700; font-size: .9rem; }
.demo-type { font-size: .95rem; margin-top: 4px; opacity: .8; }
.demo-qr { width: 132px; background: #fff; padding: 8px; border-radius: 12px; }
.demo-qr svg { width: 100%; height: auto; }
.demo-maiolica { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); border-top: 6px solid #1D3F8F; }
.demo-maiolica h3 { font-family: var(--display); font-weight: 400; color: #1D3F8F; }
.demo-mare { background: #EAF4F4; border-top: 6px solid #0E6E73; }
.demo-mare h3 { font-family: "Figtree", sans-serif; font-weight: 700; color: #0C2E33; }
.demo-mare .btn-small { background: #0E6E73; }
.demo-notte { background: #1C1424; color: #F4EEE7; border-top: 6px solid #E7A65A; }
.demo-notte h3 { font-family: "Figtree", sans-serif; font-weight: 700; }
.demo-notte .demo-style { color: #E7A65A; }
.demo-notte .btn-small { background: #E7A65A; color: #1C1424; }

/* Galleria stili */
.style-group { margin-top: 44px; }
.style-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-top: 2px solid var(--ink); padding-top: 14px; }
.style-group-head h3 { font-size: 1.3rem; }
.style-group-head p { margin: 0; color: var(--muted); }
.style-group-lux .style-group-head h3 { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.7rem; color: #6E1F2C; }
.styles { display: grid; gap: 16px; margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.style-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); border-radius: 16px; padding: 10px 10px 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s; }
a.style-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px rgba(21, 33, 58, .12); }
.style-name { margin: 10px 6px 0; font-weight: 700; font-size: 1.08rem; }
.style-hint { margin: 0 6px; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.style-open { margin: 6px 6px 0; color: var(--cobalt); font-weight: 600; font-size: .92rem; }

/* Miniatura: i colori e il carattere vengono dalle variabili della card */
.style-mock { position: relative; display: flex; flex-direction: column; gap: 10px; height: 168px; padding: 52px 16px 14px; border-radius: 10px; overflow: hidden; background: var(--s-bg); color: var(--s-ink); }
.sm-band { position: absolute; left: 0; right: 0; top: 0; height: 30px; background: var(--s-pr); }
.sm-cat { font-family: var(--s-font); font-size: 1.45rem; line-height: 1; color: var(--s-pr); }
.sm-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .9rem; font-weight: 600; }
.sm-dish { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-price { flex: none; color: var(--s-pr); font-weight: 700; }
.sm-row-2 { flex-direction: column; gap: 6px; }
.sm-line { display: block; height: 6px; width: 70%; border-radius: 3px; background: currentColor; opacity: .14; }
.sm-line-s { width: 45%; }
.style-mock.up .sm-cat { text-transform: uppercase; letter-spacing: .12em; font-size: 1.1rem; }
.style-mock.it .sm-cat { font-style: italic; font-size: 1.7rem; }
.style-mock.big .sm-cat { font-size: 2rem; }
.style-mock.b .sm-cat { font-weight: 800; }

.style-mock-velluto { background: radial-gradient(ellipse at 50% -20%, #4A1622, var(--s-bg) 70%); text-align: center; }
.style-mock-velluto .sm-band { background: none; height: 40px; }
.style-mock-velluto .sm-band::after { content: "◆"; position: absolute; left: 50%; top: 18px; transform: translateX(-50%); color: var(--s-pr); font-size: .7rem; letter-spacing: 1em; }
.style-mock-velluto .sm-price { color: var(--s-pr); font-family: var(--s-font); font-size: 1.05rem; }
.style-mock-deco { text-align: center; }
.style-mock-deco .sm-band { background: var(--s-pr) repeating-conic-gradient(from 270deg at 50% 100%, rgba(169, 133, 78, .55) 0 4deg, transparent 4deg 12deg); border-bottom: 3px double var(--s-ac); }
.style-mock-deco .sm-cat { color: var(--s-pr); display: flex; align-items: center; gap: 8px; }
.style-mock-deco .sm-cat::before, .style-mock-deco .sm-cat::after { content: ""; flex: 1; border-top: 3px double var(--s-ac); }
.style-mock-marmo .sm-band { height: 38px; background: linear-gradient(170deg, transparent 40%, #D8CFC7 41%, transparent 43%), linear-gradient(10deg, transparent 55%, #C9A27C 56%, transparent 57%), #F1EDE9; border-bottom: 1px solid var(--s-ac); }
.style-mock-marmo { text-align: center; }
.style-mock-marmo .sm-price { color: var(--s-ink); font-family: var(--s-font); }
.style-mock-diner .sm-band { background: repeating-conic-gradient(#1E1A1A 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-bottom: 4px solid var(--s-pr); box-shadow: 0 4px 0 var(--s-ac); height: 24px; }
.style-mock-diner .sm-cat { text-shadow: 2px 2px 0 var(--s-ac); }
.style-mock-diner .sm-price { background: var(--s-pr); color: #fff; padding: 0 8px; border-radius: 999px; }
.style-mock-street .sm-band { height: 14px; background: repeating-linear-gradient(-45deg, var(--s-pr) 0 9px, var(--s-bg) 9px 18px); }
.style-mock-street .sm-cat { align-self: flex-start; background: var(--s-pr); color: var(--s-bg); padding: 4px 10px 2px; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--s-ac); }
.style-mock-street .sm-dish { text-transform: uppercase; }
.style-mock-street .sm-price { font-family: var(--s-font); font-weight: 400; font-size: 1.05rem; }
.style-mock-maiolica .sm-band { background: var(--s-pr) radial-gradient(circle at 50% 50%, var(--s-ac) 0 3px, transparent 4px) 0 0 / 15px 15px; }
.style-mock-mare .sm-band { background: linear-gradient(var(--s-pr), var(--s-pr)) top / 100% 18px no-repeat; }
.style-mock-notte .sm-band { background: linear-gradient(90deg, var(--s-pr), var(--s-ac)); height: 6px; }
.style-mock-carretto .sm-band { background: var(--s-pr); border-bottom: 5px solid var(--s-ac); }
.style-mock-lavagna .sm-band { height: 12px; background: linear-gradient(#8A5A34, #6B4224); }
.style-mock-lavagna .sm-cat { color: var(--s-pr); }
.style-mock-bianco { text-align: center; }
.style-mock-bianco .sm-band { background: none; }
.style-mock-bianco .sm-band::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 3px; transform: translateX(-50%); border-top: 1px solid var(--s-ac); border-bottom: 1px solid var(--s-ac); }
.style-mock-bianco .sm-cat { color: var(--s-ink); }
.style-mock-limone .sm-band { background: var(--s-ac); }

.demo-street { background: #161514; color: #F6F1E7; border-top: 6px solid #FFC414; }
.demo-street h3 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.demo-street .demo-style { color: #FFC414; }
.demo-street .btn-small { background: #FFC414; color: #161514; }
.demo-diner { background: #FFF8EC; border-top: 6px solid #D7262E; }
.demo-diner h3 { font-family: Shrikhand, Georgia, serif; font-weight: 400; color: #D7262E; }
.demo-diner .btn-small { background: #D7262E; }

/* Vantaggi */
.benefits { display: grid; gap: 30px 48px; margin-top: 40px; }
@media (min-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.benefits h3 { font-size: 1.22rem; line-height: 1.25; }
.benefits p { margin-top: 8px; color: var(--muted); max-width: 46ch; }

.benefits > .benefit-new { border-top-color: var(--cobalt); }
.benefit-tag { display: inline-block; margin: 0 0 8px !important; padding: 2px 10px; border-radius: 999px; background: var(--cobalt-soft); color: var(--cobalt); font-size: .78rem !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Passi */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 40px 0 0; display: grid; gap: 24px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lemon); color: var(--ink); font-family: var(--display); font-size: 1.6rem;
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 8px; color: var(--muted); }

/* Prezzi */
.plans { display: grid; gap: 28px 18px; margin-top: 44px; align-items: stretch; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } .plans-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; } }
.plan { position: relative; border-radius: 22px; padding: 28px 24px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.plan-main { background: var(--cobalt); color: #fff; box-shadow: none; }
.plan-founders { box-shadow: inset 0 0 0 2px var(--lemon); }
.plan-tag { position: absolute; top: -13px; left: 24px; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--lemon); color: var(--ink); }
.plan-main .plan-tag { background: #fff; color: var(--cobalt); box-shadow: 0 0 0 1px var(--line); }
.plan h3 { font-size: 1.3rem; }
.plan-price { margin-top: 12px; font-family: var(--display); font-size: 3.6rem; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.plan-price span { font-size: 1.6rem; }
.plan-price small { font-family: "Figtree", sans-serif; font-size: .95rem; margin-left: 6px; opacity: .75; }
.plan-monthly { margin-top: 6px; font-size: .95rem; opacity: .8; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--cobalt); }
.plan-main li::before { color: var(--lemon); }
.plans-note { margin-top: 22px; color: var(--muted); font-size: .95rem; max-width: 70ch; }

/* Domande */
.faq { margin-top: 30px; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--cobalt); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* Chiusura */
.final { background: var(--cobalt); color: #fff; }
.final-inner { padding-top: 56px; padding-bottom: 64px; }
.final h2 { font-size: clamp(2.2rem, 7vw, 3.4rem); max-width: 16ch; }
.final p { margin-top: 16px; font-size: 1.1rem; color: rgba(255, 255, 255, .88); max-width: 52ch; }

.foot { background: var(--ink); color: rgba(255, 255, 255, .75); font-size: .92rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.foot a { color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
