/* Muffin Suite - foglio di stile unico
   Identita: carta calda, inchiostro espresso, accento arancio bruciato
   I font sono ospitati sul nostro dominio, nessuna chiamata a servizi esterni */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'InterVar';
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf7f0;
  --paper-2: #f5eee2;
  --surface: #ffffff;
  --surface-2: #f5eee2;
  --ink: #1f1a16;
  --ink-70: #514740;
  --muted: #5f534b;
  --line: #e6dbca;
  --line-strong: #d6c7b0;

  --accent: #be4f26;
  --accent-ink: #9f3d18;
  --accent-hot: #e0703f;
  --accent-soft: #f9e9e0;
  --accent-line: rgba(190, 79, 38, .24);

  --green: #2f6b4f;
  --green-soft: #e6f0e9;
  --red: #a63535;
  --red-soft: #f8eaea;
  --dark: #1f1a16;

  --brand: var(--accent);
  --brand-dark: var(--accent-ink);
  --brand-soft: var(--accent-soft);

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --sans: 'InterVar', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --press: 0 2px 0 rgba(31, 26, 22, .05);
  --shadow: 0 18px 44px -18px rgba(31, 26, 22, .28);
  --shadow-soft: 0 10px 26px -14px rgba(31, 26, 22, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.055'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0 }

/* "Salta al contenuto": nascosto finche' non ci si arriva col Tab, poi compare in alto a sinistra.
   Serve a chi naviga da tastiera per scavalcare menu e 6 voci di nav su ogni pagina. */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--ink); color: var(--paper); font-weight: 650;
  transition: top .15s ease;
}
.skip-link:focus { top: 0 }
/* serve perche' display:grid delle nostre classi batterebbe il display:none del browser */
[hidden] { display: none !important }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden }
a { color: inherit; text-decoration: none }
img, svg { display: block; max-width: 100% }
button, input, textarea, select { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px }
::selection { background: var(--accent-soft); color: var(--accent-ink) }

.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto }
.section { padding: 84px 0 }
.section-sm { padding: 60px 0 }
.stack { display: grid; gap: 22px }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px }

