/* Merlo Websites — palette del brand: blu #4A5AF0, sfondo #0A0A0C, Montserrat */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url(fonts/montserrat-latin-400-normal.woff2) format('woff2'), url(fonts/montserrat-latin-ext-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url(fonts/montserrat-latin-500-normal.woff2) format('woff2'), url(fonts/montserrat-latin-ext-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-600-normal.woff2) format('woff2'), url(fonts/montserrat-latin-ext-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-700-normal.woff2) format('woff2'), url(fonts/montserrat-latin-ext-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url(fonts/montserrat-latin-800-normal.woff2) format('woff2'), url(fonts/montserrat-latin-ext-800-normal.woff2) format('woff2'); }

:root {
  --blu: #4a5af0;
  --blu-chiaro: #7c88ff;
  --blu-scuro: #2f3cc4;
  --nero: #0a0a0c;
  --nero-2: #111116;
  --nero-3: #17171f;
  --bianco: #f4f5fb;
  --grigio: #a3a6b8;
  --grigio-2: #6c6f82;
  --linea: rgba(255, 255, 255, .08);
  --linea-blu: rgba(74, 90, 240, .35);
  --verde-wa: #25d366;
  --raggio: 18px;
  --max: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--nero); color: var(--bianco); font-family: 'Montserrat', system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blu); color: #fff; }