/* ---------- titoli ---------- */
.title-xl, .title-lg, .title-md {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: 'opsz' 144, 'SOFT' 45, 'WONK' 1;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.title-xl { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.03; max-width: 17ch }
.title-lg { font-size: clamp(31px, 3.9vw, 46px); line-height: 1.08 }
.title-md { font-size: clamp(25px, 2.7vw, 33px); line-height: 1.14 }
/* evidenziatore a pennarello dietro la parola chiave del titolo */
/* La parola che conta si stacca col colore e basta.
   Prima era una striscia arancione sulla meta' bassa del testo, che sembrava una riga
   tirata sotto le parole: tolta. Il colore da solo si vede lo stesso ed e' piu' sobrio,
   che e' il tono del resto del sito. */
.marker { color: var(--accent-ink) }
.lead { color: var(--muted); font-size: 19px; max-width: 62ch }
.lead strong { color: var(--ink); font-weight: 600 }
.muted { color: var(--muted) }
.center { text-align: center; margin-inline: auto }
.center .lead, .center p { margin-inline: auto }


.section-head { max-width: 68ch; margin-bottom: 40px }
.section-head.center { margin-left: auto; margin-right: auto }
.section-head h2 { margin-bottom: 14px }
.section-head p { color: var(--muted); font-size: 17.5px }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 650; font-size: 16px; letter-spacing: -.005em;
  transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn-primary { color: #fff; background: var(--accent); border-color: var(--accent-ink); box-shadow: 0 3px 0 var(--accent-ink) }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(1px); box-shadow: 0 2px 0 var(--accent-ink) }
.btn-light { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--press) }
.btn-light:hover { border-color: var(--accent); color: var(--accent-ink) }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink) }
.btn-dark:hover { background: #35291f }
.btn-white { background: var(--paper); color: var(--accent-ink); border-color: rgba(31, 26, 22, .12); box-shadow: 0 3px 0 rgba(31, 26, 22, .18) }
.btn-white:hover { background: #fff; transform: translateY(1px); box-shadow: 0 2px 0 rgba(31, 26, 22, .18) }
.btn-whatsapp { background: #1c7a53; color: #fff; border-color: #135c3d; box-shadow: 0 3px 0 #135c3d }
.btn-whatsapp:hover { background: #135c3d; transform: translateY(1px); box-shadow: 0 2px 0 #135c3d }
.btn-whatsapp::before {
  content: ""; width: 19px; height: 19px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: var(--wa-icon) center / contain no-repeat; mask: var(--wa-icon) center / contain no-repeat;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center }

:root {
  --wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2zm5.8 14.18c-.25.69-1.44 1.32-1.99 1.4-.53.08-1.2.11-1.94-.12-.45-.14-1.02-.33-1.76-.65-3.1-1.34-5.12-4.46-5.28-4.67-.15-.21-1.26-1.67-1.26-3.19s.8-2.26 1.08-2.57c.28-.31.61-.39.82-.39.2 0 .41 0 .59.01.19.01.44-.07.69.53.25.6.86 2.11.94 2.26.08.15.13.33.03.54-.11.21-.16.33-.31.51-.15.18-.32.4-.46.54-.15.15-.31.32-.13.63.18.31.79 1.3 1.69 2.11 1.16 1.03 2.14 1.35 2.45 1.5.31.15.49.13.67-.08.18-.21.77-.9.98-1.21.21-.31.41-.26.7-.15.28.1 1.79.85 2.1 1 .31.15.51.23.59.36.08.13.08.75-.17 1.44z'/%3E%3C/svg%3E");
}

/* ---------- barra alta ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 240, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
}
.navbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 20px; font-variation-settings: 'opsz' 40, 'SOFT' 50, 'WONK' 1; letter-spacing: -.015em }
/* Il marchio e' il muffin del logo, messo da qui e non nelle pagine:
   nell'HTML resta la <span> con dentro la M, che il font-size:0 nasconde,
   cosi' il logo si cambia in un punto solo invece che in 138 pagine per due volte ciascuna */
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 auto;
  background: url('logo-muffin.png') center / contain no-repeat;
  font-size: 0; line-height: 0; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 22px }
.nav-links a { color: var(--muted); font-weight: 550; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--accent) }
.nav-actions { display: flex; align-items: center; gap: 10px }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 19px }
.mobile-menu { display: none }

/* ---------- apertura ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 84px }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 88% 0%, rgba(224, 112, 63, .13), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(47, 107, 79, .07), transparent 70%);
}
.hero > .container { position: relative; z-index: 1 }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center }
.hero-copy h1 { margin: 20px 0 18px }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px }
.point { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 550; font-size: 14.5px }
.point i, .check {
  width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 6px; background: var(--green-soft); color: var(--green);
  font-style: normal; font-weight: 800; font-size: 12px;
}

.demo-card {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
}
.demo-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px }
.demo-top strong { font-family: var(--serif); font-size: 18px; font-variation-settings: 'opsz' 30, 'SOFT' 40, 'WONK' 1 }
.flow { display: grid; gap: 9px }
.flow-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.flow-row strong { font-size: 15.5px; font-weight: 600 }
.flow-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45 }
.flow-check { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 12px }

/* ---------- fascia garanzie ---------- */
.trust-strip { margin-top: -26px; position: relative; z-index: 5 }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.trust-item { padding: 22px 20px; text-align: center }
.trust-item + .trust-item { border-left: 1px solid var(--line) }
.trust-item strong { display: block; font-family: var(--serif); color: var(--ink); font-size: 18px; margin-bottom: 4px; font-variation-settings: 'opsz' 30, 'SOFT' 40, 'WONK' 1 }
.trust-item span { color: var(--muted); font-size: 13.5px; line-height: 1.45 }

/* ---------- schede ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--press);
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-soft) }
.card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; font-variation-settings: 'opsz' 40, 'SOFT' 40, 'WONK' 1; font-weight: 600 }
.card p { color: var(--muted); font-size: 15.5px }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent-ink); font-weight: 650; font-size: 15px }
.card-link::after { content: "→"; transition: transform .18s ease }
.card:hover .card-link::after, .card-link:hover::after { transform: translateX(3px) }

/* ---------- problema ---------- */
.problem-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center }
.problem-list { display: grid; gap: 10px }
.problem { display: flex; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--press) }
.problem .x { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--red); background: var(--red-soft); font-weight: 800; font-size: 15px }
.problem strong { display: block; margin-bottom: 2px; font-weight: 600 }
.problem p { color: var(--muted); font-size: 14px; line-height: 1.5 }

/* ---------- sezione scura ---------- */
.dark { background: var(--ink); color: var(--paper); position: relative; overflow: hidden }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain), radial-gradient(45% 60% at 92% 0%, rgba(224, 112, 63, .20), transparent 70%);
}
.dark > .container { position: relative; z-index: 2 }
.dark .section-head p, .dark .muted, .dark .lead { color: rgba(251, 247, 240, .66) }
.dark .dark .list-check li { color: rgba(251, 247, 240, .74) }
.step-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px }
.step { padding: 22px; border: 1px solid rgba(251, 247, 240, .13); border-radius: var(--radius); background: rgba(251, 247, 240, .045) }
.step h3 { font-family: var(--serif); margin-bottom: 8px; font-size: 19px; font-weight: 600; font-variation-settings: 'opsz' 40, 'SOFT' 40, 'WONK' 1 }
.step p { color: rgba(251, 247, 240, .62); font-size: 14.5px; line-height: 1.5 }

/* ---------- box diviso ---------- */
.split-box {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center;
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.before-after { display: grid; gap: 10px }
.compare-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper) }
.compare-row strong { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700 }
.compare-row > div:last-child strong { color: var(--green) }
.compare-row p { color: var(--ink); font-size: 14.5px; line-height: 1.45; margin-top: 2px }
.compare-row .arrow { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--accent); font-weight: 800 }

.list-check { display: grid; gap: 11px }
.list-check li { list-style: none; display: flex; align-items: flex-start; gap: 11px; color: var(--muted); font-size: 16px }
.list-check li::before {
  content: "✓"; flex: 0 0 auto; width: 23px; height: 23px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 7px;
  background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 12px;
}
.notice { padding: 16px 18px; border: 1px solid var(--accent-line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--accent-ink); font-size: 15.5px }

/* ---------- richiamo finale ---------- */
.cta-box {
  position: relative; overflow: hidden;
  padding: 54px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain), radial-gradient(60% 90% at 50% 0%, rgba(224, 112, 63, .24), transparent 70%);
}
.cta-box > * { position: relative; z-index: 2 }
.cta-box h2 { max-width: 20ch; margin: 0 auto 14px }
.cta-box p { max-width: 60ch; margin: 0 auto 26px; color: rgba(251, 247, 240, .74); font-size: 17px }
.cta-box .actions { justify-content: center }

/* ---------- pagine interne ---------- */
.page-hero { position: relative; overflow: hidden; padding: 62px 0 54px; border-bottom: 1px solid var(--line) }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 92% 0%, rgba(224, 112, 63, .11), transparent 70%) }
.page-hero > .container { position: relative; z-index: 1 }
.page-hero h1 { margin: 6px 0 16px }
.page-hero .title-xl { font-size: clamp(34px, 4.4vw, 54px) }

/* La testata con la foto accanto al titolo, stesse proporzioni della hero della home
   Sotto i 1040px va in colonna, con la stessa regola che usa gia' hero-grid */
.hero-doppia { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center }
.hero-foto {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.hero-foto img { width: 100%; height: 100%; object-fit: cover }
/* la home la testata ce l'ha gia' piena col riquadro dell'esempio, li' la foto va a fascia larga */
.hero-foto.banda { aspect-ratio: 21 / 8 }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin-bottom: 16px }
.breadcrumbs a { border-bottom: 1px solid transparent }
.breadcrumbs a:hover { color: var(--accent-ink); border-bottom-color: var(--accent-line) }

.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 40px; align-items: start }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--press) }
.prose h2 { font-family: var(--serif); font-size: 28px; line-height: 1.14; letter-spacing: -.015em; margin: 34px 0 12px; font-weight: 600; font-variation-settings: 'opsz' 60, 'SOFT' 40, 'WONK' 1 }
.prose h2:first-child { margin-top: 0 }
.prose h3 { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; margin: 26px 0 8px; font-weight: 600; font-variation-settings: 'opsz' 40, 'SOFT' 40, 'WONK' 1 }
.prose p { margin: 0 0 15px; color: var(--ink-70) }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 17px; color: var(--ink-70) }
.prose li::marker { color: var(--accent) }
.prose li + li { margin-top: 7px }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px }
.prose a:hover { background: var(--accent-soft) }
.prose .notice { margin: 22px 0 }
.prose strong { font-weight: 600; color: var(--ink) }