:focus-visible { outline: 2px solid var(--blu-chiaro); outline-offset: 3px; border-radius: 6px; }
.contenitore { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Barra ---------- */
.barra { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(10, 10, 12, .72); border-bottom: 1px solid var(--linea); }
.barra .contenitore { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.marchio { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .02em; }
.marchio img { width: 38px; height: 38px; border-radius: 9px; }
.marchio span b { color: var(--blu-chiaro); font-weight: 700; }
.menu { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--grigio); }
.menu a:hover { color: var(--bianco); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-blu { background: var(--blu); color: #fff; box-shadow: 0 10px 30px -10px rgba(74, 90, 240, .7); }
.btn-blu:hover { background: #5866ff; box-shadow: 0 14px 36px -10px rgba(74, 90, 240, .9); }
.btn-vuoto { border-color: var(--linea); color: var(--bianco); background: rgba(255, 255, 255, .03); }
.btn-vuoto:hover { border-color: var(--linea-blu); }
.btn-piccolo { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(74, 90, 240, .28), transparent 70%), radial-gradient(ellipse 40% 40% at 15% 70%, rgba(74, 90, 240, .12), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--linea) 1px, transparent 1px), linear-gradient(90deg, var(--linea) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); opacity: .5; pointer-events: none; }
.hero .contenitore { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.etichetta { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blu-chiaro); padding: 8px 14px; border: 1px solid var(--linea-blu); border-radius: 999px; background: rgba(74, 90, 240, .08); }
.etichetta i { width: 7px; height: 7px; border-radius: 50%; background: var(--blu-chiaro); box-shadow: 0 0 12px var(--blu-chiaro); }
h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 22px; }
h1 .codice { color: var(--blu); font-weight: 700; }
.hero p.sotto { font-size: clamp(16px, 1.6vw, 19px); color: var(--grigio); max-width: 560px; }
.azioni { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.punti-hero { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: 14px; color: var(--grigio); }
.punti-hero span { display: flex; align-items: center; gap: 8px; }
.punti-hero span::before { content: '✓'; color: var(--blu-chiaro); font-weight: 700; }

.telefono { position: relative; justify-self: center; width: min(300px, 80%); aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #26263a, #0d0d12); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 90px -30px rgba(74, 90, 240, .55), inset 0 0 0 1px rgba(255, 255, 255, .04); transform: rotate(3deg); }
.telefono .schermo { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--nero-3) center top / cover no-repeat; }
.telefono .schermo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.telefono::after { content: 'Pizzeria Verso Sud · Livorno'; position: absolute; left: -36px; bottom: 54px; transform: rotate(-3deg); background: var(--nero-2); border: 1px solid var(--linea-blu); padding: 10px 14px; border-radius: 12px; font-size: 12.5px; font-weight: 600; box-shadow: 0 12px 30px -12px #000; }

/* ---------- Sezioni ---------- */
section { padding: 96px 0; }
.titolo-sezione { max-width: 720px; margin-bottom: 52px; }
.titolo-sezione .etichetta { margin-bottom: 18px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.titolo-sezione p { color: var(--grigio); font-size: 17px; margin-top: 16px; }
.alterna { background: var(--nero-2); border-block: 1px solid var(--linea); }

.griglia-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carta { background: var(--nero-3); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 28px; transition: border-color .25s, transform .25s; }
.carta:hover { border-color: var(--linea-blu); transform: translateY(-3px); }
.carta .icona { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(74, 90, 240, .12); border: 1px solid var(--linea-blu); color: var(--blu-chiaro); margin-bottom: 20px; }
.carta .icona svg { width: 24px; height: 24px; }
.carta h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.carta p { color: var(--grigio); font-size: 15px; }
.passo-n { font-size: 13px; font-weight: 700; color: var(--blu-chiaro); letter-spacing: .1em; margin-bottom: 12px; display: block; }

/* ---------- Prezzi ---------- */
.fondatori { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--raggio); margin-bottom: 30px; background: linear-gradient(120deg, rgba(74, 90, 240, .22), rgba(74, 90, 240, .06)); border: 1px solid var(--linea-blu); }
.fondatori h3 { font-size: 21px; font-weight: 800; }
.fondatori p { color: #c9ccdf; font-size: 15px; margin-top: 6px; max-width: 640px; }
.fondatori .prezzo-f { font-size: 15px; color: var(--grigio); }
.fondatori .prezzo-f b { font-size: 34px; color: #fff; font-weight: 800; }
.prezzi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.piano { position: relative; display: flex; flex-direction: column; background: var(--nero-3); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 32px 28px; }
.piano.consigliato { border-color: var(--blu); box-shadow: 0 30px 70px -35px rgba(74, 90, 240, .8); background: linear-gradient(180deg, rgba(74, 90, 240, .12), var(--nero-3) 40%); }
.piano .badge { position: absolute; top: -13px; left: 28px; background: var(--blu); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.piano h3 { font-size: 20px; font-weight: 700; }
.piano .per { color: var(--grigio); font-size: 14px; margin-top: 4px; min-height: 44px; }
.piano .cifra { margin: 22px 0 4px; font-size: 46px; font-weight: 800; letter-spacing: -.02em; }
.piano .cifra small { font-size: 16px; font-weight: 500; color: var(--grigio); }
.piano .anno { font-size: 13.5px; color: var(--blu-chiaro); font-weight: 600; margin-bottom: 22px; }
.piano ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; flex: 1; }
.piano li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14.5px; color: #d6d8e6; }
.piano li::before { content: '✓'; color: var(--blu-chiaro); font-weight: 700; }
.piano li.base { color: var(--grigio); font-style: italic; }
.piano li.base::before { content: '+'; }
.note-prezzi { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; color: var(--grigio); font-size: 14px; }
.extra { display: flex; gap: 10px; flex-wrap: wrap; }
.extra span { border: 1px solid var(--linea); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; color: #d6d8e6; }

/* ---------- Portfolio ---------- */
.lavoro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; background: var(--nero-3); border: 1px solid var(--linea); border-radius: 24px; padding: 34px; }
.lavoro .anteprima { border-radius: 14px; overflow: hidden; border: 1px solid var(--linea); box-shadow: 0 30px 60px -30px #000; background: #1a1a22; aspect-ratio: 16 / 10; }
.lavoro .anteprima img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lavoro h3 { font-size: 26px; font-weight: 800; }
.lavoro .luogo { color: var(--blu-chiaro); font-weight: 600; font-size: 14px; margin: 6px 0 16px; }
.lavoro p { color: var(--grigio); }
.lavoro ul { list-style: none; margin: 18px 0 26px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: #d6d8e6; }
.lavoro li::before { content: '→ '; color: var(--blu-chiaro); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
details { background: var(--nero-3); border: 1px solid var(--linea); border-radius: 14px; padding: 20px 22px; transition: border-color .2s; }
details[open] { border-color: var(--linea-blu); }
summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--blu-chiaro); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--grigio); font-size: 15px; margin-top: 12px; }

/* ---------- Contatti ---------- */
.finale { position: relative; text-align: center; padding: 70px 30px; border-radius: 28px; overflow: hidden; border: 1px solid var(--linea-blu); background: radial-gradient(ellipse at 50% 0%, rgba(74, 90, 240, .35), transparent 65%), var(--nero-2); }
.finale h2 { max-width: 760px; margin: 18px auto 16px; }
.finale p { color: var(--grigio); max-width: 600px; margin: 0 auto; font-size: 17px; }
.finale .azioni { justify-content: center; }
.contatti-righe { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 30px; color: var(--grigio); font-size: 15px; }
.contatti-righe a:hover { color: #fff; }
.btn-wa { background: var(--verde-wa); color: #062b14; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .6); }
.btn-wa:hover { background: #2fe377; }

/* ---------- Piede ---------- */
footer { border-top: 1px solid var(--linea); padding: 40px 0 110px; color: var(--grigio-2); font-size: 13.5px; }
footer .contenitore { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--bianco); }

.wa-fisso { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--verde-wa); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .7); transition: transform .2s; }
.wa-fisso:hover { transform: scale(1.07); }
.wa-fisso svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Pagine legali ---------- */
.legale { padding: 70px 0 40px; }
.legale .contenitore { max-width: 820px; }
.legale h1 { font-size: clamp(30px, 4vw, 42px); }
.legale h2 { font-size: 21px; margin: 34px 0 10px; }
.legale p, .legale li { color: #c9ccdf; font-size: 15.5px; }
.legale ul { margin: 10px 0 10px 22px; display: flex; flex-direction: column; gap: 6px; }
.legale .aggiornato { color: var(--grigio-2); font-size: 14px; margin-bottom: 30px; }

/* ---------- Comparsa ---------- */
.appare { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.appare.visibile { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .appare { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn:hover, .carta:hover { transform: none; } }

/* ---------- Telefono e tablet ---------- */
@media (max-width: 960px) {
  .hero { padding: 70px 0 60px; }
  .hero .contenitore, .lavoro { grid-template-columns: 1fr; }
  .telefono { width: min(250px, 70%); margin-top: 10px; }
  .telefono::after { left: -20px; }
  .griglia-3, .prezzi, .faq { grid-template-columns: 1fr; }
  .piano .per { min-height: 0; }
  .menu { display: none; }
  section { padding: 72px 0; }
  .lavoro { padding: 22px; }
}
@media (max-width: 520px) {
  .contenitore { width: calc(100% - 32px); }
  .azioni .btn { width: 100%; }
  .barra .btn-piccolo { display: none; }
  .fondatori { padding: 22px; }
}