.sidebar { display: grid; gap: 16px; position: sticky; top: 92px }
.side-card { padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--press) }
.side-card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 9px; font-weight: 600; font-variation-settings: 'opsz' 40, 'SOFT' 40, 'WONK' 1 }
.side-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 15px }
.side-card .btn { width: 100% }
.side-links { display: grid; gap: 8px }
.side-links a { color: var(--muted); font-size: 14.5px; display: inline-flex; gap: 7px }
.side-links a::before { content: "›"; color: var(--accent) }
.side-links a:hover { color: var(--accent-ink) }

/* ---------- calcolatore ---------- */
.calculator { display: grid; grid-template-columns: .92fr 1.08fr; gap: 26px; align-items: stretch }
.calc-form, .calc-results { padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft) }
.calc-results { background: var(--paper-2) }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px }
.field { display: grid; gap: 6px; align-content: start }
.field.full { grid-column: 1 / -1 }
.field label { font-weight: 600; font-size: 14px }
.field small { color: var(--muted); font-size: 13px }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { min-height: 130px; resize: vertical; line-height: 1.55 }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.input::placeholder { color: #a2968c }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px }
.result { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface) }
.result span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 3px; letter-spacing: .03em; text-transform: uppercase; font-weight: 600 }
.result strong { font-family: var(--serif); color: var(--ink); font-size: 26px; font-weight: 700; font-variation-settings: 'opsz' 60, 'SOFT' 30, 'WONK' 0; font-variant-numeric: tabular-nums; line-height: 1.15 }
.result.hot { border-color: var(--accent-line); background: var(--accent-soft) }
.result.hot strong { color: var(--accent-ink) }
.result.good { border-color: rgba(47, 107, 79, .3); background: var(--green-soft) }
.result.good strong { color: var(--green) }
.range-wrap { display: grid; gap: 7px }
.range-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px }
input[type="range"] { width: 100%; accent-color: var(--accent) }

/* ---------- domande ---------- */
.faq { display: grid; gap: 10px }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; box-shadow: var(--press) }
.faq-item.open { border-color: var(--accent-line) }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 16.5px; color: var(--ink) }
.faq-q:hover { color: var(--accent-ink) }
.faq-q span:last-child { color: var(--accent); font-size: 22px; line-height: 1; flex: 0 0 auto }
.faq-a { display: none; padding: 0 19px 18px; color: var(--muted); max-width: 72ch }
.faq-item.open .faq-a { display: block }

/* ---------- guide ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.article-card { display: flex; flex-direction: column; min-height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--press); transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--accent-line) }
.article-top {
  min-height: 108px; display: grid; place-items: center; padding: 20px;
  color: var(--accent-ink); background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  background-image: var(--grain), radial-gradient(70% 100% at 50% 0%, rgba(224, 112, 63, .16), transparent 70%);
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  font-variation-settings: 'opsz' 60, 'SOFT' 70, 'WONK' 1;
}
.article-body { display: flex; flex-direction: column; flex: 1; padding: 22px }
.article-body h2, .article-body h3 { font-family: var(--serif); font-size: 19.5px; line-height: 1.2; margin-bottom: 9px; letter-spacing: -.01em; font-weight: 600; font-variation-settings: 'opsz' 40, 'SOFT' 40, 'WONK' 1 }
.article-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px }
.article-meta { color: var(--muted); font-size: 12.5px; margin-bottom: 9px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600 }
.article-body .card-link { margin-top: auto }

/* ---------- contatti ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.contact-choice { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--press) }
.contact-choice h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 7px; font-weight: 600; font-variation-settings: 'opsz' 40, 'SOFT' 40, 'WONK' 1 }
.contact-choice p { color: var(--muted); font-size: 15px; margin-bottom: 18px }
.contact-choice .btn { margin-top: auto }
.form-note { margin-top: 14px; font-size: 14px; color: var(--muted) }
.form-note.ok { color: var(--green); font-weight: 600 }
.form-note.err { color: var(--red); font-weight: 600 }

/* ---------- chi risponde ---------- */
.founder-card { display: grid; grid-template-columns: 168px 1fr; gap: 32px; align-items: center; max-width: 940px; margin-inline: auto; padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft) }
/* quadrata con gli angoli smussati, e la foto arriva ai bordi:
   il padding di prima serviva al riquadro vuoto, che adesso non c'e' piu' */
.founder-photo {
  width: 168px; height: 168px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--paper-2);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover }
.founder-card .sign { font-family: var(--serif); font-size: 26px; font-variation-settings: 'opsz' 40, 'SOFT' 100, 'WONK' 1; font-weight: 500; font-style: italic; color: var(--accent-ink); margin-top: 4px }
.founder-meta { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.55 }

/* ---------- piede ---------- */
.footer { padding: 48px 0 22px; background: var(--surface); border-top: 1px solid var(--line) }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; margin-bottom: 34px }
.footer-about p { color: var(--muted); max-width: 40ch; margin-top: 12px; font-size: 14.5px }
.footer-col { display: grid; align-content: start; gap: 8px }
.footer-col h3 { font-family: var(--serif); font-size: 16px; margin-bottom: 4px; font-weight: 600; font-variation-settings: 'opsz' 30, 'SOFT' 40, 'WONK' 1 }
.footer-col a, .footer-col p { color: var(--muted); font-size: 14px }
.footer-col a:hover { color: var(--accent-ink) }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px }

.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; background: #1c7a53;
  border: 1px solid #135c3d;
  box-shadow: 0 10px 24px -8px rgba(19, 92, 61, .7);
  font-size: 0;
  transition: transform .15s ease;
}
.whatsapp-float::before {
  content: ""; width: 30px; height: 30px; background: currentColor;
  -webkit-mask: var(--wa-icon) center / contain no-repeat; mask: var(--wa-icon) center / contain no-repeat;
}
.whatsapp-float:hover { transform: scale(1.06) }

.cookie-note {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 110;
  max-width: 760px; margin-inline: auto; padding: 16px 18px;
  display: none; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.cookie-note.show { display: grid }
.cookie-note p { color: var(--muted); font-size: 13.5px }
.cookie-note .btn { min-height: 44px }

.tag-list { display: flex; flex-wrap: wrap; gap: 9px }
.tag { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-weight: 550; font-size: 14px }

@media (max-width: 1040px) {
  .nav-links { display: none }
  .menu-btn { display: grid; place-items: center }
  .mobile-menu { position: fixed; inset: 72px 0 0; padding: 18px; background: rgba(251, 247, 240, .98); backdrop-filter: blur(14px); overflow-y: auto }
  .mobile-menu.open { display: block }
  .mobile-menu-inner { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow) }
  .mobile-menu a { padding: 13px; border-radius: 10px; color: var(--ink); font-weight: 600 }
  .mobile-menu a:hover { background: var(--accent-soft); color: var(--accent-ink) }
  .hero-grid, .hero-doppia, .problem-grid, .split-box, .calculator, .content-wrap { grid-template-columns: 1fr }
  .sidebar { position: static }
  .grid-4, .step-grid { grid-template-columns: repeat(2, 1fr) }
  .grid-3, .article-grid, .contact-strip { grid-template-columns: repeat(2, 1fr) }
  .trust-grid { grid-template-columns: repeat(2, 1fr) }
  .trust-item:nth-child(3) { border-left: 0 }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-top: 1px solid var(--line) }
  .footer-grid { grid-template-columns: 1fr 1fr }
  .founder-card { grid-template-columns: 1fr; text-align: center; justify-items: center }
}

@media (max-width: 700px) {
  /* ---------- il telefono viene prima ----------
     Regola: sul telefono niente testo sotto i 16px, e niente da toccare sotto i 52.
     Un pollice non e' un puntatore e uno schermo da 6 pollici non e' un monitor:
     qui sotto si alza il pavimento, invece di rimpicciolire tutto come fa il resto del mondo. */
  body { font-size: 16.5px }

  /* Il pavimento dei 16px.
     I selettori sono gli stessi identici delle regole di base qui sopra, apposta: con
     selettori piu' deboli (p, small) la regola di base vincerebbe e sul telefono
     resterebbe il carattere piccolo. Sono stati presi uno per uno dal foglio, non a memoria.

     Salgono le FRASI, cioe' quello che uno legge. Restano piccoli i SEGNALI:
     spunte, pallini di stato, numerini nei cerchietti, etichette in maiuscoletto.
     Quelli non si leggono, si riconoscono, e a 16px sfondano il riquadro che li contiene. */
  .lead { font-size: 17.5px }
  .flow-row small, .field small, .footer-bottom, .breadcrumbs, .cookie-note p,
  .dropzone small, .problem p, .field label, .form-note, .founder-meta,
  .footer-col a, .footer-col p, .point, .step p, .compare-row p, .compare-row strong,
  .side-card p, .side-links a, .article-body p, .footer-about p, .trust-item span,
  .strumento-file-nome, .strumento-esito, .strumento-uscite-titolo, .strumento-scarica,
  .privacy-strip, .card-link, .contact-choice p, .flow-row strong, .card p, .notice,
  .mobile-menu a, .faq-a, .prose p, .prose li { font-size: 16px }
  .faq-q { font-size: 17px }
  .card h3, .contact-choice h3 { font-size: 18px }

  /* Ogni pulsante e' un bersaglio per un dito, non per un mouse */
  .btn { min-height: 56px; font-size: 16.5px }
  .container { width: min(calc(100% - 26px), var(--max)) }
  .section { padding: 60px 0 }
  .section-sm { padding: 46px 0 }
  .hero { padding: 48px 0 56px }
  .title-xl { font-size: 36px; max-width: none }
  .lead { font-size: 17px }
  /* Il pulsante che porta ai contatti NON si nasconde sul telefono.
     Prima era display:none sotto i 700px: la chiamata all'azione principale spariva
     proprio sul dispositivo da cui arriva quasi tutto il traffico, e restava solo
     dentro il menu a panino, cioe' dietro un tocco in piu' che quasi nessuno fa.
     Per fargli spazio sparisce la scritta "Muffin Suite" accanto al muffin: il logo
     da solo si riconosce, il pulsante no. */
  .nav-actions .btn { display: inline-flex; min-height: 52px; padding: 0 16px; font-size: 16px }
  .brand span:last-child { display: none }
  .brand-mark { width: 42px; height: 42px }
  .grid-2, .grid-3, .grid-4, .step-grid, .article-grid, .contact-strip, .form-grid, .result-grid, .footer-grid { grid-template-columns: 1fr }
  .trust-grid { grid-template-columns: 1fr }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line) }
  .trust-item { text-align: left; padding: 18px }
  .actions .btn { width: 100% }
  .demo-card, .card, .prose, .calc-form, .calc-results, .founder-card, .contact-choice { padding: 20px }
  .flow-check { display: none }
  .split-box { padding: 22px; gap: 30px }
  .compare-row { grid-template-columns: 1fr; gap: 8px }
  .compare-row .arrow { transform: rotate(90deg); width: 32px; height: 32px }
  .cta-box { padding: 36px 20px }

  /* ---------- telefono: e' da li' che arriva quasi tutto il traffico ---------- */

  /* La testata: sul telefono il titolo e' tutto, il resto deve farsi da parte.
     62px sopra su uno schermo da 844 sono mezzo pollice buttato prima di leggere */
  .page-hero { padding: 34px 0 30px }
  .hero-doppia { gap: 26px }
  .page-hero .title-xl { font-size: clamp(30px, 8vw, 38px) }

  /* L'avviso cookie stava esattamente sopra il pulsante WhatsApp, tutti e due a bottom:18px,
     e con z-index piu' alto lo copriva: il pulsante e' il canale principale, non si nasconde.
     56 del pulsante + 18 sotto + 10 d'aria = 84 */
  .cookie-note { left: 10px; right: 10px; bottom: 84px; padding: 14px; gap: 12px; grid-template-columns: 1fr }
  .cookie-note .btn { min-height: 56px }   /* era 44: anche questo e' un bersaglio per un dito */

  /* Un dito non e' un mouse: sotto i 44px si sbaglia bersaglio.
     Sono link di testo in fila, quindi si allargano in altezza, non in larghezza.
     I link dentro una frase restano come sono: alzarli a 44px sfascerebbe il paragrafo,
     e le linee guida li escludono apposta */
  .footer-col a, .footer-about a, .side-links a { display: inline-block; padding: 11px 0; min-height: 44px }
  .footer-col { gap: 0 }
  .breadcrumbs a { display: inline-block; padding: 11px 0; min-height: 44px }
  .card-link { display: inline-block; padding: 11px 0; min-height: 44px }
  .brand { min-height: 44px }
  .menu-btn { min-width: 48px; min-height: 48px }
  .footer-bottom { flex-direction: column; gap: 8px }
  .cookie-note { grid-template-columns: 1fr; bottom: 86px; left: 12px; right: 12px }
  .whatsapp-float { width: 52px; height: 52px; right: 14px; bottom: 14px }
  .whatsapp-float::before { width: 27px; height: 27px }
  .step { padding: 18px }
  .founder-card { padding: 24px 20px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important }
}

/* ---------- animazioni ----------
   Sobrie di proposito: questo sito e' carta e inchiostro, non una vetrina, e una pagina
   che saltella mentre leggi fa perdere la riga. Solo una comparsa quando l'elemento entra
   nello schermo, una volta sola, e mai piu'.

   Parte solo se il javascript accende .anima sul body: senza, tutto resta visibile.
   Cosi' chi ha il javascript spento vede la pagina intera invece di una pagina bianca. */
.anima [data-entra] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, .8, .3, 1);
  will-change: opacity, transform;
}
.anima [data-entra].dentro { opacity: 1; transform: none }
/* in fila indiana: le schede di una griglia entrano una dopo l'altra, non tutte insieme */
.anima [data-entra]:nth-child(2) { transition-delay: .07s }
.anima [data-entra]:nth-child(3) { transition-delay: .14s }
.anima [data-entra]:nth-child(4) { transition-delay: .21s }
.anima [data-entra]:nth-child(5) { transition-delay: .28s }

/* Chi ha chiesto meno movimento al sistema operativo lo ha chiesto sul serio:
   c'e' chi ci sta male davvero. Niente comparse, niente ritardi, tutto fermo e visibile. */
@media (prefers-reduced-motion: reduce) {
  .anima [data-entra] { opacity: 1; transform: none; transition: none; transition-delay: 0s }
}

/* ---------- strumenti gratuiti ---------- */
.strumento { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft) }
.dropzone {
  display: grid; gap: 6px; place-items: center; text-align: center;
  padding: 40px 20px; cursor: pointer;
  border: 2px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none }
.dropzone.sopra { border-color: var(--accent); background: var(--accent-soft) }
.dropzone strong { font-size: 17px }
.dropzone small { color: var(--muted); font-size: 13.5px }
.dropzone-mark { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1 }

.strumento-lista { display: grid; gap: 8px; list-style: none }
.strumento-file {
  display: grid; grid-template-columns: 26px 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.strumento-file-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700 }
.strumento-file-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600 }
.strumento-file-peso { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums }
.strumento-file-azioni { display: flex; gap: 4px }
.strumento-file-azioni button {
  width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1;
}
.strumento-file-azioni button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink) }
.strumento-file-azioni button:disabled { opacity: .35 }

.strumento-opzioni { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 15px }
.strumento-esito { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink-70); font-size: 14.5px }
.strumento-esito.err { background: var(--red-soft); color: var(--red) }

.strumento-uscite { display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(47, 107, 79, .3); border-radius: var(--radius-sm); background: var(--green-soft) }
.strumento-uscite-titolo { color: var(--green); font-weight: 700; font-size: 14.5px }
.strumento-scarica {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.strumento-scarica:hover { border-color: var(--green); color: var(--green) }
.strumento-scarica span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.strumento-scarica::after { content: "↓"; color: var(--green); font-weight: 700 }

.privacy-strip { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid rgba(47, 107, 79, .28); background: var(--green-soft); border-radius: var(--radius-sm); color: var(--green); font-size: 14.5px; font-weight: 600 }
.privacy-strip::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: currentColor }

@media (max-width: 720px) {
  .strumento { padding: 18px }
  .strumento-file { grid-template-columns: 22px 1fr auto; row-gap: 6px }
  .strumento-file-peso { grid-column: 2 }
  .strumento-file-azioni { grid-row: 1 / span 2; grid-column: 3 }

  /* Il pavimento dei 16px vale anche qui, e va ripetuto in questo punto e non piu' su:
     le regole degli strumenti stanno in fondo al foglio, quindi a parita' di peso
     vincono su qualsiasi cosa scritta prima. Non e' un doppione per distrazione. */
  .dropzone small, .privacy-strip, .strumento-file-nome, .strumento-esito,
  .strumento-scarica, .strumento-uscite-titolo, .field small, .field label { font-size: 16px }
  .dropzone strong { font-size: 17px }
}

@media print {
  .header, .whatsapp-float, .cookie-note, .mobile-menu, .cta-box { display: none }
  body { background: #fff }
}
